FHIR Chat · StructureDefinitions, maps and examples · IG creation

Stream: IG creation

Topic: StructureDefinitions, maps and examples


view this post on Zulip Carl Leitner (Apr 20 2021 at 16:41):

From 2017, there is an extension point defined for examples:
https://hl7.org/fhir/2017Jan/extension-structuredefinition-example.json.html
http://hl7.org/fhir/2017jan/extension-structuredefinition-example.html

I understand that this was intended to help processes examples in the IG. In particular, looking at the functionality around structure maps processing of these examples. The code does seems to still be in the IG Publisher (and referenced HAPI). Given the 2017 timestamp (and not seeing anything more recent) Is it still valid to try to handle examples + structure maps in this way?

view this post on Zulip Carl Leitner (Apr 20 2021 at 16:41):

flagging for @Luke Duncan

view this post on Zulip Lloyd McKenzie (Apr 20 2021 at 19:35):

@Grahame Grieve

view this post on Zulip Grahame Grieve (Apr 20 2021 at 21:05):

where is it referenced? I don't see it?

view this post on Zulip Carl Leitner (Apr 21 2021 at 13:06):

do you mean in the code (or something else)? I was trying to (quickly) walk through the function calls and documented what I think is happening. haven't had time to dig in and test things out
https://docs.google.com/document/d/1ZcREfcmvSCsLLtUw3ptmdPPY4A5Sj-9XEH2KjBBNC90/edit

(Honestly, I did not verify to see if all of this code is still in the most current releases)

view this post on Zulip Grahame Grieve (Apr 21 2021 at 13:30):

well, I don't see it referenced anywhere, and I don't think it has any meaning

view this post on Zulip Carl Leitner (Apr 21 2021 at 14:07):

https://github.com/hapifhir/org.hl7.fhir.core/blob/master/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/conformance/ProfileUtilities.java#L4176

view this post on Zulip Carl Leitner (Apr 21 2021 at 14:07):

exValue and index are there.

view this post on Zulip Carl Leitner (Apr 21 2021 at 14:10):

looks like @James Agnew is responsible for that code (at least blame says that he committed externalized code)

view this post on Zulip Grahame Grieve (Apr 22 2021 at 03:45):

nah that's me. I had forgotten about it, and worse, the extension iterator doesn't check the extension URL

view this post on Zulip Grahame Grieve (Apr 22 2021 at 03:46):

but it is only for R2. You should never need to think about it

view this post on Zulip Carl Leitner (Apr 22 2021 at 16:49):

(yeah I noticed the lack of check for the URL). but it does seem like useful functionality to have structure maps applied to the examples in IG. would you prefer it gets fixed (we can help) and documentation gets updated or that it goes away?

view this post on Zulip Grahame Grieve (Apr 22 2021 at 18:42):

it's not needed post R2 - the example values have that structure


Last updated: Apr 12 2022 at 19:14 UTC