Stream: mapping-framework
Topic: source-list-mode only_one
Alexander Zautke (Sep 10 2020 at 15:52):
The description of "only_one" in https://www.hl7.org/fhir/valueset-map-source-list-mode.html is currently defined as "Only process this rule is there is only item". That would imply for me that you are supposed to skip the element if it's repeating. However the mapping language tutorial contains a comment saying that the engine is supposed to throw an error: https://www.hl7.org/fhir/mapping-tutorial.html#step6
What would be the preferred way of handling only_one?
Alexander Zautke (Sep 10 2020 at 15:52):
In the .NET implementation I've now chosen to skip the rule and not throw an error
Alexander Zautke (Sep 10 2020 at 16:00):
-
Grahame Grieve (Sep 13 2020 at 10:18):
I think it should be an error - the user has only allowed for one here. Silently ignoring it kind of my worst case outcome
Last updated: Apr 12 2022 at 19:14 UTC