generated from ahdis/ch-ig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransformalis5.sh
executable file
·51 lines (44 loc) · 2.34 KB
/
transformalis5.sh
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
FILENAME="Alis5AmbPauschalen-Pauschale"
INPUT="@./input/resources/binary/$FILENAME.xml"
REPLACE="s|<meta>|<id value=\"$FILENAME\" /><meta>|g"
curl --request POST \
--url 'http://localhost:8080/matchboxv3/fhir/StructureMap/$transform?source=http%3A%2F%2Ffhir.ch%2Fig%2Fch-alis%2FStructureMap%2FAlis43ToBundle' \
--header 'accept: application/fhir+xml;fhirVersion=4.0' \
--header 'content-type: application/fhir+xml;fhirVersion=4.0' \
--header 'user-agent: vscode-restclient' \
--data $INPUT \
-o ./input/examples/bundle/$FILENAME.xml
sed -i '' "$REPLACE" ./input/examples/bundle/$FILENAME.xml
FILENAME="Alis5AmbPauschalen-TM-ICD"
INPUT="@./input/resources/binary/$FILENAME.xml"
REPLACE="s|<meta>|<id value=\"$FILENAME\" /><meta>|g"
curl --request POST \
--url 'http://localhost:8080/matchboxv3/fhir/StructureMap/$transform?source=http%3A%2F%2Ffhir.ch%2Fig%2Fch-alis%2FStructureMap%2FAlis43ToBundle' \
--header 'accept: application/fhir+xml;fhirVersion=4.0' \
--header 'content-type: application/fhir+xml;fhirVersion=4.0' \
--header 'user-agent: vscode-restclient' \
--data $INPUT \
-o ./input/examples/bundle/$FILENAME.xml
sed -i '' "$REPLACE" ./input/examples/bundle/$FILENAME.xml
FILENAME="Alis5Analysenliste"
INPUT="@./input/resources/binary/$FILENAME.xml"
REPLACE="s|<meta>|<id value=\"$FILENAME\" /><meta>|g"
curl --request POST \
--url 'http://localhost:8080/matchboxv3/fhir/StructureMap/$transform?source=http%3A%2F%2Ffhir.ch%2Fig%2Fch-alis%2FStructureMap%2FAlis43ToBundle' \
--header 'accept: application/fhir+xml;fhirVersion=4.0' \
--header 'content-type: application/fhir+xml;fhirVersion=4.0' \
--header 'user-agent: vscode-restclient' \
--data $INPUT \
-o ./input/examples/bundle/$FILENAME.xml
sed -i '' "$REPLACE" ./input/examples/bundle/$FILENAME.xml
FILENAME="Alis5TARDOC"
INPUT="@./input/resources/binary/$FILENAME.xml"
REPLACE="s|<meta>|<id value=\"$FILENAME\" /><meta>|g"
curl --request POST \
--url 'http://localhost:8080/matchboxv3/fhir/StructureMap/$transform?source=http%3A%2F%2Ffhir.ch%2Fig%2Fch-alis%2FStructureMap%2FAlis43ToBundle' \
--header 'accept: application/fhir+xml;fhirVersion=4.0' \
--header 'content-type: application/fhir+xml;fhirVersion=4.0' \
--header 'user-agent: vscode-restclient' \
--data $INPUT \
-o ./input/examples/bundle/$FILENAME.xml
sed -i '' "$REPLACE" ./input/examples/bundle/$FILENAME.xml