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.
Describe the feature request.
The current event management configuration has a list of UpdateWorkflowValueConfigs (a list of values to update) and resourceFilterExpression (used to filter resources that will be updated).
Both the updateValues and resourceFilterExpression will be applied to all the resources defined in the eventWorkFlow config. This is an issue since one eventWorkFlow can be used to define multiple resources for closure e.g a Careplan with related Tasks and Conditions.
The current configs need to be updated so that it's clear which resource type the updateValues and resourceFilterExpression are referencing.
Acceptance criteria
[ ] All resources defined in the eventWorkFlow config that meet the resourceFilterExpression ,if present, are updated with the correct values defined in updateValues field
Implementation plan (For Engineers)
[ ] Update the UpdateWorkflowValueConfig to have a variable that stores the resource type.
Describe the feature request. The current event management configuration has a list of
UpdateWorkflowValueConfig
s (a list of values to update) andresourceFilterExpression
(used to filter resources that will be updated).Both the
updateValues
andresourceFilterExpression
will be applied to all the resources defined in theeventWorkFlow
config. This is an issue since oneeventWorkFlow
can be used to define multiple resources for closure e.g aCareplan
with relatedTasks
andConditions
.The current configs need to be updated so that it's clear which resource type the
updateValues
andresourceFilterExpression
are referencing.Acceptance criteria
eventWorkFlow
config that meet theresourceFilterExpression
,if present, are updated with the correct values defined inupdateValues
fieldImplementation plan (For Engineers)
UpdateWorkflowValueConfig
to have a variable that stores the resource type.resourceFilterExpression
variable to take a list ofResourceFilterExpression
sSample of the updated values
Here is a sample of a complete
eventWorkFlow
config