google / android-fhir

The Android FHIR SDK is a set of Kotlin libraries for building offline-capable, mobile-first healthcare applications using the HL7® FHIR® standard on Android.
https://google.github.io/android-fhir/
Apache License 2.0
491 stars 293 forks source link

SDC Initial Expression with CQL Support #1653

Open parthfloyd opened 2 years ago

parthfloyd commented 2 years ago

Is your feature request related to a problem? Please describe. For now SDC supports initialExpression with FHIRPath, but for our project requirement we need to use CQL instead.

Describe the solution you'd like Currently we are leveraging the evaluateLibrary() method of FhirOperator.kt from the Workflow Library and created a workaround for it. It will be great if it is supported by the SDC directly. There are certain usecases where CQL is preferable over FHIRPath.

Describe alternatives you've considered No

Additional context Code of the workaround: initialExpressionWorkaround.txt Please let me know if additional context is required for the code.

parthfloyd commented 2 years ago

cc: @jingtang10 @delcroip

jingtang10 commented 9 months ago

@parthfloyd can you upstream your change to the sdc library?