Skip to content

Commit fe92fed

Browse files
committed
Update Shipped Structure Definitions
1 parent a1a8dda commit fe92fed

File tree

97 files changed

+558569
-10335
lines changed

Some content is hidden

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

97 files changed

+558569
-10335
lines changed

src/test/java/de/medizininformatikinitiative/torch/CdsBlackBoxIT.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,12 @@ void testExamples() throws IOException {
102102
.containsExactlyInAnyOrder(nodeFromValueString("B05.3"), nodeFromValueString("I29578"), nodeFromValueString("13420004")));
103103

104104
assertThat(patientBundles).satisfiesOnlyOnce(bundle ->
105-
assertThat(bundle).extractResourceById("Condition", "mii-exa-test-data-patient-3-diagnose-1").isNotNull()
106-
.extractElementsAt("code.coding.code")
107-
.containsExactlyInAnyOrder(nodeFromValueString("C21.8"), nodeFromValueString("447886005"), nodeFromValueString("I29975"), nodeFromValueString("8140/3")));
105+
{
106+
System.out.println("Bundle under test: " + bundle);
107+
assertThat(bundle).extractResourceById("Condition", "mii-exa-test-data-patient-3-diagnose-1").isNotNull()
108+
.extractElementsAt("code.coding.code")
109+
.containsExactlyInAnyOrder(nodeFromValueString("C21.8"), nodeFromValueString("447886005"), nodeFromValueString("I29975"));
110+
});
108111

109112
assertThat(patientBundles).satisfiesOnlyOnce(bundle ->
110113
assertThat(bundle).extractResourceById("Condition", "mii-exa-test-data-patient-4-diagnose-1").isNotNull()

src/test/resources/InputResources/Condition/Condition-mii-exa-test-data-patient-3-diagnose-1.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
"code": "447886005",
2525
"version": "http://snomed.info/sct/900000000000207008/version/20230731",
2626
"display": "Adenocarcinoma of anorectum (disorder)"
27-
},
28-
{
29-
"system": "http://terminology.hl7.org/CodeSystem/icd-o-3",
30-
"code": "8140/3",
31-
"display": "Adenokarzinom o.n.A."
3227
}
3328
]
3429
},
@@ -45,10 +40,6 @@
4540
"code": "281088000",
4641
"version": "http://snomed.info/sct/900000000000207008/version/20230731",
4742
"display": "Structure of anus and/or rectum (body structure)"
48-
},
49-
{
50-
"system": "http://terminology.hl7.org/CodeSystem/icd-o-3",
51-
"code": "C21.8"
5243
}
5344
]
5445
}

