@openmrs/ngx-formentry 3.2.1-pre.275 → 3.2.1-pre.276

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/package.json +5 -1
  2. package/src/app/adult-1.4.json +6858 -0
  3. package/src/app/adult-1.6.json +8082 -0
  4. package/src/app/adult.json +5700 -0
  5. package/src/app/app.component.html +25 -0
  6. package/src/app/app.component.spec.ts +23 -0
  7. package/src/app/app.component.ts +414 -0
  8. package/src/app/app.module.ts +24 -0
  9. package/src/app/mock/mock-form.ts +101 -0
  10. package/src/app/mock/mock-obs.ts +440 -0
  11. package/src/app/mock/mock-translations.ts +73 -0
  12. package/src/app/mock/obs.json +4188 -0
  13. package/src/app/mock/orders.json +338 -0
  14. package/src/app/mock/schema/adult-return.json +72 -0
  15. package/src/app/mock/schema/compiled-adult-return.json +706 -0
  16. package/src/app/mock/schema/component_art.json +1705 -0
  17. package/src/app/mock/schema/component_hospitalization.json +133 -0
  18. package/src/app/mock/schema/component_preclinic-review.json +480 -0
  19. package/src/app/ncd-registration-1.0.json +456 -0
  20. package/src/app/translate/json-loader.ts +10 -0
  21. package/src/app/translate/translate.module.ts +23 -0
  22. package/src/assets/.gitkeep +0 -0
  23. package/src/assets/carbon.select.theme.css +356 -0
  24. package/src/environments/environment.prod.ts +3 -0
  25. package/src/environments/environment.ts +15 -0
  26. package/src/favicon.ico +0 -0
  27. package/src/index.html +23 -0
  28. package/src/karma.conf.js +37 -0
  29. package/src/main.ts +13 -0
  30. package/src/polyfills.ts +68 -0
  31. package/src/styles.scss +8 -0
  32. package/src/test.ts +23 -0
  33. package/src/translations/en.json +53 -0
  34. package/src/translations/fr.json +53 -0
  35. package/src/tsconfig.app.json +13 -0
  36. package/src/tsconfig.spec.json +9 -0
  37. package/src/tslint.json +9 -0
  38. package/src/typings.d.ts +4 -0
  39. package/.editorconfig +0 -13
  40. package/.eslintrc.json +0 -45
  41. package/.prettierignore +0 -40
  42. package/.prettierrc +0 -6
  43. package/.turbo/turbo-build:lib.log +0 -37
  44. package/.yarn/plugins/@yarnpkg/plugin-version.cjs +0 -550
  45. package/angular.json +0 -164
  46. package/proxy.conf.json +0 -6
  47. package/scripts/build.sh +0 -2
  48. package/tsconfig.json +0 -29
  49. package/turbo.json +0 -18
  50. /package/{.yarn/versions/6b8f5374.yml → src/app/app.component.css} +0 -0
