Stream: mapping-framework
Topic: Search function
Alexander Zautke (Jun 22 2020 at 13:37):
I'm running in some projects into the limitation that I would like to extend an already existing resource by adding content to it through some mappings. Based on the workflow of the mapping, I know that certain resources exist in the mapping environment (e.g. a Patient resource on the FHIR server where the StructureMap is executed). These resources might have been created based on different mapping sources / StructureMaps.
Based on @Grahame Grieve proposal here on the "Mapping Support API": https://github.com/FHIR/interversion/blob/master/engine/readme.md#search, my idea would be to add some kind of "search" function:
group MapExistingResource(source src : MySource, target tgt : MyTarget)
{
let patientCollection = search('Patient', '?identifier=test');
patientCollection first as patient then
{
// tgt should contain
src -> patient.<element> = ...;
}
}
Any thoughts?
Alexander Zautke (Jun 22 2020 at 13:40):
CC: @SteffenWeber
Grahame Grieve (Jun 23 2020 at 21:04):
hmm. so I see that we have even less documentation about this than I thought
Alexander Zautke (Jun 23 2020 at 21:11):
Yeah, and I’m also not really happy of having to use a let statement at that point, but the options in the current syntax are somewhat limited I guess
Alexander Zautke (Jun 24 2020 at 22:43):
Just realized while trying to implement a prototype that the 'let' statement wouldn't be valid, see https://jira.hl7.org/browse/FHIR-21642
How would you otherwise get the result collection of the search on the source side of a statement?
Vadim Peretokin (Jul 05 2020 at 11:03):
I like the idea :thumbs_up:
Last updated: Apr 12 2022 at 19:14 UTC