-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1043 from samply/release-v0.22.0
Release v0.22.0
- Loading branch information
Showing
398 changed files
with
32,136 additions
and
1,753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
. "$SCRIPT_DIR/util.sh" | ||
|
||
BASE="http://localhost:8080/fhir" | ||
|
||
echo "checking index.html using the Accept header..." | ||
HEADERS=$(curl -s -H 'Accept: text/html' -o /dev/null -D - "$BASE") | ||
CONTENT_TYPE_HEADER=$(echo "$HEADERS" | grep -i 'Content-Type' | tr -d '\r' | cut -d' ' -f2) | ||
|
||
test "Content-Type header" "$CONTENT_TYPE_HEADER" "text/html" | ||
|
||
echo "checking index.html using the _format query param..." | ||
HEADERS=$(curl -s -o /dev/null -D - "$BASE?_format=html") | ||
CONTENT_TYPE_HEADER=$(echo "$HEADERS" | grep -i 'Content-Type' | tr -d '\r' | cut -d' ' -f2) | ||
|
||
test "Content-Type header" "$CONTENT_TYPE_HEADER" "text/html" | ||
|
||
echo "checking version.json..." | ||
HEADERS=$(curl -s -H 'Accept: text/html' -o /dev/null -D - "$BASE/__frontend/version.json") | ||
CONTENT_TYPE_HEADER=$(echo "$HEADERS" | grep -i 'Content-Type' | tr -d '\r' | cut -d' ' -f2) | ||
|
||
test "Content-Type header" "$CONTENT_TYPE_HEADER" "application/json" | ||
|
||
echo "checking system-search using the Accept header..." | ||
HEADERS=$(curl -s -H 'Accept: application/fhir+json' -o /dev/null -D - "$BASE") | ||
CONTENT_TYPE_HEADER=$(echo "$HEADERS" | grep -i 'Content-Type' | tr -d '\r' | cut -d' ' -f2) | ||
|
||
test "Content-Type header" "$CONTENT_TYPE_HEADER" "application/fhir+json;charset=utf-8" | ||
|
||
echo "checking system-search using the _format query param..." | ||
HEADERS=$(curl -s -o /dev/null -D - "$BASE?_format=json") | ||
CONTENT_TYPE_HEADER=$(echo "$HEADERS" | grep -i 'Content-Type' | tr -d '\r' | cut -d' ' -f2) | ||
|
||
test "Content-Type header" "$CONTENT_TYPE_HEADER" "application/fhir+json;charset=utf-8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
. "$SCRIPT_DIR/util.sh" | ||
|
||
BASE="http://localhost:8080/fhir" | ||
PATIENT_IDENTIFIER="X79746011X" | ||
PATIENT_ID=$(curl -s "$BASE/Patient?identifier=$PATIENT_IDENTIFIER" | jq -r '.entry[0].resource.id') | ||
BUNDLE=$(curl -s "$BASE/Patient/$PATIENT_ID/\$everything") | ||
ACTUAL_SIZE=$(echo "$BUNDLE" | jq -r .total) | ||
|
||
test "size" "$ACTUAL_SIZE" "3424" | ||
|
||
test "type counts" "$(echo "$BUNDLE" | jq -r '.entry | group_by(.resource.resourceType)[] | [.[0].resource.resourceType, length] | @csv')" "$(cat "$SCRIPT_DIR/patient-everything/$PATIENT_IDENTIFIER-type-counts.csv")" |
16 changes: 16 additions & 0 deletions
16
.github/scripts/patient-everything/X79746011X-type-counts.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"CarePlan",5 | ||
"CareTeam",10 | ||
"Claim",176 | ||
"Condition",15 | ||
"DiagnosticReport",231 | ||
"DocumentReference",78 | ||
"Encounter",78 | ||
"ExplanationOfBenefit",78 | ||
"ImagingStudy",45 | ||
"Immunization",13 | ||
"MedicationAdministration",180 | ||
"MedicationRequest",98 | ||
"Observation",2265 | ||
"Patient",1 | ||
"Procedure",150 | ||
"Provenance",1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash -e | ||
|
||
# | ||
# This script tests that an update without changes of the resource content | ||
# doesn't create a new history entry. | ||
# | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
. "$SCRIPT_DIR/util.sh" | ||
|
||
bundle() { | ||
cat <<END | ||
{ | ||
"resourceType": "Bundle", | ||
"type": "transaction", | ||
"entry": [ | ||
{ | ||
"resource": $1, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Patient/$2" | ||
} | ||
} | ||
] | ||
} | ||
END | ||
} | ||
|
||
BASE="http://localhost:8080/fhir" | ||
PATIENT_IDENTIFIER="X79746011X" | ||
PATIENT=$(curl -sH "Accept: application/fhir+json" "$BASE/Patient?identifier=$PATIENT_IDENTIFIER" | jq -cM '.entry[0].resource') | ||
ID="$(echo "$PATIENT" | jq -r .id)" | ||
VERSION_ID="$(echo "$PATIENT" | jq -r .meta.versionId)" | ||
|
||
# Update Interaction | ||
RESULT=$(curl -sXPUT -H "Content-Type: application/fhir+json" -d "$PATIENT" "$BASE/Patient/$ID") | ||
RESULT_VERSION_ID="$(echo "$RESULT" | jq -r .meta.versionId)" | ||
|
||
test "update versionId" "$RESULT_VERSION_ID" "$VERSION_ID" | ||
|
||
# Transaction Interaction | ||
RESULT=$(curl -sH "Content-Type: application/fhir+json" -H "Prefer: return=representation" -d "$(bundle "$PATIENT" "$ID")" "$BASE") | ||
RESULT_VERSION_ID="$(echo "$RESULT" | jq -r '.entry[0].resource.meta.versionId')" | ||
|
||
test "transaction versionId" "$RESULT_VERSION_ID" "$VERSION_ID" | ||
|
||
HISTORY_TOTAL=$(curl -sH "Accept: application/fhir+json" "$BASE/Patient/$ID/_history" | jq -r '.total') | ||
|
||
test "history total" "$HISTORY_TOTAL" "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ target | |
classes | ||
.cpcache | ||
.cache | ||
blaze-load-tests/node_modules | ||
.nrepl-port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.