Stream: conformance
Topic: Int type question in R4 StructureDef
Gino Canessa (Feb 21 2020 at 23:05):
I'm switching tooling over to use the fancy NPM structure defs, and noticed that in R4 positiveInt
and unsignedInt
are represented with a FHIR type of http://hl7.org/fhirpath/System.String
, instead of in R2-R3, where they were typed by various integer types (e.g., xsd:positiveInteger
).
Is this an intentional change, or something that got lost in translation?
Grahame Grieve (Feb 21 2020 at 23:09):
intentional
Grahame Grieve (Feb 21 2020 at 23:09):
I can find the task if you want
Gino Canessa (Feb 21 2020 at 23:14):
No worries, just wanted to make sure I wasn't crazy when I saw the output :-)
Thanks!
Josh Mandel (Feb 21 2020 at 23:20):
I'm having trouble interpreting snapshot
vs differential
in this definition:
Snapshot has:
{ "id": "positiveInt.value", <snip> "type": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUri": "string" },
... while differential has:
{ "id": "positiveInt.value", <snip> "type": [ { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUri": "positiveInt" },
Josh Mandel (Feb 21 2020 at 23:20):
Is there a reason one says string
and the other says positiveInt
?
Josh Mandel (Feb 21 2020 at 23:20):
(From package/StructureDefinition-positiveInt.json
in http://build.fhir.org/hl7.fhir.r5.core.tgz)
Grahame Grieve (Feb 21 2020 at 23:34):
it should both be Integer
Josh Mandel (Feb 21 2020 at 23:36):
So string
should say integer
instead; and also positiveInt
should say integer
instead?
Josh Mandel (Feb 21 2020 at 23:37):
(Do you stand by your answer to Gino's question above?)
Grahame Grieve (Feb 21 2020 at 23:38):
oh no, hang on
Grahame Grieve (Feb 21 2020 at 23:39):
they should both have the type http://hl7.org/fhirpath/System.Integer
and the value of http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
should be positiveInt
for both
Josh Mandel (Feb 21 2020 at 23:43):
OK, so that's something that maybe went wrong in the technical correction when we revamped this?
Grahame Grieve (Feb 22 2020 at 00:24):
yes
Gino Canessa (Feb 22 2020 at 23:33):
So will there be new versions posted, or should I handle this on my side?
Grahame Grieve (Feb 23 2020 at 02:58):
there will be new versions posted eventually but don't hold your breath
Gino Canessa (Feb 24 2020 at 15:56):
1) do you want me to create a jira for this?
2) is there a 'known issues' page or anything like that?
Grahame Grieve (Feb 24 2020 at 19:32):
I have a private known issues page. I guess I should move it to Confluence somewhere
Gino Canessa (Feb 24 2020 at 19:33):
Josh had suggested creating an issue for FMG: FHIR#26374
Grahame Grieve (Feb 25 2020 at 03:19):
https://confluence.hl7.org/display/FHIR/Known+Issues+with+the+published+FHIR+Specifications
Last updated: Apr 12 2022 at 19:14 UTC