Scala binding for CDA

19 views
Skip to first unread message

michael...@gmail.com

unread,
Jan 19, 2018, 6:16:55 PM1/19/18
to scalaxb
Has anyone got scalaxb to work on CDA schemas (found here)? I have tried numerous ways and it kept failing. 

It looks to be some sort of namespacing and dependency issues, but I can't figure out. Any help appreciated!

scalaxb */*/*.xsd --verbose

...

DEBUG [2018-01-19 15:16:24,184] module: processUnnamedIncludes

DEBUG [2018-01-19 15:16:24,207] xsd.ContextProcessor: processContext

DEBUG [2018-01-19 15:16:24,215] xsd.ContextProcessor: processContext - None

DEBUG [2018-01-19 15:16:24,240] xsd.ContextProcessor: processContext - None

DEBUG [2018-01-19 15:16:24,259] xsd.ContextProcessor: processContext - Some(urn:hl7-org:v3)

DEBUG [2018-01-19 15:16:24,266] xsd.ContextProcessor: processContext - Some(urn:hl7-org:v3)

ERROR [2018-01-19 15:16:24,279] main: Error: Referenced type {urn:hl7-org:v3}CS was not found.

Gerald Mixa

unread,
Jan 20, 2018, 7:33:43 AM1/20/18
to sca...@googlegroups.com
Are you sure your xsd is complete and type definitions are not missing?

Von meinem iPhone gesendet
--
You received this message because you are subscribed to the Google Groups "scalaxb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalaxb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Doodle

unread,
Jan 22, 2018, 1:49:33 PM1/22/18
to sca...@googlegroups.com
Yes I believe so, the schema files are widely used in the healthcare industry, and the type missing is in 

datatypes-base_SDTC.xsd


...

<xs:complexType name="CS">

    <xs:annotation>

      <xs:documentation>

            Coded data, consists of a code, display name, code system,

            and original text. Used when a single code value must be sent.

         </xs:documentation>

    </xs:annotation>

...


To unsubscribe from this group and stop receiving emails from it, send an email to scalaxb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "scalaxb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scalaxb/ca-eHnMehFA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scalaxb+unsubscribe@googlegroups.com.

Gerald Mixa

unread,
Jan 22, 2018, 2:21:15 PM1/22/18
to sca...@googlegroups.com
I just can suggest to complete the schema definition. No idea how you can get access to the missing info. It’s a common problem with public availability of xsds. Seems many don’t care about completeness. Try to get the xsd or guess the missing type and add a own Schema description. Later solution of course is far away from perfect 

Von meinem iPhone gesendet
To unsubscribe from this group and stop receiving emails from it, send an email to scalaxb+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages