generated from openhie/empty-fhir-ig-custom
-
Notifications
You must be signed in to change notification settings - Fork 1
/
_runcqf.sh
executable file
·40 lines (28 loc) · 1.09 KB
/
_runcqf.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
#!/bin/bash
# run sep cleanup script
./_runcleanup.sh
# create bulk test data
# ./_runcreate.sh
# use refresh hack
sushi
# move vocabulary to the right place
mv fsh-generated/resources/CodeSystem-* input/vocabulary/codesystem/manual/
mv fsh-generated/resources/ValueSet-* input/vocabulary/valueset/manual/
# move libraries to the right place
mv fsh-generated/resources/Library-* input/resources/
# put test cases in place
# todo to add: QR, Parameters, Contract
# CASE=('DataContract' 'AgeRanges' 'Dedupe' 'KitchenSink' 'HIVIndicators' 'DASHStratifiers' 'TXCURR' 'TXML' 'TXNEW' 'TXPVLS' 'HTSTST' 'PMTCTSTAT' 'PMTCTART')
# for case in "${CASE[@]}"
# do
# cp fsh-generated/resources/Bundle-Example-HIVSimple.json input/tests/${case}/Patient-HIVSimple
# cp fsh-generated/resources/Bundle-Example-HIVSimple2.json input/tests/${case}/Patient-HIVSimple2
# done
# vocabulary
mv fsh-generated/resources/CodeSystem-* input/vocabulary/codesystem/
mv fsh-generated/resources/ValueSet-* input/vocabulary/valueset/
bash _refresh.sh
bash _genonce.sh -no-sushi
# load data
# ./_runload.sh
echo "Exit code: ${?}"