From bffe0105769aecbacbefcf81e975141444948dae Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 22 Nov 2023 07:51:08 +1100 Subject: [PATCH] fixes for bundle validation fix, and add IPS test --- validator/manifest.json | 464 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 452 insertions(+), 12 deletions(-) diff --git a/validator/manifest.json b/validator/manifest.json index c6b02113..2f42adc9 100644 --- a/validator/manifest.json +++ b/validator/manifest.json @@ -6327,7 +6327,7 @@ ] }, { - "severity": "error", + "severity": "information", "code": "not-found", "details": { "text": "Can't find 'urn:uuid:9439fa97-f1a9-438d-8a9c-80f52bcbce64' in the bundle (Bundle.entry[3].resource.entry[0].resource.subject)" @@ -10119,7 +10119,7 @@ ] }, { - "severity": "error", + "severity": "information", "code": "not-found", "details": { "text": "Can't find 'urn:uuid:75ea28b5-74b8-4d9c-9eb5-cfdc10b48fa' in the bundle (Bundle.entry[1].resource.location[0].location)" @@ -10230,7 +10230,7 @@ ] }, { - "severity": "error", + "severity": "information", "code": "not-found", "details": { "text": "Can't find 'urn:uuid:75ea28b5-74b8-4d9c-9eb5-cfdc10b48fa' in the bundle (Bundle.entry[1].resource.location[0].location)" @@ -14979,7 +14979,7 @@ ] }, { - "severity": "error", + "severity": "information", "code": "not-found", "details": { "text": "Can't find 'Organization/f002' in the bundle (Bundle.entry[5].resource.requester.onBehalfOf)" @@ -23109,7 +23109,7 @@ ] }, { - "severity": "error", + "severity": "information", "code": "not-found", "details": { "text": "Can't find 'Practitioner/mni-practitioner-example1' in the bundle (Bundle.entry[5].resource.requester)" @@ -25047,7 +25047,7 @@ ] }, { - "severity": "error", + "severity": "information", "code": "not-found", "details": { "text": "Can't find 'Organization/f002' in the bundle (Bundle.entry[5].resource.requester.onBehalfOf)" @@ -37819,21 +37819,461 @@ { "name": "ips-nz-pj", "file": "ips-nz-pj.json", - "ips" : "uv", + "ips": "uv", "version": "4.0", "java": { "outcome": { "resourceType": "OperationOutcome", "issue": [ { - "severity": "error", - "code": "invariant", + "severity": "information", + "code": "informational", "details": { - "text": "Constraint failed: sdf-21: 'Default values can only be specified on specializations'" + "text": "Validate Observation against Body temperature profile because the LOINC code 8310-5 was found" }, - "diagnostics": "[1,50]", + "diagnostics": "[2328,8]", "expression": [ - "StructureDefinition" + "Bundle.entry[42].resource/*Observation/40fd5038-4427-42ac-abcb-fb247dc5614c*/" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Heart rate profile because the LOINC code 8867-4 was found" + }, + "diagnostics": "[2374,8]", + "expression": [ + "Bundle.entry[43].resource/*Observation/171e1170-9e72-4eb6-a7cb-5261beaf9353*/" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Respiratory Rate profile because the LOINC code 9279-1 was found" + }, + "diagnostics": "[2420,8]", + "expression": [ + "Bundle.entry[44].resource/*Observation/b42fdc85-6798-4d29-9e24-fed29918a9a6*/" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Blood pressure systolic and diastolic profile because the LOINC code 85354-9 was found" + }, + "diagnostics": "[2466,8]", + "expression": [ + "Bundle.entry[45].resource/*Observation/b3bdafb9-27e5-4593-a3ee-81285d51c52f*/" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Body height profile because the LOINC code 8302-2 was found" + }, + "diagnostics": "[2542,8]", + "expression": [ + "Bundle.entry[46].resource/*Observation/cb44d233-951b-4c88-8a36-d208054fcd4d*/" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Body weight profile because the LOINC code 29463-7 was found" + }, + "diagnostics": "[2588,8]", + "expression": [ + "Bundle.entry[47].resource/*Observation/d2a2890e-3f45-4c43-a068-b70cdc52cb64*/" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Body temperature profile because the LOINC code 8310-5 was found" + }, + "diagnostics": "[2634,8]", + "expression": [ + "Bundle.entry[48].resource/*Observation/69e26557-db9e-465c-91d7-a1ef29cf5380*/" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Heart rate profile because the LOINC code 8867-4 was found" + }, + "diagnostics": "[2680,8]", + "expression": [ + "Bundle.entry[49].resource/*Observation/4fb17221-4610-473d-a52b-87a4e2b02b3f*/" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Respiratory Rate profile because the LOINC code 9279-1 was found" + }, + "diagnostics": "[2726,8]", + "expression": [ + "Bundle.entry[50].resource/*Observation/df2a4899-3257-4aaf-bad0-be0ad0bf1a66*/" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Blood pressure systolic and diastolic profile because the LOINC code 85354-9 was found" + }, + "diagnostics": "[2772,8]", + "expression": [ + "Bundle.entry[51].resource/*Observation/d4aae611-3a87-4e13-a9cb-421d31085a2c*/" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Body weight profile because the LOINC code 29463-7 was found" + }, + "diagnostics": "[2848,8]", + "expression": [ + "Bundle.entry[52].resource/*Observation/a8e266ff-fa44-4c4d-802a-657dbbfe8202*/" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Body temperature profile because the LOINC code 8310-5 was found" + }, + "diagnostics": "[2328,8]", + "expression": [ + "Bundle.entry[42].resource" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Heart rate profile because the LOINC code 8867-4 was found" + }, + "diagnostics": "[2374,8]", + "expression": [ + "Bundle.entry[43].resource" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Respiratory Rate profile because the LOINC code 9279-1 was found" + }, + "diagnostics": "[2420,8]", + "expression": [ + "Bundle.entry[44].resource" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Blood pressure systolic and diastolic profile because the LOINC code 85354-9 was found" + }, + "diagnostics": "[2466,8]", + "expression": [ + "Bundle.entry[45].resource" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Body height profile because the LOINC code 8302-2 was found" + }, + "diagnostics": "[2542,8]", + "expression": [ + "Bundle.entry[46].resource" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Body weight profile because the LOINC code 29463-7 was found" + }, + "diagnostics": "[2588,8]", + "expression": [ + "Bundle.entry[47].resource" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Body temperature profile because the LOINC code 8310-5 was found" + }, + "diagnostics": "[2634,8]", + "expression": [ + "Bundle.entry[48].resource" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Heart rate profile because the LOINC code 8867-4 was found" + }, + "diagnostics": "[2680,8]", + "expression": [ + "Bundle.entry[49].resource" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Respiratory Rate profile because the LOINC code 9279-1 was found" + }, + "diagnostics": "[2726,8]", + "expression": [ + "Bundle.entry[50].resource" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Blood pressure systolic and diastolic profile because the LOINC code 85354-9 was found" + }, + "diagnostics": "[2772,8]", + "expression": [ + "Bundle.entry[51].resource" + ] + }, + { + "severity": "information", + "code": "informational", + "details": { + "text": "Validate Observation against Body weight profile because the LOINC code 29463-7 was found" + }, + "diagnostics": "[2848,8]", + "expression": [ + "Bundle.entry[52].resource" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 26643006 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 48546005 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 767525000 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 158965000 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 96309000 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 714081009 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 25246002 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 109081006 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 96067005 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 34206005 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 108537001 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 292954005 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 126212009 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 428673006 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 292360004 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 7947003 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 81464008 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 16217701000119102 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The Snomed CT code 287903004 (null) is not a member of the IPS free set" + }, + "diagnostics": "[1,2]", + "expression": [ + "Bundle" ] } ]