FHIR Chat · referenceRange incrementals · shorthand

Stream: shorthand

Topic: referenceRange incrementals


view this post on Zulip Diana_Ovelgoenne (Jul 28 2021 at 09:31):

Hi, I need to put in an Observation multiple reference Ranges for the different age groups, I tried the following at my profile but it fails:

  • referenceRange[0].low = 17 'mmol/L'
  • referenceRange[=].high = 25 'mmol/L'
  • referenceRange[=].type = $referencerange-meaning#normal "Normal Range"
  • referenceRange[=].appliesTo = SCT#248153007 "Male"
  • referenceRange[=].age.low.value = 12
  • referenceRange[=].age.low.unit = UCUM#mo "months"
  • referenceRange[=].age.high.value = 24
  • referenceRange[=].age.high.unit = UCUM#mo "months"
  • referenceRange[+].low = 18 'mmol/L'
  • referenceRange[=].high = 26 'mmol/L'
  • referenceRange[=].appliesTo = SCT#248153007 "Male"
  • referenceRange[=].age.low.value = 3
  • referenceRange[=].age.low.unit = UCUM#a "years"
  • referenceRange[=].age.high.value = 3
  • referenceRange[=].age.high.unit = UCUM#a "years"

Error per entry: No element found at path referenceRange[n].element for AssignmentRule in ProfileX, skipping rule.
How can I define multiple reference Ranges if it isn't this way?

view this post on Zulip Elliot Silver (Jul 28 2021 at 12:00):

referenceRange[].low and referenceRange[].age.low (and high and age.high) are both SimpleQuantity, but you've expressed them differently (one as a single value/units, the other split into value/unit elements). You might want to check which notation is correct and use that for both.

view this post on Zulip Diana_Ovelgoenne (Jul 28 2021 at 12:03):

still that is not the problem, if I just define one referenceRange set and remove [] all compiles without errors.

view this post on Zulip Chris Moesel (Jul 28 2021 at 13:24):

@Diana_Ovelgoenne - this works fine on FSH Online: https://fshschool.org/FSHOnline/#/share/374Td0T

Is it possible that your InstanceOf profile has zeroed out the referenceRange? If it has, then you would get some errors similar to what you describe.

OR... are you trying to constrain the referenceRange in a profile? I assumed you are setting these in an instance, but if you're trying to do this in a profile, then you do need to use a different approach (slicing).


Last updated: Apr 12 2022 at 19:14 UTC