-
Notifications
You must be signed in to change notification settings - Fork 1
/
_runcqf.sh
executable file
·35 lines (25 loc) · 1.04 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
#!/bin/bash
# run sep cleanup script
./_runcleanup.sh
# use refresh hack, mind the .
sushi
# move vocabulary, libraries to the right place
mkdir -p input/vocabulary/codesystem/manual
mkdir -p input/vocabulary/valueset/manual
mkdir -p input/resources/library
cp fsh-generated/resources/CodeSystem-* input/vocabulary/codesystem/manual/
cp fsh-generated/resources/ValueSet-* input/vocabulary/valueset/manual/
cp fsh-generated/resources/Library-* input/resources/library/
# put test cases in place
# todo to add: QR, Parameters
CASE=('QR' 'EasyLib' 'DASHConcepts' 'DASHDataElements' 'Analytics' '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
bash _refresh.sh
bash _genonce.sh -no-sushi
# load data
# ./_runload.sh
echo "Exit code: ${?}"