Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EAU-Modul: manche Constraints werden nicht ausgewertet, falls im Bundle URNs statt URLs zur Referenzierung verwendet werden #34

Open
alexey-tschudnowsky opened this issue Dec 10, 2024 · 0 comments

Comments

@alexey-tschudnowsky
Copy link
Contributor

Beschreibung

Falls in einem Bundle in fullUrls und Querreferenzen URNs statt URLs verwendet werden, dann werden Prüfregeln aus den Profilen (Constraints) nicht ausgewertet. Betroffen sind mindestens die folgenden Constraints:

  • -eau-angabeVerantwortlichePersonVerbot-1
  • -eau-angabeVerantwortlichePersonVerbot-2

höchstwahrscheinlich aber deutlich mehr.

Die Ursache liegt in der Formulierung vom Constraint (('Practitioner/'+entry.where(resource is Practitioner)[0].resource.id=entry.where(resource is Composition).resource.attester.party.reference)), die nur URLs und keine URNs berücksichtigt.

Schritte zur Reproduktion

Die beigefügte Beispieldatei mit dem Referenzvalidator validieren:

PS > java -jar .\referencevalidator-cli-2.6.2.jar eau "PATH\constraint-doesnt-fire-for-urns2.xml" --no-profile-validity-period-check
10.12.24-12:03:31.643 INFO  -
gematik Referencevalidator 2.6.2
Java:   17.0.13 from C:\Program Files\Eclipse Adoptium\jdk-17.0.13.11-hotspot on amd64 (64bit). 8136MB, 16 CPU cores available
Locale: en_US
Timezone: Europe/Berlin

10.12.24-12:03:31.992 INFO  - Reading input file PATH\constraint-doesnt-fire-for-urns2.xml...
10.12.24-12:03:32.023 INFO  - Validating against https://fhir.kbv.de/StructureDefinition/KBV_PR_EAU_Bundle|1.1.0...
10.12.24-12:03:40.836 INFO  -

=====  Valid: true =====

Erwartetes Verhalten: Instanz ist invalide, weil das Constraint -eau-angabeVerantwortlichePersonVerbot-1 verletzt ist.

Umgebung

Windows 11 (Locale en_US)
Adoptium jdk-17.0.13.11-hotspot
Referenzvalidator v2.6.2

Workaround

Verwendung von ausschließlich URLs statt URNs

Dauerhafte Lösung

Abstimmung mit KBV/GKV bzgl. eventueller Anpassung der Profile und Integration aktualisierter FHIR-Packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant