Stream: implementers
Topic: stripping down the schemas
Eric Haas (Aug 16 2016 at 01:58):
Using the supplied schemas I would like to remove all the extension elements and contained stuff that gets imported or included since that bogs down some automapping features. Which imports/includes should I comment out. Or is that what the Code Generation Schemas already do?
Grahame Grieve (Aug 16 2016 at 02:13):
no they just relax the validation. they don't change the actual content
Grahame Grieve (Aug 16 2016 at 02:14):
there's probably only 4 changes to make to remove all that from the schemas
Eric Haas (Aug 18 2016 at 21:10):
Here is what commented out of 'fhir-base.xsd' to remove the contained, extensions and modifierextensions and is on the elements. maybe somebody else will find it useful:
1. <xs:include schemaLocation="fhir-all.xsd"/>
2. <xs:complexType name="ResourceContainer">...</xs:complexType>
3. <xs:complexType name="Extension">...</xs:complexType>
4. <xs:element name="modifierExtension" type="Extension" minOccurs="0" maxOccurs="unbounded">...</xs:element>
5. <xs:element name="extension" type="Extension" minOccurs="0" maxOccurs="unbounded">...</xs:element>
6. <xs:attribute name="id" type="string-primitive" use="optional"/>
7. <xs:element name="contained" type="ResourceContainer" minOccurs="0" maxOccurs="unbounded">...</xs:element>
And this just gos to show you that sometimes Grahame is wrong . only 7 changes :-)
Last updated: Apr 12 2022 at 19:14 UTC