-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update sdc-qrf and add example of usage cqf expressions
- Loading branch information
Showing
3 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
name: CQF Examples | ||
title: CQF Examples | ||
subjectType: | ||
- Encounter | ||
- Patient | ||
item: | ||
- text: Click on this checkbox to see result | ||
type: boolean | ||
linkId: input-1 | ||
- text: This is default input label | ||
type: string | ||
_text: | ||
cqfExpression: | ||
language: text/fhirpath | ||
expression: >- | ||
iif(%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean | ||
= true, 'Now the input label changed', null) | ||
linkId: input-2 | ||
- item: | ||
- text: This input is disabled if the checkbox is unchecked | ||
type: string | ||
linkId: input-5 | ||
readOnly: true | ||
_readOnly: | ||
cqfExpression: | ||
language: text/fhirpath | ||
expression: >- | ||
%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean | ||
= false | ||
- text: This input is required if the checkbox is checked | ||
type: string | ||
linkId: input-6 | ||
required: false | ||
_required: | ||
cqfExpression: | ||
language: text/fhirpath | ||
expression: >- | ||
%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean | ||
= true | ||
text: This is default group label | ||
type: group | ||
_text: | ||
cqfExpression: | ||
language: text/fhirpath | ||
expression: >- | ||
iif(%QuestionnaireResponse.item.where(linkId='input-1').answer.value.boolean | ||
= true, 'Now the group label changed', null) | ||
linkId: input-3 | ||
resourceType: Questionnaire | ||
status: active | ||
id: cqf-examples | ||
meta: | ||
profile: | ||
- https://beda.software/beda-emr-questionnaire | ||
url: >- | ||
https://aidbox.emr.beda.software/ui/console#/entities/Questionnaire/cqf-examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters