XML CDA2 : remove "mif" indication to xsi:type
We have imported a CLinical Document Architecture v2 (CDA2) schema to create CDA2 content using %XML.Adaptor classes
Schema
https://gazelle.ihe.net/XSD/HL7/CDA/POCD_MT000040.xsd
One of the item is "observation " with value property
Class Region.ITXX.Utility.COMMON.CDA2.Schema.POCDMT000040.Observation Extends (%RegisteredObject, %XML.Adaptor) [ CompileAfter = (Region.ITXX.Utility.COMMON.CDA2.Schema.ActClassObservation, Region.ITXX.Utility.COMMON.CDA2.Schema.NullFlavor, Region.ITXX.Utility.COMMON.CDA2.Schema.bl, Region.ITXX.Utility.COMMON.CDA2.Schema.xActMoodDocumentObservation), ProcedureBlock ]
{
Parameter ELEMENTQUALIFIED = 1;
Parameter NAMESPACE = "urn:hl7-org:v3";
Parameter XMLNAME = "POCD_MT000040.Observation";
Parameter XMLSEQUENCE = 1;
Parameter XMLTYPE = "POCD_MT000040.Observation";
Property value As list Of Region.ITXX.Utility.COMMON.CDA2.Schema.ANY(XMLNAME = "value", XMLPROJECTION = "ELEMENT");
Class Region.ITXX.Utility.COMMON.CDA2.Schema.ANY Extends (%RegisteredObject, %XML.Adaptor) [ Abstract, CompileAfter = Region.ITXX.Utility.COMMON.CDA2.Schema.NullFlavor, ProcedureBlock, SqlTableName = _ANY ]
{
Parameter ELEMENTQUALIFIED = 1;
Parameter NAMESPACE = "urn:hl7-org:v3";
Parameter XMLNAME = "ANY";
Parameter XMLSEQUENCE = 1;
/// An exceptional value expressing missing information
/// and possibly the reason why the information is missing.
Property nullFlavor As Region.ITXX.Utility.COMMON.CDA2.Schema.NullFlavor(XMLNAME = "nullFlavor", XMLPROJECTION = "ATTRIBUTE");
}Resulting XML shows as follow
<observation classCode="OBS" moodCode="DEF"> <code code="2.6" codeSystem="2.16.840.1.113883.2.9.6.1.48" codeSystemName="Tipologie importi" codeSystemVersion="1" displayName="Totale"/> <value value="24680" xsi:type="mif:MO"/> </observation> A Client CDA2 validator shows the following error count(cda:value)=1 and count(cda:value/@xsi:type)=1 and cda:value/@xsi:type='MO' and count(cda:value/@value)=1 and number(cda:value/@value)E - 25 Location /ClinicalDocument/component/structuredBody/component[9]/section/entry/observation
Seems xsi:type="mif:MO" is not accepted
Is it possible to set-up xsi:type="MO" instead ?
Product version: IRIS 2021.1
$ZV: IRIS for UNIX (Red Hat Enterprise Linux for x86-64) 2021.1 (Build 215_0_21202U) Thu Oct 21 2021 14:21:18 EDT
Discussion (0)1