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://smartregister.org
Apache License 2.0
50 stars 41 forks source link

[Bug 🐛 ] Subject not properly appended in CarePlan #3080

Closed f-odhiambo closed 5 months ago

f-odhiambo commented 5 months ago

With the latest refactor there seems to be a bug in the FhirCarePlanGenerator class where the subject is not properly appended to the Careplan

Code snippet

"subject":{
"reference":"361c0b6c-e098-4cb2-8e13-6214f4f74db8"
},

Correct reference should be

"subject":{
"reference":"Patient/361c0b6c-e098-4cb2-8e13-6214f4f74db8"
},
f-odhiambo commented 5 months ago

This issue will cause failure in sync as it will show an error that the subject is ambiguous

f-odhiambo commented 5 months ago

This is a content issue resolved