Skip to content

CQL identifier not resolving per specification #755

@Capt-Mac

Description

@Capt-Mac

Description of Issue

CQL identifier not resolving when Library that contains the CQL does not match the FHIR Library.id, Library.name and CQL.name, when it should allow FHIR Library.id to be different than library.name when library.name equals cql name.

CQL specification says:

  • FHIR Library.name should equal CQL name
  • CQL name allows A-Z and digits 0-9 and underscores
  • FHIR resource.id allows A-Z, digits 0-9, period or hyphens, but no underscores

When specifying a Library and CQL as:

cql file

library AABReporting version '2024.2.0'

FHIR library

  "resourceType": "Library",
  "id": "AABReporting-2024.2.0",
  "url": "http://ncqa.org/fhir/Library/AABReporting-2024.2.0",
  "version": "2024.2.0",
  "name": "AABReporting"
}```

# Observed results

Throws error: "Unable to load CQL/ELM for library: %s. Verify that the Library resource is available in your environment and has CQL/ELM content embedded."

# Expected result

No error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions