FHIR Chat · valueQuantity number 0-10 · shorthand

Stream: shorthand

Topic: valueQuantity number 0-10


view this post on Zulip John Moehrke (Nov 19 2020 at 20:54):

I need ValueQuantity.value to be between 0-10. So I tried this

"

  • valueQuantity.value ^minValueInteger = 0
  • valueQuantity.value ^maxValueInteger = 10
    "

Sushi does not complain, but it does not seem to put minValueInteger into the structureDefinition

view this post on Zulip Chris Moesel (Nov 19 2020 at 21:27):

Hi @John Moehrke. I just tried the following in FSH Online:

Profile: MyObservation
Parent: Observation
* valueQuantity.value ^minValueInteger = 0
* valueQuantity.value ^maxValueInteger = 10

It seemed to work fine for me, as it produce an SD with the following element in the differential:

{
  "id": "Observation.valueQuantity.value",
  "path": "Observation.valueQuantity.value",
  "minValueInteger": 0,
  "maxValueInteger": 10
}

view this post on Zulip Chris Moesel (Nov 19 2020 at 21:27):

FSH Online uses SUSHI 1.0.1.

view this post on Zulip John Moehrke (Nov 19 2020 at 21:50):

hmm, now I see it in my structureDefinition.. so now need to find out from the build as to why an example validates with a value of 11.

view this post on Zulip David Pyke (Nov 19 2020 at 21:53):

THe IG publisher allows a value of 11?

view this post on Zulip John Moehrke (Nov 19 2020 at 21:57):

yup

view this post on Zulip ryan moehrke (Nov 19 2020 at 22:08):

quantity.value is a decimal type, why are you using minValueInteger and not minValueDecimal?

view this post on Zulip Chris Moesel (Nov 19 2020 at 23:19):

Ohh... I think @ryan moehrke's got it!

view this post on Zulip John Moehrke (Nov 20 2020 at 02:47):

Hmm. Because I started, and need, dstu2... But good point.

view this post on Zulip David Pyke (Nov 20 2020 at 14:22):

John, you should listen to that Moehrke guy, he knows his stuff. Maybe ask him first...

view this post on Zulip John Moehrke (Nov 20 2020 at 15:21):

yup, it was cute when he schooled Lloyd .. not so cute anymore.. I am a very proud father. It was easier to consult when he lived at home, and thus his office was 10 meters from me. But he is now 225 km away.

view this post on Zulip ryan moehrke (Nov 20 2020 at 16:06):

quantity.value is still a decimal in DSTU2 :p

view this post on Zulip John Moehrke (Nov 20 2020 at 16:10):

right. I will need to hand convert to DSTU2.

view this post on Zulip Elliot Silver (Nov 20 2020 at 16:24):

The padawan is now the master. I think it’s time you gave him his capital letters.

view this post on Zulip ryan moehrke (Nov 20 2020 at 17:02):

he can keep the capital letters, I don't want them

view this post on Zulip David Hay (Nov 20 2020 at 18:39):

@John Moehrke At least he's in the same continent (I presume) - mine are in the US & Switzerland... :(

view this post on Zulip Jean Duteau (Nov 20 2020 at 19:22):

i have that with my son who is becoming a terminology guru. he now speaks to me in terminology speak and it's like the Peanuts parents.


Last updated: Apr 12 2022 at 19:14 UTC