Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support direct-reference codes for plural terminology targets #1181

Open
brynrhodes opened this issue Jul 25, 2023 · 1 comment
Open

Support direct-reference codes for plural terminology targets #1181

brynrhodes opened this issue Jul 25, 2023 · 1 comment
Labels
bug cql The issue relates to or requires a change or clarification on the CQL specification known issue md impact tracking The issue is impacting measure development
Milestone

Comments

@brynrhodes
Copy link
Member

The retrieve operation supports both value sets and direct-reference codes as the terminology target for a retrieve. However, if the path for that terminology target results in a multi-cardinality element, value sets work, but direct-reference codes do not, resulting in an error that the terminology target cannot be resolved:

library EncounterTest

using QICore version '4.1.1'

include FHIRHelpers version '4.2.000'

codesystem "Concept Codes": 'http://example.org/fhir/CodeSystem/concept-codes'

valueset "Inpatient Encounters": 'http://hl7.org/fhir/ValueSet/inpatient-encounters'

code "Inpatient": 'inpatient' from "Concept Codes"

context Patient

define "Encounters By ValueSet":
  ["Encounter": "Inpatient Encounters"]

define "Encounters By Code":
  ["Encounter": "Inpatient"]

The issue is that the retrieve would require the following:

define "Encounters By Code":
  ["Encounter"] E
    where exists ((E.type) T where T ~ "Inpatient")

Alternatively, an overload of the equivalent operation:

~(List<Code>, Code)
@brynrhodes brynrhodes added bug cql The issue relates to or requires a change or clarification on the CQL specification known issue md impact tracking The issue is impacting measure development labels Jul 25, 2023
@brynrhodes brynrhodes added this to the Maintenance milestone Jul 25, 2023
@brynrhodes
Copy link
Member Author

Note this is related to CQLIT-368. The workaround is to use a ValueSet (i.e. create a value set with the direct-reference code required and use that value set).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cql The issue relates to or requires a change or clarification on the CQL specification known issue md impact tracking The issue is impacting measure development
Projects
None yet
Development

No branches or pull requests

1 participant