CDA-core-2.0 icon indicating copy to clipboard operation
CDA-core-2.0 copied to clipboard

CDAR2_IG_DIGITALSIG_DSTU_R1_2014OCT does not validate against CDA_SDTC.xsd

Open martipamies opened this issue 2 years ago • 0 comments

Hi, We have singed some CDA following HL7 Digital Signatures and Delegation of Rights, Release 1.

Once CDA signed we try to validated output CDA document using CDA_SDTC.xsd but we get the following error. Invalid content was found starting with element '{"urn:hl7-org:v3":digitalSignature}'. One of '{"urn:hl7-org:v3":reference, "urn:hl7-org:v3":thumbnail, WC[##other:"urn:hl7-org:v3",""]}' is expected. We have validated some CDAR2_IG_DIGITALSIG_DSTU_R1_2014OCT samples against CDA_SDTC.xsd and we get the same message.

After reviewing extensions schemas we guess the issues comes form this:

  • HL7 ED datatype has the following modification: <!-- Begin Schema Fix: Added to fix Schema to allow XML/XHTML content in ED data type --> <xs:any minOccurs="0" namespace="##other" processContents="skip" /> <!-- End Schema Fix: Added to fix Schema to allow XML/XHTML content in ED data type -->
  • So it means signature element must be in another namespace different from urn:hl7-org:v3
  • But CDAR2_IG_DIGITALSIG_DSTU_R1_2014OCT signature element is defined as follow: <sdtc:signatureTEXT mediaType=”text/xml” representation=”B64”> <thumbnail mediaType=”text/plain” representation = “TXT”> Text representation of the signature (see Section 3.3.2) </thumbnail> <digitalSignature> <authorizedSigner> XAdES-X-L signature of Authorized Signer </authorizedSigner> </digitalSignature> </sdtc:signatureText>

Where digitalSignature is in namesapce urn:hl7-org:v3

Our question is, is there any issue at CDAR2_IG_DIGITALSIG_DSTU_R1_2014OCT documentation or at CDA_SDTC.xsd extension

Thank you

martipamies avatar Jun 17 '22 11:06 martipamies