structureDefinitions/Profile_MII_Consent_DocumentReference.json

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"resourceType": "StructureDefinition",
33
"id": "56375452-bfa1-4111-af7c-5b5ba9a1857c",
44
"url": "https://www.medizininformatik-initiative.de/fhir/modul-consent/StructureDefinition/mii-pr-consent-documentreference",
5-
"version": "1.0.7",
5+
"version": "1.0.8",
66
"name": "MII_PR_Consent_DocumentReference",
77
"title": "Profile - MI-I - Consent - DocumentReference",
88
"status": "active",
@@ -278,9 +278,6 @@
278278
"code": "code"
279279
}
280280
],
281-
"condition": [
282-
"ele-1"
283-
],
284281
"constraint": [
285282
{
286283
"key": "ele-1",
@@ -291,6 +288,8 @@
291288
"source": "http://hl7.org/fhir/StructureDefinition/Element"
292289
}
293290
],
291+
"isModifier": false,
292+
"isSummary": false,
294293
"binding": {
295294
"extension": [
296295
{
@@ -309,13 +308,7 @@
309308
"strength": "preferred",
310309
"description": "A human language.",
311310
"valueSet": "http://hl7.org/fhir/ValueSet/languages"
312-
},
313-
"mapping": [
314-
{
315-
"identity": "rim",
316-
"map": "n/a"
317-
}
318-
]
311+
}
319312
},
320313
{
321314
"id": "DocumentReference.text",
@@ -473,7 +466,7 @@
473466
"human": "Must have either extensions or value[x], not both",
474467
"expression": "extension.exists() != value.exists()",
475468
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
476-
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
469+
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
477470
}
478471
],
479472
"mapping": [
@@ -548,7 +541,7 @@
548541
"human": "Must have either extensions or value[x], not both",
549542
"expression": "extension.exists() != value.exists()",
550543
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
551-
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
544+
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
552545
}
553546
],
554547
"isModifier": true,
@@ -1131,7 +1124,7 @@
11311124
"human": "SHALL have a contained resource if a local reference is provided",
11321125
"expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
11331126
"xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
1134-
"source": "http://hl7.org/fhir/StructureDefinition/Provenance"
1127+
"source": "http://hl7.org/fhir/StructureDefinition/Reference"
11351128
}
11361129
],
11371130
"mustSupport": true,
@@ -1272,7 +1265,7 @@
12721265
"human": "Must have either extensions or value[x], not both",
12731266
"expression": "extension.exists() != value.exists()",
12741267
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
1275-
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
1268+
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
12761269
}
12771270
],
12781271
"mapping": [
@@ -1620,7 +1613,7 @@
16201613
"human": "SHALL have a contained resource if a local reference is provided",
16211614
"expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
16221615
"xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
1623-
"source": "http://hl7.org/fhir/StructureDefinition/Provenance"
1616+
"source": "http://hl7.org/fhir/StructureDefinition/Reference"
16241617
}
16251618
],
16261619
"isSummary": true,
@@ -1710,7 +1703,7 @@
17101703
"human": "SHALL have a contained resource if a local reference is provided",
17111704
"expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
17121705
"xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
1713-
"source": "http://hl7.org/fhir/StructureDefinition/Provenance"
1706+
"source": "http://hl7.org/fhir/StructureDefinition/Reference"
17141707
}
17151708
],
17161709
"mapping": [
@@ -1801,7 +1794,7 @@
18011794
"human": "SHALL have a contained resource if a local reference is provided",
18021795
"expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
18031796
"xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
1804-
"source": "http://hl7.org/fhir/StructureDefinition/Provenance"
1797+
"source": "http://hl7.org/fhir/StructureDefinition/Reference"
18051798
}
18061799
],
18071800
"mapping": [
@@ -1981,9 +1974,10 @@
19811974
"human": "Must have either extensions or value[x], not both",
19821975
"expression": "extension.exists() != value.exists()",
19831976
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
1984-
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
1977+
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
19851978
}
19861979
],
1980+
"isModifier": false,
19871981
"mapping": [
19881982
{
19891983
"identity": "rim",
@@ -2047,7 +2041,7 @@
20472041
"human": "Must have either extensions or value[x], not both",
20482042
"expression": "extension.exists() != value.exists()",
20492043
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
2050-
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
2044+
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
20512045
}
20522046
],
20532047
"isModifier": true,
@@ -2175,7 +2169,7 @@
21752169
"human": "SHALL have a contained resource if a local reference is provided",
21762170
"expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
21772171
"xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
2178-
"source": "http://hl7.org/fhir/StructureDefinition/Provenance"
2172+
"source": "http://hl7.org/fhir/StructureDefinition/Reference"
21792173
}
21802174
],
21812175
"isSummary": true,
@@ -2501,9 +2495,10 @@
25012495
"human": "Must have either extensions or value[x], not both",
25022496
"expression": "extension.exists() != value.exists()",
25032497
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
2504-
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
2498+
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
25052499
}
25062500
],
2501+
"isModifier": false,
25072502
"mapping": [
25082503
{
25092504
"identity": "rim",
@@ -2567,7 +2562,7 @@
25672562
"human": "Must have either extensions or value[x], not both",
25682563
"expression": "extension.exists() != value.exists()",
25692564
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
2570-
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
2565+
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
25712566
}
25722567
],
25732568
"isModifier": true,
@@ -2630,7 +2625,7 @@
26302625
"human": "If the Attachment has data, it SHALL have a contentType",
26312626
"expression": "data.empty() or contentType.exists()",
26322627
"xpath": "not(exists(f:data)) or exists(f:contentType)",
2633-
"source": "http://hl7.org/fhir/StructureDefinition/DocumentReference"
2628+
"source": "http://hl7.org/fhir/StructureDefinition/Attachment"
26342629
}
26352630
],
26362631
"mustSupport": true,
@@ -2763,7 +2758,7 @@
27632758
"human": "Must have either extensions or value[x], not both",
27642759
"expression": "extension.exists() != value.exists()",
27652760
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
2766-
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
2761+
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
27672762
}
27682763
],
27692764
"mapping": [
@@ -2944,7 +2939,7 @@
29442939
"definition": "The actual data of the attachment - a sequence of bytes, base64 encoded.",
29452940
"comment": "The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON.",
29462941
"requirements": "The data needs to able to be transmitted inline.",
2947-
"min": 1,
2942+
"min": 0,
29482943
"max": "1",
29492944
"base": {
29502945
"path": "Attachment.data",
@@ -3023,6 +3018,7 @@
30233018
"source": "http://hl7.org/fhir/StructureDefinition/Element"
30243019
}
30253020
],
3021+
"mustSupport": true,
30263022
"isSummary": true,
30273023
"mapping": [
30283024
{
@@ -3460,9 +3456,10 @@
34603456
"human": "Must have either extensions or value[x], not both",
34613457
"expression": "extension.exists() != value.exists()",
34623458
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
3463-
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
3459+
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
34643460
}
34653461
],
3462+
"isModifier": false,
34663463
"mapping": [
34673464
{
34683465
"identity": "rim",
@@ -3526,7 +3523,7 @@
35263523
"human": "Must have either extensions or value[x], not both",
35273524
"expression": "extension.exists() != value.exists()",
35283525
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
3529-
"source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
3526+
"source": "http://hl7.org/fhir/StructureDefinition/Extension"
35303527
}
35313528
],
35323529
"isModifier": true,
@@ -3593,7 +3590,7 @@
35933590
"human": "SHALL have a contained resource if a local reference is provided",
35943591
"expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
35953592
"xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
3596-
"source": "http://hl7.org/fhir/StructureDefinition/Provenance"
3593+
"source": "http://hl7.org/fhir/StructureDefinition/Reference"
35973594
}
35983595
],
35993596
"mapping": [
@@ -3752,7 +3749,7 @@
37523749
"human": "If present, start SHALL have a lower value than end",
37533750
"expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
37543751
"xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
3755-
"source": "http://hl7.org/fhir/StructureDefinition/Consent"
3752+
"source": "http://hl7.org/fhir/StructureDefinition/Period"
37563753
}
37573754
],
37583755
"isSummary": true,
@@ -4011,7 +4008,7 @@
40114008
"human": "SHALL have a contained resource if a local reference is provided",
40124009
"expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
40134010
"xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
4014-
"source": "http://hl7.org/fhir/StructureDefinition/Provenance"
4011+
"source": "http://hl7.org/fhir/StructureDefinition/Reference"
40154012
}
40164013
],
40174014
"mapping": [
@@ -4090,7 +4087,7 @@
40904087
"human": "SHALL have a contained resource if a local reference is provided",
40914088
"expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
40924089
"xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
4093-
"source": "http://hl7.org/fhir/StructureDefinition/Provenance"
4090+
"source": "http://hl7.org/fhir/StructureDefinition/Reference"
40944091
}
40954092
],
40964093
"mapping": [
@@ -4131,4 +4128,4 @@
41314128
}
41324129
]
41334130
}
4134-
}
4131+
}

0 commit comments

Comments
 (0)