Stream: fhirpath
Topic: ofType
Paul Lynch (Aug 28 2018 at 22:44):
[Deleted]. I found more information in the FHIRPath doc, and might against again later after some more thought.
Paul Lynch (Aug 29 2018 at 18:32):
After further thought about how ofType is supposed to work, I do have a few questions:
1) B.3.4. says, "In FHIR, only concrete core types are allowed as an argument." Where is the list of the types that are "concrete core types", preferably as JSON (but XML is fine too)?
2) When one is applying FHIRPath to a FHIR resource, the nodes of the FHIR resource do not themselves contain the type information needed to handle the ofType call. Presumably that type information needs to be obtained from the StructureDefinition for the resource, correct?
3) It looks like I can find StructureDefinitions in profiles-resources.json. Does that include information for extensions, like questionnaire-itemControl? I don't see it there. Where would I find type information for extensions?
4) If someone is using our JavaScript FHIRPath engine in a context where there are custom resources, how would the FHIRPath engine know about the types in the custom resources?
nicola (RIO/SS) (Aug 29 2018 at 19:28):
I think, implicit meta-information usage in FHIR path is a heavy duty (it brings metadata, FHIR version dependency/hell, etc), may be move it into optional extension - make core explicit? @Bryn Rhodes @Grahame Grieve
Grahame Grieve (Aug 30 2018 at 13:57):
profiles-others.json
Grahame Grieve (Aug 30 2018 at 13:57):
but type is explicit in the extension syntax
Grahame Grieve (Aug 30 2018 at 13:58):
ofType does require the type infrastructure to be there, yes. I'm not sure about moving it into an extension space. There's several operations that require quite a bit of support to implement
Paul Lynch (Aug 30 2018 at 16:46):
Is there a particular part of profiles-others.json I should be looking at for the "concrete core types" for ofType? I found a number of lists of data types, seemingly for specific purposes. "concrete" was not in the file; "core" was in the file but always with "level".
Grahame Grieve (Aug 30 2018 at 21:20):
also profiles-types.json. Abstract is explicit in the structure definition
Christiaan Knaap (Sep 06 2018 at 12:40):
Or take http://hl7.org/fhir/valueset-resource-types.html in json / xml format
nicola (RIO/SS) (Sep 06 2018 at 14:27):
It would be nice do not do this at all in fhirpath.js - give to Caesar the things that are Caesar's - give to dynamic lang the things that are dynamic
nicola (RIO/SS) (Sep 06 2018 at 14:31):
Otherwise we will get all this version hell, profiles hell and so on. Can we do this things implicitly - enumerate properties?
Grahame Grieve (Sep 06 2018 at 22:02):
my fhirpath evaluator has a modular approach for defining functions, so I can delegate these things to the FHIR object provider
Last updated: Apr 12 2022 at 19:14 UTC