@openmrs/esm-billing-app 1.0.1-pre.14

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 (167) hide show
  1. package/.editorconfig +12 -0
  2. package/.eslintignore +2 -0
  3. package/.eslintrc +57 -0
  4. package/.husky/pre-commit +7 -0
  5. package/.husky/pre-push +6 -0
  6. package/.prettierignore +14 -0
  7. package/.turbo.json +18 -0
  8. package/.yarn/plugins/@yarnpkg/plugin-outdated.cjs +35 -0
  9. package/LICENSE +401 -0
  10. package/README.md +7 -0
  11. package/__mocks__/bills.mock.ts +392 -0
  12. package/__mocks__/delivery-summary.mock.ts +87 -0
  13. package/__mocks__/encounter-observation.mock.ts +10649 -0
  14. package/__mocks__/encounter-observations.mock.ts +6187 -0
  15. package/__mocks__/hiv-summary.mock.ts +22 -0
  16. package/__mocks__/patient-summary.mock.ts +32 -0
  17. package/__mocks__/patient.mock.ts +59 -0
  18. package/__mocks__/program-summary.mock.ts +43 -0
  19. package/__mocks__/react-i18next.js +57 -0
  20. package/dist/294.js +2 -0
  21. package/dist/294.js.LICENSE.txt +9 -0
  22. package/dist/294.js.map +1 -0
  23. package/dist/319.js +1 -0
  24. package/dist/384.js +1 -0
  25. package/dist/384.js.map +1 -0
  26. package/dist/421.js +1 -0
  27. package/dist/421.js.map +1 -0
  28. package/dist/450.js +1 -0
  29. package/dist/450.js.map +1 -0
  30. package/dist/476.js +1 -0
  31. package/dist/476.js.map +1 -0
  32. package/dist/574.js +1 -0
  33. package/dist/757.js +1 -0
  34. package/dist/788.js +1 -0
  35. package/dist/800.js +2 -0
  36. package/dist/800.js.LICENSE.txt +3 -0
  37. package/dist/800.js.map +1 -0
  38. package/dist/807.js +1 -0
  39. package/dist/833.js +1 -0
  40. package/dist/935.js +2 -0
  41. package/dist/935.js.LICENSE.txt +19 -0
  42. package/dist/935.js.map +1 -0
  43. package/dist/96.js +2 -0
  44. package/dist/96.js.LICENSE.txt +47 -0
  45. package/dist/96.js.map +1 -0
  46. package/dist/main.js +2 -0
  47. package/dist/main.js.LICENSE.txt +47 -0
  48. package/dist/main.js.map +1 -0
  49. package/dist/openmrs-esm-billing-app.js +1 -0
  50. package/dist/openmrs-esm-billing-app.js.buildmanifest.json +462 -0
  51. package/dist/openmrs-esm-billing-app.js.map +1 -0
  52. package/dist/routes.json +1 -0
  53. package/e2e/README.md +115 -0
  54. package/e2e/core/global-setup.ts +32 -0
  55. package/e2e/core/index.ts +1 -0
  56. package/e2e/core/test.ts +20 -0
  57. package/e2e/fixtures/api.ts +26 -0
  58. package/e2e/fixtures/index.ts +1 -0
  59. package/e2e/pages/home-page.ts +9 -0
  60. package/e2e/pages/index.ts +1 -0
  61. package/e2e/specs/sample-test.spec.ts +11 -0
  62. package/e2e/support/github/Dockerfile +34 -0
  63. package/e2e/support/github/docker-compose.yml +24 -0
  64. package/e2e/support/github/run-e2e-docker-env.sh +49 -0
  65. package/example.env +6 -0
  66. package/i18next-parser.config.js +89 -0
  67. package/jest.config.js +34 -0
  68. package/package.json +123 -0
  69. package/playwright.config.ts +32 -0
  70. package/prettier.config.js +8 -0
  71. package/src/bill-history/bill-history.component.tsx +187 -0
  72. package/src/bill-history/bill-history.scss +151 -0
  73. package/src/bill-history/bill-history.test.tsx +122 -0
  74. package/src/billable-services/bill-waiver/bill-selection.component.tsx +72 -0
  75. package/src/billable-services/bill-waiver/bill-waiver-form.component.tsx +108 -0
  76. package/src/billable-services/bill-waiver/bill-waiver-form.scss +34 -0
  77. package/src/billable-services/bill-waiver/bill-waiver.component.tsx +32 -0
  78. package/src/billable-services/bill-waiver/bill-waiver.scss +10 -0
  79. package/src/billable-services/bill-waiver/patient-bills.component.tsx +135 -0
  80. package/src/billable-services/bill-waiver/utils.ts +41 -0
  81. package/src/billable-services/billable-service.resource.ts +71 -0
  82. package/src/billable-services/billable-services-home.component.tsx +51 -0
  83. package/src/billable-services/billable-services.component.tsx +255 -0
  84. package/src/billable-services/billable-services.scss +218 -0
  85. package/src/billable-services/billable-services.test.tsx +16 -0
  86. package/src/billable-services/create-edit/add-billable-service.component.tsx +322 -0
  87. package/src/billable-services/create-edit/add-billable-service.scss +131 -0
  88. package/src/billable-services/create-edit/add-billable-service.test.tsx +152 -0
  89. package/src/billable-services/dashboard/dashboard.component.tsx +15 -0
  90. package/src/billable-services/dashboard/dashboard.scss +27 -0
  91. package/src/billable-services/dashboard/dashboard.test.tsx +11 -0
  92. package/src/billable-services/dashboard/service-metrics.component.tsx +42 -0
  93. package/src/billable-services-admin-card-link.component.test.tsx +21 -0
  94. package/src/billable-services-admin-card-link.component.tsx +25 -0
  95. package/src/billing-dashboard/billing-dashboard.component.tsx +20 -0
  96. package/src/billing-dashboard/billing-dashboard.scss +27 -0
  97. package/src/billing-dashboard/billing-dashboard.test.tsx +13 -0
  98. package/src/billing-form/billing-checkin-form.component.tsx +131 -0
  99. package/src/billing-form/billing-checkin-form.scss +13 -0
  100. package/src/billing-form/billing-checkin-form.test.tsx +134 -0
  101. package/src/billing-form/billing-form.component.tsx +25 -0
  102. package/src/billing-form/billing-form.resource.ts +31 -0
  103. package/src/billing-form/billing-form.scss +5 -0
  104. package/src/billing-form/visit-attributes/visit-attributes-form.component.tsx +173 -0
  105. package/src/billing-form/visit-attributes/visit-attributes-form.scss +22 -0
  106. package/src/billing-header/billing-header.component.tsx +43 -0
  107. package/src/billing-header/billing-header.scss +83 -0
  108. package/src/billing-header/billing-illustration.component.tsx +30 -0
  109. package/src/billing.resource.ts +120 -0
  110. package/src/bills-table/bills-table.component.tsx +280 -0
  111. package/src/bills-table/bills-table.scss +181 -0
  112. package/src/bills-table/bills-table.test.tsx +154 -0
  113. package/src/config-schema.ts +3 -0
  114. package/src/dashboard.meta.ts +6 -0
  115. package/src/declarations.d.ts +4 -0
  116. package/src/helpers/functions.ts +63 -0
  117. package/src/helpers/index.ts +1 -0
  118. package/src/index.ts +56 -0
  119. package/src/invoice/invoice-table.component.tsx +185 -0
  120. package/src/invoice/invoice-table.scss +91 -0
  121. package/src/invoice/invoice.component.tsx +138 -0
  122. package/src/invoice/invoice.scss +93 -0
  123. package/src/invoice/invoice.test.tsx +242 -0
  124. package/src/invoice/payments/invoice-breakdown/invoice-breakdown.component.tsx +17 -0
  125. package/src/invoice/payments/invoice-breakdown/invoice-breakdown.scss +29 -0
  126. package/src/invoice/payments/payment-form/payment-form.component.tsx +105 -0
  127. package/src/invoice/payments/payment-form/payment-form.scss +54 -0
  128. package/src/invoice/payments/payment-history/payment-history.component.tsx +68 -0
  129. package/src/invoice/payments/payment.resource.ts +43 -0
  130. package/src/invoice/payments/payments.component.tsx +140 -0
  131. package/src/invoice/payments/payments.scss +46 -0
  132. package/src/invoice/payments/utils.ts +30 -0
  133. package/src/invoice/payments/visit-tags/visit-attribute.component.tsx +21 -0
  134. package/src/invoice/printable-invoice/print-receipt.component.tsx +28 -0
  135. package/src/invoice/printable-invoice/print-receipt.scss +14 -0
  136. package/src/invoice/printable-invoice/printable-footer.component.tsx +19 -0
  137. package/src/invoice/printable-invoice/printable-footer.scss +17 -0
  138. package/src/invoice/printable-invoice/printable-footer.test.tsx +30 -0
  139. package/src/invoice/printable-invoice/printable-invoice-header.component.tsx +63 -0
  140. package/src/invoice/printable-invoice/printable-invoice-header.scss +61 -0
  141. package/src/invoice/printable-invoice/printable-invoice-header.test.tsx +58 -0
  142. package/src/invoice/printable-invoice/printable-invoice.component.tsx +146 -0
  143. package/src/invoice/printable-invoice/printable-invoice.scss +50 -0
  144. package/src/left-panel-link.component.tsx +41 -0
  145. package/src/left-panel-link.test.tsx +38 -0
  146. package/src/metrics-cards/card.component.tsx +11 -0
  147. package/src/metrics-cards/card.scss +20 -0
  148. package/src/metrics-cards/metrics-cards.component.tsx +42 -0
  149. package/src/metrics-cards/metrics-cards.scss +12 -0
  150. package/src/metrics-cards/metrics-cards.test.tsx +41 -0
  151. package/src/metrics-cards/metrics.resource.ts +45 -0
  152. package/src/modal/require-payment-modal.component.tsx +81 -0
  153. package/src/modal/require-payment.scss +6 -0
  154. package/src/root.component.tsx +19 -0
  155. package/src/root.scss +30 -0
  156. package/src/routes.json +79 -0
  157. package/src/setup-tests.ts +13 -0
  158. package/src/types/index.ts +167 -0
  159. package/test-helpers.tsx +23 -0
  160. package/translations/am.json +107 -0
  161. package/translations/en.json +107 -0
  162. package/translations/es.json +107 -0
  163. package/translations/fr.json +107 -0
  164. package/translations/he.json +107 -0
  165. package/translations/km.json +107 -0
  166. package/tsconfig.json +16 -0
  167. package/webpack.config.js +1 -0
