From 8cf8e0d2058afb118c39dd462d8c300fd089f4cc Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 2 Dec 2024 06:45:32 +0300 Subject: [PATCH] Add missed validation issues on CDA.templateId --- validator/manifest.json | 59 ++++++++++++++++++++++++++++------------- 1 file changed, 41 insertions(+), 18 deletions(-) diff --git a/validator/manifest.json b/validator/manifest.json index f0bdf1c6..84cfa614 100644 --- a/validator/manifest.json +++ b/validator/manifest.json @@ -25238,6 +25238,28 @@ "ClinicalDocument.component.structuredBody.component[9].section.entry[2].observation.targetSiteCode[0].qualifier[0].name.code" ] }, + { + "severity": "error", + "code": "invariant", + "details": { + "text": "Constraint failed: II-1: 'An II instance must have either a root or an nullFlavor.'" + }, + "diagnostics": "[1019,13]", + "expression": [ + "ClinicalDocument.component.structuredBody.component[10].section.entry[0].act.id[0]" + ] + }, + { + "severity": "error", + "code": "invariant", + "details": { + "text": "Constraint failed: II-1: 'An II instance must have either a root or an nullFlavor.'" + }, + "diagnostics": "[1041,13]", + "expression": [ + "ClinicalDocument.component.structuredBody.component[10].section.entry[2].act.id[0]" + ] + }, { "extension": [ { @@ -47888,6 +47910,17 @@ "outcome": { "resourceType": "OperationOutcome", "issue": [ + { + "severity": "error", + "code": "invariant", + "details": { + "text": "Constraint failed: II-1: 'An II instance must have either a root or an nullFlavor.'" + }, + "diagnostics": "[3,13]", + "expression": [ + "ClinicalDocument.typeId" + ] + }, { "severity": "error", "code": "structure", @@ -50178,21 +50211,14 @@ } } }, - { - "name": "zzz", - "file": "zzz.json", - "description": "hack to close ups", - "close-up": true - }, { "name": "AppointmentWithCodingFromFragmentCS", - "file": "AppointmentWithCodingFromFragmentCS", + "file": "AppointmentWithCodingFromFragmentCS.json", "description": "Appointment contains a coding from a CodeSystem that is defined as a fragment, validation should not complain that the CodeSystem cannot be found", "supporting": [ "Fachabteilungsschluessel-erweitert.json" ], "java": { - "warningCount": 1, "outcome": { "resourceType": "OperationOutcome", "issue": [ @@ -50202,23 +50228,20 @@ "details": { "text": "None of the codings provided are in the value set 'Practice Setting Code Value Set' (http://hl7.org/fhir/ValueSet/c80-practice-codes|5.0.0), and a coding is recommended to come from this value set (codes = http://fhir.de/CodeSystem/dkgev/Fachabteilungsschluessel-erweitert#3600)" }, + "diagnostics": "[6,6]", "expression": [ "Appointment.specialty[0]" ] - }, - { - "severity": "warning", - "code": "invariant", - "details": { - "text": "Constraint failed: dom-6: 'A resource should have narrative for robust management' (defined in http://hl7.org/fhir/StructureDefinition/DomainResource) (Best Practice Recommendation)" - }, - "expression": [ - "Appointment" - ] } ] } } + }, + { + "name": "zzz", + "file": "zzz.json", + "description": "hack to close ups", + "close-up": true } ] } \ No newline at end of file