Hello,
The base HL7 CDA specification (and related schema) limits raceCode in
the header to 0..1 cardinality.
The IG for Ambulatory Healthcare Provider Reporting to Central Cancer
Regisitries specification uses an extension to CDA to get around this
cardinality. This extension lives in the sdtc (urn:hl7-org:sdtc) namespace.
See table 2-1 and section 2.5.2.1.2 for the definition and figure 2-10
for an example.
In your XML snippet, change the namespace of the second raceCode to
urn:hl7-org:sdtc and your XML should pass validation.
Hope this helps.
On 05/08/2013 06:15 AM,
gnanen...@gmail.com wrote:
> Hello,
>
> We are trying to validate the generated XML for the patient based on the
> test case(Category 1 and Case 1). When we validate we are getting
> following CDA schema Violations error message in the tool.
>
> Message: cvc-complex-type.2.4.a: Invalid content was found starting with
> element 'raceCode'. One of '{"urn:hl7-org:sdtc":raceCode,
> "urn:hl7-org:v3":ethnicGroupCode, "urn:hl7-org:v3":guardian,
> "urn:hl7-org:v3":birthplace, "urn:hl7-org:v3":languageCommunication}' is
> expected
>
> The problem is patient is having two race codes. I formed XML tags for
> both race code as shown below, in my CDA file and validated, but tool is
> not accepting.
> I am getting an error as shown above.
>
> /*<raceCode displayName="Black or African American"
> codeSystem="2.16.840.1.113883.6.238" code="2054-5"/>
> <raceCode displayName="Jamaican" codeSystem="2.16.840.1.113883.6.238"
> code="2072-7"/>*/
>
> I have attached the XML that we are trying to validate along with the
> test case and screen shot of the validation result.
>
> Kindly advice.
>
> Thank you
>
> --
> You received this message because you are subscribed to the Google
> Groups "Cancer Reg Testing Tool" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
cancer-reg-testin...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Andrew McCaffrey
andrew.m...@nist.gov
----
The words above do not necessarily reflect the opinions of my employers
or any organization I may be associated with. In fact, by the time you
read them, they may not even reflect my own opinions anymore.
----
Any mention of commercial products within NIST web pages or email is for
information only; it does not imply recommendation or endorsement by NIST.