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

Add x-fhir-query support for item.variable #91

Open
ruscoder opened this issue Dec 16, 2024 · 0 comments
Open

Add x-fhir-query support for item.variable #91

ruscoder opened this issue Dec 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ruscoder
Copy link
Member

According to the specification variable section:

The content type of a variable can be pretty much anything. It can be a collection or an individual item. It can be a simple element, a complex type, a resource or even a Bundle of resources.

If it's supported in sdc-qrf, we will be able to do:

item:
- linkid: selected-patient-ref
  type: reference
- linkId: selected-patient-gender
   variable:
   - name: selectedPatient
     language: x-fhir-query
     expression: /{{ %item.answer.valueReference.reference }}
     # expression: /{{ %QuestionnaireResponse.item.where(linkId='selected-patient-ref').answer.valueReference.reference }}
   calculatedExpression:
     language: text/fhirpath
     expression: "%selectedPatient.gender"
@ruscoder ruscoder added the enhancement New feature or request label Dec 16, 2024
@ruscoder ruscoder changed the title Add support x-fhir-query for item.variable Add x-fhir-query support for item.variable Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant