I started working with the MDHT model for CCDA CCD (ContinuityOfCareDocument2), but I noticed that the serialization is including an extra realmCode for some reason:
Code:
ContinuityOfCareDocument2 document = ConsolFactory.eINSTANCE.createContinuityOfCareDocument2().init();
try {
CDAUtil.save(document, System.out);
} catch (Exception e) {
e.printStackTrace();
}
Output:
<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument ...">
<realmCode code="US"/>
<realmCode code="US"/>
<templateId root="2.16.840.1.113883.10.20.22.1.2" extension="2015-08-01"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1"/>
<templateId root="2.16.840.1.113883.10.20.22.1.1" extension="2015-08-01"/>
<code code="34133-9" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Summarization of Episode Note"/>
<confidentialityCode codeSystem="2.16.840.1.113883.5.25" codeSystemName="ConfidentialityCode"/>
</ClinicalDocument>
Is it a bug?