@@ -0,0 +1,338 @@
1
+ {
2
+ "uuid": "3e9f1808-34dd-4407-b474-c334a2653a10",
3
+ "display": "ADULTRETURN 16/11/2016",
4
+ "encounterDatetime": "2016-11-16T11:46:37.000+0300",
5
+ "patient": {
6
+ "uuid": "b4ddd369-bec5-446e-b8f8-47fd5567b295",
7
+ "display": "234750205-2 - Robai Test Robai",
8
+ "links": [
9
+ {
10
+ "rel": "self",
11
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/patient/b4ddd369-bec5-446e-b8f8-47fd5567b295"
12
+ }
13
+ ]
14
+ },
15
+ "form": {
16
+ "uuid": "81f92a8a-ff5c-415d-a34c-b5bdca2406be",
17
+ "display": "AMPATH POC Adult Return Visit Form v1.0",
18
+ "name": "AMPATH POC Adult Return Visit Form v1.0",
19
+ "description": "AMPATH POC Adult Return Visit Form v1.0",
20
+ "encounterType": {
21
+ "uuid": "8d5b2be0-c2cc-11de-8d13-0010c6dffd0f",
22
+ "display": "ADULTRETURN",
23
+ "links": [
24
+ {
25
+ "rel": "self",
26
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/encountertype/8d5b2be0-c2cc-11de-8d13-0010c6dffd0f"
27
+ }
28
+ ]
29
+ },
30
+ "version": "1.0",
31
+ "build": null,
32
+ "published": true,
33
+ "formFields": [],
34
+ "retired": false,
35
+ "resources": [
36
+ {
37
+ "uuid": "991e36d7-98df-45a9-b77b-37dba0dfcb67",
38
+ "display": "json schema",
39
+ "links": [
40
+ {
41
+ "rel": "value",
42
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/form/81f92a8a-ff5c-415d-a34c-b5bdca2406be/resource/991e36d7-98df-45a9-b77b-37dba0dfcb67/value"
43
+ },
44
+ {
45
+ "rel": "self",
46
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/form/81f92a8a-ff5c-415d-a34c-b5bdca2406be/resource/991e36d7-98df-45a9-b77b-37dba0dfcb67"
47
+ }
48
+ ]
49
+ }
50
+ ],
51
+ "links": [
52
+ {
53
+ "rel": "self",
54
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/form/81f92a8a-ff5c-415d-a34c-b5bdca2406be"
55
+ },
56
+ {
57
+ "rel": "full",
58
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/form/81f92a8a-ff5c-415d-a34c-b5bdca2406be?v=full"
59
+ }
60
+ ],
61
+ "resourceVersion": "1.9"
62
+ },
63
+ "encounterType": {
64
+ "uuid": "8d5b2be0-c2cc-11de-8d13-0010c6dffd0f",
65
+ "display": "ADULTRETURN",
66
+ "name": "ADULTRETURN",
67
+ "description": "Outpatient Adult Return Visit",
68
+ "retired": false,
69
+ "links": [
70
+ {
71
+ "rel": "self",
72
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/encountertype/8d5b2be0-c2cc-11de-8d13-0010c6dffd0f"
73
+ },
74
+ {
75
+ "rel": "full",
76
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/encountertype/8d5b2be0-c2cc-11de-8d13-0010c6dffd0f?v=full"
77
+ }
78
+ ],
79
+ "resourceVersion": "1.8"
80
+ },
81
+ "orders": [
82
+ {
83
+ "uuid": "order-1-uuid",
84
+ "orderNumber": "ORD-13737",
85
+ "auditInfo": {
86
+ "dateVoided": "2017-01-01"
87
+ },
88
+ "patient": {
89
+ "uuid": "b4ddd369-bec5-446e-b8f8-47fd5567b295",
90
+ "display": "234750205-2 - Robai Test Robai",
91
+ "links": [
92
+ {
93
+ "rel": "self",
94
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/patient/b4ddd369-bec5-446e-b8f8-47fd5567b295"
95
+ }
96
+ ]
97
+ },
98
+ "concept": {
99
+ "uuid": "a8982474-1350-11df-a1f1-0026b9348838",
100
+ "display": "HIV VIRAL LOAD, QUANTITATIVE",
101
+ "links": [
102
+ {
103
+ "rel": "self",
104
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/concept/a8982474-1350-11df-a1f1-0026b9348838"
105
+ }
106
+ ]
107
+ },
108
+ "action": "NEW",
109
+ "careSetting": {
110
+ "uuid": "6f0c9a92-6f24-11e3-af88-005056821db0",
111
+ "display": "Outpatient",
112
+ "links": [
113
+ {
114
+ "rel": "self",
115
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/caresetting/6f0c9a92-6f24-11e3-af88-005056821db0"
116
+ }
117
+ ]
118
+ },
119
+ "previousOrder": null,
120
+ "dateActivated": "2016-12-14T06:38:52.000+0300",
121
+ "dateStopped": null,
122
+ "autoExpireDate": null,
123
+ "encounter": {
124
+ "uuid": "3e9f1808-34dd-4407-b474-c334a2653a10",
125
+ "display": "ADULTRETURN 16/11/2016",
126
+ "links": [
127
+ {
128
+ "rel": "self",
129
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/encounter/3e9f1808-34dd-4407-b474-c334a2653a10"
130
+ }
131
+ ]
132
+ },
133
+ "orderer": {
134
+ "uuid": "d9ca67ef-c8ea-4d2d-9102-eb515573f856",
135
+ "display": "1118-9 - Florida Jepngetich Kiplagat",
136
+ "links": [
137
+ {
138
+ "rel": "self",
139
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/provider/d9ca67ef-c8ea-4d2d-9102-eb515573f856"
140
+ }
141
+ ]
142
+ },
143
+ "orderReason": null,
144
+ "orderReasonNonCoded": null,
145
+ "urgency": "ROUTINE",
146
+ "instructions": null,
147
+ "commentToFulfiller": null,
148
+ "display": "HIV VIRAL LOAD, QUANTITATIVE",
149
+ "specimenSource": null,
150
+ "laterality": null,
151
+ "clinicalHistory": null,
152
+ "frequency": null,
153
+ "numberOfRepeats": null,
154
+ "links": [
155
+ {
156
+ "rel": "self",
157
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/order/04702e88-b06a-44c0-a5e8-c3f3291595a0"
158
+ },
159
+ {
160
+ "rel": "full",
161
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/order/04702e88-b06a-44c0-a5e8-c3f3291595a0?v=full"
162
+ }
163
+ ],
164
+ "type": "testorder",
165
+ "resourceVersion": "1.10"
166
+ },
167
+ {
168
+ "uuid": "order-1-uuid",
169
+ "orderNumber": "ORD-13738",
170
+ "auditInfo": {
171
+ "dateVoided": ""
172
+ },
173
+ "patient": {
174
+ "uuid": "b4ddd369-bec5-446e-b8f8-47fd5567b295",
175
+ "display": "234750205-2 - Robai Test Robai",
176
+ "links": [
177
+ {
178
+ "rel": "self",
179
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/patient/b4ddd369-bec5-446e-b8f8-47fd5567b295"
180
+ }
181
+ ]
182
+ },
183
+ "concept": {
184
+ "uuid": "a8982474-1350-11df-a1f1-0026b9348838",
185
+ "display": "HIV VIRAL LOAD, QUANTITATIVE",
186
+ "links": [
187
+ {
188
+ "rel": "self",
189
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/concept/a8982474-1350-11df-a1f1-0026b9348838"
190
+ }
191
+ ]
192
+ },
193
+ "action": "NEW",
194
+ "careSetting": {
195
+ "uuid": "6f0c9a92-6f24-11e3-af88-005056821db0",
196
+ "display": "Outpatient",
197
+ "links": [
198
+ {
199
+ "rel": "self",
200
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/caresetting/6f0c9a92-6f24-11e3-af88-005056821db0"
201
+ }
202
+ ]
203
+ },
204
+ "previousOrder": null,
205
+ "dateActivated": "2016-12-14T06:38:52.000+0300",
206
+ "dateStopped": null,
207
+ "autoExpireDate": null,
208
+ "encounter": {
209
+ "uuid": "3e9f1808-34dd-4407-b474-c334a2653a10",
210
+ "display": "ADULTRETURN 16/11/2016",
211
+ "links": [
212
+ {
213
+ "rel": "self",
214
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/encounter/3e9f1808-34dd-4407-b474-c334a2653a10"
215
+ }
216
+ ]
217
+ },
218
+ "orderer": {
219
+ "uuid": "d9ca67ef-c8ea-4d2d-9102-eb515573f856",
220
+ "display": "1118-9 - Florida Jepngetich Kiplagat",
221
+ "links": [
222
+ {
223
+ "rel": "self",
224
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/provider/d9ca67ef-c8ea-4d2d-9102-eb515573f856"
225
+ }
226
+ ]
227
+ },
228
+ "orderReason": null,
229
+ "orderReasonNonCoded": null,
230
+ "urgency": "ROUTINE",
231
+ "instructions": null,
232
+ "commentToFulfiller": null,
233
+ "display": "HIV VIRAL LOAD, QUANTITATIVE",
234
+ "specimenSource": null,
235
+ "laterality": null,
236
+ "clinicalHistory": null,
237
+ "frequency": null,
238
+ "numberOfRepeats": null,
239
+ "links": [
240
+ {
241
+ "rel": "self",
242
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/order/04702e88-b06a-44c0-a5e8-c3f3291595a0"
243
+ },
244
+ {
245
+ "rel": "full",
246
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/order/04702e88-b06a-44c0-a5e8-c3f3291595a0?v=full"
247
+ }
248
+ ],
249
+ "type": "testorder",
250
+ "resourceVersion": "1.10"
251
+ },
252
+ {
253
+ "uuid": "order-2-uuid",
254
+ "orderNumber": "ORD-13739",
255
+ "auditInfo": {
256
+ "dateVoided": ""
257
+ },
258
+ "patient": {
259
+ "uuid": "b4ddd369-bec5-446e-b8f8-47fd5567b295",
260
+ "display": "234750205-2 - Robai Test Robai",
261
+ "links": [
262
+ {
263
+ "rel": "self",
264
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/patient/b4ddd369-bec5-446e-b8f8-47fd5567b295"
265
+ }
266
+ ]
267
+ },
268
+ "concept": {
269
+ "uuid": "a898fe80-1350-11df-a1f1-0026b9348838",
270
+ "display": "HIV DNA POLYMERASE CHAIN REACTION, QUALITATIVE",
271
+ "links": [
272
+ {
273
+ "rel": "self",
274
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/concept/a898fe80-1350-11df-a1f1-0026b9348838"
275
+ }
276
+ ]
277
+ },
278
+ "action": "NEW",
279
+ "careSetting": {
280
+ "uuid": "6f0c9a92-6f24-11e3-af88-005056821db0",
281
+ "display": "Outpatient",
282
+ "links": [
283
+ {
284
+ "rel": "self",
285
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/caresetting/6f0c9a92-6f24-11e3-af88-005056821db0"
286
+ }
287
+ ]
288
+ },
289
+ "previousOrder": null,
290
+ "dateActivated": "2016-12-14T06:38:53.000+0300",
291
+ "dateStopped": null,
292
+ "autoExpireDate": null,
293
+ "encounter": {
294
+ "uuid": "3e9f1808-34dd-4407-b474-c334a2653a10",
295
+ "display": "ADULTRETURN 16/11/2016",
296
+ "links": [
297
+ {
298
+ "rel": "self",
299
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/encounter/3e9f1808-34dd-4407-b474-c334a2653a10"
300
+ }
301
+ ]
302
+ },
303
+ "orderer": {
304
+ "uuid": "d9ca67ef-c8ea-4d2d-9102-eb515573f856",
305
+ "display": "1118-9 - Florida Jepngetich Kiplagat",
306
+ "links": [
307
+ {
308
+ "rel": "self",
309
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/provider/d9ca67ef-c8ea-4d2d-9102-eb515573f856"
310
+ }
311
+ ]
312
+ },
313
+ "orderReason": null,
314
+ "orderReasonNonCoded": null,
315
+ "urgency": "ROUTINE",
316
+ "instructions": null,
317
+ "commentToFulfiller": null,
318
+ "display": "HIV DNA POLYMERASE CHAIN REACTION, QUALITATIVE",
319
+ "specimenSource": null,
320
+ "laterality": null,
321
+ "clinicalHistory": null,
322
+ "frequency": null,
323
+ "numberOfRepeats": null,
324
+ "links": [
325
+ {
326
+ "rel": "self",
327
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/order/38e07c3c-3291-4d5b-8d4b-7c9dbd5df072"
328
+ },
329
+ {
330
+ "rel": "full",
331
+ "uri": "https://amrs.ampath.or.ke:8443/amrs/ws/rest/v1/order/38e07c3c-3291-4d5b-8d4b-7c9dbd5df072?v=full"
332
+ }
333
+ ],
334
+ "type": "testorder",
335
+ "resourceVersion": "1.10"
336
+ }
337
+ ]
338
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "ampath_poc_adult_return_visit_form_v1.0",
3
+ "uuid": "xxxx",
4
+ "processor": "EncounterFormProcessor",
5
+ "referencedForms": [
6
+ {
7
+ "formName": "component_preclinic-review",
8
+ "alias": "pcr"
9
+ },
10
+ {
11
+ "formName": "component_hospitalization",
12
+ "alias": "hosp"
13
+ },
14
+ {
15
+ "formName": "component_art",
16
+ "alias": "art"
17
+ }
18
+ ],
19
+ "pages": [
20
+ {
21
+ "label": "Pre-Clinic Review",
22
+ "sections": [
23
+ {
24
+ "reference": {
25
+ "form": "pcr",
26
+ "page": "Pre-clinic Review",
27
+ "section": "Pre-clinic Review"
28
+ }
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ "label": "Medical History",
34
+ "sections": [
35
+ {
36
+ "reference": {
37
+ "form": "pcr",
38
+ "page": "Pre-clinic Review",
39
+ "section": "Social History"
40
+ }
41
+ },
42
+ {
43
+ "reference": {
44
+ "form": "pcr",
45
+ "page": "Pre-clinic Review",
46
+ "section": "Prevention With Positives"
47
+ }
48
+ },
49
+ {
50
+ "reference": {
51
+ "form": "hosp",
52
+ "page": "Hospitalization",
53
+ "section": "Hospitalization History"
54
+ }
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "label": "ART History",
60
+ "sections": [
61
+ {
62
+ "reference": {
63
+ "form": "art",
64
+ "page": "ART ",
65
+ "section": "ART History",
66
+ "excludeQuestions": ["current_art_regimen_ped"]
67
+ }
68
+ }
69
+ ]
70
+ }
71
+ ]
72
+ }