Skip to content

Commit

Permalink
add sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
citizenrich committed Aug 10, 2022
1 parent 28b1e23 commit 4954154
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions _sanity.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#/usr/bin/env bash

# sanity checks
for filename in output/fhir/*.json
do
echo $filename
cat $filename | grep "HIV"
done


0 comments on commit 4954154

Please sign in to comment.