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

Why is the Patient.gender in the expanded ValueSet not working #83

Open
linforestzhang opened this issue Oct 29, 2024 · 0 comments
Open

Comments

@linforestzhang
Copy link

linforestzhang commented Oct 29, 2024

Why is the Patient.gender in the expanded ValueSet not working?

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'
include FHIRCommon version '4.0.1'

// It's an expanded ValueSet:
valueset "Administrative Gender": 'http://hl7.org/fhir/ValueSet/administrative-gender'

// Working:
define "CodeInValueset":
	Code { system: 'http://hl7.org/fhir/administrative-gender', code: Patient.gender } in "Administrative Gender" 

//Not Working:
define "GenderInValueset":
	Patient.gender in "Administrative Gender"

However, for the Patient.maritalStatus of type CodeableConcept, the latter syntax works:

// Expanded ValueSet
valueset "Marital Status": 'http://hl7.org/fhir/ValueSet/marital-status'

Patient.maritalStatus in "Marital Status"

My Local Environment:
openjdk 17.0.7 2023-04-18
VSCodium 1.91.1
Clinical Quality Language (CQL) for VSCode v0.1.1

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