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

Resolve the Requirement to Always have an Explicit Patient Context Line in Queries #7

Closed
alexanderkiel opened this issue Apr 23, 2019 · 0 comments

Comments

@alexanderkiel
Copy link
Member

Currently a CQL query without the line context patient won't run. The reason is that than, CQL-to-ELM generated the following Expression Def:

{
  "name" : "Patient",
  "context" : "Population",
  "expression" : {
    "type" : "SingletonFrom",
    "operand" : {
      "dataType" : "{http://hl7.org/fhir}Patient",
      "type" : "Retrieve"
    }
  }
}

The problem here is that the context is set to Population. In population context, the retrieve returns all patients and the SingletonFrom expression will fail on more than one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant