Open ndegwamartin opened 1 month ago
@ndegwamartin I think this is great. The CarePlans are generated by code it might be tricky to validate them through the SMs
the code Martin linked is fetching a StructureMap, is that used in the generation of CarePlans?
Summary
Other than for Questionnaire Response (QR) extraction we also use structure maps to generate CarePlans and Tasks. This is FHIR Cores implementation of
$lite
operationMore on this function can be found here - https://github.com/opensrp/fhircore/blob/fb238c2c061f4dea86db477aec4dc73985ba9b8f/android/engine/src/main/java/org/smartregister/fhircore/engine/task/FhirCarePlanGenerator.kt#L191
We need to explore ways to validate such StructureMaps similar to how we validate for the QRs.