Skip to content

Commit

Permalink
Added Library files for updated CQL.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeaduncan committed Sep 20, 2023
1 parent d6eaf0b commit 1ce96c4
Show file tree
Hide file tree
Showing 18 changed files with 1,401 additions and 36 deletions.
12 changes: 5 additions & 7 deletions _refresh.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/bin/bash
#DO NOT EDIT WITH WINDOWS
tooling_jar=tooling-1.4.1-SNAPSHOT-jar-with-dependencies.jar
tooling_jar=tooling-cli-2.4.0.jar
input_cache_path=./input-cache
resources_path=$PWD/input/resources
ig_ini_path=./ig.ini
ig_ini_path=$PWD/ig.ini

set -e
echo Checking internet connection...
Expand All @@ -12,7 +11,6 @@ wget -q --spider tx.fhir.org
if [ $? -eq 0 ]; then
echo "Online"
fsoption=""
#"-fs http://cds-sandbox.alphora.com/cqf-ruler-r4/fhir/"
else
echo "Offline"
fsoption=""
Expand All @@ -22,13 +20,13 @@ echo "$fsoption"

tooling=$input_cache_path/$tooling_jar
if test -f "$tooling"; then
java -Xmx2048M -jar $tooling -RefreshIG -ini="$ig_ini_path" -t -d -p $fsoption
java -jar $tooling -RefreshIG -ini="$ig_ini_path" -d -p -t $fsoption
else
tooling=../$tooling_jar
echo $tooling
if test -f "$tooling"; then
java -Xmx2048M -jar $tooling -RefreshIG -ini="$ig_ini_path" -t -d -p $fsoption
java -jar $tooling -RefreshIG -ini="$ig_ini_path" -d -p -t $fsoption
else
echo IG Refresh NOT FOUND in input-cache or parent folder. Please run _updateCQFTooling. Aborting...
fi
fi
fi
15 changes: 7 additions & 8 deletions _updateCQFTooling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
#DO NOT EDIT WITH WINDOWS
#exit 1

r=snapshots
r=releases
g=org.opencds.cqf
a=tooling
v=1.4.1-SNAPSHOT
c=jar-with-dependencies
a=tooling-cli
v=2.4.0

dlurl='https://oss.sonatype.org/service/local/artifact/maven/redirect?r='${r}'&g='${g}'&a='${a}'&v='${v}'&c='${c}''
dlurl='https://oss.sonatype.org/service/local/artifact/maven/redirect?r='${r}'&g='${g}'&a='${a}'&v='${v}''

echo ${dlurl}

input_cache_path=./input-cache/
tooling_jar=tooling-1.4.1-SNAPSHOT-jar-with-dependencies.jar
tooling_jar=tooling-cli-2.4.0.jar

set -e
if ! type "curl" > /dev/null; then
Expand Down Expand Up @@ -53,10 +52,10 @@ fi

read -r -p "$message" response
if [[ "$response" =~ ^([yY])$ ]]; then
echo "Downloading most recent tooling to $jarlocationname - it's ~170 MB, so this may take a bit"
echo "Downloading most recent tooling to $jarlocationname - it's ~110 MB, so this may take a bit"
# wget "https://oss.sonatype.org/service/local/repositories/snapshots/content/org/opencds/cqf/tooling/1.0-SNAPSHOT/tooling-1.0-20200107.163002-6-jar-with-dependencies.jar" -O "$jarlocation"
curl $dlurl -L -o "$jarlocation" --create-dirs
echo "Download complete."
else
echo cancel...
fi
fi
22 changes: 1 addition & 21 deletions input/resources/device/cqf-tooling.json
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@
{
"resourceType": "Device",
"id": "cqf-tooling",
"meta": {
"profile": [ "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/device-softwaresystem-cqfm" ]
},
"manufacturer": "CQFramework",
"deviceName": [ {
"name": "cqf-tooling",
"type": "manufacturer-name"
} ],
"type": {
"coding": [ {
"system": "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/software-system-type",
"code": "tooling"
} ]
},
"version": [ {
"value": "1.4.1-SNAPSHOT"
} ]
}
{"resourceType":"Device","id":"cqf-tooling","meta":{"profile":["http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/device-softwaresystem-cqfm"]},"manufacturer":"CQFramework","deviceName":[{"name":"cqf-tooling","type":"manufacturer-name"}],"type":{"coding":[{"system":"http://hl7.org/fhir/us/cqfmeasures/CodeSystem/software-system-type","code":"tooling"}]},"version":[{"value":"2.4.0"}]}
91 changes: 91 additions & 0 deletions input/resources/library/FHIRCommon.json

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions input/resources/library/FHIRHelpers.json

Large diffs are not rendered by default.

Loading

0 comments on commit 1ce96c4

Please sign in to comment.