FHIR Chat · FHIR Mapping language & extensions · implementers

Stream: implementers

Topic: FHIR Mapping language & extensions


view this post on Zulip Dave Barnet (Nov 05 2021 at 15:13):

Hopefully a quick and easy question/answer. We are looking at transforming STU3 profiles into R4 profiles. Most of the mappings are provided on the R4 resources on the "R3 Conversions" tab. It looks like there's a general format to the syntax in that elements that are on the base resouce and not in a backbone element are addressed directly (for example src.identifier -> tgt.identifier;) those in a backbone element are put into their own group and dealt with. I'm a bit unsure as to what to do with extensions. For example, is the source (STU3 profile) has a complex extension that part of now belongs on a R4 element - what's the mapping language syntax? For example, within a STU3 MedicationRequest we have a complex extension that has information about repeat medication
Extension url:https:[base]/StructureDefinition/Extension-MedicationRepeatInformation
extension url: numberOfRepeatPrescriptionsAllowed (as an integer)
extension url: numberOfRepeatPrescriptionsIssued (as an integer)
The numberOfRepeatPrescriptionsAllowed now maps to the R4 element MedicationRequest.dispenseRequest.numberOfRepeatsAllowed
How would we represent this in FHIR mapping language? - in terms of how do you reference an element in a complex extension?

view this post on Zulip Lloyd McKenzie (Nov 05 2021 at 20:24):

You might want to ask on #mapping-framework

view this post on Zulip Dave Barnet (Nov 18 2021 at 08:18):

Anyone have any suggestions on this FHIR mapping language query? I copied it to the #mapping-framework stream, but had no response.

view this post on Zulip Oliver Egger (Nov 18 2021 at 10:23):

just answered in #mapping-framework


Last updated: Apr 12 2022 at 19:14 UTC