Stream: committers
Topic: When should backbone elements be marked isModifier?
Lloyd McKenzie (Oct 14 2016 at 02:56):
In MedicationPrescription, there's an element called "substution" which has an element called "allowed" of type boolean. The boolean is a modifier for MedicationOrder.medication (it changes the meaning from "must be this medication" to "must be considered equivalent to this medicaiton"). The question is - should the "substitution" element that contains "allowed" also be marked as a modifier?
Grahame Grieve (Oct 14 2016 at 19:09):
I think in this case the substutition element itself is the modifier, not the allowed element
Lloyd McKenzie (Oct 14 2016 at 20:48):
@Grahame Grieve Well, the substitution element contains "allowed" and "reason". I.e. "Why is substution not allowed?". That bit isn't a modifier
Melva Peters (Oct 24 2016 at 18:31):
Is there consensus on this discussion? I agree with Lloyd that the modifier is the allowed element. Pharmacy has proposed that we add the modifier to Substution.allowed. Can you explain why we would add it to the backbone?
Grahame Grieve (Oct 24 2016 at 18:32):
I think it's a matter of perspective. Does 'allowed' modify the substution, or does the substitution modify the prescription?
Lloyd McKenzie (Oct 24 2016 at 18:36):
MedicationOrder.substitution describes the substitution guidelines. substitution.allowed is what actually changes the meaning of the medication
Melva Peters (Oct 24 2016 at 22:28):
Agree @Lloyd McKenzie
Last updated: Apr 12 2022 at 19:14 UTC