@openmrs/esm-styleguide 5.7.3-pre.2123 → 5.7.3-pre.2135
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.
- package/.turbo/turbo-build.log +16 -15
- package/__mocks__/config.mock.ts +23 -0
- package/__mocks__/locations.mock.ts +576 -0
- package/dist/openmrs-esm-styleguide.css +1 -1
- package/dist/openmrs-esm-styleguide.css.map +1 -1
- package/dist/openmrs-esm-styleguide.js +1 -1
- package/dist/openmrs-esm-styleguide.js.map +1 -1
- package/mock.tsx +29 -0
- package/package.json +7 -7
- package/src/location-picker/index.tsx +1 -0
- package/src/location-picker/location-picker.component.tsx +129 -0
- package/src/location-picker/location-picker.module.scss +84 -0
- package/src/location-picker/location-picker.resource.ts +126 -0
- package/src/location-picker/location-picker.test.tsx +139 -0
- package/src/public.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -16,34 +16,35 @@ assets by info 2.4 MiB [immutable]
|
|
|
16
16
|
asset 44c432e4a678791737ca.woff2 19.2 KiB [emitted] [immutable] [from: ../../../node_modules/@ibm/plex/IBM-Plex-Serif/fonts/split/woff2/IBMPlexSerif-Italic-Cyrillic.woff2] (auxiliary name: main)
|
|
17
17
|
asset e0d279d30dd9df7831ce.woff2 19 KiB [emitted] [immutable] [from: ../../../node_modules/@ibm/plex/IBM-Plex-Serif/fonts/split/woff2/IBMPlexSerif-LightItalic-Cyrillic.woff2] (auxiliary name: main)
|
|
18
18
|
+ 86 assets
|
|
19
|
-
assets by
|
|
20
|
-
asset openmrs-esm-styleguide.css
|
|
21
|
-
asset openmrs-esm-styleguide.js
|
|
22
|
-
Entrypoint main [big]
|
|
23
|
-
orphan modules
|
|
24
|
-
runtime modules
|
|
25
|
-
built modules
|
|
26
|
-
cacheable modules
|
|
27
|
-
modules
|
|
28
|
-
modules
|
|
19
|
+
assets by status 1.22 MiB [big]
|
|
20
|
+
asset openmrs-esm-styleguide.css 815 KiB [emitted] [minimized] [big] (name: main) 1 related asset
|
|
21
|
+
asset openmrs-esm-styleguide.js 435 KiB [emitted] [minimized] [big] (name: main) 2 related assets
|
|
22
|
+
Entrypoint main [big] 1.22 MiB (4.49 MiB) = openmrs-esm-styleguide.css 815 KiB openmrs-esm-styleguide.js 435 KiB 182 auxiliary assets
|
|
23
|
+
orphan modules 12.6 MiB (javascript) 2.4 MiB (asset) 13.8 KiB (runtime) [orphan] 3357 modules
|
|
24
|
+
runtime modules 1.13 KiB 5 modules
|
|
25
|
+
built modules 1.58 MiB (javascript) 949 KiB (css/mini-extract) [built]
|
|
26
|
+
cacheable modules 1.58 MiB (javascript) 949 KiB (css/mini-extract)
|
|
27
|
+
javascript modules 1.58 MiB 19 modules
|
|
28
|
+
css modules 949 KiB 16 modules
|
|
29
29
|
modules by path external "@openmrs/ 252 bytes
|
|
30
30
|
external "@openmrs/esm-state" 42 bytes [built] [code generated]
|
|
31
31
|
external "@openmrs/esm-extensions" 42 bytes [built] [code generated]
|
|
32
|
-
|
|
33
|
-
+ 3 modules
|
|
32
|
+
+ 4 modules
|
|
34
33
|
external "react" 42 bytes [built] [code generated]
|
|
35
34
|
external "rxjs" 42 bytes [built] [code generated]
|
|
36
35
|
external "dayjs" 42 bytes [built] [code generated]
|
|
37
36
|
external "react-dom" 42 bytes [built] [code generated]
|
|
37
|
+
external "i18next" 42 bytes [built] [code generated]
|
|
38
38
|
|
|
39
39
|
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
40
40
|
This can impact web performance.
|
|
41
41
|
Assets:
|
|
42
|
-
openmrs-esm-styleguide.css (
|
|
42
|
+
openmrs-esm-styleguide.css (815 KiB)
|
|
43
|
+
openmrs-esm-styleguide.js (435 KiB)
|
|
43
44
|
|
|
44
45
|
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
|
45
46
|
Entrypoints:
|
|
46
|
-
main (
|
|
47
|
+
main (1.22 MiB)
|
|
47
48
|
openmrs-esm-styleguide.css
|
|
48
49
|
openmrs-esm-styleguide.js
|
|
49
50
|
|
|
@@ -51,4 +52,4 @@ WARNING in webpack performance recommendations:
|
|
|
51
52
|
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
|
|
52
53
|
For more info visit https://webpack.js.org/guides/code-splitting/
|
|
53
54
|
|
|
54
|
-
webpack 5.88.0 compiled with 3 warnings in
|
|
55
|
+
webpack 5.88.0 compiled with 3 warnings in 26700 ms
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ConfigSchema } from '@openmrs/esm-config';
|
|
2
|
+
|
|
3
|
+
export const mockConfig: ConfigSchema = {
|
|
4
|
+
provider: {
|
|
5
|
+
type: 'basic',
|
|
6
|
+
loginUrl: '',
|
|
7
|
+
logoutUrl: '',
|
|
8
|
+
},
|
|
9
|
+
chooseLocation: {
|
|
10
|
+
enabled: true,
|
|
11
|
+
numberToShow: 3,
|
|
12
|
+
useLoginLocationTag: true,
|
|
13
|
+
locationsPerRequest: 50,
|
|
14
|
+
},
|
|
15
|
+
logo: {
|
|
16
|
+
src: null,
|
|
17
|
+
alt: 'Logo',
|
|
18
|
+
},
|
|
19
|
+
links: {
|
|
20
|
+
loginSuccess: '${openmrsSpaBase}/home',
|
|
21
|
+
},
|
|
22
|
+
showPasswordOnSeparateScreen: true,
|
|
23
|
+
};
|
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
export const mockLoginLocations = {
|
|
2
|
+
data: {
|
|
3
|
+
resourceType: 'Bundle',
|
|
4
|
+
id: '301b3ad6-868a-48a6-bc3f-aaa8aa3f89a6',
|
|
5
|
+
meta: {
|
|
6
|
+
lastUpdated: '2022-03-17T07:47:02.272+00:00',
|
|
7
|
+
tag: [
|
|
8
|
+
{
|
|
9
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
10
|
+
code: 'SUBSETTED',
|
|
11
|
+
display: 'Resource encoded in summary mode',
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
type: 'searchset',
|
|
16
|
+
total: 4,
|
|
17
|
+
link: [
|
|
18
|
+
{
|
|
19
|
+
relation: 'self',
|
|
20
|
+
url: 'http://openmrs:8080/openmrs/ws/fhir2/R4/Location?_count=50&_summary=data&_tag=login%20location',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
entry: [
|
|
24
|
+
{
|
|
25
|
+
fullUrl: 'http://openmrs:8080/openmrs/ws/fhir2/R4/Location/44c3efb0-2583-4c80-a79e-1f756a03c0a1',
|
|
26
|
+
resource: {
|
|
27
|
+
resourceType: 'Location',
|
|
28
|
+
id: '44c3efb0-2583-4c80-a79e-1f756a03c0a1',
|
|
29
|
+
meta: {
|
|
30
|
+
tag: [
|
|
31
|
+
{
|
|
32
|
+
system: 'http://fhir.openmrs.org/ext/location-tag',
|
|
33
|
+
code: 'Login Location',
|
|
34
|
+
display: 'When a user logs in and chooses a session location, they may only choose one with this tag',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
system: 'http://fhir.openmrs.org/ext/location-tag',
|
|
38
|
+
code: 'Facility Location',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
42
|
+
code: 'SUBSETTED',
|
|
43
|
+
display: 'Resource encoded in summary mode',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
contained: [
|
|
48
|
+
{
|
|
49
|
+
resourceType: 'Provenance',
|
|
50
|
+
id: 'e6f5d190-5a5a-4e1f-b34b-20a3480a6e1b',
|
|
51
|
+
meta: {
|
|
52
|
+
tag: [
|
|
53
|
+
{
|
|
54
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
55
|
+
code: 'SUBSETTED',
|
|
56
|
+
display: 'Resource encoded in summary mode',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
recorded: '2022-02-23T22:44:33.000+00:00',
|
|
61
|
+
activity: {
|
|
62
|
+
coding: [
|
|
63
|
+
{
|
|
64
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-DataOperation',
|
|
65
|
+
code: 'CREATE',
|
|
66
|
+
display: 'create',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
agent: [
|
|
71
|
+
{
|
|
72
|
+
type: {
|
|
73
|
+
coding: [
|
|
74
|
+
{
|
|
75
|
+
system: 'http://terminology.hl7.org/CodeSystemprovenance-participant-type',
|
|
76
|
+
code: 'author',
|
|
77
|
+
display: 'Author',
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
role: [
|
|
82
|
+
{
|
|
83
|
+
coding: [
|
|
84
|
+
{
|
|
85
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-ParticipationType',
|
|
86
|
+
code: 'AUT',
|
|
87
|
+
display: 'author',
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
who: {
|
|
93
|
+
reference: 'Practitioner/A4F30A1B-5EB9-11DF-A648-37A07F9C90FB',
|
|
94
|
+
type: 'Practitioner',
|
|
95
|
+
display: 'Super User',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
status: 'active',
|
|
102
|
+
name: 'Outpatient Clinic',
|
|
103
|
+
description: 'Outpatient Clinic',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
fullUrl: 'http://openmrs:8080/openmrs/ws/fhir2/R4/Location/ba685651-ed3b-4e63-9b35-78893060758a',
|
|
108
|
+
resource: {
|
|
109
|
+
resourceType: 'Location',
|
|
110
|
+
id: 'ba685651-ed3b-4e63-9b35-78893060758a',
|
|
111
|
+
meta: {
|
|
112
|
+
tag: [
|
|
113
|
+
{
|
|
114
|
+
system: 'http://fhir.openmrs.org/ext/location-tag',
|
|
115
|
+
code: 'Login Location',
|
|
116
|
+
display: 'When a user logs in and chooses a session location, they may only choose one with this tag',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
120
|
+
code: 'SUBSETTED',
|
|
121
|
+
display: 'Resource encoded in summary mode',
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
contained: [
|
|
126
|
+
{
|
|
127
|
+
resourceType: 'Provenance',
|
|
128
|
+
id: '621310a4-4c42-46eb-83e8-46e4a61cf250',
|
|
129
|
+
meta: {
|
|
130
|
+
tag: [
|
|
131
|
+
{
|
|
132
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
133
|
+
code: 'SUBSETTED',
|
|
134
|
+
display: 'Resource encoded in summary mode',
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
},
|
|
138
|
+
recorded: '2022-02-23T22:44:33.000+00:00',
|
|
139
|
+
activity: {
|
|
140
|
+
coding: [
|
|
141
|
+
{
|
|
142
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-DataOperation',
|
|
143
|
+
code: 'CREATE',
|
|
144
|
+
display: 'create',
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
agent: [
|
|
149
|
+
{
|
|
150
|
+
type: {
|
|
151
|
+
coding: [
|
|
152
|
+
{
|
|
153
|
+
system: 'http://terminology.hl7.org/CodeSystemprovenance-participant-type',
|
|
154
|
+
code: 'author',
|
|
155
|
+
display: 'Author',
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
role: [
|
|
160
|
+
{
|
|
161
|
+
coding: [
|
|
162
|
+
{
|
|
163
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-ParticipationType',
|
|
164
|
+
code: 'AUT',
|
|
165
|
+
display: 'author',
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
who: {
|
|
171
|
+
reference: 'Practitioner/A4F30A1B-5EB9-11DF-A648-37A07F9C90FB',
|
|
172
|
+
type: 'Practitioner',
|
|
173
|
+
display: 'Super User',
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
status: 'active',
|
|
180
|
+
name: 'Inpatient Ward',
|
|
181
|
+
description: 'Inpatient Ward',
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
fullUrl: 'http://openmrs:8080/openmrs/ws/fhir2/R4/Location/8d9045ad-50f0-45b8-93c8-3ed4bce19dbf',
|
|
186
|
+
resource: {
|
|
187
|
+
resourceType: 'Location',
|
|
188
|
+
id: '8d9045ad-50f0-45b8-93c8-3ed4bce19dbf',
|
|
189
|
+
meta: {
|
|
190
|
+
tag: [
|
|
191
|
+
{
|
|
192
|
+
system: 'http://fhir.openmrs.org/ext/location-tag',
|
|
193
|
+
code: 'Login Location',
|
|
194
|
+
display: 'When a user logs in and chooses a session location, they may only choose one with this tag',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
198
|
+
code: 'SUBSETTED',
|
|
199
|
+
display: 'Resource encoded in summary mode',
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
},
|
|
203
|
+
contained: [
|
|
204
|
+
{
|
|
205
|
+
resourceType: 'Provenance',
|
|
206
|
+
id: '307f2319-cf8a-419d-9c0d-94fbe385e214',
|
|
207
|
+
meta: {
|
|
208
|
+
tag: [
|
|
209
|
+
{
|
|
210
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
211
|
+
code: 'SUBSETTED',
|
|
212
|
+
display: 'Resource encoded in summary mode',
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
},
|
|
216
|
+
recorded: '2022-02-23T22:44:33.000+00:00',
|
|
217
|
+
activity: {
|
|
218
|
+
coding: [
|
|
219
|
+
{
|
|
220
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-DataOperation',
|
|
221
|
+
code: 'CREATE',
|
|
222
|
+
display: 'create',
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
},
|
|
226
|
+
agent: [
|
|
227
|
+
{
|
|
228
|
+
type: {
|
|
229
|
+
coding: [
|
|
230
|
+
{
|
|
231
|
+
system: 'http://terminology.hl7.org/CodeSystemprovenance-participant-type',
|
|
232
|
+
code: 'author',
|
|
233
|
+
display: 'Author',
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
},
|
|
237
|
+
role: [
|
|
238
|
+
{
|
|
239
|
+
coding: [
|
|
240
|
+
{
|
|
241
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-ParticipationType',
|
|
242
|
+
code: 'AUT',
|
|
243
|
+
display: 'author',
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
who: {
|
|
249
|
+
reference: 'Practitioner/A4F30A1B-5EB9-11DF-A648-37A07F9C90FB',
|
|
250
|
+
type: 'Practitioner',
|
|
251
|
+
display: 'Super User',
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
status: 'active',
|
|
258
|
+
name: 'Mobile Clinic',
|
|
259
|
+
description: 'Mobile Clinic',
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
fullUrl: 'http://openmrs:8080/openmrs/ws/fhir2/R4/Location/1ce1b7d4-c865-4178-82b0-5932e51503d6',
|
|
264
|
+
resource: {
|
|
265
|
+
resourceType: 'Location',
|
|
266
|
+
id: '1ce1b7d4-c865-4178-82b0-5932e51503d6',
|
|
267
|
+
meta: {
|
|
268
|
+
tag: [
|
|
269
|
+
{
|
|
270
|
+
system: 'http://fhir.openmrs.org/ext/location-tag',
|
|
271
|
+
code: 'Login Location',
|
|
272
|
+
display: 'When a user logs in and chooses a session location, they may only choose one with this tag',
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
276
|
+
code: 'SUBSETTED',
|
|
277
|
+
display: 'Resource encoded in summary mode',
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
contained: [
|
|
282
|
+
{
|
|
283
|
+
resourceType: 'Provenance',
|
|
284
|
+
id: 'd82a66d0-2c79-4679-8330-dac32aa1209c',
|
|
285
|
+
meta: {
|
|
286
|
+
tag: [
|
|
287
|
+
{
|
|
288
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
289
|
+
code: 'SUBSETTED',
|
|
290
|
+
display: 'Resource encoded in summary mode',
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
},
|
|
294
|
+
recorded: '2022-02-23T22:44:33.000+00:00',
|
|
295
|
+
activity: {
|
|
296
|
+
coding: [
|
|
297
|
+
{
|
|
298
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-DataOperation',
|
|
299
|
+
code: 'CREATE',
|
|
300
|
+
display: 'create',
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
},
|
|
304
|
+
agent: [
|
|
305
|
+
{
|
|
306
|
+
type: {
|
|
307
|
+
coding: [
|
|
308
|
+
{
|
|
309
|
+
system: 'http://terminology.hl7.org/CodeSystemprovenance-participant-type',
|
|
310
|
+
code: 'author',
|
|
311
|
+
display: 'Author',
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
},
|
|
315
|
+
role: [
|
|
316
|
+
{
|
|
317
|
+
coding: [
|
|
318
|
+
{
|
|
319
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-ParticipationType',
|
|
320
|
+
code: 'AUT',
|
|
321
|
+
display: 'author',
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
who: {
|
|
327
|
+
reference: 'Practitioner/A4F30A1B-5EB9-11DF-A648-37A07F9C90FB',
|
|
328
|
+
type: 'Practitioner',
|
|
329
|
+
display: 'Super User',
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
],
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
status: 'active',
|
|
336
|
+
name: 'Community Outreach',
|
|
337
|
+
description: 'Community Outreach',
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
],
|
|
341
|
+
},
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
export const inpatientWardResponse = {
|
|
345
|
+
ok: true,
|
|
346
|
+
data: {
|
|
347
|
+
resourceType: 'Bundle',
|
|
348
|
+
id: 'e3c2aa40-21b0-4671-a492-bb7e7f16cc46',
|
|
349
|
+
meta: {
|
|
350
|
+
lastUpdated: '2023-11-08T08:45:48.967+00:00',
|
|
351
|
+
},
|
|
352
|
+
type: 'searchset',
|
|
353
|
+
total: 1,
|
|
354
|
+
link: [
|
|
355
|
+
{
|
|
356
|
+
relation: 'self',
|
|
357
|
+
url: 'https://dev3.openmrs.org/openmrs/ws/fhir2/R4/Location?_id=1ce1b7d4-c865-4178-82b0-5932e51503d6',
|
|
358
|
+
},
|
|
359
|
+
],
|
|
360
|
+
entry: [
|
|
361
|
+
{
|
|
362
|
+
fullUrl: 'http://openmrs:8080/openmrs/ws/fhir2/R4/Location/ba685651-ed3b-4e63-9b35-78893060758a',
|
|
363
|
+
resource: {
|
|
364
|
+
resourceType: 'Location',
|
|
365
|
+
id: 'ba685651-ed3b-4e63-9b35-78893060758a',
|
|
366
|
+
meta: {
|
|
367
|
+
tag: [
|
|
368
|
+
{
|
|
369
|
+
system: 'http://fhir.openmrs.org/ext/location-tag',
|
|
370
|
+
code: 'Login Location',
|
|
371
|
+
display: 'When a user logs in and chooses a session location, they may only choose one with this tag',
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
375
|
+
code: 'SUBSETTED',
|
|
376
|
+
display: 'Resource encoded in summary mode',
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
},
|
|
380
|
+
contained: [
|
|
381
|
+
{
|
|
382
|
+
resourceType: 'Provenance',
|
|
383
|
+
id: '621310a4-4c42-46eb-83e8-46e4a61cf250',
|
|
384
|
+
meta: {
|
|
385
|
+
tag: [
|
|
386
|
+
{
|
|
387
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
388
|
+
code: 'SUBSETTED',
|
|
389
|
+
display: 'Resource encoded in summary mode',
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
},
|
|
393
|
+
recorded: '2022-02-23T22:44:33.000+00:00',
|
|
394
|
+
activity: {
|
|
395
|
+
coding: [
|
|
396
|
+
{
|
|
397
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-DataOperation',
|
|
398
|
+
code: 'CREATE',
|
|
399
|
+
display: 'create',
|
|
400
|
+
},
|
|
401
|
+
],
|
|
402
|
+
},
|
|
403
|
+
agent: [
|
|
404
|
+
{
|
|
405
|
+
type: {
|
|
406
|
+
coding: [
|
|
407
|
+
{
|
|
408
|
+
system: 'http://terminology.hl7.org/CodeSystemprovenance-participant-type',
|
|
409
|
+
code: 'author',
|
|
410
|
+
display: 'Author',
|
|
411
|
+
},
|
|
412
|
+
],
|
|
413
|
+
},
|
|
414
|
+
role: [
|
|
415
|
+
{
|
|
416
|
+
coding: [
|
|
417
|
+
{
|
|
418
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-ParticipationType',
|
|
419
|
+
code: 'AUT',
|
|
420
|
+
display: 'author',
|
|
421
|
+
},
|
|
422
|
+
],
|
|
423
|
+
},
|
|
424
|
+
],
|
|
425
|
+
who: {
|
|
426
|
+
reference: 'Practitioner/A4F30A1B-5EB9-11DF-A648-37A07F9C90FB',
|
|
427
|
+
type: 'Practitioner',
|
|
428
|
+
display: 'Super User',
|
|
429
|
+
},
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
},
|
|
433
|
+
],
|
|
434
|
+
status: 'active',
|
|
435
|
+
name: 'Inpatient Ward',
|
|
436
|
+
description: 'Inpatient Ward',
|
|
437
|
+
},
|
|
438
|
+
},
|
|
439
|
+
],
|
|
440
|
+
},
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
export const locationResponseForNonExistingSearch = {
|
|
444
|
+
data: {
|
|
445
|
+
resourceType: 'Bundle',
|
|
446
|
+
id: '301b3ad6-868a-48a6-bc3f-aaa8aa3f89a6',
|
|
447
|
+
meta: {
|
|
448
|
+
lastUpdated: '2022-03-17T07:47:02.272+00:00',
|
|
449
|
+
tag: [
|
|
450
|
+
{
|
|
451
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
452
|
+
code: 'SUBSETTED',
|
|
453
|
+
display: 'Resource encoded in summary mode',
|
|
454
|
+
},
|
|
455
|
+
],
|
|
456
|
+
},
|
|
457
|
+
type: 'searchset',
|
|
458
|
+
total: 0,
|
|
459
|
+
link: [
|
|
460
|
+
{
|
|
461
|
+
relation: 'self',
|
|
462
|
+
url: 'http://openmrs:8080/openmrs/ws/fhir2/R4/Location?_count=50&_summary=data&_tag=login%20location',
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
entry: [],
|
|
466
|
+
},
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
export const outpatientClinicResponse = {
|
|
470
|
+
data: {
|
|
471
|
+
resourceType: 'Bundle',
|
|
472
|
+
id: '301b3ad6-868a-48a6-bc3f-aaa8aa3f89a6',
|
|
473
|
+
meta: {
|
|
474
|
+
lastUpdated: '2022-03-17T07:47:02.272+00:00',
|
|
475
|
+
tag: [
|
|
476
|
+
{
|
|
477
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
478
|
+
code: 'SUBSETTED',
|
|
479
|
+
display: 'Resource encoded in summary mode',
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
},
|
|
483
|
+
type: 'searchset',
|
|
484
|
+
total: 1,
|
|
485
|
+
link: [
|
|
486
|
+
{
|
|
487
|
+
relation: 'self',
|
|
488
|
+
url: 'http://openmrs:8080/openmrs/ws/fhir2/R4/Location?_count=50&_summary=data&_tag=login%20location',
|
|
489
|
+
},
|
|
490
|
+
],
|
|
491
|
+
entry: [
|
|
492
|
+
{
|
|
493
|
+
fullUrl: 'http://openmrs:8080/openmrs/ws/fhir2/R4/Location/44c3efb0-2583-4c80-a79e-1f756a03c0a1',
|
|
494
|
+
resource: {
|
|
495
|
+
resourceType: 'Location',
|
|
496
|
+
id: '44c3efb0-2583-4c80-a79e-1f756a03c0a1',
|
|
497
|
+
meta: {
|
|
498
|
+
tag: [
|
|
499
|
+
{
|
|
500
|
+
system: 'http://fhir.openmrs.org/ext/location-tag',
|
|
501
|
+
code: 'Login Location',
|
|
502
|
+
display: 'When a user logs in and chooses a session location, they may only choose one with this tag',
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
system: 'http://fhir.openmrs.org/ext/location-tag',
|
|
506
|
+
code: 'Facility Location',
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
510
|
+
code: 'SUBSETTED',
|
|
511
|
+
display: 'Resource encoded in summary mode',
|
|
512
|
+
},
|
|
513
|
+
],
|
|
514
|
+
},
|
|
515
|
+
contained: [
|
|
516
|
+
{
|
|
517
|
+
resourceType: 'Provenance',
|
|
518
|
+
id: 'e6f5d190-5a5a-4e1f-b34b-20a3480a6e1b',
|
|
519
|
+
meta: {
|
|
520
|
+
tag: [
|
|
521
|
+
{
|
|
522
|
+
system: 'http://terminology.hl7.org/CodeSystem/v3-ObservationValue',
|
|
523
|
+
code: 'SUBSETTED',
|
|
524
|
+
display: 'Resource encoded in summary mode',
|
|
525
|
+
},
|
|
526
|
+
],
|
|
527
|
+
},
|
|
528
|
+
recorded: '2022-02-23T22:44:33.000+00:00',
|
|
529
|
+
activity: {
|
|
530
|
+
coding: [
|
|
531
|
+
{
|
|
532
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-DataOperation',
|
|
533
|
+
code: 'CREATE',
|
|
534
|
+
display: 'create',
|
|
535
|
+
},
|
|
536
|
+
],
|
|
537
|
+
},
|
|
538
|
+
agent: [
|
|
539
|
+
{
|
|
540
|
+
type: {
|
|
541
|
+
coding: [
|
|
542
|
+
{
|
|
543
|
+
system: 'http://terminology.hl7.org/CodeSystemprovenance-participant-type',
|
|
544
|
+
code: 'author',
|
|
545
|
+
display: 'Author',
|
|
546
|
+
},
|
|
547
|
+
],
|
|
548
|
+
},
|
|
549
|
+
role: [
|
|
550
|
+
{
|
|
551
|
+
coding: [
|
|
552
|
+
{
|
|
553
|
+
system: 'http://terminology.hl7.org/CodeSystemv3-ParticipationType',
|
|
554
|
+
code: 'AUT',
|
|
555
|
+
display: 'author',
|
|
556
|
+
},
|
|
557
|
+
],
|
|
558
|
+
},
|
|
559
|
+
],
|
|
560
|
+
who: {
|
|
561
|
+
reference: 'Practitioner/A4F30A1B-5EB9-11DF-A648-37A07F9C90FB',
|
|
562
|
+
type: 'Practitioner',
|
|
563
|
+
display: 'Super User',
|
|
564
|
+
},
|
|
565
|
+
},
|
|
566
|
+
],
|
|
567
|
+
},
|
|
568
|
+
],
|
|
569
|
+
status: 'active',
|
|
570
|
+
name: 'Outpatient Clinic',
|
|
571
|
+
description: 'Outpatient Clinic',
|
|
572
|
+
},
|
|
573
|
+
},
|
|
574
|
+
],
|
|
575
|
+
},
|
|
576
|
+
};
|