-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Validation fails for
<Bundle xmlns="http://hl7.org/fhir">
<id value="a591fe3d-1b6f-4eda-81af-ab2fe6494a7e"/>
<meta>
<profile value="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-ERP-AbgabedatenBundle|1.5"/>
</meta>
<identifier>
<system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/>
<value value="160.123.456.789.123.58"/>
</identifier>
<type value="document"/>
<timestamp value="2026-07-02T00:00:00+02:00"/>
<entry>
<fullUrl value="urn:uuid:8ced7870-830e-449f-9522-36eaca943c92"/>
<resource>
<Composition xmlns="http://hl7.org/fhir">
<id value="8ced7870-830e-449f-9522-36eaca943c92"/>
<meta>
<profile value="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-ERP-AbgabedatenComposition|1.5"/>
</meta>
<status value="final"/>
<type>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-CompositionTypes"/>
<code value="ERezeptAbgabedaten"/>
</coding>
</type>
<date value="2026-07-02T00:00:00+02:00"/>
<author>
<reference value="urn:uuid:b0d8e60b-2023-4985-a7a0-dff8904c8887"/>
</author>
<title value="ERezeptAbgabedaten"/>
<section>
<title value="Abgabeinformationen"/>
<entry>
<reference value="urn:uuid:4edc0d14-a320-4118-8106-b6a7bede649d"/>
</entry>
</section>
<section>
<title value="Apotheke"/>
<entry>
<reference value="urn:uuid:b0d8e60b-2023-4985-a7a0-dff8904c8887"/>
</entry>
</section>
</Composition>
</resource>
</entry>
<entry>
<fullUrl value="urn:uuid:b0d8e60b-2023-4985-a7a0-dff8904c8887"/>
<resource>
<Organization xmlns="http://hl7.org/fhir">
<id value="b0d8e60b-2023-4985-a7a0-dff8904c8887"/>
<meta>
<profile value="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-ERP-Apotheke|1.5"/>
</meta>
<identifier>
<system value="http://fhir.de/sid/arge-ik/iknr"/>
<value value="107299005"/>
</identifier>
<name value="My pharmacy"/>
<address>
<type value="physical"/>
<line value="My Street 1">
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName">
<valueString value="My Street"/>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber">
<valueString value="1"/>
</extension>
</line>
<city value="My City"/>
<postalCode value="99999"/>
<country value="D"/>
</address>
</Organization>
</resource>
</entry>
<entry>
<fullUrl value="urn:uuid:4edc0d14-a320-4118-8106-b6a7bede649d"/>
<resource>
<MedicationDispense xmlns="http://hl7.org/fhir">
<id value="4edc0d14-a320-4118-8106-b6a7bede649d"/>
<meta>
<profile value="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-ERP-Abgabeinformationen|1.5"/>
</meta>
<extension url="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-EX-ERP-Abrechnungszeilen">
<valueReference>
<reference value="urn:uuid:62bdce26-b450-4f55-92fc-dd1c65b59c79"/>
</valueReference>
</extension>
<status value="completed"/>
<medicationCodeableConcept>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/data-absent-reason"/>
<code value="not-applicable"/>
</coding>
</medicationCodeableConcept>
<performer>
<actor>
<reference value="urn:uuid:b0d8e60b-2023-4985-a7a0-dff8904c8887"/>
</actor>
</performer>
<authorizingPrescription>
<identifier>
<system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"/>
<value value="160.123.456.789.123.58"/>
</identifier>
</authorizingPrescription>
<type>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-MedicationDispenseTyp"/>
<code value="Abgabeinformationen"/>
</coding>
</type>
<whenHandedOver value="2026-07-02"/>
</MedicationDispense>
</resource>
</entry>
<entry>
<fullUrl value="urn:uuid:62bdce26-b450-4f55-92fc-dd1c65b59c79"/>
<resource>
<Invoice xmlns="http://hl7.org/fhir">
<id value="62bdce26-b450-4f55-92fc-dd1c65b59c79"/>
<meta>
<profile value="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-ERP-Abrechnungszeilen|1.5"/>
</meta>
<status value="issued"/>
<type>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-InvoiceTyp"/>
<code value="Abrechnungszeilen"/>
</coding>
</type>
<lineItem>
<extension url="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-EX-ERP-Zusatzattribute">
<extension url="ZusatzattributFAM">
<extension url="Markt">
<extension url="Gruppe">
<valueCodeableConcept>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-ZusatzattributGruppe"/>
<code value="1"/>
</coding>
</valueCodeableConcept>
</extension>
<extension url="Schluessel">
<valueCodeableConcept>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-ZusatzattributFAMSchluesselMarkt"/>
<code value="1"/>
</coding>
</valueCodeableConcept>
</extension>
</extension>
<extension url="Rabattvertragserfuellung">
<extension url="Gruppe">
<valueCodeableConcept>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-ZusatzattributGruppe"/>
<code value="2"/>
</coding>
</valueCodeableConcept>
</extension>
<extension url="Schluessel">
<valueCodeableConcept>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-ZusatzattributFAMSchluesselAbgaberangfolge"/>
<code value="0"/>
</coding>
</valueCodeableConcept>
</extension>
</extension>
<extension url="PreisguenstigesFAM">
<extension url="Gruppe">
<valueCodeableConcept>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-ZusatzattributGruppe"/>
<code value="3"/>
</coding>
</valueCodeableConcept>
</extension>
<extension url="Schluessel">
<valueCodeableConcept>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-ZusatzattributFAMSchluesselAbgaberangfolge"/>
<code value="0"/>
</coding>
</valueCodeableConcept>
</extension>
</extension>
<extension url="ImportFAM">
<extension url="Gruppe">
<valueCodeableConcept>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-ZusatzattributGruppe"/>
<code value="4"/>
</coding>
</valueCodeableConcept>
</extension>
<extension url="Schluessel">
<valueCodeableConcept>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-ZusatzattributFAMSchluesselImportFAM"/>
<code value="1"/>
</coding>
</valueCodeableConcept>
</extension>
</extension>
</extension>
</extension>
<extension url="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-EX-ERP-Chargenbezeichnung">
<valueString value="A123456789-1"/>
</extension>
<sequence value="1"/>
<chargeItemCodeableConcept>
<coding>
<system value="http://fhir.de/CodeSystem/ifa/pzn"/>
<code value="00988709"/>
</coding>
</chargeItemCodeableConcept>
<priceComponent>
<extension url="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-EX-ERP-MwStSatz">
<valueDecimal value="19.00"/>
</extension>
<extension url="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-EX-ERP-KostenVersicherter">
<extension url="Kategorie">
<valueCodeableConcept>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-KostenVersicherterKategorie"/>
<code value="0"/>
</coding>
</valueCodeableConcept>
</extension>
<extension url="Kostenbetrag">
<valueMoney>
<value value="5.00"/>
<currency value="EUR"/>
</valueMoney>
</extension>
</extension>
<extension url="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-EX-ERP-KostenVersicherter">
<extension url="Kategorie">
<valueCodeableConcept>
<coding>
<system value="http://fhir.abda.de/eRezeptAbgabedaten/CodeSystem/DAV-CS-ERP-KostenVersicherterKategorie"/>
<code value="1"/>
</coding>
</valueCodeableConcept>
</extension>
<extension url="Kostenbetrag">
<valueMoney>
<value value="2.98"/>
<currency value="EUR"/>
</valueMoney>
</extension>
</extension>
<type value="informational"/>
<factor value="1"/>
<amount>
<value value="34.41"/>
<currency value="EUR"/>
</amount>
</priceComponent>
</lineItem>
<totalGross>
<extension url="http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-EX-ERP-Gesamtzuzahlung">
<valueMoney>
<value value="5.00"/>
<currency value="EUR"/>
</valueMoney>
</extension>
<value value="34.41"/>
<currency value="EUR"/>
</totalGross>
</Invoice>
</resource>
</entry>
</Bundle>
with error message
11:37:10.275 [main] INFO ca.uhn.fhir.context.FhirContext #235 - Creating new FHIR context for FHIR version [R4]
11:37:10.290 [main] WARN d.g.r.c.validation.GenericValidator #113 - Profile for validation has been passed by user: http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-ERP-AbgabedatenBundle|1.5
11:37:10.291 [main] INFO d.g.r.c.validation.GenericValidator #142 - Validating against http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-ERP-AbgabedatenBundle|1.5...
java.lang.IllegalStateException: Generated dispense request invalid: Valid: false. Messages:
SingleValidationMessage[col=36,row=72,locationString=Bundle.entry[1].resource/*Organization/b0d8e60b-2023-4985-a7a0-dff8904c8887*/.address[0].country,message=Unknown code 'urn:iso:std:iso:3166#D',Terminology_PassThrough_TX_Message,severity=error]
When using 'DE' or 'DEU' instead, this doesn't help:
java.lang.IllegalStateException: Generated dispense request invalid: Valid: false. Messages:
SingleValidationMessage[col=38,row=72,locationString=Bundle.entry[1].resource/*Organization/eed431b5-9d0f-45fb-9230-ee306658517f*/.address[0].country,message=Unknown code 'http://fhir.de/CodeSystem/deuev/anlage-8-laenderkennzeichen#DEU',Terminology_PassThrough_TX_Message,severity=error]
SingleValidationMessage[col=38,row=72,locationString=Bundle.entry[1].resource/*Organization/eed431b5-9d0f-45fb-9230-ee306658517f*/.address[0].country,message=The value provided ('DEU') was not found in the value set 'Gültige Länderkennzeichen DEÜV8' (http://fhir.abda.de/eRezeptAbgabedaten/ValueSet/DAV-VS-ERP-DEUEV-Anlage-8|1.5.0), and a code is required from this value set (error message = Unknown code 'http://fhir.de/CodeSystem/deuev/anlage-8-laenderkennzeichen#DEU'; Unknown code 'http://fhir.de/CodeSystem/deuev/anlage-8-laenderkennzeichen#DEU' for in-memory expansion of ValueSet 'http://fhir.abda.de/eRezeptAbgabedaten/ValueSet/DAV-VS-ERP-DEUEV-Anlage-8'),Terminology_TX_NoValid_16,severity=error]
The official ePrescription examples also use "D".
I'm using
<dependency>
<groupId>de.gematik.refv</groupId>
<artifactId>referencevalidator-lib</artifactId>
<version>2.14.1</version>
</dependency>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels