Stream: implementers
Topic: Add constraints to Integer field
Sean Mahoney (Jul 18 2019 at 19:48):
How do you constrain a primitive type integer field to have min/max values? We are trying to use the item.type field Questionnaire resource and when the type is integer, need to have constraints on allowable values.
Lloyd McKenzie (Jul 18 2019 at 19:59):
Look at the minValue and maxValue extensions
Sean Mahoney (Jul 19 2019 at 01:21):
Is there guidance you can point me to on how to use the those defined extensions when defining a profile?
Lloyd McKenzie (Jul 19 2019 at 01:24):
The extensions would just appear inside the differential.element and snapshot.element for the element you're trying to constrain
Grahame Grieve (Jul 26 2019 at 11:56):
these are not extensions
Brian Postlethwaite (Jul 29 2019 at 00:23):
Confused, isn't the original question related to questionnaires?
Not profiles?
Lloyd McKenzie (Jul 29 2019 at 00:47):
And it is extensions there.
Brian Postlethwaite (Jul 29 2019 at 07:50):
So doesn't the extension for the max/Min value go in the questionnaire.item and not a profile using the item type?
( it was your mention of snapshot/differential that confused me)
Grahame Grieve (Jul 29 2019 at 07:51):
yes I think Lloyd and I were confused
Last updated: Apr 12 2022 at 19:14 UTC