Skip to content

Commit 075ac9c

Browse files
HSC-435: Fix the numeric fields in clinical forms (#109)
1 parent 10da8f3 commit 075ac9c

11 files changed

+34
-0
lines changed

configs/openmrs/initializer_config/ampathforms/consultation_prenatale.json

+4
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@
348348
"id": "numberOfWeeks",
349349
"questionOptions": {
350350
"rendering": "number",
351+
"step": 1,
351352
"concept": "73099ba8-73c7-4427-a973-76fc1e4d4120",
352353
"disallowDecimals": true
353354
},
@@ -359,6 +360,7 @@
359360
"id": "numberOfDays",
360361
"questionOptions": {
361362
"rendering": "number",
363+
"step": 1,
362364
"concept": "f887f487-58a2-4429-944c-c2134ea658de",
363365
"disallowDecimals": true
364366
},
@@ -508,6 +510,7 @@
508510
"questionOptions": {
509511
"rendering": "number",
510512
"concept": "b0823b2c-4bc8-2a7c-41b5-7bf3c7f14e82",
513+
"step": 1,
511514
"disallowDecimals": true
512515
},
513516
"validators": []
@@ -574,6 +577,7 @@
574577
"id": "fetalHeartRate",
575578
"questionOptions": {
576579
"rendering": "number",
580+
"step": 1,
577581
"min": "120",
578582
"max": "160",
579583
"concept": "7ce5a9fe-d9e0-427e-a080-ce8a9c673822",

configs/openmrs/initializer_config/ampathforms/echographie_obstetricale_1.json

+5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"id": "numberOfWeeks",
4949
"questionOptions": {
5050
"rendering": "number",
51+
"step": 1,
5152
"concept": "73099ba8-73c7-4427-a973-76fc1e4d4120",
5253
"disallowDecimals": true
5354
},
@@ -59,6 +60,7 @@
5960
"id": "numberOfDays",
6061
"questionOptions": {
6162
"rendering": "number",
63+
"step": 1,
6264
"concept": "f887f487-58a2-4429-944c-c2134ea658de",
6365
"disallowDecimals": true
6466
},
@@ -118,6 +120,7 @@
118120
"id": "numberOfFetuses",
119121
"questionOptions": {
120122
"rendering": "number",
123+
"step": 1,
121124
"concept": "a7ad184c-b79a-476d-9ba2-ef980375da28",
122125
"conceptMappings": [
123126
{
@@ -136,6 +139,7 @@
136139
"id": "numberOfPlacenta",
137140
"questionOptions": {
138141
"rendering": "number",
142+
"step": 1,
139143
"concept": "c1e61ae3-4de8-4fe1-9b7a-8c1ae56d1631",
140144
"disallowDecimals": true
141145
},
@@ -180,6 +184,7 @@
180184
"id": "fetalHeartRate",
181185
"questionOptions": {
182186
"rendering": "number",
187+
"step": 1,
183188
"min": "120",
184189
"max": "160",
185190
"concept": "7ce5a9fe-d9e0-427e-a080-ce8a9c673822",

configs/openmrs/initializer_config/ampathforms/echographie_obstetricale_2.json

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"id": "numberOfFetuses",
1515
"questionOptions": {
1616
"rendering": "number",
17+
"step": 1,
1718
"concept": "a7ad184c-b79a-476d-9ba2-ef980375da28",
1819
"conceptMappings": [
1920
{
@@ -32,6 +33,7 @@
3233
"id": "numberOfPlacenta",
3334
"questionOptions": {
3435
"rendering": "number",
36+
"step": 1,
3537
"concept": "c1e61ae3-4de8-4fe1-9b7a-8c1ae56d1631",
3638
"disallowDecimals": true
3739
},
@@ -76,6 +78,7 @@
7678
"id": "fetalHeartRate",
7779
"questionOptions": {
7880
"rendering": "number",
81+
"step": 1,
7982
"min": "120",
8083
"max": "160",
8184
"concept": "7ce5a9fe-d9e0-427e-a080-ce8a9c673822",

configs/openmrs/initializer_config/ampathforms/echographie_obstetricale_3.json

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"id": "numberOfFetuses",
1515
"questionOptions": {
1616
"rendering": "number",
17+
"step": 1,
1718
"concept": "a7ad184c-b79a-476d-9ba2-ef980375da28",
1819
"conceptMappings": [
1920
{
@@ -32,6 +33,7 @@
3233
"id": "numberOfPlacenta",
3334
"questionOptions": {
3435
"rendering": "number",
36+
"step": 1,
3537
"concept": "c1e61ae3-4de8-4fe1-9b7a-8c1ae56d1631",
3638
"disallowDecimals": true
3739
},
@@ -76,6 +78,7 @@
7678
"id": "fetalHeartRate",
7779
"questionOptions": {
7880
"rendering": "number",
81+
"step": 1,
7982
"min": "120",
8083
"max": "160",
8184
"concept": "7ce5a9fe-d9e0-427e-a080-ce8a9c673822",

configs/openmrs/initializer_config/ampathforms/emergency_department_form.json

+2
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@
195195
"id": "vaccinationStatus",
196196
"questionOptions": {
197197
"rendering": "number",
198+
"step": 1,
198199
"min": "1900",
199200
"max": "2100",
200201
"concept": "ea3e990a-eae3-40c9-a6c0-367468b71f8d",
@@ -405,6 +406,7 @@
405406
"id": "expectedDurationOfStay(Days)",
406407
"questionOptions": {
407408
"rendering": "number",
409+
"step": 1,
408410
"min": "0",
409411
"concept": "e232692d-e2a5-4c12-bad0-805862bf8e23",
410412
"disallowDecimals": true

configs/openmrs/initializer_config/ampathforms/examen_gynecologique.json

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"id": "ageAtMenarche",
1515
"questionOptions": {
1616
"rendering": "number",
17+
"step": 1,
1718
"concept": "d5fea038-5a9d-47b1-87d3-8a3b162db2c0",
1819
"disallowDecimals": true
1920
},
@@ -43,6 +44,7 @@
4344
"id": "totalNumberOfPregnancies",
4445
"questionOptions": {
4546
"rendering": "number",
47+
"step": 1,
4648
"concept": "5bab781c-96be-4c32-b75b-d7906ddff555",
4749
"disallowDecimals": true
4850
},
@@ -55,6 +57,7 @@
5557
"id": "numberOfAbortions",
5658
"questionOptions": {
5759
"rendering": "number",
60+
"step": 1,
5861
"concept": "88e9ef3b-651f-47ea-89c5-5f751cee165b",
5962
"disallowDecimals": true
6063
},
@@ -66,6 +69,7 @@
6669
"id": "numberOfTermPregnancies",
6770
"questionOptions": {
6871
"rendering": "number",
72+
"step": 1,
6973
"concept": "b346c76b-56ba-4c27-97cc-f7b0f85bf581",
7074
"conceptMappings": [
7175
{
@@ -274,6 +278,7 @@
274278
"id": "numberOfPartners",
275279
"questionOptions": {
276280
"rendering": "number",
281+
"step": 1,
277282
"concept": "cfe9491c-8f42-425d-9c0a-987c171006e6",
278283
"disallowDecimals": true
279284
},

configs/openmrs/initializer_config/ampathforms/historique_de_sante.json

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"id": "duration",
8080
"questionOptions": {
8181
"rendering": "number",
82+
"step": 1,
8283
"concept": "b0823b2c-4bc8-2a7c-41b5-7bf3c7f14e82",
8384
"disallowDecimals": true
8485
},
@@ -689,6 +690,7 @@
689690
"id": "ageAtFirstIntercourse",
690691
"questionOptions": {
691692
"rendering": "number",
693+
"step": 1,
692694
"concept": "2f6144e3-ec2c-4858-b01e-af447d68c136",
693695
"disallowDecimals": true
694696
},

configs/openmrs/initializer_config/ampathforms/motif_de_consultation.json

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"id": "duration",
5252
"questionOptions": {
5353
"rendering": "number",
54+
"step": 1,
5455
"concept": "b0823b2c-4bc8-2a7c-41b5-7bf3c7f14e82",
5556
"disallowDecimals": true
5657
},

configs/openmrs/initializer_config/ampathforms/nutrition.json

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
"id": "duration",
144144
"questionOptions": {
145145
"rendering": "number",
146+
"step": 1,
146147
"concept": "b0823b2c-4bc8-2a7c-41b5-7bf3c7f14e82",
147148
"disallowDecimals": true
148149
},

configs/openmrs/initializer_config/ampathforms/vaccinations.json

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"id": "sequenceNumber",
7676
"questionOptions": {
7777
"rendering": "number",
78+
"step": 1,
7879
"concept": "1f4109b3-b201-46df-a341-dcfa5299a187",
7980
"conceptMappings": [
8081
{

configs/openmrs/initializer_config/ampathforms/vitals_and_biometrics.json

+7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"id": "painScale",
1616
"questionOptions": {
1717
"rendering": "number",
18+
"step": 1,
1819
"min": "0",
1920
"max": "10",
2021
"concept": "3fe6460f-3d37-463e-9fb9-df42ab15aec8"
@@ -26,6 +27,7 @@
2627
"id": "pulseTest",
2728
"questionOptions": {
2829
"rendering": "number",
30+
"step": 1,
2931
"min": "10",
3032
"max": "230",
3133
"concept": "0b9e358e-c9cf-439e-8c00-69f873cec59f",
@@ -45,6 +47,7 @@
4547
"id": "temperatureTest",
4648
"questionOptions": {
4749
"rendering": "number",
50+
"step": 1,
4851
"min": "25",
4952
"max": "43",
5053
"concept": "0ff962b3-8730-4eb0-9028-82d403b066bf",
@@ -64,6 +67,7 @@
6467
"id": "respiratoryRate",
6568
"questionOptions": {
6669
"rendering": "number",
70+
"step": 1,
6771
"concept": "8130729f-4605-49b3-b7c0-12b19cc10543",
6872
"conceptMappings": [
6973
{
@@ -82,6 +86,7 @@
8286
"id": "oxygenSaturation",
8387
"questionOptions": {
8488
"rendering": "number",
89+
"step": 1,
8590
"min": "0",
8691
"max": "100",
8792
"concept": "c642aeb3-95d3-4d1b-aa5b-1273b438d14f",
@@ -106,6 +111,7 @@
106111
"id": "systolicBloodPressure",
107112
"questionOptions": {
108113
"rendering": "number",
114+
"step": 1,
109115
"min": "40",
110116
"max": "400",
111117
"concept": "bc4f2e44-26b0-4f5f-a98f-248601fdf792",
@@ -124,6 +130,7 @@
124130
"id": "diastolicBloodPressure",
125131
"questionOptions": {
126132
"rendering": "number",
133+
"step": 1,
127134
"min": "20",
128135
"max": "400",
129136
"concept": "8bc4016d-88ee-43dc-a943-ad10b8bb211e",

0 commit comments

Comments
 (0)