@openmrs/esm-appointments-app 4.1.1-pre.1045 → 4.1.1-pre.1048

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.
@@ -38,4 +38,4 @@ Entrypoints:
38
38
  main.js
39
39
  
40
40
 
41
- webpack 5.74.0 compiled with 2 warnings in 144615 ms
41
+ webpack 5.74.0 compiled with 2 warnings in 164986 ms
package/dist/351.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[351],{8179:(e,n,t)=>{"use strict";t.d(n,{J$:()=>i,JB:()=>a}),window.getOpenmrsSpaBase;var a="".concat(window.spaBase).concat("/appointments"),i="YYYY-MM-DDTHH:mm:ss.SSSZZ"},1351:(e,n,t)=>{"use strict";t.r(n),t.d(n,{backendDependencies:()=>m,importTranslation:()=>c,setupOpenMRS:()=>f,version:()=>d});var a=t(906),i=t(8179),o={concepts:{priorityConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"96105db1-abbf-48d2-8a52-a1d561fd8c90"},serviceConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"330c0ec6-0ac7-4b86-9c70-29d76f0ae20a"},statusConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"a8f3f64a-11d5-4a09-b0fb-c8118fa349f3"}},appointmentTypes:{_type:a.Type.Array,_description:"Configurable appointment types (types of appointments)",_default:["Scheduled"]},appointmentStatuses:{_type:a.Type.Array,_description:"Configurable appointment status (status of appointments)",_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"]},daysOfTheWeek:{_type:a.Type.Array,_description:"Configurable days of the week",_default:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},useBahmniAppointmentsUI:{_type:a.Type.Boolean,_description:"Open links in Bahmni Appointments UI instead of O3 UI",_default:!1},useFullViewPrivilege:{_type:a.Type.Boolean,_description:"If set to 'false', will always display the full view, disregarding any privilege",_default:!1},fullViewPrivilege:{_type:a.Type.String,_description:"Name of the privilege to display the full view of the Appointments dashboard widget.",_default:"Today's Appointments Widget: Display Full View"},bahmniAppointmentsUiBaseUrl:{_type:a.Type.String,_description:"Configurable base URL that points to the Bahmni Appointments UI",_default:"/appointments"},appointmentsBaseUrl:{_type:a.Type.String,_description:"Configurable alternative URL for the Appointments UI. Eg, the Bahmni Appointments UI URL",_default:"".concat(i.JB)},hiddenFormFields:{_type:a.Type.Array,_description:"Array of form controls to be hidden on form load",_default:[]}},s=t(268),p=t.n(s),l=t(1948),r={name:"",slot:"clinical-appointments-dashboard-slot",title:"Clinical Appointments",renderIcon:t(306).SK},d="4.1.1-pre.1045",c=t(3979),m={"webservices.rest":"^2.2.0"};function f(){var e,n="@openmrs/esm-appointments-app",s={featureName:"appointments",moduleName:n};return(0,a.defineConfigSchema)(n,o),(0,a.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/appointments"),title:"Appointments",parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/appointments/calendar"),title:"Calendar",parent:"".concat(window.spaBase,"/appointments")}]),{pages:[{route:"appointments",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(976),t.e(542),t.e(924),t.e(45),t.e(437),t.e(430)]).then(t.bind(t,8430))}),s),online:!0,offline:!0}],extensions:[{name:"appointments-link",slot:"app-menu-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(153)]).then(t.bind(t,8153))}),s),online:!0,offline:!1},{id:"home-appointments",slot:"homepage-widgets-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(456),t.e(924),t.e(45),t.e(821)]).then(t.bind(t,1821))}),s)},{name:"appointments-side-nav",slot:"appointments-sidebar-slot",load:(0,a.getAsyncLifecycle)((function(){return t.e(685).then(t.bind(t,5685))}),s),online:!0,offline:!0},{name:"clinical-appointments-db-link",slot:"appointments-dashboard-slot",load:(0,a.getSyncLifecycle)((e=r,function(){return p().createElement("div",{key:e.name},p().createElement(l.yTF,{renderIcon:e.renderIcon,href:"".concat(i.JB,"/").concat(e.name),onClick:function(n){n.preventDefault(),(0,a.navigate)({to:"".concat(i.JB,"/").concat(e.name)})}},e.title))}),s),meta:r,online:!0,offline:!0},{name:"clinical-appointments-dashboard",slot:"clinical-appointments-dashboard-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(976),t.e(984),t.e(924),t.e(45),t.e(437),t.e(647)]).then(t.bind(t,4647))}),s),online:!0,offline:!0},{name:"change-appointment-status-modal",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(924),t.e(830)]).then(t.bind(t,1830))}),s),online:!0,offline:!1},{name:"check-in-appointment-modal",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(924),t.e(497)]).then(t.bind(t,7497))}),s),online:!0,offline:!1},{name:"patient-table",load:(0,a.getAsyncLifecycle)((function(){return t.e(692).then(t.bind(t,5692))}),{featureName:"patient-table",moduleName:n}),online:!0,offline:!0}]}}},3979:(e,n,t)=>{var a={"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./km.json":[7807,807]};function i(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=a[e],i=n[0];return t.e(n[1]).then((()=>t(i)))}i.keys=()=>Object.keys(a),i.id=3979,e.exports=i}}]);
1
+ (self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[351],{8179:(e,n,t)=>{"use strict";t.d(n,{J$:()=>i,JB:()=>a}),window.getOpenmrsSpaBase;var a="".concat(window.spaBase).concat("/appointments"),i="YYYY-MM-DDTHH:mm:ss.SSSZZ"},1351:(e,n,t)=>{"use strict";t.r(n),t.d(n,{backendDependencies:()=>m,importTranslation:()=>c,setupOpenMRS:()=>f,version:()=>d});var a=t(906),i=t(8179),o={concepts:{priorityConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"96105db1-abbf-48d2-8a52-a1d561fd8c90"},serviceConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"330c0ec6-0ac7-4b86-9c70-29d76f0ae20a"},statusConceptSetUuid:{_type:a.Type.ConceptUuid,_default:"a8f3f64a-11d5-4a09-b0fb-c8118fa349f3"}},appointmentTypes:{_type:a.Type.Array,_description:"Configurable appointment types (types of appointments)",_default:["Scheduled"]},appointmentStatuses:{_type:a.Type.Array,_description:"Configurable appointment status (status of appointments)",_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"]},daysOfTheWeek:{_type:a.Type.Array,_description:"Configurable days of the week",_default:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},useBahmniAppointmentsUI:{_type:a.Type.Boolean,_description:"Open links in Bahmni Appointments UI instead of O3 UI",_default:!1},useFullViewPrivilege:{_type:a.Type.Boolean,_description:"If set to 'false', will always display the full view, disregarding any privilege",_default:!1},fullViewPrivilege:{_type:a.Type.String,_description:"Name of the privilege to display the full view of the Appointments dashboard widget.",_default:"Today's Appointments Widget: Display Full View"},bahmniAppointmentsUiBaseUrl:{_type:a.Type.String,_description:"Configurable base URL that points to the Bahmni Appointments UI",_default:"/appointments"},appointmentsBaseUrl:{_type:a.Type.String,_description:"Configurable alternative URL for the Appointments UI. Eg, the Bahmni Appointments UI URL",_default:"".concat(i.JB)},hiddenFormFields:{_type:a.Type.Array,_description:"Array of form controls to be hidden on form load",_default:[]}},s=t(268),p=t.n(s),l=t(1948),r={name:"",slot:"clinical-appointments-dashboard-slot",title:"Clinical Appointments",renderIcon:t(306).SK},d="4.1.1-pre.1048",c=t(3979),m={"webservices.rest":"^2.2.0"};function f(){var e,n="@openmrs/esm-appointments-app",s={featureName:"appointments",moduleName:n};return(0,a.defineConfigSchema)(n,o),(0,a.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/appointments"),title:"Appointments",parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/appointments/calendar"),title:"Calendar",parent:"".concat(window.spaBase,"/appointments")}]),{pages:[{route:"appointments",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(976),t.e(542),t.e(924),t.e(45),t.e(437),t.e(430)]).then(t.bind(t,8430))}),s),online:!0,offline:!0}],extensions:[{name:"appointments-link",slot:"app-menu-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(153)]).then(t.bind(t,8153))}),s),online:!0,offline:!1},{id:"home-appointments",slot:"homepage-widgets-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(456),t.e(924),t.e(45),t.e(821)]).then(t.bind(t,1821))}),s)},{name:"appointments-side-nav",slot:"appointments-sidebar-slot",load:(0,a.getAsyncLifecycle)((function(){return t.e(685).then(t.bind(t,5685))}),s),online:!0,offline:!0},{name:"clinical-appointments-db-link",slot:"appointments-dashboard-slot",load:(0,a.getSyncLifecycle)((e=r,function(){return p().createElement("div",{key:e.name},p().createElement(l.yTF,{renderIcon:e.renderIcon,href:"".concat(i.JB,"/").concat(e.name),onClick:function(n){n.preventDefault(),(0,a.navigate)({to:"".concat(i.JB,"/").concat(e.name)})}},e.title))}),s),meta:r,online:!0,offline:!0},{name:"clinical-appointments-dashboard",slot:"clinical-appointments-dashboard-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(976),t.e(984),t.e(924),t.e(45),t.e(437),t.e(647)]).then(t.bind(t,4647))}),s),online:!0,offline:!0},{name:"change-appointment-status-modal",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(924),t.e(830)]).then(t.bind(t,1830))}),s),online:!0,offline:!1},{name:"check-in-appointment-modal",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(285),t.e(924),t.e(497)]).then(t.bind(t,7497))}),s),online:!0,offline:!1},{name:"patient-table",load:(0,a.getAsyncLifecycle)((function(){return t.e(692).then(t.bind(t,5692))}),{featureName:"patient-table",moduleName:n}),online:!0,offline:!0}]}}},3979:(e,n,t)=>{var a={"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./km.json":[7807,807]};function i(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=a[e],i=n[0];return t.e(n[1]).then((()=>t(i)))}i.keys=()=>Object.keys(a),i.id=3979,e.exports=i}}]);
@@ -93,7 +93,7 @@
93
93
  "main.js"
94
94
  ],
95
95
  "auxiliaryFiles": [],
96
- "hash": "499d9b218b8f749eea7e",
96
+ "hash": "bd3deaf363d40db7e3a4",
97
97
  "childrenByOrder": {}
98
98
  },
99
99
  {
@@ -183,7 +183,7 @@
183
183
  "351.js"
184
184
  ],
185
185
  "auxiliaryFiles": [],
186
- "hash": "020620835a803a6d6e0c",
186
+ "hash": "9b72988abb3df50b1860",
187
187
  "childrenByOrder": {}
188
188
  },
189
189
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-appointments-app",
3
- "version": "4.1.1-pre.1045",
3
+ "version": "4.1.1-pre.1048",
4
4
  "description": "Appointments front-end module for the OpenMRS SPA",
5
5
  "browser": "dist/openmrs-esm-appointments-app.js",
6
6
  "main": "src/index.ts",
@@ -48,5 +48,5 @@
48
48
  "devDependencies": {
49
49
  "webpack": "^5.74.0"
50
50
  },
51
- "gitHead": "7776d5500e3c2f23fa768c0fd635482f60d85ade"
51
+ "gitHead": "6600c72c9982cc7eb195f996f6c23575b5044df3"
52
52
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { render, screen, within, fireEvent } from '@testing-library/react';
3
3
  import userEvent from '@testing-library/user-event';
4
4
  import { useConfig, usePatient } from '@openmrs/esm-framework';
5
- import { mockPatient, mockServices, mockProviders } from '../../__mocks__/appointments.mock';
5
+ import { mockPatient, mockServices, mockProviders } from '../../../../__mocks__/appointments.mock';
6
6
  import { mockLocations } from '../../../../__mocks__/locations.mock';
7
7
  import { mockSession } from '../../../../__mocks__/session.mock';
8
8
  import { MappedAppointment } from '../types';
@@ -1,411 +0,0 @@
1
- // export const mockAppointmentsData = {
2
- // data: [
3
- // {
4
- // uuid: '7cd38a6d-377e-491b-8284-b04cf8b8c6d8',
5
- // appointmentNumber: '0000',
6
- // patient: {
7
- // identifier: '100GEJ',
8
- // name: 'John Wilson',
9
- // uuid: '8673ee4f-e2ab-4077-ba55-4980f408773e',
10
- // gender: 'M',
11
- // age: 35,
12
- // birthdate: '1986-04-03T00:00:00.000+0000',
13
- // phoneNumber: '0700000000',
14
- // },
15
- // service: {
16
- // appointmentServiceId: 1,
17
- // name: 'Outpatient',
18
- // description: null,
19
- // speciality: {},
20
- // startTime: '',
21
- // endTime: '',
22
- // maxAppointmentsLimit: null,
23
- // durationMins: null,
24
- // location: {},
25
- // uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
26
- // initialAppointmentStatus: 'Scheduled',
27
- // creatorName: null,
28
- // },
29
- // serviceType: {
30
- // display: 'HIV Clinic',
31
- // uuid: '53d58ff1-0c45-4e2e-9bd2-9cc826cb46e1',
32
- // duration: 15,
33
- // },
34
- // provider: {
35
- // uuid: 'f9badd80-ab76-11e2-9e96-0800200c9a66',
36
- // person: { uuid: '24252571-dd5a-11e6-9d9c-0242ac150002', display: 'Dr James Cook' },
37
- // },
38
- // location: { name: 'HIV Clinic', uuid: '2131aff8-2e2a-480a-b7ab-4ac53250262b' },
39
- // startDateTime: 1630326900000,
40
- // endDateTime: 1630327200000,
41
- // appointmentKind: 'WalkIn',
42
- // status: 'Scheduled',
43
- // comments: 'Walk in appointments',
44
- // additionalInfo: null,
45
- // providers: [],
46
- // recurring: false,
47
- // },
48
- // {
49
- // uuid: 'e10ce4e3-0e91-4b97-bc6c-9b5068e58428',
50
- // appointmentNumber: '0000',
51
- // patient: {
52
- // identifier: '100GEJ',
53
- // name: 'John Wilson',
54
- // uuid: '8673ee4f-e2ab-4077-ba55-4980f408773e',
55
- // gender: 'M',
56
- // age: 35,
57
- // birthdate: '1986-04-03T00:00:00.000+0000',
58
- // phoneNumber: '0700000000',
59
- // },
60
- // service: {
61
- // appointmentServiceId: 1,
62
- // name: 'Outpatient',
63
- // description: null,
64
- // speciality: {},
65
- // startTime: '',
66
- // endTime: '',
67
- // maxAppointmentsLimit: null,
68
- // durationMins: null,
69
- // location: {},
70
- // uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
71
- // initialAppointmentStatus: 'Scheduled',
72
- // creatorName: null,
73
- // },
74
- // serviceType: {
75
- // display: 'HIV Clinic',
76
- // uuid: '53d58ff1-0c45-4e2e-9bd2-9cc826cb46e1',
77
- // duration: 15,
78
- // },
79
- // provider: {
80
- // uuid: 'f9badd80-ab76-11e2-9e96-0800200c9a66',
81
- // person: { uuid: '24252571-dd5a-11e6-9d9c-0242ac150002', display: 'Dr James Cook' },
82
- // },
83
- // location: { name: 'HIV Clinic', uuid: '2131aff8-2e2a-480a-b7ab-4ac53250262b' },
84
- // startDateTime: 1631278200000,
85
- // endDateTime: 1631278560000,
86
- // appointmentKind: 'WalkIn',
87
- // status: 'Scheduled',
88
- // comments: 'Some additional notes',
89
- // additionalInfo: null,
90
- // providers: [],
91
- // recurring: false,
92
- // },
93
- // {
94
- // uuid: 'cdb0676f-0805-4c3e-bfef-7757a005e892',
95
- // appointmentNumber: '0000',
96
- // patient: {
97
- // identifier: '100GEJ',
98
- // name: 'John Wilson',
99
- // uuid: '8673ee4f-e2ab-4077-ba55-4980f408773e',
100
- // gender: 'M',
101
- // age: 35,
102
- // birthdate: '1986-04-03T00:00:00.000+0000',
103
- // phoneNumber: '0700000000',
104
- // },
105
- // service: {
106
- // appointmentServiceId: 1,
107
- // name: 'Outpatient',
108
- // description: null,
109
- // speciality: {},
110
- // startTime: '',
111
- // endTime: '',
112
- // maxAppointmentsLimit: null,
113
- // durationMins: null,
114
- // location: {},
115
- // uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
116
- // initialAppointmentStatus: 'Scheduled',
117
- // creatorName: null,
118
- // },
119
- // serviceType: {
120
- // display: 'TB Clinic',
121
- // uuid: '4a228e52-0bfe-11ed-861d-0242ac120002',
122
- // duration: 15,
123
- // },
124
- // provider: null,
125
- // location: { name: 'TB Clinic', uuid: '2131aff8-2e2a-480a-b7ab-4ac53250262b' },
126
- // startDateTime: 1631537400000,
127
- // endDateTime: 1631537760000,
128
- // appointmentKind: 'WalkIn',
129
- // status: 'Scheduled',
130
- // comments: 'Some additional notes',
131
- // additionalInfo: null,
132
- // providers: [],
133
- // recurring: false,
134
- // },
135
- // {
136
- // uuid: '66565d8b-4849-4b7c-966a-554d6073f80c',
137
- // appointmentNumber: '0000',
138
- // patient: {
139
- // identifier: '100GEJ',
140
- // name: 'John Wilson',
141
- // uuid: '8673ee4f-e2ab-4077-ba55-4980f408773e',
142
- // gender: 'M',
143
- // age: 35,
144
- // birthdate: '1986-04-03T00:00:00.000+0000',
145
- // phoneNumber: '0700000000',
146
- // },
147
- // service: {
148
- // appointmentServiceId: 1,
149
- // name: 'Outpatient',
150
- // description: null,
151
- // speciality: {},
152
- // startTime: '',
153
- // endTime: '',
154
- // maxAppointmentsLimit: null,
155
- // durationMins: null,
156
- // location: {},
157
- // uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
158
- // initialAppointmentStatus: 'Scheduled',
159
- // creatorName: null,
160
- // },
161
- // serviceType: {
162
- // display: 'HIV Clinic',
163
- // uuid: '53d58ff1-0c45-4e2e-9bd2-9cc826cb46e1',
164
- // duration: 15,
165
- // },
166
- // provider: null,
167
- // location: { name: 'HIV Clinic', uuid: '2131aff8-2e2a-480a-b7ab-4ac53250262b' },
168
- // startDateTime: 1631605800000,
169
- // endDateTime: 1631606100000,
170
- // appointmentKind: 'WalkIn',
171
- // status: 'Scheduled',
172
- // comments: 'Some additional notes',
173
- // additionalInfo: null,
174
- // providers: [],
175
- // recurring: false,
176
- // },
177
- // {
178
- // uuid: '45dcc19d-dd14-4a07-95c6-afa264972a34',
179
- // appointmentNumber: '0000',
180
- // patient: {
181
- // identifier: '100GEJ',
182
- // name: 'John Wilson',
183
- // uuid: '8673ee4f-e2ab-4077-ba55-4980f408773e',
184
- // gender: 'M',
185
- // age: 35,
186
- // birthdate: '1986-04-03T00:00:00.000+0000',
187
- // phoneNumber: '0700000000',
188
- // },
189
- // service: {
190
- // appointmentServiceId: 1,
191
- // name: 'Outpatient',
192
- // description: null,
193
- // speciality: {},
194
- // startTime: '',
195
- // endTime: '',
196
- // maxAppointmentsLimit: null,
197
- // durationMins: null,
198
- // location: {},
199
- // uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
200
- // initialAppointmentStatus: 'Scheduled',
201
- // creatorName: null,
202
- // },
203
- // serviceType: {
204
- // display: 'TB Clinic',
205
- // uuid: '4a228e52-0bfe-11ed-861d-0242ac120002',
206
- // duration: 15,
207
- // },
208
- // provider: {
209
- // uuid: 'f9badd80-ab76-11e2-9e96-0800200c9a66',
210
- // person: { uuid: '24252571-dd5a-11e6-9d9c-0242ac150002', display: 'Dr James Cook' },
211
- // },
212
- // location: { name: 'TB Clinic', uuid: '2131aff8-2e2a-480a-b7ab-4ac53250262b' },
213
- // startDateTime: 1631623800000,
214
- // endDateTime: 1631624160000,
215
- // appointmentKind: 'WalkIn',
216
- // status: 'Scheduled',
217
- // comments: 'Some additional notes',
218
- // additionalInfo: null,
219
- // providers: [],
220
- // recurring: false,
221
- // },
222
- // {
223
- // uuid: 'fa4657ad-db46-487d-8e2e-a3858c906ae6',
224
- // appointmentNumber: '0000',
225
- // patient: {
226
- // identifier: '100GEJ',
227
- // name: 'John Wilson',
228
- // uuid: '8673ee4f-e2ab-4077-ba55-4980f408773e',
229
- // gender: 'M',
230
- // age: 35,
231
- // birthdate: '1986-04-03T00:00:00.000+0000',
232
- // phoneNumber: '0700000000',
233
- // },
234
- // service: {
235
- // appointmentServiceId: 1,
236
- // name: 'Outpatient',
237
- // description: null,
238
- // speciality: {},
239
- // startTime: '',
240
- // endTime: '',
241
- // maxAppointmentsLimit: null,
242
- // durationMins: null,
243
- // location: {},
244
- // uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
245
- // initialAppointmentStatus: 'Scheduled',
246
- // creatorName: null,
247
- // },
248
- // serviceType: {
249
- // display: 'TB Clinic',
250
- // uuid: '4a228e52-0bfe-11ed-861d-0242ac120002',
251
- // duration: 15,
252
- // },
253
- // provider: null,
254
- // location: { name: 'TB Clinic', uuid: '2131aff8-2e2a-480a-b7ab-4ac53250262b' },
255
- // startDateTime: 1631712720000,
256
- // endDateTime: 1631713080000,
257
- // appointmentKind: 'WalkIn',
258
- // status: 'Scheduled',
259
- // comments: 'Some value',
260
- // additionalInfo: null,
261
- // providers: [],
262
- // recurring: false,
263
- // },
264
- // ],
265
- // };
266
-
267
- // export const mockAppointments = {
268
- // pastAppointments: [
269
- // {
270
- // uuid: 'a4662406-2bfe-49be-8465-6dbdfe9b4d5d',
271
- // appointmentNumber: '0000',
272
- // patient: {
273
- // identifier: '1003R8',
274
- // name: 'Brian Evans',
275
- // uuid: '8f75dbf1-833d-498a-bc99-3a24cad5cee9',
276
- // },
277
- // service: {
278
- // appointmentServiceId: 1,
279
- // name: 'HIV return visit',
280
- // description: null,
281
- // speciality: {},
282
- // startTime: '',
283
- // endTime: '',
284
- // maxAppointmentsLimit: null,
285
- // durationMins: null,
286
- // location: {},
287
- // uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
288
- // color: '#006400',
289
- // initialAppointmentStatus: 'Scheduled',
290
- // creatorName: null,
291
- // },
292
- // serviceType: null,
293
- // provider: null,
294
- // location: {
295
- // name: 'Outpatient Clinic',
296
- // uuid: 'f76c0c8e-2c3a-443c-b26d-96a9f3847764',
297
- // },
298
- // startDateTime: '2021-10-28T11:14:17.064Z',
299
- // endDateTime: 1649935800000,
300
- // appointmentKind: 'Scheduled',
301
- // status: 'Scheduled',
302
- // comments: null,
303
- // additionalInfo: null,
304
- // teleconsultation: null,
305
- // providers: [],
306
- // voided: false,
307
- // extensions: {
308
- // patientEmailDefined: false,
309
- // },
310
- // teleconsultationLink: null,
311
- // recurring: false.valueOf,
312
- // },
313
- // ],
314
- // upcomingAppointments: [
315
- // {
316
- // uuid: 'a4662406-2bfe-49be-8465-6dbdfe9b4d5d',
317
- // appointmentNumber: '0000',
318
- // patient: {
319
- // identifier: '1003R8',
320
- // name: 'Brian Evans',
321
- // uuid: '8f75dbf1-833d-498a-bc99-3a24cad5cee9',
322
- // },
323
- // service: {
324
- // appointmentServiceId: 1,
325
- // name: 'Clinical observation',
326
- // description: null,
327
- // speciality: {},
328
- // startTime: '',
329
- // endTime: '',
330
- // maxAppointmentsLimit: null,
331
- // durationMins: null,
332
- // location: {},
333
- // uuid: 'e2ec9cf0-ec38-4d2b-af6c-59c82fa30b90',
334
- // color: '#006400',
335
- // initialAppointmentStatus: 'Scheduled',
336
- // creatorName: null,
337
- // },
338
- // serviceType: null,
339
- // provider: null,
340
- // location: {
341
- // name: 'Outpatient Clinic',
342
- // uuid: 'f76c0c8e-2c3a-443c-b26d-96a9f3847764',
343
- // },
344
- // startDateTime: 1649934000000,
345
- // endDateTime: 1649935800000,
346
- // appointmentKind: 'Scheduled',
347
- // status: 'Scheduled',
348
- // comments: null,
349
- // additionalInfo: null,
350
- // teleconsultation: null,
351
- // providers: [],
352
- // voided: false,
353
- // extensions: {
354
- // patientEmailDefined: false,
355
- // },
356
- // teleconsultationLink: null,
357
- // recurring: false.valueOf,
358
- // },
359
- // ],
360
- // };
361
-
362
- export const mockPatient = {
363
- identifier: '100GEJ',
364
- name: 'John Wilson',
365
- uuid: '8673ee4f-e2ab-4077-ba55-4980f408773e',
366
- gender: 'M',
367
- age: 35,
368
- birthdate: '1986-04-03T00:00:00.000+0000',
369
- phoneNumber: '0700000000',
370
- };
371
-
372
- export const mockServices = [
373
- { uuid: '176052c7-5fd4-4b33-89cc-7bae6848c65a', display: 'Clinical consultation' },
374
- { uuid: 'd80ff12a-06a7-11ed-b939-0242ac120002', display: 'Triage' },
375
- ];
376
-
377
- export const mockServiceTypes = {
378
- data: [
379
- {
380
- name: 'HIV Clinic',
381
- uuid: '7bff050e-9a83-4fdb-9212-1a4c2cee349b',
382
- duration: 15,
383
- },
384
- {
385
- name: 'Drug Dispense',
386
- uuid: '0e960ced-d35e-43de-b87f-bc08ef3b6ec3',
387
- duration: 15,
388
- },
389
- ],
390
- };
391
-
392
- export const mockFrequency = {
393
- data: [
394
- { uuid: 'b127d100-bccb-4699-b30e-fe60a068ca46', display: 'Daily' },
395
- { uuid: 'dbc32cf4-e11d-4006-b398-c71204cfc0d0', display: 'Weekly' },
396
- { uuid: '6e263ecd-173e-4ee1-a9a5-df1f8d5b274b', display: 'Monthly' },
397
- ],
398
- };
399
-
400
- export const mockProviders = {
401
- data: [
402
- {
403
- uuid: 'f9badd80-ab76-11e2-9e96-0800200c9a66',
404
- person: { uuid: '24252571-dd5a-11e6-9d9c-0242ac150002', display: 'Dr James Cook' },
405
- },
406
- {
407
- uuid: '3191eddf-5cc5-4fa4-94ef-dfc25e8d33e4',
408
- person: { uuid: '89af8ba6-2ec5-4d77-b3ed-7e9e02448e96', display: 'Dr Amstrong Neil' },
409
- },
410
- ],
411
- };