-
Notifications
You must be signed in to change notification settings - Fork 1
/
Postman_collection.json
260 lines (260 loc) · 27.8 KB
/
Postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
{
"info": {
"_postman_id": "ace244c1-4982-415e-b318-92c74cb4c4ff",
"name": "SNOMED CT - CDS Service - Demonstrator",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "1181409"
},
"item": [
{
"name": "List CDS \"Services\"",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{cds-url}}/cds-services",
"host": [
"{{cds-url}}"
],
"path": [
"cds-services"
]
}
},
"response": [
{
"name": "List CDS \"Services\"",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{cds-url}}/cds-services",
"host": [
"{{cds-url}}"
],
"path": [
"cds-services"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Date",
"value": "Mon, 06 Mar 2023 17:50:24 GMT"
},
{
"key": "Keep-Alive",
"value": "timeout=60"
},
{
"key": "Connection",
"value": "keep-alive"
}
],
"cookie": [],
"body": "{\n \"services\": [\n {\n \"id\": \"hello-test\"\n },\n {\n \"id\": \"medication-order-select\",\n \"prefetch\": {\n \"draftMedicationRequests\": \"MedicationRequest?patient={{context.patientId}}&status=draft\",\n \"patient\": \"Patient/{{context.patientId}}\",\n \"conditions\": \"Condition?patient={{context.patientId}}&category=problem-list-item&status=active\"\n }\n }\n ]\n}"
}
]
},
{
"name": "Call \"hello-test\" CDS service",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"hook\": \"test-page\"\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{cds-url}}/cds-services/hello-test",
"host": [
"{{cds-url}}"
],
"path": [
"cds-services",
"hello-test"
]
}
},
"response": [
{
"name": "Call \"hello-test\" CDS service",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"hook\": \"test-page\"\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{cds-url}}/cds-services/hello-test",
"host": [
"{{cds-url}}"
],
"path": [
"cds-services",
"hello-test"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Date",
"value": "Mon, 06 Mar 2023 17:49:43 GMT"
},
{
"key": "Keep-Alive",
"value": "timeout=60"
},
{
"key": "Connection",
"value": "keep-alive"
}
],
"cookie": [],
"body": "{\n \"cards\": [\n {\n \"uuid\": \"22e982b7-4786-4afe-9f67-5af8266363f6\",\n \"indicator\": \"info\",\n \"summary\": \"Hello! The CDS Service is working.\",\n \"detail\": \"This is an example card from the 'hello-test' CDS Service.\",\n \"source\": {\n \"label\": \"http://example.com\"\n }\n }\n ]\n}"
}
]
},
{
"name": "Call \"medication-order-select\" CDS service",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"hook\": \"order-page\",\n \"prefetch\": {\n \"patient\": {\n \"resourceType\": \"Patient\",\n \"id\": \"155d3d80-f3f0-4b39-9207-0d122cf94a11\",\n \"gender\": \"male\",\n \"birthDate\": \"1974-12-25\",\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"MR\",\n \"display\": \"Medical Record Number\"\n }\n ],\n \"text\": \"Medical Record Number\"\n },\n \"system\": \"http://hospital.smarthealthit.org\",\n \"value\": \"276b501c-98d9-4837-8601-4700a93fa397\"\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Montañez\",\n \"given\": [\n \"Clara\"\n ],\n \"prefix\": [\n \"Ms.\"\n ]\n }\n ]\n },\n \"conditions\": {\n \"resourceType\": \"Bundle\",\n \"id\": \"fbf11cc8-f69f-4f58-a12e-1db62c91be71\",\n \"meta\": {\n \"lastUpdated\": \"2023-02-27T05:16:44.649-05:00\"\n },\n \"type\": \"searchset\",\n \"total\": 10,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://r4.smarthealthit.org/Condition?_format=json&patient=155d3d80-f3f0-4b39-9207-0d122cf94a11\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://r4.smarthealthit.org/Condition/f4ec0eff-be21-4400-ab16-455408e8381e\",\n \"resource\": {\n \"resourceType\": \"Condition\",\n \"id\": \"f4ec0eff-be21-4400-ab16-455408e8381e\",\n \"clinicalStatus\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\n \"code\": \"active\"\n }\n ]\n },\n \"verificationStatus\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/condition-ver-status\",\n \"code\": \"confirmed\"\n }\n ]\n },\n \"code\": {\n \"coding\": [\n {\n // This SNOMED CT concept has the synonym 'Fatty liver'\n // The preferred term is 'Steatosis of liver'\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"197321007\",\n \"display\": \"Steatosis of liver\"\n }\n ],\n \"text\": \"Steatosis of liver\"\n },\n \"subject\": {\n \"reference\": \"Patient/155d3d80-f3f0-4b39-9207-0d122cf94a11\"\n },\n \"encounter\": {\n \"reference\": \"Encounter/137ba397-f1f2-4462-84b6-d14bad3f2dd3\"\n },\n \"onsetDateTime\": \"2017-12-25T07:22:23+00:00\",\n \"abatementDateTime\": \"2018-01-01T07:22:23+00:00\",\n \"recordedDate\": \"2017-12-25T07:22:23+00:00\"\n },\n \"search\": {\n \"mode\": \"match\"\n },\n \"response\": {\n \"status\": \"200 OK\",\n \"etag\": \"W/\\\"3\\\"\"\n }\n },\n {\n \"fullUrl\": \"https://r4.smarthealthit.org/Condition/b7b46301-19e6-4787-a26b-65bccdee8b7f\",\n \"resource\": {\n \"resourceType\": \"Condition\",\n \"id\": \"b7b46301-19e6-4787-a26b-65bccdee8b7f\",\n \"clinicalStatus\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\n \"code\": \"resolved\"\n }\n ]\n },\n \"verificationStatus\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/condition-ver-status\",\n \"code\": \"confirmed\"\n }\n ]\n },\n \"code\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"195662009\",\n \"display\": \"Acute viral pharyngitis (disorder)\"\n }\n ],\n \"text\": \"Acute viral pharyngitis (disorder)\"\n },\n \"subject\": {\n \"reference\": \"Patient/155d3d80-f3f0-4b39-9207-0d122cf94a11\"\n },\n \"encounter\": {\n \"reference\": \"Encounter/85c8a666-3413-47aa-8180-3b1a66b87c26\"\n },\n \"onsetDateTime\": \"2020-04-30T07:22:23+00:00\",\n \"abatementDateTime\": \"2020-05-13T07:22:23+00:00\",\n \"recordedDate\": \"2020-04-30T07:22:23+00:00\"\n },\n \"search\": {\n \"mode\": \"match\"\n },\n \"response\": {\n \"status\": \"200 OK\",\n \"etag\": \"W/\\\"3\\\"\"\n }\n }\n ]\n },\n \"draftMedicationRequests\": {\n \"resourceType\": \"Bundle\",\n \"id\": \"be826c54-b905-40fb-bd90-c147a63ae4e8\",\n \"entry\": [\n {\n \"fullUrl\": \"https://r4.smarthealthit.org/MedicationRequest/5180e54d-0187-494a-9ca9-9dbfcab90ab6\",\n \"resource\": {\n \"resourceType\": \"MedicationRequest\",\n \"id\": \"5180e54d-0187-494a-9ca9-9dbfcab90ab6\",\n \"status\": \"active\",\n \"intent\": \"order\",\n \"medicationCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"108600003\",\n \"display\": \"Atorvastatin-containing product\"\n },\n {\n \"system\": \"http://bahmni.org/cds\",\n \"code\": \"36939d4e-d325-4819-9c81-91e1a0434f9a\",\n \"display\": \"Atorvastatin 20 mg\"\n }\n ],\n \"text\": \"Atorvastatin 20 mg\"\n },\n \"subject\": {\n \"reference\": \"Patient/618b2992-eec7-45c9-8544-12c9f586b78c\"\n },\n \"encounter\": {\n \"reference\": \"Encounter/8f1950d4-13cc-4ea5-a9d0-855a4f4b9180\"\n },\n \"authoredOn\": \"2021-01-15T04:59:42+00:00\",\n \"requester\": {\n \"reference\": \"Practitioner/96333652-ed28-41d3-bb60-d435f478c8ed\"\n },\n \"reasonReference\": [\n {\n \"reference\": \"Condition/e21522b1-8006-4723-8b8d-bda8a575b87e\"\n }\n ],\n \"dosageInstruction\": [\n {\n \"sequence\": 1,\n \"timing\": {\n \"repeat\": {\n \"frequency\": 1,\n \"period\": 1,\n \"periodUnit\": \"d\"\n }\n },\n \"asNeededBoolean\": false,\n \"doseAndRate\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/dose-rate-type\",\n \"code\": \"ordered\",\n \"display\": \"Ordered\"\n }\n ]\n },\n \"doseQuantity\": {\n \"value\": 1\n }\n }\n ]\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n },\n \"response\": {\n \"status\": \"200 OK\",\n \"etag\": \"W/\\\"4\\\"\"\n }\n }\n ]\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{cds-url}}/cds-services/medication-order-select",
"host": [
"{{cds-url}}"
],
"path": [
"cds-services",
"medication-order-select"
]
}
},
"response": [
{
"name": "Call \"medication-order-select\" CDS service",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"hook\": \"order-page\",\n \"prefetch\": {\n \"patient\": {\n \"resourceType\": \"Patient\",\n \"id\": \"155d3d80-f3f0-4b39-9207-0d122cf94a11\",\n \"gender\": \"male\",\n \"birthDate\": \"1974-12-25\",\n \"identifier\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0203\",\n \"code\": \"MR\",\n \"display\": \"Medical Record Number\"\n }\n ],\n \"text\": \"Medical Record Number\"\n },\n \"system\": \"http://hospital.smarthealthit.org\",\n \"value\": \"276b501c-98d9-4837-8601-4700a93fa397\"\n }\n ],\n \"name\": [\n {\n \"use\": \"official\",\n \"family\": \"Montañez\",\n \"given\": [\n \"Clara\"\n ],\n \"prefix\": [\n \"Ms.\"\n ]\n }\n ]\n },\n \"diagnoses\": {\n \"resourceType\": \"Bundle\",\n \"id\": \"fbf11cc8-f69f-4f58-a12e-1db62c91be71\",\n \"meta\": {\n \"lastUpdated\": \"2023-02-27T05:16:44.649-05:00\"\n },\n \"type\": \"searchset\",\n \"total\": 10,\n \"link\": [\n {\n \"relation\": \"self\",\n \"url\": \"https://r4.smarthealthit.org/Condition?_format=json&patient=155d3d80-f3f0-4b39-9207-0d122cf94a11\"\n }\n ],\n \"entry\": [\n {\n \"fullUrl\": \"https://r4.smarthealthit.org/Condition/f4ec0eff-be21-4400-ab16-455408e8381e\",\n \"resource\": {\n \"resourceType\": \"Condition\",\n \"id\": \"f4ec0eff-be21-4400-ab16-455408e8381e\",\n \"clinicalStatus\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\n \"code\": \"active\"\n }\n ]\n },\n \"verificationStatus\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/condition-ver-status\",\n \"code\": \"confirmed\"\n }\n ]\n },\n \"code\": {\n \"coding\": [\n {\n // This SNOMED CT concept has the synonym 'Fatty liver'\n // The preferred term is 'Steatosis of liver'\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"197321007\",\n \"display\": \"Steatosis of liver\"\n }\n ],\n \"text\": \"Steatosis of liver\"\n },\n \"subject\": {\n \"reference\": \"Patient/155d3d80-f3f0-4b39-9207-0d122cf94a11\"\n },\n \"encounter\": {\n \"reference\": \"Encounter/137ba397-f1f2-4462-84b6-d14bad3f2dd3\"\n },\n \"onsetDateTime\": \"2017-12-25T07:22:23+00:00\",\n \"abatementDateTime\": \"2018-01-01T07:22:23+00:00\",\n \"recordedDate\": \"2017-12-25T07:22:23+00:00\"\n },\n \"search\": {\n \"mode\": \"match\"\n },\n \"response\": {\n \"status\": \"200 OK\",\n \"etag\": \"W/\\\"3\\\"\"\n }\n },\n {\n \"fullUrl\": \"https://r4.smarthealthit.org/Condition/b7b46301-19e6-4787-a26b-65bccdee8b7f\",\n \"resource\": {\n \"resourceType\": \"Condition\",\n \"id\": \"b7b46301-19e6-4787-a26b-65bccdee8b7f\",\n \"clinicalStatus\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\n \"code\": \"resolved\"\n }\n ]\n },\n \"verificationStatus\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/condition-ver-status\",\n \"code\": \"confirmed\"\n }\n ]\n },\n \"code\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"195662009\",\n \"display\": \"Acute viral pharyngitis (disorder)\"\n }\n ],\n \"text\": \"Acute viral pharyngitis (disorder)\"\n },\n \"subject\": {\n \"reference\": \"Patient/155d3d80-f3f0-4b39-9207-0d122cf94a11\"\n },\n \"encounter\": {\n \"reference\": \"Encounter/85c8a666-3413-47aa-8180-3b1a66b87c26\"\n },\n \"onsetDateTime\": \"2020-04-30T07:22:23+00:00\",\n \"abatementDateTime\": \"2020-05-13T07:22:23+00:00\",\n \"recordedDate\": \"2020-04-30T07:22:23+00:00\"\n },\n \"search\": {\n \"mode\": \"match\"\n },\n \"response\": {\n \"status\": \"200 OK\",\n \"etag\": \"W/\\\"3\\\"\"\n }\n }\n ]\n },\n \"draftMedicationOrders\": {\n \"resourceType\": \"Bundle\",\n \"id\": \"be826c54-b905-40fb-bd90-c147a63ae4e8\",\n \"entry\": [\n {\n \"fullUrl\": \"https://r4.smarthealthit.org/MedicationRequest/5180e54d-0187-494a-9ca9-9dbfcab90ab6\",\n \"resource\": {\n \"resourceType\": \"MedicationRequest\",\n \"id\": \"5180e54d-0187-494a-9ca9-9dbfcab90ab6\",\n \"status\": \"active\",\n \"intent\": \"order\",\n \"medicationCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://snomed.info/sct\",\n \"code\": \"108600003\",\n \"display\": \"Atorvastatin-containing product\"\n },\n {\n \"system\": \"http://bahmni.org/cds\",\n \"code\": \"36939d4e-d325-4819-9c81-91e1a0434f9a\",\n \"display\": \"Atorvastatin 20 mg\"\n }\n ],\n \"text\": \"Atorvastatin 20 mg\"\n },\n \"subject\": {\n \"reference\": \"Patient/618b2992-eec7-45c9-8544-12c9f586b78c\"\n },\n \"encounter\": {\n \"reference\": \"Encounter/8f1950d4-13cc-4ea5-a9d0-855a4f4b9180\"\n },\n \"authoredOn\": \"2021-01-15T04:59:42+00:00\",\n \"requester\": {\n \"reference\": \"Practitioner/96333652-ed28-41d3-bb60-d435f478c8ed\"\n },\n \"reasonReference\": [\n {\n \"reference\": \"Condition/e21522b1-8006-4723-8b8d-bda8a575b87e\"\n }\n ],\n \"dosageInstruction\": [\n {\n \"sequence\": 1,\n \"timing\": {\n \"repeat\": {\n \"frequency\": 1,\n \"period\": 1,\n \"periodUnit\": \"d\"\n }\n },\n \"asNeededBoolean\": false,\n \"doseAndRate\": [\n {\n \"type\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/dose-rate-type\",\n \"code\": \"ordered\",\n \"display\": \"Ordered\"\n }\n ]\n },\n \"doseQuantity\": {\n \"value\": 1\n }\n }\n ]\n }\n ]\n },\n \"search\": {\n \"mode\": \"match\"\n },\n \"response\": {\n \"status\": \"200 OK\",\n \"etag\": \"W/\\\"4\\\"\"\n }\n }\n ]\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{cds-url}}/cds-services/medication-order-select",
"host": [
"{{cds-url}}"
],
"path": [
"cds-services",
"medication-order-select"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Date",
"value": "Mon, 06 Mar 2023 17:49:25 GMT"
},
{
"key": "Keep-Alive",
"value": "timeout=60"
},
{
"key": "Connection",
"value": "keep-alive"
}
],
"cookie": [],
"body": "{\n \"cards\": [\n {\n \"uuid\": \"7b544b67-fbc7-48af-af95-ddaee09e836b\",\n \"indicator\": \"warning\",\n \"summary\": \"Contraindication: \\\"Atorvastatin-containing product\\\" with patient condition \\\"Steatosis of liver\\\".\",\n \"detail\": \"The use of Atorvastatin is contraindicated when the patient has Disease of liver.\",\n \"source\": {\n \"label\": \"Wikipedia\",\n \"url\": \"https://en.wikipedia.org/wiki/Atorvastatin#Contraindications\"\n }\n }\n ]\n}"
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "cds-url",
"value": "http://localhost:8080",
"type": "string"
}
]
}