Skip to content

Setting DataRequirement.type value in CQL library errors #856

@rob-reynolds

Description

@rob-reynolds

IS: setting the DataRequirement.type value results in the following either when evaluating CQL either in the VS Code extension or through $care-gaps:
org.opencds.cqf.cql.engine.exception.DataProviderException: Configuration error encountered: Can not set org.hl7.fhir.r4.model.CodeType field org.hl7.fhir.r4.model.DataRequirement.type to org.hl7.fhir.r4.model.Enumeration

SHOULD BE:
There should be no error

REPRO:
Include the following define in a CQL file and right-click Execute CQL in VS Code:

define "DataRequirement Type Repro":
   GuidanceResponse { 
      dataRequirement: List<FHIR.DataRequirement> {
         FHIR.DataRequirement {
           type: FHIR.FHIRAllTypes { value: 'Observation' }
         }
      }
   }

Acceptance Criteria:

  • The REPRO executes successfully (does not error).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions