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
465 stars 246 forks source link

Need updates of the CQF libs #2172

Open delcroip opened 9 months ago

delcroip commented 9 months ago

Describe the bug ActivityDefinition/$Apply is not working well (via planDefinition/$apply)

Component Evaluator

To Reproduce

Expected behavior should be able to add contained and inputs on Task/Medication Request

Additional context Major updates were made on the CQF library, those upgrade were tested successfully on the CQF-Ruler Docker snapshot alphora/cqf-ruler:0.14.2-SNAPSHOT (it creates a medication request )

omarismail94 commented 9 months ago

This change will not be as simple as changing the versions of the cqf libraries in the Dependencies file. The engine and evaluator belong to the org.opencds.cqf.cql group Id. However, the group id has been deprecated and now all the Cql libraries reside under the info.cqframework group. Coupled with the API changes, going from 2.x to 3.x will take time

delcroip commented 9 months ago

thanks for the update

fredhersch commented 9 months ago

@jingtang10 @brynrhodes Can we define the work for @vitorpamplona to complete to resolve this issue here.

jingtang10 commented 8 months ago

@brynrhodes: there's a scheduled engine (evaluator?) release today for 3.00 and translator release 3.2.0. Luke tested on a prerelease version.

but the most important change is the name space change. you should only need a repository implementation now. and now the other providers. does mean the other content needs to be provided by the same impl. this should use both engine and knowledge manager in the android fhir sdk.

jingtang10 commented 8 months ago

luke has successfullly run the example on the image (bryn provided) using the prerelease 7.

jingtang10 commented 8 months ago

the proxy repository should actually be able to query either the content repostiory for knowledge artifacts or the data repository for patient data. so this actually maps to fhir engine and knowledge manager quite well. but it might also fall-through, which is what we want.

jingtang10 commented 8 months ago

from bryn: https://github.com/cqframework/pd-apply

lukeaduncan commented 8 months ago

Here is a bundle of files that I was able to get working. From https://github.com/WorldHealthOrganization/smart-immunizations/tree/cleanup measlesApplyTest.json.txt