-
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.
Showing
60 changed files
with
1,894 additions
and
221 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,21 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
. "$SCRIPT_DIR/../util.sh" | ||
|
||
BASE="http://localhost:8080/fhir" | ||
|
||
expand() { | ||
curl -sH "Accept: application/fhir+json" "$BASE/ValueSet/\$expand?url=$1" | jq -r '[.expansion.contains[].code] | join(",")' | ||
} | ||
|
||
test "Abrechnungsart" "$(expand "http://fhir.de/ValueSet/dkgev/Abrechnungsart")" "AOP,HSA,PIA,SPZ,ASV,KIA,DRG,PEPP,VNSB,AP,SPB,WLU,WLA,PS,SZ,KV,BG,SL,KEK,IA,MVZ,IV,DMP,REHA,PSY" | ||
test "AbrechnungsDiagnoseProzedur" "$(expand "http://fhir.de/ValueSet/AbrechnungsDiagnoseProzedur")" "hospital-main-diagnosis,principle-DRG,secondary-DRG" | ||
test "Diagnosesubtyp" "$(expand "http://fhir.de/ValueSet/Diagnosesubtyp")" "surgery-diagnosis,department-main-diagnosis,infection-control-diagnosis,cause-of-death,AD,DD" | ||
|
||
test "mii-vs-fall-diagnosis-use" "$(expand "https://www.medizininformatik-initiative.de/fhir/core/modul-fall/ValueSet/mii-vs-fall-diagnosis-use")" "referral-diagnosis,treatment-diagnosis,surgery-diagnosis,department-main-diagnosis,infection-control-diagnosis,cause-of-death,AD,DD,CC,CM,pre-op,post-op,billing" | ||
test "identifier-type-codes" "$(expand "https://www.medizininformatik-initiative.de/fhir/core/modul-fall/ValueSet/identifier-type-codes")" "ACSN,BRN,DL,DR,EN,FILL,JHN,MCN,MD,MR,NIIP,PLAC,PPN,PRN,SB,SNO,TAX,UDI,VN" | ||
test "location-physical-type" "$(expand "https://www.medizininformatik-initiative.de/fhir/core/modul-fall/ValueSet/location-physical-type")" "wa,ro,bd" | ||
test "mii-vs-consent-answer" "$(expand "https://www.medizininformatik-initiative.de/fhir/modul-consent/ValueSet/mii-vs-consent-answer")" "2.16.840.1.113883.3.1937.777.24.5.2.3,2.16.840.1.113883.3.1937.777.24.5.2.2,2.16.840.1.113883.3.1937.777.24.5.2.1" | ||
test "mii-vs-consent-policy" "$(expand "https://www.medizininformatik-initiative.de/fhir/modul-consent/ValueSet/mii-vs-consent-policy")" "2.16.840.1.113883.3.1937.777.24.5.3.1,2.16.840.1.113883.3.1937.777.24.5.3.44,2.16.840.1.113883.3.1937.777.24.5.3.48,2.16.840.1.113883.3.1937.777.24.5.3.10,2.16.840.1.113883.3.1937.777.24.5.3.14,2.16.840.1.113883.3.1937.777.24.5.3.18,2.16.840.1.113883.3.1937.777.24.5.3.24,2.16.840.1.113883.3.1937.777.24.5.3.50,2.16.840.1.113883.3.1937.777.24.5.3.54,2.16.840.1.113883.3.1937.777.24.5.3.26,2.16.840.1.113883.3.1937.777.24.5.3.30,2.16.840.1.113883.3.1937.777.24.5.3.32,2.16.840.1.113883.3.1937.777.24.5.3.35" | ||
test "mii-vs-consent-signaturetypes" "$(expand "https://www.medizininformatik-initiative.de/fhir/modul-consent/ValueSet/mii-vs-consent-signaturetypes")" "1.2.840.10065.1.12.1.7,1.2.840.10065.1.12.1.11" |
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,17 @@ | ||
#!/bin/bash -e | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
|
||
BASE="http://localhost:8080/fhir" | ||
|
||
# Upload CodeSystem resources | ||
for file in "$SCRIPT_DIR"/CodeSystem-*.json; do | ||
echo "Uploading $file..." | ||
curl -H "Content-Type: application/fhir+json" -H "Prefer: return=minimal" -d @"$file" "$BASE/CodeSystem" | ||
done | ||
|
||
# Upload ValueSet resources | ||
for file in "$SCRIPT_DIR"/ValueSet-*.json; do | ||
echo "Uploading $file..." | ||
curl -H "Content-Type: application/fhir+json" -H "Prefer: return=minimal" -d @"$file" "$BASE/ValueSet" | ||
done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Operation \$expand on ValueSet | ||
|
||
> [!CAUTION] | ||
> The operation \$expand on ValueSet is currently **beta**. Only a basic functionality is implemented. | ||
The \$expand operation can be used to expand all codes of a ValueSet. | ||
|
||
``` | ||
GET [base]/ValueSet/$expand | ||
GET [base]/ValueSet/[id]/$expand | ||
``` | ||
|
||
The official documentation can be found [here][1]. | ||
|
||
[1]: <http://hl7.org/fhir/R4/valueset-operation-expand.html> |
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
9 changes: 9 additions & 0 deletions
9
modules/cql/src/blaze/elm/compiler/clinical_operators/impl.clj
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,9 @@ | ||
(ns blaze.elm.compiler.clinical-operators.impl | ||
(:require | ||
[blaze.elm.value-set :as value-set])) | ||
|
||
(defn contains-any? [value-set [code & codes]] | ||
(cond | ||
(nil? code) false | ||
(contains? value-set (value-set/from-code code)) true | ||
:else (recur value-set codes))) |
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.