-
Notifications
You must be signed in to change notification settings - Fork 18
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 #1262 from samply/fix/concurrent-db-iterator-usage
Fix Concurrent Use of KV Iterators
- Loading branch information
Showing
40 changed files
with
685 additions
and
509 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
. "$SCRIPT_DIR/util.sh" | ||
|
||
BASE="http://localhost:8080/fhir" | ||
TYPE=$1 | ||
QUERY=$2 | ||
EXPECTED_SIZE=$3 | ||
ACTUAL_SIZE=$(blazectl --server "$BASE" download "$TYPE" -q "$QUERY" 2>/dev/null | jq -r .subject.reference | sort -u | wc -l | xargs) | ||
|
||
test "number of patients" "$ACTUAL_SIZE" "$EXPECTED_SIZE" |
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,19 @@ | ||
library "inpatient-stress" | ||
using FHIR version '4.0.0' | ||
include FHIRHelpers version '4.0.0' | ||
|
||
codesystem sct: 'http://snomed.info/sct' | ||
codesystem act: 'http://terminology.hl7.org/CodeSystem/v3-ActCode' | ||
|
||
context Patient | ||
|
||
define Stress: | ||
[Condition: Code '73595000' from sct] | ||
|
||
define "Inpatient Encounter": | ||
[Encounter: class in Code 'IMP' from act] | ||
|
||
define InInitialPopulation: | ||
exists Stress C | ||
with "Inpatient Encounter" E | ||
such that C.encounter.reference = 'Encounter/' + E.id |
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 @@ | ||
library: .github/scripts/cql/inpatient-stress.cql | ||
group: | ||
- type: Patient | ||
population: | ||
- expression: InInitialPopulation |
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.