onaio / fhir-tooling

A command line utility to support FHIR Core content authoring
Other
2 stars 2 forks source link

Validation of StructureMaps used for CarePlan and Task generation #295

Open ndegwamartin opened 1 month ago

ndegwamartin commented 1 month ago

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 operation

More 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.

dubdabasoduba commented 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

pld commented 1 month ago

the code Martin linked is fetching a StructureMap, is that used in the generation of CarePlans?