Stream: implementers
Topic: Redundant fhirpath
Nick George (Dec 04 2019 at 00:57):
I notice that in 4.0.1, every extension field (e.g., Patient.extension) now has validation fhirpaths like "extension.exists() != value.exists()"
Nick George (Dec 04 2019 at 00:57):
this seems redundant with the identical fhirpath restriction on the Extension datatype itself
Nick George (Dec 04 2019 at 00:57):
is this intentional?
Nick George (Dec 04 2019 at 01:26):
2) what's with the backticks on text.div
.exists()? is that out of fear that an html engine will eat it?
Grahame Grieve (Dec 04 2019 at 01:53):
it's in the snapshot - decision that a proper snapshot populates all the fhirpaths even if they're inherited
Grahame Grieve (Dec 04 2019 at 01:54):
div is a reserved word in FHIRPath, and so it must be quoted. See
Grahame Grieve (Dec 04 2019 at 01:54):
https://chat.fhir.org/#narrow/stream/179266-fhirpath/topic/Reserved.20words
Nick George (Dec 04 2019 at 20:32):
Makes sense, but just to be 100% clear - by inherited, I'm not talking about something that was in the "base" per se - it's something that's specified by the extension data type (and thus seems like it would be implied regardless, similar to how you don't have to specify regex on url datatypes)
Grahame Grieve (Dec 04 2019 at 20:36):
I thought so too, but we changed our minds as part of reconciliation with the simplifer stack
Last updated: Apr 12 2022 at 19:14 UTC