-
Notifications
You must be signed in to change notification settings - Fork 23
/
_refresh.bat
33 lines (27 loc) · 1.41 KB
/
_refresh.bat
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
@ECHO OFF
SET tooling_jar=tooling-1.3.1-SNAPSHOT-jar-with-dependencies.jar
SET input_cache_path=%~dp0input-cache
SET ig_resource_path=%~dp0input\connectathon.xml
rem measure_to_refresh_path=%~dp0/input/resources/measure/measure-EXM104-8.2.000.json
ECHO Checking internet connection...
PING tx.fhir.org -n 1 -w 1000 | FINDSTR TTL && GOTO isonline
ECHO We're offline...
SET fsoption=
GOTO igpublish
:isonline
ECHO We're online, setting publish to the Connectathon sandbox FHIR server
SET fsoption=-fs https://cqm-sandbox.alphora.com/cqf-ruler-r4/fhir/
:igpublish
SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
IF EXIST "%input_cache_path%\%tooling_jar%" (
ECHO running: JAVA -jar "%input_cache_path%\%tooling_jar%" -RefreshIG -ini=%~dp0ig.ini -t -d -p -v
JAVA -jar "%input_cache_path%\%tooling_jar%" -RefreshIG -ini=%~dp0ig.ini -t -d -p -v %fsoption%
rem JAVA -jar "%input_cache_path%\%tooling_jar%" -RefreshIG -ini=%~dp0ig.ini -mtrp="%measure_to_refresh_path%" -t -d -p -v %fsoption%
) ELSE If exist "..\%tooling_jar%" (
ECHO running: JAVA -jar "..\%tooling_jar%" -RefreshIG -ini=%~dp0ig.ini -t -d -p -v
JAVA -jar "..\%tooling_jar%" -RefreshIG -ini=%~dp0\ig.ini -t -d -p -v %fsoption%
rem JAVA -jar "%input_cache_path%\%tooling_jar%" -RefreshIG -ini=%~dp0ig.ini -mtrp="%measure_to_refresh_path%" -t -d -p -v %fsoption%
) ELSE (
ECHO IG Refresh NOT FOUND in input-cache or parent folder. Please run _updateRefreshIG. Aborting...
)
PAUSE