-
Notifications
You must be signed in to change notification settings - Fork 1
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 #231 from medizininformatik-initiative/release-v2.4.0
Release v2.4.0
- Loading branch information
Showing
40 changed files
with
884 additions
and
520 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
40 changes: 40 additions & 0 deletions
40
.github/integration-test/no-auth-cohort-enabled/docker-compose.yml
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,40 @@ | ||
services: | ||
data-store: | ||
image: "samply/blaze:0.30" | ||
healthcheck: | ||
test: ["CMD-SHELL", "curl --fail -s http://localhost:8080/health"] | ||
interval: "5s" | ||
timeout: "5s" | ||
retries: "3" | ||
start_period: "60s" | ||
environment: | ||
BASE_URL: "http://data-store:8080" | ||
JAVA_TOOL_OPTIONS: "-Xmx1g" | ||
LOG_LEVEL: "debug" | ||
ports: | ||
- "8082:8080" | ||
volumes: | ||
- "data-store-data:/app/data" | ||
flare: | ||
image: "flare:latest" | ||
healthcheck: | ||
test: ["CMD-SHELL", "curl --fail -s http://localhost:8080/cache/stats"] | ||
interval: "5s" | ||
timeout: "5s" | ||
retries: "3" | ||
start_period: "60s" | ||
environment: | ||
JAVA_TOOL_OPTIONS: "-Xmx1g" | ||
FLARE_FHIR_SERVER: "http://data-store:8080/fhir" | ||
LOG_LEVEL: "debug" | ||
FLARE_ENABLE_COHORT_ENDPOINT: true | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- "flare-cache:/app/cache" | ||
- "../synthea-test-mapping:/app/ontology" | ||
depends_on: | ||
- data-store | ||
volumes: | ||
data-store-data: | ||
flare-cache: |
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,5 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
|
||
blazectl --no-progress --server http://localhost:8082/fhir upload "$SCRIPT_DIR/../../test-data/synthea" |
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
Binary file not shown.
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,15 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
. "$SCRIPT_DIR/util.sh" | ||
|
||
BASE="http://localhost:8080" | ||
EXPECTED_ARRAY_LENGTH=$2 | ||
EXPECTED_ID_LENGTH=$3 | ||
CURL_RESPONSE=$(curl -s "$BASE/query/execute-cohort" -H "Content-Type: application/sq+json" -d @"$SCRIPT_DIR/../integration-test/query-$1.json") | ||
|
||
ACTUAL_PAT_ID_ARRAY_LENGTH=$(echo "$CURL_RESPONSE" | jq '. | length') | ||
ACTUAL_PAT_ID_ARRAY_ID_LENGTH=$(echo "$CURL_RESPONSE" | jq '.[] | length' | uniq) | ||
|
||
test "cohort length" $ACTUAL_PAT_ID_ARRAY_LENGTH $EXPECTED_ARRAY_LENGTH | ||
test "cohort id length" $ACTUAL_PAT_ID_ARRAY_ID_LENGTH $EXPECTED_ID_LENGTH |
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,10 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
. "$SCRIPT_DIR/util.sh" | ||
|
||
BASE="http://localhost:8080" | ||
STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" "$BASE/query/execute-cohort" -H "Content-Type: application/sq+json" -d @"$SCRIPT_DIR/../integration-test/query-$1.json") | ||
EXPECTED_STATUS_CODE=404 | ||
|
||
test "cohort endpoint status code" "$STATUS_CODE" $EXPECTED_STATUS_CODE |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.mvn | ||
.idea/ | ||
cache | ||
target | ||
/ontology/mapping.zip |
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.