Closed metodikamikaelnilsson closed 6 years ago
Hi
The attached XML is not XSD valid. You receive an XSD validation error (not a SCHEMATRON error).
The CDA.xsd (which includes POCD_MT000040.xsd) enforces the order and requires an effectiveTime
as shown below (taken from POCD_MT000040.xsd)
<xs:complexType name="POCD_MT000040.ClinicalDocument">
<xs:sequence>
<xs:element name="realmCode" type="CS" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="typeId" type="POCD_MT000040.InfrastructureRoot.typeId"/>
<xs:element name="templateId" type="II" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="id" type="II"/>
<xs:element name="code" type="CE"/>
<xs:element name="title" type="ST" minOccurs="0"/>
<xs:element name="effectiveTime" type="TS"/>
<xs:element name="confidentialityCode" type="CE"/>
<xs:element name="languageCode" type="CS" minOccurs="0"/>
<xs:element name="setId" type="II" minOccurs="0"/>
<xs:element name="versionNumber" type="INT" minOccurs="0"/>
<xs:element name="copyTime" type="TS" minOccurs="0"/>
<xs:element name="recordTarget" type="POCD_MT000040.RecordTarget" maxOccurs="unbounded"/>
<xs:element name="author" type="POCD_MT000040.Author" maxOccurs="unbounded"/>
<xs:element name="dataEnterer" type="POCD_MT000040.DataEnterer" minOccurs="0"/>
<xs:element name="informant" type="POCD_MT000040.Informant12" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="custodian" type="POCD_MT000040.Custodian"/>
<xs:element name="informationRecipient" type="POCD_MT000040.InformationRecipient" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="legalAuthenticator" type="POCD_MT000040.LegalAuthenticator" minOccurs="0"/>
<xs:element name="authenticator" type="POCD_MT000040.Authenticator" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="participant" type="POCD_MT000040.Participant1" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="inFulfillmentOf" type="POCD_MT000040.InFulfillmentOf" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="documentationOf" type="POCD_MT000040.DocumentationOf" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="relatedDocument" type="POCD_MT000040.RelatedDocument" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="authorization" type="POCD_MT000040.Authorization" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="componentOf" type="POCD_MT000040.Component1" minOccurs="0"/>
<xs:element name="component" type="POCD_MT000040.Component2"/>
</xs:sequence>
...
You are correct that the example on art-decor is not XSD valid, we will fix that.
If I send this clinical document to https://lprws-test.sds.dsdn.dk/cda-ws/DocumentRepository_Service/PatientHealthcareValidateReportingService for validation, the response is a validation error:
According to the docs at DK Episode Of Care Summaries Document (2.0.2) there should not exist any title element or effectiveTime element at this position in the clinical document. Also, the example clinical document at this web page doesn't include these elements. So why do the validation endpoint respond with this error?