-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EnableWhenExpression context literal fhirpath supplement implementati…
…on (#1957) * Enable when expression catalog and fhir supplements context implementation * spotless apply * fix kdoc * spotless apply * Update catalog/src/main/res/values/strings.xml Co-authored-by: Jing Tang <[email protected]> * Simplify questionnaire and rename to conext data * Update catalog/src/main/res/values/strings.xml --------- Co-authored-by: Benjamin Mwalimu <[email protected]> Co-authored-by: Jing Tang <[email protected]>
- Loading branch information
1 parent
58fc05b
commit 70277d3
Showing
7 changed files
with
182 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"resourceType": "Questionnaire", | ||
"item": [ | ||
{ | ||
"linkId": "1", | ||
"type": "choice", | ||
"text": "Choose an option below?", | ||
"answerOption": [ | ||
{ | ||
"valueCoding": { | ||
"code": "Y", | ||
"display": "Yes", | ||
"system": "custom" | ||
} | ||
}, | ||
{ | ||
"valueCoding": { | ||
"code": "N", | ||
"display": "No", | ||
"system": "custom" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"text": "Why 'Yes' was selected?", | ||
"type": "string", | ||
"linkId": "yes", | ||
"extension": [ | ||
{ | ||
"url": "http:https://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", | ||
"valueExpression": { | ||
"expression": "%resource.descendants().where(linkId='1').answer.value.display.lower() = %context.linkId", | ||
"language": "text/fhirpath" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"text": "Here 'No' was selected.", | ||
"type": "display", | ||
"linkId": "no", | ||
"extension": [ | ||
{ | ||
"url": "http:https://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression", | ||
"valueExpression": { | ||
"expression": "%resource.descendants().where(linkId='1').answer.value.display.lower() = %context.linkId", | ||
"language": "text/fhirpath" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
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,15 @@ | ||
<vector | ||
xmlns:android="http:https://schemas.android.com/apk/res/android" | ||
android:name="vector" | ||
android:width="50dp" | ||
android:height="50dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24" | ||
> | ||
<path | ||
android:name="path" | ||
android:fillColor="#1A73E8" | ||
android:pathData="M 16.66 4.52 L 19.49 7.35 L 16.66 10.18 L 13.83 7.35 L 16.66 4.52 M 9 5 L 9 9 L 5 9 L 5 5 L 9 5 M 19 15 L 19 19 L 15 19 L 15 15 L 19 15 M 9 15 L 9 19 L 5 19 L 5 15 L 9 15 M 16.66 1.69 L 11 7.34 L 16.66 13 L 22.32 7.34 L 16.66 1.69 Z M 11 3 L 3 3 L 3 11 L 11 11 L 11 3 Z M 21 13 L 13 13 L 13 21 L 21 21 L 21 13 Z M 11 13 L 3 13 L 3 21 L 11 21 L 11 13 Z" | ||
android:strokeColor="#4285F4" | ||
/> | ||
</vector> |
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
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