Closed ScaAnders closed 5 years ago
Your XML does not validate up against the CDA XML schema.
The validation error message specifies what is expected:
One of '{urn:hl7-org:v3:realmCode, urn:hl7-org:v3:typeId, urn:hl7-org:v3:templateId, urn:hl7-org:v3:id}' is expected.
You can place e.g. a <id nullFlavor="NI"/>
as the first child of <assignedAuthor>
<assignedAuthor nullFlavor="NI" classCode="ASSIGNED">
<id nullFlavor="NI"/>
<representedOrganization classCode="ORG" determinerCode="INSTANCE">
<id root="1.2.208.176.1.1" extension="634491000016008" assigningAuthorityName="SOR"/>
</representedOrganization>
</assignedAuthor>
You can download the CDA XML schema from https://gazelle.ihe.net/XSD/HL7/CDA/
Thanks!
I have a CDA document with the following author section: `
I then get the exception you see below, telling me that I am missing an 'id' element inside the representedOrganization. Can you tell me how I must change the CDA? LPR3 response: