generated from openhie/empty-fhir-ig-custom
-
Notifications
You must be signed in to change notification settings - Fork 1
/
_processDecisionTables.sh
21 lines (19 loc) · 1.13 KB
/
_processDecisionTables.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#DO NOT EDIT WITH WINDOWS
tooling_jar=tooling-1.3.1-SNAPSHOT-jar-with-dependencies.jar
input_cache_path=./input-cache
decisiontables_filename="WHO-SRH-21.2-eng.xlsx"
decisiontables_sheetname="ANC.DT.01 Danger signs,ANC.DT.02 HEADSS assessment,ANC.DT.03 Check symptoms,ANC.DT.04-05 Physical exam,ANC.DT.06 Physical exam refer,ANC.DT.07–14 Laboratory&imaging,ANC.DT.15 Behaviour counselling,ANC.DT.16 Dietary counselling,ANC.DT.17–24 Diagnosis & treat,ANC.DT.25 Anaemia IFA,ANC.DT.26 Nutrition–Ca+VitA,ANC.DT.27–30 Risk counselling,ANC.DT.31–32 Immunizations,ANC.DT.33–35General counselling,ANC.DT.36-37 IPV ,ANC.DT.38 Deworming & malaria"
set -e
tooling=$input_cache_path/$tooling_jar
if test -f "$tooling"; then
JAVA -jar $tooling -ProcessDecisionTables -pts=./input/l2/"$decisiontables_filename" -dtpf="ANC.DT." -op=.
else
tooling=../$tooling_jar
echo $tooling
if test -f "$tooling"; then
JAVA -jar $tooling -ProcessDecisionTables -pts=./input/l2/"$decisiontables_filename" -dtpf="ANC.DT." -op=.
else
echo ProcessDecisionTables NOT FOUND in input-cache or parent folder. Please run _updateCQFTooling. Aborting...
fi
fi