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

Fix Gender Values with Extensions Not Found in CQL #993

Closed
alexanderkiel opened this issue May 9, 2023 · 1 comment
Closed

Fix Gender Values with Extensions Not Found in CQL #993

alexanderkiel opened this issue May 9, 2023 · 1 comment
Assignees
Labels
bug Something isn't working module:cql
Milestone

Comments

@alexanderkiel
Copy link
Member

In case one uses extensions on the primitive code value of gender like in this patient resource:

{
  "resourceType": "Patient",
  "id": "0",
  "gender": "female",
  "_gender": {
    "extension": [
      {
        "url": "http://fhir.de/StructureDefinition/gender-amtlich-de",
        "valueCoding": {
          "system": "http://fhir.de/CodeSystem/gender-amtlich-de",
          "code": "W",
          "display": "weiblich"
        }
      }
    ]
  }
}

CQL doesn't see the value female and so doesn't match the resource on queries like this:

define InInitialPopulation:
  Patient.gender = 'female'
@alexanderkiel alexanderkiel self-assigned this May 9, 2023
@alexanderkiel alexanderkiel added bug Something isn't working module:cql labels May 9, 2023
@alexanderkiel alexanderkiel added this to the v0.20.6 milestone May 9, 2023
@alexanderkiel
Copy link
Member Author

Fixed in #992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:cql
Projects
None yet
Development

No branches or pull requests

1 participant