FHIR Chat · Profiling Quantity as age · IG creation

Stream: IG creation

Topic: Profiling Quantity as age


view this post on Zulip Elliot Silver (Aug 03 2020 at 08:26):

What's the recommended approach to profiling an Observation to record patient age? I can't use the Age data type in Observation.valueAge, and can't profile Observation.valueQuantity to be restricted to Age values. The only option I can see is to recreate the age-1 invariants in my profile, which doesn't seem very robust (I'd at least want to be able to apply the existing invariant to my value, rather than rewrite it).

I did read over https://chat.fhir.org/#narrow/stream/179177-conformance/topic/Narrow.20Quantity.20to.20Duration.20and.20Age/near/200728868 -- lots of discussion of problems with Age, but not really any solutions.

view this post on Zulip Grahame Grieve (Aug 03 2020 at 12:15):

yes that's your only choice

view this post on Zulip Elliot Silver (Aug 03 2020 at 14:58):

OK. Too bad.

view this post on Zulip John Moehrke (Aug 03 2020 at 15:45):

are you looking for a vocabulary of age ranges? The IHE ADX did define that...

view this post on Zulip Elliot Silver (Aug 03 2020 at 17:59):

No, I was looking for a way to say that an Observation value must be an age. The Age data type restricts Quantity to positive values, and the units to UCUM time measurements. But there is no easy way use Age in an Observation value.

It's ok, I've basically copied the Age restrictions on Quantity to my profile. It's not particularly robust, but it is, apparently, what is possible.

view this post on Zulip Chris Moesel (Oct 08 2020 at 23:53):

@May Terry was asking me a similar question in relation to a Genomics profile that she is trying to recreate using FSH. If you look at the Variant Profile it constrains component.valueQuantity to a Count (in the copy-number slice):

"type" : [
  {
    "code" : "Quantity",
    "profile" : [
      "http://hl7.org/fhir/StructureDefinition/Count"
    ]
  }
]

It was my understanding, based on this conversation and previous conversations that this is not legal because Count is a specialization, not a constraint. I just want to ensure that my understanding was correct and that I'm not missing something here. Because it certainly looks like it's working in this profile.
image.png

view this post on Zulip Grahame Grieve (Oct 09 2020 at 04:14):

I think it is incorrect.

view this post on Zulip Grahame Grieve (Oct 09 2020 at 04:15):

just because it renders ok... there should be an error in qa.html

view this post on Zulip Chris Moesel (Oct 09 2020 at 13:54):

OK, thank you for the confirmation. I just wanted to be sure I had not misunderstood. I checked the qa.html and as far as I can tell, no error was emitted.

view this post on Zulip Grahame Grieve (Oct 13 2020 at 23:50):

it will be an error from now on


Last updated: Apr 12 2022 at 19:14 UTC