Stream: implementers
Topic: Add Mappings to Spreadsheets
Kathrin Riech (May 22 2020 at 10:38):
Is it possible to add mappings for specific elements in the spreadsheets, e.g. for Patient.name.family and Patient.name.given, instead of adding a mapping only for Patient.name?
Michele Mottini (May 22 2020 at 13:44):
Which spreadsheets?
Lloyd McKenzie (May 22 2020 at 15:46):
If you're creating profiles, then yes, you can drill down into data types solely for the purpose of declaring mappings
Kathrin Riech (May 26 2020 at 06:41):
I was thinking about the spreadsheets for each resource.
For example: https://github.com/HL7/fhir/blob/master/source/device/device-spreadsheet.xml
Lloyd McKenzie (May 26 2020 at 15:26):
For resources, no. Mappings can't drill down into data type components. If you want mappings on data types, those have to be done on the data type StructureDefinitions - outside the context of what resource the data type is used in. If you think a resource or data type would benefit from additional mappings, submit a change request.
Kathrin Riech (Jun 25 2020 at 10:17):
So what would be the best way to enter the mappings in the spreadshet in this case?
sdc_patient_mapping.png
Lloyd McKenzie (Jun 25 2020 at 14:38):
You can create a profile for each relevant resource and define mappings to whatever depth you desire there. That would be the typical way we'd publish mappings in FHIR
Lloyd McKenzie (Jun 25 2020 at 14:39):
(And try not to use just 'SDC' as it has multiple meanings)
Kathrin Riech (Aug 04 2020 at 11:55):
I created a Patient and a Practitioner Profile to add relevant mappings. Now I get the error that the profile cannot be empty. How can this be solved and why does this error only occur with the practitioner and not with the patient profile?
Grahame Grieve (Aug 04 2020 at 11:57):
which of those errors? I don't think any of them say that the profile can't be empty
Kathrin Riech (Aug 04 2020 at 12:06):
I think the red errors
Grahame Grieve (Aug 04 2020 at 12:08):
they say that there's a problem with the extension.
Grahame Grieve (Aug 04 2020 at 12:08):
what does it say?
Kathrin Riech (Aug 04 2020 at 12:09):
The profile has no extension. I added only mappings
Grahame Grieve (Aug 04 2020 at 12:15):
hmm can I see the output?
Kathrin Riech (Aug 04 2020 at 12:20):
Kathrin Riech (Aug 04 2020 at 12:20):
Which output do you mean?
Grahame Grieve (Aug 04 2020 at 12:23):
the xml or json source for the profile
Kathrin Riech (Aug 04 2020 at 12:28):
I just found the mistake.
Thank you for your help!
Last updated: Apr 12 2022 at 19:14 UTC