Stream: fhir/infrastructure-wg
Topic: Group and characteristics
Nicolas Riss | Arkhn (Sep 30 2020 at 08:47):
Hello everyone :)
I have a question and a proposition about the Group resource and particularly about its characteristics attribute. I think this attribute is quickly limited when we want to describe complex characs.
For example I want to create a group of patients. There are three possible characteristics to fulfill, call them characteristic A, B, C.
My first use case is the OR operator
- I want to describe a group where patients check char A OR char B.
My second use case is n amongst m operator
- I want to describe a group where patients have at least (or maximum) 2 out of the three characteristics.
My third use case: nested caracteristics
- patients matching ( 1 characteristics AND (n amongst m characteristics) ), char A, and either char B or char C
One possibility would be to add extensions, however it would be limited for nested characteristics and we will lose in readability.
According to me, the most interesting solution would be to add nested characteristics to the Group resource (maybe in FHIR R5 ?) and to add two attributes to the characteristic BackboneElement
My idea is to duplicate and nest the characteristics BackboneElement and to add two attributes :
- The type attribute is a ValueSet ["and", "or" "nAmongstM"]
- The minimumValid attribute is a number to indicate that the nested characteristics must have at least n validated to be included in the group
Is it possible to integrate the Workgroup ?
Thanks for your feedback !
Lloyd McKenzie (Sep 30 2020 at 12:55):
AND is handled by listing all of the characteristics. OR is handled by composition of the base group referencing the alternative groups. n amongst m would need to be handled as an extension. Feel free to submit a change request proposing a change though
Eric Haas (Sep 30 2020 at 23:19):
n of m is still an 'or' with some set math.
Eric Haas (Sep 30 2020 at 23:21):
(deleted)
Nicolas Riss | Arkhn (Oct 01 2020 at 09:47):
Lloyd McKenzie said:
AND is handled by listing all of the characteristics. OR is handled by composition of the base group referencing the alternative groups. n amongst m would need to be handled as an extension. Feel free to submit a change request proposing a change though
It is a satisfying solution, finally I just had to add an extension to indicate the minimum number of characteristics to be validated in the indicated subgroup.
n amongst m is finally just a generalization of the or operator, with this minimum number of characteristics set to 1.
I will think of a change request with a description of the valueReference usage to explain the possibility to reference a Group, and with like a "minimumValid" number attribute.
Thanks for your replies
Last updated: Apr 12 2022 at 19:14 UTC