Stream: argonaut
Topic: XSD Schemas for C-CDA Documents?
Chris Blair (Sep 21 2018 at 21:33):
Hello, I've been searching for XML Schema Definitions for the three required US Core fhir bundles. Is there any chance these are publicly available somewhere or something that could be turned into a proper XSD?
Lloyd McKenzie (Sep 21 2018 at 22:06):
Your subject says you're looking for schemas for C-CDA but your text says you're looking for schemas for US Core. In any event, there's only one set of schemas for FHIR - for the core specification. We don't produce schemas for profiles and implementation guides because very few of our constraints can be expressed by XML Schema. We do generate schematrons, but the only syntax that fully enforces the rules are the FHIR StructureDefinitions used with one of the available validators.
Chris Blair (Sep 21 2018 at 22:10):
Thanks Lloyd. Is it possible to convert Scematron into XSD? I'm only looking to build a mapping structure at this point.
Lloyd McKenzie (Sep 21 2018 at 22:20):
Not really. As an example, in US Core, the notion of "race" is sent like this:
<extension url="http://hl7.org/fhir/us/core/StructureDefinition/us-core-race">
<extension url="ombCategory">
<system value="urn:oid:2.16.840.1.113883.6.238"/>
<code value="1002-5"/>
</extension>
<extension url="detailed">
<system value="urn:oid:2.16.840.1.113883.6.238"/>
<code value="1088-4"/>
</extension>
</extension>
Lloyd McKenzie (Sep 21 2018 at 22:21):
You can't enforce something like that using schema.
Lloyd McKenzie (Sep 21 2018 at 22:21):
And the base FHIR schema isn't going to give you much of a basis for mapping to and from different extensions.
Chris Blair (Sep 21 2018 at 22:28):
I just discovered that my transformation tool has built in resource definitions and allows for the inclusion of extension xsds. That seems like the way to go.
Lloyd McKenzie (Sep 21 2018 at 23:02):
I doubt your tool is using regular w3c schemas, but if your tool supports it, great.
Chris Blair (Sep 22 2018 at 02:15):
I'm sure you're right, thanks again!
Last updated: Apr 12 2022 at 19:14 UTC