FHIR Chat · Add constraints to Integer field · implementers

Stream: implementers

Topic: Add constraints to Integer field


view this post on Zulip 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.

view this post on Zulip Lloyd McKenzie (Jul 18 2019 at 19:59):

Look at the minValue and maxValue extensions

view this post on Zulip 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?

view this post on Zulip 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

view this post on Zulip Grahame Grieve (Jul 26 2019 at 11:56):

these are not extensions

view this post on Zulip Brian Postlethwaite (Jul 29 2019 at 00:23):

Confused, isn't the original question related to questionnaires?
Not profiles?

view this post on Zulip Lloyd McKenzie (Jul 29 2019 at 00:47):

And it is extensions there.

view this post on Zulip 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)

view this post on Zulip 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