clinical_quality_language icon indicating copy to clipboard operation
clinical_quality_language copied to clipboard

Contexts should have type specifiers

Open EvanMachusak opened this issue 2 years ago • 2 comments

The context definition in a library does not have its TypeSpecifier (presumably a NamedTypeSpecifier) populated.

"contexts": {
      "type": "Library$Contexts",
      "def": [
        {
          "type": "ContextDef",
          "locator": "7:1-7:15",
          "name": "Patient"
        },
        {
          "type": "ContextDef",
          "locator": "12:1-12:18",
          "name": "Unfiltered"
        }
      ]
    }

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 called Patient in use in the same library.

EvanMachusak avatar Nov 06 '23 13:11 EvanMachusak

@brynrhodes - This requires a change to the ELM spec, possible candidate for CQL 2.0

JPercival avatar Nov 06 '23 18:11 JPercival

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 ;-)

ewoutkramer avatar Nov 07 '23 22:11 ewoutkramer