FHIR Chat · Holding on to references in FHIR Mapping Language · implementers

Stream: implementers

Topic: Holding on to references in FHIR Mapping Language


view this post on Zulip Jean Duteau (Jul 24 2018 at 02:55):

Is there any example of "holding on" to a reference to a resource in FHIR Mapping Language? I am trying to map a structure where the Patient occurs first and then, much later on, an AllergyIntolerance needs to be created and I need to get the reference to the Patient resource created earlier. The only solution (since FML doesn't allow me to make variables) seems to be to wrap my maps after Patient inside context and pass the Patient into my groups. That seems yucky, but I can't see any other way around.

view this post on Zulip Grahame Grieve (Jul 24 2018 at 04:37):

no that is how it's done. It means that there's no procedural order - the dependencies are always explicit

view this post on Zulip Jean Duteau (Jul 24 2018 at 06:25):

Ok, thanks. I was able to refactor my mappings to make it not so yucky. :)


Last updated: Apr 12 2022 at 19:14 UTC