Stream: implementers
Topic: datatypes in website
Nick George (Jan 03 2019 at 17:14):
Hello, Congrats on launching R4! but I'm having some problems finding references on the website - e.g., the datatype "SubstanceAmount" is not listed on the main https://www.hl7.org/fhir/datatypes.html page, and clicking on a link to it goes to https://www.hl7.org/fhir/datatypes.html#SubstanceAmount , which appears to be a fairly random point on the datatypes page
Nick George (Jan 03 2019 at 17:17):
(the R4 zip download does contain a structure definition for SubstanceAmount, but I can't find it referenced anywhere)
Nick George (Jan 03 2019 at 17:17):
or rather, I can't find it defined anywhere, it's referenced a llot (e.g., "Codeable concept is used in SubstanceAmount)
Rick Geimer (Jan 03 2019 at 17:18):
Do you know which resources reference SubstanceAmount?
Nick George (Jan 03 2019 at 17:19):
there are a handful of links to it on the Datatypes page, and there's a structuredefinition in the r4 spec, but no I don't know specific resources that use it
Rick Geimer (Jan 03 2019 at 17:20):
I'm not seeing it in the various medication resources, which is where I would assume it would be.
Nick George (Jan 03 2019 at 17:21):
yeah it's possible it was meant to be deleted at some point, I noticed the struct def for SubstanceMoiety was removed somewhere along the lines
Nick George (Jan 03 2019 at 17:22):
oh weird - I find it as a "BackboneElement"
Nick George (Jan 03 2019 at 17:22):
https://www.hl7.org/fhir/substanceamount.html
Nick George (Jan 03 2019 at 17:23):
we have standalone structure definitions for backbone elements now?
Rick Geimer (Jan 03 2019 at 17:23):
I think the statement at the top explains it:
"This type is still undergoing development and review by the appropriate Workgroups. At this time, is considered only as a draft design not suitable for production implementation"
Rick Geimer (Jan 03 2019 at 17:24):
Not a true datatype yet, but might be in the future
Nick George (Jan 03 2019 at 17:24):
hmm ok... does it make sense to publish it with the spec then? shld the links in datatypes be updated?
Rick Geimer (Jan 03 2019 at 17:25):
Lets see what Grahame and others say
Nick George (Jan 03 2019 at 17:26):
ok sg
Rick Geimer (Jan 03 2019 at 17:34):
Pretty sure the answer will be that it is ok because datatypes Standards Status is only "Partially Normative", but does seem odd to have the links to nowhere on that page.
John Silva (Jan 03 2019 at 18:40):
Also noticed that the Search capability is not working on the FHIR page either; regardless if on the R4 or STU3 top-level page.
Lloyd McKenzie (Jan 03 2019 at 19:33):
Search might take a little while for Bing and Google to update their search repositories
Nick George (Jan 03 2019 at 21:27):
Why are there stand-alone structure definitions in the R4 spec for subfields of resources? e.g.,
http://hl7.org/fhir/StructureDefinition/de-ProdCharacteristic.nominalVolume has a structure definition
Lloyd McKenzie (Jan 03 2019 at 21:36):
There's a bunch of unapproved pseudo-datatypes created as part of the medication definition work. If the model remains as proposed, they may end up being handled in the same manner as the metadatatypes. However given that it is very preliminary work, we didn't want to embed them there yet.
Nick George (Jan 03 2019 at 21:37):
I'm trying to generate protos for the R4 spec, but it's very difficult to determine which structure definitions in the JSON download of r4 correspond to "real" entities
Nick George (Jan 03 2019 at 21:40):
the best I can get is a complicated regex along the lines of /StructureDefinition-[A-Z][^\.]*\.json, but that doesn't get any extensions or profiles, which are difficult to distinguish
Nick George (Jan 03 2019 at 21:41):
have you considered having a less flat structure for the downloaded spec?
Nick George (Jan 03 2019 at 21:43):
(similarly, it's not possible without first parsing the json to determine which structure definitions correspond to datatypes vs resources vs metadatatypes, etc.)
Nick George (Jan 03 2019 at 21:48):
and I'm not really sure how to interpret things like: http://hl7.org/fhir/structuredefinition-example-section-library.html
which is a structure definition (without any snapshot) for an "Example instance". What is an Example instance in this case?
Nick George (Jan 03 2019 at 21:52):
oh nvm, I guess that's the example of the StructureDefinition resource, like Patient-example. Unfortunately, just by looking at the filename (StructureDefinition-example-section-library), it's hard to distinguish from the StructureDefinition for "example-section-library".
I guess the common thread to all of these things, is it would be super helpful if there was either A) a structure to the spec that made it obvious what is what, or B) an authoratative list included somewhere of where/what the official, non-experimental structure definitions are for the released resources, datatypes, metadatatypes, etc.
Lloyd McKenzie (Jan 03 2019 at 21:53):
Maintaining the files in a hierarchy is too hard from a canonical URL perspective and for a few other publishing reasons. However, you can use the profiles-resources and profiles-types files if you don't want to grab all of the small files. If the kind is not "logical" and the derivation is not "constraint", then for your purposes it's a "real" type.
Nick George (Jan 03 2019 at 21:58):
what are profiles-resources files?
Lloyd McKenzie (Jan 03 2019 at 22:13):
http://hl7.org/fhir/profiles-resources.json
Nick George (Jan 03 2019 at 22:25):
ahh cool, those look pretty promising! is there one for metadatatypes? or are those part of types?
Nick George (Jan 03 2019 at 22:25):
loosk like part of types
Grahame Grieve (Jan 08 2019 at 19:32):
it's certainly true that the file names are do not convey status. We pretty much expect you to parse all the structure definitions and select amongst them based on the properties in the structure definitions
Rajdeep Gupta (Jan 16 2019 at 12:51):
Detail and codes related to my issue :
I am creating a new practitioner resource like below :
var practitioner = new Practitioner();
-Adding meta info to practitioner object like below :
var metObj = new Meta();
-I want to save long value (i.e ticks) instead of DateTime value for "Meta.LastUpdated" property like given below :
metObj.LastUpdated = DateTime.Now.Ticks;
-Also, i want to save list of long data type value in "Meta.LastUpdate" property like given below :
List lastUpdatedLst = new List();
lastUpdatedLst.Add(DateTime.Now.Ticks);
metaObj.LastUpdatedList = lastUpdatedLst;
Could you please help me out out to achieve this! implementers
Lloyd McKenzie (Jan 16 2019 at 14:02):
When you ask a question, only ask it in one place until told to ask elsewhere or until at least a couple of days have gone past. Also, please change the subject heading to be related to your query
Eric Haas (Jan 16 2019 at 14:06):
@Lloyd McKenzie is so nice ( Canadians...)
Vadim Peretokin (Jan 16 2019 at 14:57):
I've seen this message in several channels and I've also received a PM about this
Last updated: Apr 12 2022 at 19:14 UTC