locked
CCR and CCD BizTalk Schemas RRS feed

  • Question

  • When I go here: http://developer.healthvault.com/pages/types/type.aspx?id=9c48a2b8-952c-4f5a-935d-f3292326bf54 and save the target as a file CCD.xsd and open up that xsd in BizTalk 2010, the schema fails validation with some undeclared elements:

    Error 7 The 'urn:hl7-org:sdtc:patient' element is not declared. 

    Error 8 The 'urn:hl7-org:sdtc:birthTime' element is not declared. 

    Error 10 The 'urn:hl7-org:sdtc:raceCode' element is not declared. 

    Similar issue on CCR.xsd.  Is that schema out there invalid, or does it need to be manually tweaked to validate in BizTalk?  Appreciate any help.

    Tuesday, April 30, 2013 4:29 PM

Answers

  • Can you clarify a little what you are trying to do? An XSD cannot be validated. An XML document can be validated as conforming to an XSD. I'm not very familiar with BizTalk but I assume it's trying to put the XSD into an XmlSchemaSet and use that to validate a document. The schema you get from the URL you posted above is only the base schema. It needs other XSDs in the same XmlSchemaSet to be complete. You can find the SDTC extension schema at https://platform.healthvault.com/platform/xsd/SDTC_Extension.xsd.


    Jeff Jones Technical Lead HealthVault Development Team

    • Marked as answer by John Ebel Thursday, May 2, 2013 10:34 PM
    Wednesday, May 1, 2013 3:27 PM

All replies

  • To clarify, I'm trying to open within a BizTalk project within Visual Studio 2010.
    Wednesday, May 1, 2013 2:47 PM
  • Can you clarify a little what you are trying to do? An XSD cannot be validated. An XML document can be validated as conforming to an XSD. I'm not very familiar with BizTalk but I assume it's trying to put the XSD into an XmlSchemaSet and use that to validate a document. The schema you get from the URL you posted above is only the base schema. It needs other XSDs in the same XmlSchemaSet to be complete. You can find the SDTC extension schema at https://platform.healthvault.com/platform/xsd/SDTC_Extension.xsd.


    Jeff Jones Technical Lead HealthVault Development Team

    • Marked as answer by John Ebel Thursday, May 2, 2013 10:34 PM
    Wednesday, May 1, 2013 3:27 PM
  • Jeff, thank you for pointing me in the right direction. 

    In case it's useful to anyone else, if you want BizTalk schemas for a CCD continuity of care document, you have to go to http://www.hl7.org/ and download the necessary schemas for a CDA document, which will also entail several referenced XSDs for datatypes, etc.  They took some manual tweaking to work - This was helpful: http://msdn.microsoft.com/en-us/library/bb967001(v=bts.10).aspx

    Thursday, May 2, 2013 10:34 PM
  • Note, the base schemas from http://www.hl7.org don't contain the allowed extensions like SDTC. If you want to support those as well, you'll need to download them separately.


    Jeff Jones Technical Lead HealthVault Development Team

    Friday, May 3, 2013 3:20 PM
  • John,

    Have you implemented CCD with BizTalk? Can you point me to the link for downloading the schema/companion guide. 

    Regards,
    Sanjay

    Tuesday, May 19, 2015 7:26 PM