FHIR Chat · fhirpath expressions and invariants · committers

Stream: committers

Topic: fhirpath expressions and invariants


view this post on Zulip Brian Postlethwaite (Feb 28 2017 at 04:15):

Currently we are displaying the xpath expressions for invariants, are we planning to also display the fhirpath (that is in the back there)
Note that there is an issue with the fhirpath expression in vital signs vs-1
http://build.fhir.org/vitalsigns.html
the fhirpath expression doesn't consider the casting of the type to datetime.

view this post on Zulip Brian Postlethwaite (Feb 28 2017 at 04:18):

The correct expression should have been (effective as dateTime).all(toString().length() >= 8)
(At least it works with the dotnet expression evaluator and does look right)

view this post on Zulip Brian Postlethwaite (Feb 28 2017 at 04:19):

This invariant expression fails on example observation-f004-erythrocyte(f004).xml

view this post on Zulip Brian Postlethwaite (Feb 28 2017 at 04:26):

($this as dateTime).toString().length() >= 8
Is probably more accurate (as the context is on the property, so can't cast around the name of the property)

view this post on Zulip Brian Postlethwaite (Feb 28 2017 at 04:42):

(Making this change then all examples pass this invariant too), but I still have issues with vs-4 in the vital signs profile and 22 of the examples

view this post on Zulip Brian Postlethwaite (Feb 28 2017 at 04:55):

Now that I've looked at the vs-4 more closely, and with the examples too, the xpath and fhirpath expressions are incorrect. The code should be 'vital-signs' not 'laboratory'

view this post on Zulip Brian Postlethwaite (Feb 28 2017 at 05:03):

Logged as tracker #12916

view this post on Zulip Grahame Grieve (Feb 28 2017 at 05:10):

umm we are supposed to displaying fhir paths not xpaths

view this post on Zulip Grahame Grieve (Feb 28 2017 at 05:10):

where are we displaying xpaths?

view this post on Zulip Brian Postlethwaite (Feb 28 2017 at 05:11):

http://build.fhir.org/vitalsigns.html
in the invariants section at the bottom

view this post on Zulip Grahame Grieve (Feb 28 2017 at 05:13):

k. will fix

view this post on Zulip Grahame Grieve (Feb 28 2017 at 05:14):

I'll have to look at why the invariants aren't running - they're supposed to be


Last updated: Apr 12 2022 at 19:14 UTC