You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if we should also introduce ofTypeEqual and use that in our generated expressions instead of asTypeEqual.
The background on this one is pretty interesting:
many of the fhirpath expressions in the base spec (and a few of the constraints) use the fhirpath as function to convert a list of input items to a filtered list of output items of a given type (or subtypes).
If there is more than one item in the input collection, the evaluator will throw an error.
Furthermore, the spec lists the as function as deprecated, although I think its more to favor the as operator instead (which is not retired).
Anyway, I think most of those expressions and FHIRPath constraints should probably be using the ofType function instead of as.
I think its too much of a breaking change to make our as function spec compliant at this point, however I do think that we could introduce ofTypeEqual and use that instead of asTypeEqual in our generated constraints.
I'm wondering if we should also introduce
ofTypeEqual
and use that in our generated expressions instead ofasTypeEqual
.The background on this one is pretty interesting:
many of the fhirpath expressions in the base spec (and a few of the constraints) use the fhirpath
as
function to convert a list of input items to a filtered list of output items of a given type (or subtypes).However, the official
as
documentation says this about it:Furthermore, the spec lists the
as
function as deprecated, although I think its more to favor theas
operator instead (which is not retired).Anyway, I think most of those expressions and FHIRPath constraints should probably be using the
ofType
function instead ofas
.I think its too much of a breaking change to make our
as
function spec compliant at this point, however I do think that we could introduceofTypeEqual
and use that instead ofasTypeEqual
in our generated constraints.Originally posted by @lmsurpre in #3974 (comment)
The text was updated successfully, but these errors were encountered: