From 495415463bb20059e2097cf8e7c7811a7738784b Mon Sep 17 00:00:00 2001 From: Richard Stanley <2528387+citizenrich@users.noreply.github.com> Date: Tue, 9 Aug 2022 20:27:36 -0400 Subject: [PATCH] add sanity check --- _load.sh | 4 +++- _sanity.sh | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 _sanity.sh diff --git a/_load.sh b/_load.sh index a38dbaf..a6f64ab 100755 --- a/_load.sh +++ b/_load.sh @@ -5,11 +5,13 @@ export FHIR="https://cloud.alphora.com/sandbox/r4/cqm/fhir" # export FHIR="http://localhost:8080/cqf-ruler-r4/fhir" # load our revised file +echo "Loading revised file" cat ./preparedsynthea.json | curl -X POST -H "Content-Type: application/fhir+json;charset=utf-8" --data @- ${FHIR} # for testing also load on public hapi fhir since alphora can't be search-queried identifier +echo "Loading revised file" cat ./preparedsynthea.json | curl -X POST -H "Content-Type: application/fhir+json;charset=utf-8" --data @- 'http://hapi.fhir.org/baseR4' -rm output/fhir/hospital* +rm output/fhir/hospital* || true cat output/fhir/practitioner*.json | curl -X POST -H "Content-Type: application/fhir+json;charset=utf-8" --data @- ${FHIR} # todo: loads org stuff twice, but doesn't hurt anything diff --git a/_sanity.sh b/_sanity.sh new file mode 100755 index 0000000..1f5ac85 --- /dev/null +++ b/_sanity.sh @@ -0,0 +1,10 @@ +#/usr/bin/env bash + +# sanity checks +for filename in output/fhir/*.json +do + echo $filename + cat $filename | grep "HIV" +done + +