forked from robeastwood-agency/fhir-mapping-experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransform-coverage.http
39 lines (26 loc) · 1.33 KB
/
transform-coverage.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
@base_url = https://test.ahdis.ch/matchbox/fhir/
### ==========================================================================================
# 1) POST the FHIR StructureDefinition of v1.4 Coverage
POST {{base_url}}StructureDefinition
Accept: application/fhir+xml
Content-Type: application/fhir+xml
< ./inputs/StructureDefinition/StructureDefinition-coverage-v14.xml
### ==========================================================================================
# 2) POST the FHIR StructureDefinition of R4 Coverage
POST {{base_url}}StructureDefinition
Accept: application/fhir+xml
Content-Type: application/fhir+xml
< ./inputs/StructureDefinition/StructureDefinition-coverage-R4.xml
### ==========================================================================================
# 3) POST the FML file to matchbox to generate StructureMap
POST {{base_url}}StructureMap
Accept: application/fhir+xml
Content-Type: text/fhir-mapping
< ./inputs/maps/coveragev14toR4.map
### ==========================================================================================
# 4) invoke a transform operation using the generated StructureMap from the above operation
POST {{base_url}}StructureMap/$transform
?source=http://example/fhir/StructureMap/Coveragev14to4
Accept: application/fhir+xml
Content-Type: application/fhir+xml
< ./inputs/Coverage/example1.xml