FHIR Chat · v3 datatypes _ instead of - · CCDA / FHIR mapping stream

Stream: CCDA / FHIR mapping stream

Topic: v3 datatypes _ instead of -


view this post on Zulip Oliver Egger (Jan 15 2020 at 17:36):

while updating my cda fork to the latest cda-core-2.0 i noticed that the V3 datatypes have been renamed in the logical model (e.g. EIVL-TS instead of EIVL-TS).

Changing the type name from _ to - provides the following challenges:

  • For parsers and serializers it is now not clear how to handle any xsi:type declaration because the CDA uses the V3 type name, this is now hidden knowledge (e.g. <effectiveTime xsi:type="IVL_TS"> ...)
  • The FHIR mapping language cannot work with character - in type names: in the source parameter the type which can be specified has to be ([A-Za-z] | '')([A-Za-z0-9] | '’)*, where a character - is not allowed.

would it be possible to revert this change? see proposal in folllowing pull request

view this post on Zulip Alexander Zautke (Jan 15 2020 at 21:03):

Thanks @Oliver Egger for your work! Independently, the .NET API has gained support parsing for the CDA models and corresponding instances over the last two weeks. However, we pulled the models for testing the API before this change. Changing the types to use "-" would introduce a some ugly mapping tables /rules for these specific types. +1 for the PR from my side

view this post on Zulip Grahame Grieve (Jan 17 2020 at 00:25):

unfortunately _ is illegal as an id.

view this post on Zulip Oliver Egger (Jan 19 2020 at 16:41):

_ is illegal as an id, I agree, but neither url nor type name which are uri type have that restriction, so my pull request does not adjust the id itself of the conformance resource.


Last updated: Apr 12 2022 at 19:14 UTC