@@ -0,0 +1,392 @@
1
+ export const billsSummary = [
2
+ {
3
+ uuid: '65f9f19a-f70e-44f4-9c6c-55b23dab4a3f',
4
+ display: 'CP2-0011-0',
5
+ voided: false,
6
+ voidReason: null,
7
+ adjustedBy: [],
8
+ billAdjusted: null,
9
+ cashPoint: {
10
+ uuid: '381595a0-2229-4152-9c45-bd3692aac7cc',
11
+ name: 'Pharmacy Cashier',
12
+ description: '',
13
+ retired: false,
14
+ location: {
15
+ uuid: '381595a0-2229-4152-9c45-bd3692aac7cc',
16
+ display: 'Amani Family Medical Clinic',
17
+ links: [
18
+ {
19
+ rel: 'self',
20
+ uri: 'http://localhost:8089/openmrs/ws/rest/v1/location/381595a0-2229-4152-9c45-bd3692aac7cc',
21
+ resourceAlias: 'location',
22
+ },
23
+ ],
24
+ },
25
+ },
26
+ cashier: {
27
+ uuid: '48b55692-e061-4ffa-b1f2-fd4aaf506224',
28
+ display: 'admin - ayunda ayunda ayunda',
29
+ links: [
30
+ {
31
+ rel: 'self',
32
+ uri: 'http://localhost:8089/openmrs/ws/rest/v1/provider/48b55692-e061-4ffa-b1f2-fd4aaf506224',
33
+ resourceAlias: 'provider',
34
+ },
35
+ ],
36
+ },
37
+ dateCreated: '2023-11-29T09:35:20.000+0300',
38
+ lineItems: [
39
+ {
40
+ uuid: '6ff72ef2-4265-4fdb-8563-a3a2eefa484e',
41
+ display: 'BillLineItem',
42
+ billableService: null,
43
+ voided: false,
44
+ voidReason: null,
45
+ item: 'HIV self-test kit',
46
+ quantity: 1,
47
+ price: 500.0,
48
+ priceName: '',
49
+ priceUuid: '',
50
+ lineItemOrder: 0,
51
+ resourceVersion: '1.8',
52
+ },
53
+ ],
54
+ patient: {
55
+ uuid: 'dda9b65f-0037-11ec-85e7-04ed33c79a3e',
56
+ display: 'MGFRYY - WACERA WACERA WACERA',
57
+ links: [
58
+ {
59
+ rel: 'self',
60
+ uri: 'http://localhost:8089/openmrs/ws/rest/v1/patient/dda9b65f-0037-11ec-85e7-04ed33c79a3e',
61
+ resourceAlias: 'patient',
62
+ },
63
+ ],
64
+ },
65
+ payments: [
66
+ {
67
+ uuid: '0ddfed3b-f606-4b3f-bf8a-bcc14a40d21d',
68
+ instanceType: {
69
+ uuid: '8d8718c2-c2cc-11de-8d13-0010c6dffd0f',
70
+ name: 'Mpesa',
71
+ description: 'Mpesa',
72
+ retired: false,
73
+ },
74
+ attributes: [
75
+ {
76
+ uuid: '84aacfcc-9788-4f7b-a56a-407d84af1b54',
77
+ display: 'Mpesa Code: MPESA001',
78
+ voided: false,
79
+ voidReason: null,
80
+ value: 'MPESA001',
81
+ attributeType: {
82
+ uuid: '8d8718c2-c2cc-11de-8d13-0010c6dffd0f',
83
+ name: 'Mpesa Code',
84
+ description: 'Mpesa Code',
85
+ retired: false,
86
+ attributeOrder: 1,
87
+ format: 'java.lang.String',
88
+ foreignKey: null,
89
+ regExp: null,
90
+ required: false,
91
+ },
92
+ order: 1,
93
+ valueName: 'MPESA001',
94
+ resourceVersion: '1.8',
95
+ },
96
+ ],
97
+ amount: 1000.0,
98
+ amountTendered: 0,
99
+ dateCreated: 1701239720000,
100
+ voided: false,
101
+ resourceVersion: '1.8',
102
+ },
103
+ ],
104
+ receiptNumber: 'CP2-0011-0',
105
+ status: 'PENDING',
106
+ adjustmentReason: null,
107
+ id: 30,
108
+ resourceVersion: '1.8',
109
+ },
110
+ {
111
+ uuid: '65f9f19a-f70e-44f4-9c6c-55b23dab4a3f',
112
+ display: 'CP2-0011-0',
113
+ voided: false,
114
+ voidReason: null,
115
+ adjustedBy: [],
116
+ billAdjusted: null,
117
+ cashPoint: {
118
+ uuid: '381595a0-2229-4152-9c45-bd3692aac7cc',
119
+ name: 'Pharmacy Cashier',
120
+ description: '',
121
+ retired: false,
122
+ location: {
123
+ uuid: '381595a0-2229-4152-9c45-bd3692aac7cc',
124
+ display: 'Amani Family Medical Clinic',
125
+ links: [
126
+ {
127
+ rel: 'self',
128
+ uri: 'http://localhost:8089/openmrs/ws/rest/v1/location/381595a0-2229-4152-9c45-bd3692aac7cc',
129
+ resourceAlias: 'location',
130
+ },
131
+ ],
132
+ },
133
+ },
134
+ cashier: {
135
+ uuid: '48b55692-e061-4ffa-b1f2-fd4aaf506224',
136
+ display: 'admin - ayunda ayunda ayunda',
137
+ links: [
138
+ {
139
+ rel: 'self',
140
+ uri: 'http://localhost:8089/openmrs/ws/rest/v1/provider/48b55692-e061-4ffa-b1f2-fd4aaf506224',
141
+ resourceAlias: 'provider',
142
+ },
143
+ ],
144
+ },
145
+ dateCreated: '2023-11-29T09:35:20.000+0300',
146
+ lineItems: [
147
+ {
148
+ uuid: '6ff72ef2-4265-4fdb-8563-a3a2eefa484e',
149
+ display: 'BillLineItem',
150
+ billableService: null,
151
+ voided: false,
152
+ voidReason: null,
153
+ item: 'HIV self-test kit',
154
+ quantity: 1,
155
+ price: 500.0,
156
+ priceName: '',
157
+ priceUuid: '',
158
+ lineItemOrder: 0,
159
+ resourceVersion: '1.8',
160
+ },
161
+ ],
162
+ patient: {
163
+ uuid: 'dda9b65f-0037-11ec-85e7-04ed33c79a3e',
164
+ display: 'MGFRYY - WACERA WACERA WACERA',
165
+ links: [
166
+ {
167
+ rel: 'self',
168
+ uri: 'http://localhost:8089/openmrs/ws/rest/v1/patient/dda9b65f-0037-11ec-85e7-04ed33c79a3e',
169
+ resourceAlias: 'patient',
170
+ },
171
+ ],
172
+ },
173
+ payments: [
174
+ {
175
+ uuid: '0ddfed3b-f606-4b3f-bf8a-bcc14a40d21d',
176
+ instanceType: {
177
+ uuid: '8d8718c2-c2cc-11de-8d13-0010c6dffd0f',
178
+ name: 'Mpesa',
179
+ description: 'Mpesa',
180
+ retired: false,
181
+ },
182
+
183
+ attributes: [
184
+ {
185
+ uuid: '84aacfcc-9788-4f7b-a56a-407d84af1b54',
186
+ display: 'Mpesa Code: MPESA001',
187
+ voided: false,
188
+ voidReason: null,
189
+ value: 'MPESA001',
190
+ attributeType: {
191
+ uuid: '8d8718c2-c2cc-11de-8d13-0010c6dffd0f',
192
+ name: 'Mpesa Code',
193
+ description: 'Mpesa Code',
194
+ retired: false,
195
+ attributeOrder: 1,
196
+ format: 'java.lang.String',
197
+ foreignKey: null,
198
+ regExp: null,
199
+ required: false,
200
+ },
201
+ order: 1,
202
+ valueName: 'MPESA001',
203
+ resourceVersion: '1.8',
204
+ },
205
+ ],
206
+ amount: 1000.0,
207
+ amountTendered: 1000.0,
208
+ dateCreated: 1701239720000,
209
+ voided: false,
210
+ resourceVersion: '1.8',
211
+ },
212
+ ],
213
+ receiptNumber: 'CP2-0011-0',
214
+ status: 'PENDING',
215
+ adjustmentReason: null,
216
+ id: 30,
217
+ resourceVersion: '1.8',
218
+ },
219
+ {
220
+ uuid: '65f9f19a-f70e-44f4-9c6c-55b23dab4a3f',
221
+ display: 'CP2-0011-0',
222
+ voided: false,
223
+ voidReason: null,
224
+ adjustedBy: [],
225
+ billAdjusted: null,
226
+ cashPoint: {
227
+ uuid: '381595a0-2229-4152-9c45-bd3692aac7cc',
228
+ name: 'Pharmacy Cashier',
229
+ description: '',
230
+ retired: false,
231
+ location: {
232
+ uuid: '381595a0-2229-4152-9c45-bd3692aac7cc',
233
+ display: 'Amani Family Medical Clinic',
234
+ links: [
235
+ {
236
+ rel: 'self',
237
+ uri: 'http://localhost:8089/openmrs/ws/rest/v1/location/381595a0-2229-4152-9c45-bd3692aac7cc',
238
+ resourceAlias: 'location',
239
+ },
240
+ ],
241
+ },
242
+ },
243
+ cashier: {
244
+ uuid: '48b55692-e061-4ffa-b1f2-fd4aaf506224',
245
+ display: 'admin - ayunda ayunda ayunda',
246
+ links: [
247
+ {
248
+ rel: 'self',
249
+ uri: 'http://localhost:8089/openmrs/ws/rest/v1/provider/48b55692-e061-4ffa-b1f2-fd4aaf506224',
250
+ resourceAlias: 'provider',
251
+ },
252
+ ],
253
+ },
254
+ dateCreated: '2023-11-29T09:35:20.000+0300',
255
+ lineItems: [
256
+ {
257
+ uuid: '6ff72ef2-4265-4fdb-8563-a3a2eefa484e',
258
+ display: 'BillLineItem',
259
+ billableService: null,
260
+ voided: false,
261
+ voidReason: null,
262
+ item: 'HIV self-test kit',
263
+ quantity: 1,
264
+ price: 500.0,
265
+ priceName: '',
266
+ priceUuid: '',
267
+ lineItemOrder: 0,
268
+ resourceVersion: '1.8',
269
+ },
270
+ ],
271
+ patient: {
272
+ uuid: 'dda9b65f-0037-11ec-85e7-04ed33c79a3e',
273
+ display: 'MGFRYY - WACERA WACERA WACERA',
274
+ links: [
275
+ {
276
+ rel: 'self',
277
+ uri: 'http://localhost:8089/openmrs/ws/rest/v1/patient/dda9b65f-0037-11ec-85e7-04ed33c79a3e',
278
+ resourceAlias: 'patient',
279
+ },
280
+ ],
281
+ },
282
+ payments: [
283
+ {
284
+ uuid: '0ddfed3b-f606-4b3f-bf8a-bcc14a40d21d',
285
+ instanceType: {
286
+ uuid: '8d8718c2-c2cc-11de-8d13-0010c6dffd0f',
287
+ name: 'Mpesa',
288
+ description: 'Mpesa',
289
+ retired: false,
290
+ },
291
+
292
+ attributes: [
293
+ {
294
+ uuid: '84aacfcc-9788-4f7b-a56a-407d84af1b54',
295
+ display: 'Mpesa Code: MPESA001',
296
+ voided: false,
297
+ voidReason: null,
298
+ value: 'MPESA001',
299
+ attributeType: {
300
+ uuid: '8d8718c2-c2cc-11de-8d13-0010c6dffd0f',
301
+ name: 'Mpesa Code',
302
+ description: 'Mpesa Code',
303
+ retired: false,
304
+ attributeOrder: 1,
305
+ format: 'java.lang.String',
306
+ foreignKey: null,
307
+ regExp: null,
308
+ required: false,
309
+ },
310
+ order: 1,
311
+ valueName: 'MPESA001',
312
+ resourceVersion: '1.8',
313
+ },
314
+ ],
315
+ amount: 1000.0,
316
+ amountTendered: 1000.0,
317
+ dateCreated: 1701239720000,
318
+ voided: false,
319
+ resourceVersion: '1.8',
320
+ },
321
+ ],
322
+ receiptNumber: 'CP2-0011-0',
323
+ status: 'PAID',
324
+ adjustmentReason: null,
325
+ id: 30,
326
+ resourceVersion: '1.8',
327
+ },
328
+ ];
329
+
330
+ export const mockBill = {
331
+ id: 26,
332
+ uuid: '6eb8d678-514d-46ad-9554-51e48d96d567',
333
+ patientName: 'James Bond',
334
+ identifier: 'PJYM9 ',
335
+ patientUuid: 'b2fcf02b-7ee3-4d16-a48f-576be2b103aa',
336
+ status: 'PENDING',
337
+ receiptNumber: '0035-6',
338
+ cashier: {
339
+ uuid: 'fe00dd43-4c39-4ce9-9832-bc3620c80c6c',
340
+ display: 'admin - Bildard SONGOI Olero',
341
+ links: [
342
+ {
343
+ rel: 'self',
344
+ uri: 'https://data.kenyahmis.org:8500/openmrs/ws/rest/v1/provider/fe00dd43-4c39-4ce9-9832-bc3620c80c6c',
345
+ resourceAlias: 'provider',
346
+ },
347
+ ],
348
+ },
349
+ cashPointUuid: '54065383-b4d4-42d2-af4d-d250a1fd2590',
350
+ cashPointName: 'Cashier 2',
351
+ cashPointLocation: 'Moi Teaching Refferal Hospital',
352
+ dateCreated: '15 — Dec — 2023',
353
+ lineItems: [
354
+ {
355
+ uuid: '053ab483-79de-43f9-a73b-5823ccd8518b',
356
+ display: 'BillLineItem',
357
+ billableService: null,
358
+ voided: false,
359
+ voidReason: null,
360
+ item: 'Hemoglobin',
361
+ quantity: 1,
362
+ price: 100,
363
+ priceName: '',
364
+ priceUuid: '',
365
+ lineItemOrder: 0,
366
+ paymentStatus: 'PENDING',
367
+ resourceVersion: '1.8',
368
+ },
369
+ ],
370
+ billingService: 'Hemoglobin',
371
+ payments: [],
372
+ totalAmount: 100,
373
+ tenderedAmount: 0,
374
+ };
375
+
376
+ export const mockPayments = [
377
+ {
378
+ uuid: 'db0744e5-033d-4162-9c41-f34cb97de1f7',
379
+ instanceType: {
380
+ uuid: '63eff7a4-6f82-43c4-a333-dbcc58fe9f74',
381
+ name: 'Cash',
382
+ description: 'Cash Payment',
383
+ retired: false,
384
+ },
385
+ attributes: [],
386
+ amount: 500,
387
+ amountTendered: 500,
388
+ dateCreated: 1702646939000,
389
+ voided: false,
390
+ resourceVersion: '1.8',
391
+ },
392
+ ];
@@ -0,0 +1,87 @@
1
+ export const mockLabourAndDeliveryData = {
2
+ data: {
3
+ results: [
4
+ {
5
+ uuid: '3b4daf81-7372-475c-ba5d-13c9c21d8ab1',
6
+ display: 'Delivery 09/23/2022',
7
+ encounterDatetime: '2022-09-23T13:11:06.000+0000',
8
+ patient: {
9
+ uuid: 'b835eff8-98c9-4988-887b-d93da7fbd542',
10
+ display: '100019A - George Roberts',
11
+ links: [
12
+ {
13
+ rel: 'self',
14
+ uri: 'http://backend:8080/openmrs/ws/rest/v1/patient/b835eff8-98c9-4988-887b-d93da7fbd542',
15
+ resourceAlias: 'patient',
16
+ },
17
+ ],
18
+ },
19
+ location: null,
20
+ form: {
21
+ uuid: '496c7cc3-0eea-4e84-a04c-2292949e2f7f',
22
+ display: 'MCH Delivery Form',
23
+ links: [
24
+ {
25
+ rel: 'self',
26
+ uri: 'http://backend:8080/openmrs/ws/rest/v1/form/9e1a0c68-ca19-3482-9ffb-0a6b4e591c2a',
27
+ resourceAlias: 'form',
28
+ },
29
+ ],
30
+ },
31
+ encounterType: {
32
+ uuid: 'c6d09e05-1f25-4164-8860-9f32c5a02df0',
33
+ display: 'Delivery',
34
+ links: [
35
+ {
36
+ rel: 'self',
37
+ uri: 'http://backend:8080/openmrs/ws/rest/v1/encountertype/dd528487-82a5-4082-9c72-ed246bd49591',
38
+ resourceAlias: 'encountertype',
39
+ },
40
+ ],
41
+ },
42
+ obs: [
43
+ {
44
+ uuid: '04d7d2a2-8ffd-418c-9a0c-1d20dec50231',
45
+ display: 'Covid 19 Signs and Symptom Set: Fever, Congestion, Loss of taste',
46
+ links: [
47
+ {
48
+ rel: 'self',
49
+ uri: 'http://backend:8080/openmrs/ws/rest/v1/obs/04d7d2a2-8ffd-418c-9a0c-1d20dec50231',
50
+ resourceAlias: 'obs',
51
+ },
52
+ ],
53
+ },
54
+ {
55
+ uuid: '5ca0c815-2c47-4cda-8c46-1e118b593ea8',
56
+ display: 'Covid 19 Test Set: Positive, No, Respiratory PCR',
57
+ links: [
58
+ {
59
+ rel: 'self',
60
+ uri: 'http://backend:8080/openmrs/ws/rest/v1/obs/5ca0c815-2c47-4cda-8c46-1e118b593ea8',
61
+ resourceAlias: 'obs',
62
+ },
63
+ ],
64
+ },
65
+ ],
66
+ orders: [],
67
+ voided: false,
68
+ visit: null,
69
+ encounterProviders: [],
70
+ diagnoses: [],
71
+ links: [
72
+ {
73
+ rel: 'self',
74
+ uri: 'http://backend:8080/openmrs/ws/rest/v1/encounter/3b4daf81-7372-475c-ba5d-13c9c21d8ab1',
75
+ resourceAlias: 'encounter',
76
+ },
77
+ {
78
+ rel: 'full',
79
+ uri: 'http://backend:8080/openmrs/ws/rest/v1/encounter/3b4daf81-7372-475c-ba5d-13c9c21d8ab1?v=full',
80
+ resourceAlias: 'encounter',
81
+ },
82
+ ],
83
+ resourceVersion: '2.2',
84
+ },
85
+ ],
86
+ },
87
+ };