Open EvanMachusak opened 10 months ago
@brynrhodes - This requires a change to the ELM spec, possible candidate for CQL 2.0
Funny, I was thinking about this just last week as well, wanted to started a discussion, until I realized we are probably just supposed to use Element's resultTypeSpecifier
for that. At least, that's what I have done now. Works for us, @EvanMachusak ;-)
The context definition in a library does not have its TypeSpecifier (presumably a NamedTypeSpecifier) populated.
We need a qualified string here telling us that Patient is
{http://hl7.org/fhir}Patient
so we can differentiate it from other models that define a type calledPatient
in use in the same library.