-
Notifications
You must be signed in to change notification settings - Fork 490
/
USCore.http
265 lines (192 loc) · 6.28 KB
/
USCore.http
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
261
262
263
264
265
# This file includes all the US Core profiles to load for the Payer Data Exchange test
### REST Client
@fhirurl= <FHIR URL>
@clientid= <CLIENT ID>
@clientsecret= <CLIENT SECRET>
@tenantid= <SUBSCRIPTION ID>
@contentType = application/json
### Get Metadata - Allows you to get the current capability statement
# this will update as you add profiles to the database
GET {{fhirurl}}/metadata
Authorization: Bearer {{token}}
content-type: {{contentType}}
### Get access token
# @name getAADToken
POST https://login.microsoftonline.com/{{tenantid}}/oauth2/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
&resource={{fhirurl}}
&client_id={{clientid}}
&client_secret={{clientsecret}}
### Capture access token from getToken request
@token={{getAADToken.response.body.access_token}}
### Load US Core Profiles
### US Core Provenance
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Provenance.json
### US Core Procedure
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Procedure.json
### US Core PractitionerRole
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/PractitionerRole.json
### US Core Practitioner
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Practitioner.json
### US Core Organzation
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Organization.json
### Vital Signs
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/vitalsign.json
### US Core Patient
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Patient.json
### US Core AllergyIntolerance
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/AllergyIntolerance.json
### US Core CarePlan
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/CarePlan.json
### US Core CareTeam
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/CareTeam.json
### US Core Condition
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Condition.json
### US Core Implantable Device
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Implantable-Device.json
### US Core DiagnosticReport-Lab.json
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/DiagnosticReport-Lab.json
### US Core DiagnosticReport-Note.json
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/DiagnosticReport-Note.json
### US Core DocumentReference.json
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/DocumentReference.json
### US Core Encounter
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Encounter.json
### US Core Observation Lab
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Observation-Lab.json
### US Core Ped BMI for Age
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/pediatric-bmi-for-age.json
### US Core Ped Weight for Height
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/pediatric-weight-for-height.json
### US Core Pulse Ox
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/pulse-oximetry.json
### US Core Smoking Status
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/smokingstatus.json
### US Core Blood Pressure
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/bp.json
### US Core Body Height
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/bodyheight.json
### US Core Body Weight
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/bodyweight.json
### US Core Heart Rate
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/heartrate.json
### US Core Resp Rate
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/resprate.json
### US Core Body Temp
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/bodytemp.json
### US Core Goal
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Goal.json
### US Core Immunization
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Immunization.json
### US Core Location
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Location.json
### US Core MedicationRequest
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/MedicationRequest.json
### US Core Head Circum
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/headcircum.json
### US Core Medication
POST {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}
< ./US_Core_Profiles/Medication.json
### Check for profiles
GET {{fhirurl}}/StructureDefinition
Authorization: Bearer {{token}}
content-type: {{contentType}}