-
Notifications
You must be signed in to change notification settings - Fork 4
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 #80 from gematik/feature/add-invalid-reference-exa…
…mples add invalids for references
- Loading branch information
Showing
10 changed files
with
356 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
API-Examples/2025-01-15/erp_fhir_infos/01_INVALID_fullUrl_and_id_missmatch.xml
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,52 @@ | ||
<Bundle xmlns="http://hl7.org/fhir"> | ||
<id value="erp-fhir-infos-01-INVALID-fullUrl-and-id-missmatch"/> | ||
<meta> | ||
<lastUpdated value="2025-01-15T15:29:00.434+00:00"/> | ||
</meta> | ||
<type value="collection"/> | ||
<timestamp value="2025-01-15T15:29:00.434+00:00"/> | ||
<entry> | ||
<fullUrl value="http://pvs.praxis-topp-gluecklich.local/fhir/Patient/b0e22b86-e7e9-46c1-80fe-e6e24442d77c"/> | ||
<resource> | ||
<Patient> | ||
<id value="43ed0c32-27e0-429c-a2fb-8f92518de721"/> | ||
<meta> | ||
<profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> | ||
</meta> | ||
<identifier> | ||
<type> | ||
<coding> | ||
<system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> | ||
<code value="GKV"/> | ||
</coding> | ||
</type> | ||
<system value="http://fhir.de/sid/gkv/kvid-10"/> | ||
<value value="X234567890"/> | ||
</identifier> | ||
<name> | ||
<use value="official"/> | ||
<family value="Ludger Königsstein"> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> | ||
<valueString value="Königsstein"/> | ||
</extension> | ||
</family> | ||
<given value="Ludger"/> | ||
</name> | ||
<birthDate value="1935-06-22"/> | ||
<address> | ||
<type value="both"/> | ||
<line value="Musterstr. 1"> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> | ||
<valueString value="1"/> | ||
</extension> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> | ||
<valueString value="Musterstr."/> | ||
</extension> | ||
</line> | ||
<city value="Berlin"/> | ||
<postalCode value="10623"/> | ||
</address> | ||
</Patient> | ||
</resource> | ||
</entry> | ||
</Bundle> |
67 changes: 67 additions & 0 deletions
67
API-Examples/2025-01-15/erp_fhir_infos/02_INVALID_mixed_reference.xml
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,67 @@ | ||
<Bundle xmlns="http://hl7.org/fhir"> | ||
<id value="erp-fhir-infos-02-INVALID-mixed-reference"/> | ||
<meta> | ||
<lastUpdated value="2025-01-15T15:29:00.434+00:00"/> | ||
</meta> | ||
<type value="document"/> | ||
<timestamp value="2025-01-15T15:29:00.434+00:00"/> | ||
<entry> | ||
<fullUrl value="urn:uuid:b0e22b86-e7e9-46c1-80fe-e6e24442d77c"/> | ||
<resource> | ||
<Composition> | ||
<id value="b0e22b86-e7e9-46c1-80fe-e6e24442d77c"/> | ||
<meta> | ||
<profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Composition|1.1.0"/> | ||
</meta> | ||
<status value="final"/> | ||
<type> | ||
<coding> | ||
<system value="https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_FORMULAR_ART"/> | ||
<code value="e16A"/> | ||
</coding> | ||
</type> | ||
<subject> | ||
<reference value="Patient/17b0721b-d538-4455-b1bb-2c2dfc19d234"/> | ||
</subject> | ||
<date value="2025-01-15T15:29:00.434+00:00"/> | ||
<author> | ||
<reference value="Practitioner/407974ea-b5c7-47e5-be09-9310a00afb31"/> | ||
<type value="Practitioner"/> | ||
</author> | ||
<author> | ||
<type value="Device"/> | ||
<identifier> | ||
<system value="https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer"/> | ||
<value value="Y/400/1910/36/346"/> | ||
</identifier> | ||
</author> | ||
<title value="elektronische Arzneimittelverordnung"/> | ||
<custodian> | ||
<reference value="Organization/94662b9e-af55-4206-b52a-7e086d0d4d82"/> | ||
</custodian> | ||
<section> | ||
<code> | ||
<coding> | ||
<system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> | ||
<code value="Prescription"/> | ||
</coding> | ||
</code> | ||
<entry> | ||
<reference value="MedicationRequest/4e8c932a-bef5-443d-9e85-64bca6d53d53"/> | ||
</entry> | ||
</section> | ||
<section> | ||
<code> | ||
<coding> | ||
<system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type"/> | ||
<code value="Coverage"/> | ||
</coding> | ||
</code> | ||
<entry> | ||
<reference value="Coverage/a2ef1193-0739-46de-bc77-65f13feaa7d3"/> | ||
</entry> | ||
</section> | ||
</Composition> | ||
</resource> | ||
</entry> | ||
</Bundle> |
96 changes: 96 additions & 0 deletions
96
API-Examples/2025-01-15/erp_fhir_infos/03_INVALID_fullUrl_format.xml
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,96 @@ | ||
<Bundle xmlns="http://hl7.org/fhir"> | ||
<id value="erp-fhir-infos-03-INVALID-fullUrl-format"/> | ||
<meta> | ||
<lastUpdated value="2025-01-15T15:29:00.434+00:00"/> | ||
</meta> | ||
<type value="collection"/> | ||
<timestamp value="2025-01-15T15:29:00.434+00:00"/> | ||
<entry> | ||
<fullUrl value="www.pvs.praxis-topp-gluecklich.local/fhir/Patient/b0e22b86-e7e9-46c1-80fe-e6e24442d77c"/> | ||
<resource> | ||
<Patient> | ||
<id value="43ed0c32-27e0-429c-a2fb-8f92518de721"/> | ||
<meta> | ||
<profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> | ||
</meta> | ||
<identifier> | ||
<type> | ||
<coding> | ||
<system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> | ||
<code value="GKV"/> | ||
</coding> | ||
</type> | ||
<system value="http://fhir.de/sid/gkv/kvid-10"/> | ||
<value value="X234567890"/> | ||
</identifier> | ||
<name> | ||
<use value="official"/> | ||
<family value="Ludger Königsstein"> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> | ||
<valueString value="Königsstein"/> | ||
</extension> | ||
</family> | ||
<given value="Ludger"/> | ||
</name> | ||
<birthDate value="1935-06-22"/> | ||
<address> | ||
<type value="both"/> | ||
<line value="Musterstr. 1"> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> | ||
<valueString value="1"/> | ||
</extension> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> | ||
<valueString value="Musterstr."/> | ||
</extension> | ||
</line> | ||
<city value="Berlin"/> | ||
<postalCode value="10623"/> | ||
</address> | ||
</Patient> | ||
</resource> | ||
</entry> | ||
<entry> | ||
<fullUrl value="Patient/b0e22b86-e7e9-46c1-80fe-e6e24442d77c"/> | ||
<resource> | ||
<Patient> | ||
<id value="43ed0c32-27e0-429c-a2fb-8f92518de721"/> | ||
<meta> | ||
<profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> | ||
</meta> | ||
<identifier> | ||
<type> | ||
<coding> | ||
<system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> | ||
<code value="GKV"/> | ||
</coding> | ||
</type> | ||
<system value="http://fhir.de/sid/gkv/kvid-10"/> | ||
<value value="X234567890"/> | ||
</identifier> | ||
<name> | ||
<use value="official"/> | ||
<family value="Ludger Königsstein"> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> | ||
<valueString value="Königsstein"/> | ||
</extension> | ||
</family> | ||
<given value="Ludger"/> | ||
</name> | ||
<birthDate value="1935-06-22"/> | ||
<address> | ||
<type value="both"/> | ||
<line value="Musterstr. 1"> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> | ||
<valueString value="1"/> | ||
</extension> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> | ||
<valueString value="Musterstr."/> | ||
</extension> | ||
</line> | ||
<city value="Berlin"/> | ||
<postalCode value="10623"/> | ||
</address> | ||
</Patient> | ||
</resource> | ||
</entry> | ||
</Bundle> |
8 changes: 8 additions & 0 deletions
8
API-Examples/2025-01-15/erp_fhir_infos/04_Invalid_Example_Patient_no_id.xml
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,8 @@ | ||
<Patient xmlns="http://hl7.org/fhir"> | ||
<name> | ||
<use value="official"/> | ||
<family value="Ludger Königsstein"/> | ||
<given value="Ludger"/> | ||
</name> | ||
<birthDate value="1935-06-22"/> | ||
</Patient> |
52 changes: 52 additions & 0 deletions
52
API-Examples/2025-01-15/erp_fhir_infos/05_INVALID_oid_format.xml
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,52 @@ | ||
<Bundle xmlns="http://hl7.org/fhir"> | ||
<id value="erp-fhir-infos-05-INVALID-oid-format"/> | ||
<meta> | ||
<lastUpdated value="2025-01-15T15:29:00.434+00:00"/> | ||
</meta> | ||
<type value="collection"/> | ||
<timestamp value="2025-01-15T15:29:00.434+00:00"/> | ||
<entry> | ||
<fullUrl value="urn:oid:1.3.6.1.4.1.12345.1.1.1"/> | ||
<resource> | ||
<Patient> | ||
<id value="43ed0c32-27e0-429c-a2fb-8f92518de721"/> | ||
<meta> | ||
<profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0"/> | ||
</meta> | ||
<identifier> | ||
<type> | ||
<coding> | ||
<system value="http://fhir.de/CodeSystem/identifier-type-de-basis"/> | ||
<code value="GKV"/> | ||
</coding> | ||
</type> | ||
<system value="http://fhir.de/sid/gkv/kvid-10"/> | ||
<value value="X234567890"/> | ||
</identifier> | ||
<name> | ||
<use value="official"/> | ||
<family value="Ludger Königsstein"> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-name"> | ||
<valueString value="Königsstein"/> | ||
</extension> | ||
</family> | ||
<given value="Ludger"/> | ||
</name> | ||
<birthDate value="1935-06-22"/> | ||
<address> | ||
<type value="both"/> | ||
<line value="Musterstr. 1"> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber"> | ||
<valueString value="1"/> | ||
</extension> | ||
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName"> | ||
<valueString value="Musterstr."/> | ||
</extension> | ||
</line> | ||
<city value="Berlin"/> | ||
<postalCode value="10623"/> | ||
</address> | ||
</Patient> | ||
</resource> | ||
</entry> | ||
</Bundle> |
29 changes: 29 additions & 0 deletions
29
...mples/FSH-Files/input/fsh/examples/erp_fhir_infos/01_INVALID_fullUrl_and_id_missmatch.fsh
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,29 @@ | ||
Instance: erp-fhir-infos-01-INVALID-fullUrl-and-id-missmatch | ||
InstanceOf: Bundle | ||
Usage: #example | ||
Title: "01-INVALID-fullUrl-and-id-missmatch" | ||
Description: "This example demonstrates mismatch between id in fullUrl and id in the resource." | ||
* insert DateTimeStamp(meta.lastUpdated) | ||
* insert DateTimeStamp(timestamp) | ||
* type = #collection | ||
* entry[+].fullUrl = "http://pvs.praxis-topp-gluecklich.local/fhir/Patient/b0e22b86-e7e9-46c1-80fe-e6e24442d77c" | ||
* entry[=].resource = erp-fhir-infos-Invalid-Example-Patient | ||
|
||
Instance: erp-fhir-infos-Invalid-Example-Patient | ||
InstanceOf: KBV_PR_FOR_Patient | ||
Usage: #inline | ||
* id = "43ed0c32-27e0-429c-a2fb-8f92518de721" | ||
* identifier[versichertenId_GKV].value = "X234567890" | ||
* name[name] | ||
* .use = #official | ||
* family.extension[nachname].valueString = "Königsstein" | ||
* family = "Ludger Königsstein" | ||
* given = "Ludger" | ||
* birthDate = "1935-06-22" | ||
* address[Strassenanschrift] | ||
* type = #both | ||
* line = "Musterstr. 1" | ||
* line.extension[Hausnummer].valueString = "1" | ||
* line.extension[Strasse].valueString = "Musterstr." | ||
* city = "Berlin" | ||
* postalCode = "10623" |
22 changes: 22 additions & 0 deletions
22
API-Examples/FSH-Files/input/fsh/examples/erp_fhir_infos/02-INVALID-mixed-reference.fsh
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,22 @@ | ||
Instance: erp-fhir-infos-02-INVALID-mixed-reference | ||
InstanceOf: Bundle | ||
Usage: #example | ||
Title: "02-INVALID-mixed-reference" | ||
Description: "This example demonstrates a wrong mixed reference." | ||
* insert DateTimeStamp(meta.lastUpdated) | ||
* insert DateTimeStamp(timestamp) | ||
* type = #document | ||
* entry[+].fullUrl = "urn:uuid:b0e22b86-e7e9-46c1-80fe-e6e24442d77c" | ||
* entry[=].resource = Invalid-Example-Composition | ||
|
||
Instance: Invalid-Example-Composition | ||
InstanceOf: KBV_PR_ERP_Composition | ||
Usage: #inline | ||
* id = "b0e22b86-e7e9-46c1-80fe-e6e24442d77c" | ||
* subject = Reference(Patient/17b0721b-d538-4455-b1bb-2c2dfc19d234) | ||
* insert DateTimeStamp(date) | ||
* author[Arzt] = Reference(Practitioner/407974ea-b5c7-47e5-be09-9310a00afb31) | ||
* author[Pruefnummer].identifier.value = "Y/400/1910/36/346" | ||
* custodian = Reference(Organization/94662b9e-af55-4206-b52a-7e086d0d4d82) | ||
* section[Verordnung_Arzneimittel].entry = Reference(4e8c932a-bef5-443d-9e85-64bca6d53d53) | ||
* section[Krankenversicherungsverhaeltnis].entry = Reference(a2ef1193-0739-46de-bc77-65f13feaa7d3) |
12 changes: 12 additions & 0 deletions
12
API-Examples/FSH-Files/input/fsh/examples/erp_fhir_infos/03-INVALID-fullUrl-format.fsh
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 @@ | ||
Instance: erp-fhir-infos-03-INVALID-fullUrl-format | ||
InstanceOf: Bundle | ||
Usage: #example | ||
Title: "03-INVALID-fullUrl-format" | ||
Description: "This example demonstrates a wrongly formatted fullUrl." | ||
* insert DateTimeStamp(meta.lastUpdated) | ||
* insert DateTimeStamp(timestamp) | ||
* type = #collection | ||
* entry[+].fullUrl = "www.pvs.praxis-topp-gluecklich.local/fhir/Patient/b0e22b86-e7e9-46c1-80fe-e6e24442d77c" | ||
* entry[=].resource = erp-fhir-infos-Invalid-Example-Patient | ||
* entry[+].fullUrl = "Patient/b0e22b86-e7e9-46c1-80fe-e6e24442d77c" | ||
* entry[=].resource = erp-fhir-infos-Invalid-Example-Patient |
8 changes: 8 additions & 0 deletions
8
...Examples/FSH-Files/input/fsh/examples/erp_fhir_infos/04-Invalid-Example-Patient-no-id.fsh
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,8 @@ | ||
Instance: erp-fhir-infos-04-INVALID-Example-Patient-no-id | ||
InstanceOf: Patient | ||
Usage: #example | ||
* name[+] | ||
* .use = #official | ||
* family = "Ludger Königsstein" | ||
* given = "Ludger" | ||
* birthDate = "1935-06-22" |
10 changes: 10 additions & 0 deletions
10
API-Examples/FSH-Files/input/fsh/examples/erp_fhir_infos/05-INVALID-oid-reference.fsh
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 @@ | ||
Instance: erp-fhir-infos-05-INVALID-oid-format | ||
InstanceOf: Bundle | ||
Usage: #example | ||
Title: "05-INVALID-oid-format" | ||
Description: "This example demonstrates a forbidden oid reference" | ||
* insert DateTimeStamp(meta.lastUpdated) | ||
* insert DateTimeStamp(timestamp) | ||
* type = #collection | ||
* entry[+].fullUrl = "urn:oid:1.3.6.1.4.1.12345.1.1.1" | ||
* entry[=].resource = erp-fhir-infos-Invalid-Example-Patient |