FHIR Chat · About generated code from customized profiles. · tooling

Stream: tooling

Topic: About generated code from customized profiles.


view this post on Zulip Zhiqiang He (Jul 16 2019 at 05:33):

The xml schema: https://www.hl7.org/fhir/xml.html#schema, it's core schema for FHIR specification,
it can be used to generated java model classes with JAXB tool:

xjc -d generated \
-b fhir-xhtml.xjb \
-b fhir-single.xjb \
-p com.example.fhircodegen.model \
fhir-single.xsd

BUT I ADDED SOME ELEMENTS OR DATATYPES TO MY CUSTOMIZED PROFILES.

My question is: What is best way to re-generate the model classes from my customized profiles?

  • Edit core FHIR xml schema files so that sync with customized profiles and re-generate with JAXB?
  • Or there are some tools can help this?

view this post on Zulip Lloyd McKenzie (Jul 16 2019 at 14:17):

If you added datatypes or elements to the schemas, you realize that you're no longer compliant with FHIR (and thus won't interoperate with other conformant systems, be able to use any of the testing tools, reference implementations, public servers, etc.)?


Last updated: Apr 12 2022 at 19:14 UTC