Open f-odhiambo opened 1 month ago
Here is one
// TODO refactor this code to remove hardcoded appended "PlanDefinition/" on https://github.com/opensrp/fhircore/issues/3386
private fun CarePlan.cleanPlanDefinitionCanonical() {
val canonicalValue = this.instantiatesCanonical.first().value
if (canonicalValue.contains('/').not()) {
this.instantiatesCanonical = listOf(CanonicalType("PlanDefinition/$canonicalValue"))
}
}
This is a follow-up for https://github.com/opensrp/fhircore/pull/3385 to be worked on in the next CHT
Sample code