Skip to content

Commit dfe0ceb

Browse files
committed
[WIP] Implement ValueSet References
Closes: #110
1 parent 6342ed6 commit dfe0ceb

File tree

71 files changed

+2377
-221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2377
-221
lines changed

.clj-kondo/root/config.edn

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
blaze.middleware.fhir.db db
8181
blaze.rest-api.header header
8282
blaze.scheduler sched
83+
blaze.terminology-service ts
8384
blaze.test-util tu
8485
blaze.util u
8586
buddy.auth auth

.github/value-set-expand/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"http://fhir.de/CodeSystem/KontaktDiagnoseProzedur","hospital-main-diagnosis"
2+
"http://fhir.de/CodeSystem/KontaktDiagnoseProzedur","principle-DRG"
3+
"http://fhir.de/CodeSystem/KontaktDiagnoseProzedur","secondary-DRG"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","AOP"
2+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","HSA"
3+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","PIA"
4+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","SPZ"
5+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","ASV"
6+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","KIA"
7+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","DRG"
8+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","PEPP"
9+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","VNSB"
10+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","AP"
11+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","SPB"
12+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","WLU"
13+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","WLA"
14+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","PS"
15+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","SZ"
16+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","KV"
17+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","BG"
18+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","SL"
19+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","KEK"
20+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","IA"
21+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","MVZ"
22+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","IV"
23+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","DMP"
24+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","REHA"
25+
"http://fhir.de/CodeSystem/dkgev/Abrechnungsart","PSY"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"http://fhir.de/CodeSystem/KontaktDiagnoseProzedur","surgery-diagnosis"
2+
"http://fhir.de/CodeSystem/KontaktDiagnoseProzedur","department-main-diagnosis"
3+
"http://fhir.de/CodeSystem/KontaktDiagnoseProzedur","infection-control-diagnosis"
4+
"http://fhir.de/CodeSystem/KontaktDiagnoseProzedur","cause-of-death"
5+
"http://terminology.hl7.org/CodeSystem/diagnosis-role","AD"
6+
"http://terminology.hl7.org/CodeSystem/diagnosis-role","DD"

.github/value-set-expand/expand.sh

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash -e
2+
3+
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
4+
. "$SCRIPT_DIR/../scripts/util.sh"
5+
6+
BASE="http://localhost:8080/fhir"
7+
8+
expand() {
9+
curl -sH "Accept: application/fhir+json" "$BASE/ValueSet/\$expand?url=$1" | jq -r '.expansion.contains[] | [.system, .code] | @csv'
10+
}
11+
12+
test() {
13+
if [ "$2" = "$(cat "$1.csv")" ]; then
14+
echo "✅ the $1 matches"
15+
else
16+
echo "🆘 the $1 is $2, expected $(cat "$1.csv")"
17+
exit 1
18+
fi
19+
}
20+
21+
test "Abrechnungsart" "$(expand "http://fhir.de/ValueSet/dkgev/Abrechnungsart")"
22+
test "AbrechnungsDiagnoseProzedur" "$(expand "http://fhir.de/ValueSet/AbrechnungsDiagnoseProzedur")"
23+
test "Diagnosesubtyp" "$(expand "http://fhir.de/ValueSet/Diagnosesubtyp")"
24+
25+
test "identifier-type-codes" "$(expand "https://www.medizininformatik-initiative.de/fhir/core/modul-fall/ValueSet/identifier-type-codes")"
26+
test "location-physical-type" "$(expand "https://www.medizininformatik-initiative.de/fhir/core/modul-fall/ValueSet/location-physical-type")"
27+
test "mii-vs-consent-answer" "$(expand "https://www.medizininformatik-initiative.de/fhir/modul-consent/ValueSet/mii-vs-consent-answer")"
28+
test "mii-vs-consent-policy" "$(expand "https://www.medizininformatik-initiative.de/fhir/modul-consent/ValueSet/mii-vs-consent-policy")"
29+
test "mii-vs-consent-signaturetypes" "$(expand "https://www.medizininformatik-initiative.de/fhir/modul-consent/ValueSet/mii-vs-consent-signaturetypes")"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"http://terminology.hl7.org/CodeSystem/v2-0203","ACSN"
2+
"http://terminology.hl7.org/CodeSystem/v2-0203","BRN"
3+
"http://terminology.hl7.org/CodeSystem/v2-0203","DL"
4+
"http://terminology.hl7.org/CodeSystem/v2-0203","DR"
5+
"http://terminology.hl7.org/CodeSystem/v2-0203","EN"
6+
"http://terminology.hl7.org/CodeSystem/v2-0203","FILL"
7+
"http://terminology.hl7.org/CodeSystem/v2-0203","JHN"
8+
"http://terminology.hl7.org/CodeSystem/v2-0203","MCN"
9+
"http://terminology.hl7.org/CodeSystem/v2-0203","MD"
10+
"http://terminology.hl7.org/CodeSystem/v2-0203","MR"
11+
"http://terminology.hl7.org/CodeSystem/v2-0203","NIIP"
12+
"http://terminology.hl7.org/CodeSystem/v2-0203","PLAC"
13+
"http://terminology.hl7.org/CodeSystem/v2-0203","PPN"
14+
"http://terminology.hl7.org/CodeSystem/v2-0203","PRN"
15+
"http://terminology.hl7.org/CodeSystem/v2-0203","SB"
16+
"http://terminology.hl7.org/CodeSystem/v2-0203","SNO"
17+
"http://terminology.hl7.org/CodeSystem/v2-0203","TAX"
18+
"http://terminology.hl7.org/CodeSystem/v2-0203","UDI"
19+
"http://terminology.hl7.org/CodeSystem/v2-0203","VN"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"http://terminology.hl7.org/CodeSystem/location-physical-type","wa"
2+
"http://terminology.hl7.org/CodeSystem/location-physical-type","ro"
3+
"http://terminology.hl7.org/CodeSystem/location-physical-type","bd"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.2","2.16.840.1.113883.3.1937.777.24.5.2.3"
2+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.2","2.16.840.1.113883.3.1937.777.24.5.2.2"
3+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.2","2.16.840.1.113883.3.1937.777.24.5.2.1"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.1"
2+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.44"
3+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.48"
4+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.10"
5+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.14"
6+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.18"
7+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.24"
8+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.50"
9+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.54"
10+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.26"
11+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.30"
12+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.32"
13+
"urn:oid:2.16.840.1.113883.3.1937.777.24.5.3","2.16.840.1.113883.3.1937.777.24.5.3.35"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"urn:iso-astm:E1762-95:2013","1.2.840.10065.1.12.1.7"
2+
"urn:iso-astm:E1762-95:2013","1.2.840.10065.1.12.1.11"

0 commit comments

Comments
 (0)