forked from PATH-Global-Health/MERindicators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_runcqf.sh
executable file
·54 lines (39 loc) · 1.76 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env bash
# run sep cleanup script
./_runcleanup.sh
# run sushi
sushi
# move vocabulary, libraries to the right place
mkdir -p input/vocabulary/codesystem
mkdir -p input/vocabulary/valueset
mkdir -p input/resources/library
cp fsh-generated/resources/CodeSystem-* input/vocabulary/codesystem/
cp fsh-generated/resources/ValueSet-* input/vocabulary/valueset/
cp fsh-generated/resources/Library-* input/resources/library/
# run cql tooling
bash _refresh.sh
# run publisher without sushi
# bash _genonce.sh -no-sushi
java -Xmx4g -jar ./input-cache/publisher.jar publisher -ig . -no-sushi
# put CQL test cases in place
# this has to be updated by hand
# CASE=('KenyaEMRConcepts' 'KenyaEMRDataElements' 'KenyaEMRStratifiers' 'KenyaEMRTXCURR')
# for case in "${CASE[@]}"
# do
# # make dir if it doesn't exist
# mkdir -p input/tests/${case}/Patient-HIVSimple
# cp output/Bundle-Example-HIVSimple.json input/tests/${case}/Patient-HIVSimple
# mkdir -p input/tests/${case}/Patient-HIVSimple2
# cp output/Bundle-Example-HIVSimple2.json input/tests/${case}/Patient-HIVSimple2
# mkdir -p input/tests/${case}/example-openmrs-Patient
# cp output/Bundle-Example0.json input/tests/${case}/example-openmrs-Patient
# mkdir -p input/tests/${case}/PatientCIEL
# cp output/Bundle-ExampleCIEL.json input/tests/${case}/PatientCIEL
# mkdir -p input/tests/${case}/DeceasedBoolean
# cp output/Bundle-ExampleDeceasedBoolean.json input/tests/${case}/DeceasedBoolean
# mkdir -p input/tests/${case}/DeceasedDateTime
# cp output/Bundle-ExampleDeceasedDateTime.json input/tests/${case}/DeceasedDateTime
# mkdir -p input/tests/${case}/PatientOMRS0
# cp output/Bundle-ExampleOMRS0.json input/tests/${case}/PatientOMRS0
# done
echo "Exit code: ${?}"