opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://opensrp.io
Apache License 2.0
56 stars 59 forks source link

Implement an optional and configurable code path that uses $apply for PlanDefenition execution #2733

Closed pld closed 1 year ago

pld commented 1 year ago

Describe the feature request. As a content creator and project implementer I want to be able to run $apply on a PlanDefinition and any referenced CQL to create output resources, e.g. CarePlans.

I want to be able to optionally enable this instead of, or in addition to, the current method of executing PlanDefinitions.

Additional context Our current approach to executing PlanDefinitions is to run a StructureMap on the PlanDefinition that uses FHIRPath within it to create additional resources.

The android-fhir repo has an example app that executes a PlanDefinition using $apply through their Workflow API.

Acceptance criteria

Area path

  1. Login to the WHO EIR
  2. Open Navigation bar
  3. Click on Patient register
  4. Click on Add a patient
  5. Click on Run plan def configured in the add patient questionnaire

Implementation plan (For Engineers)

ellykits commented 1 year ago

@owais-vd I've updated the implementation plan for this issue. Do let me know if you need any clarification.

cc: @dubdabasoduba