Discussions

Ask a Question
Back to All

Old patient name causing error on family history

Implementing the UI for FamilyHistory i noticed that i could no longer update the information of a patient.

i was getting the following error :
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "patientName cannot be modified."
}
]
}

Which was strange because patient name has NOT been changed, in the put (update).Later i noticed that searching
FamilyHistory by patient and performing a specific GET in FamilyHistory yield different patient names, for the same patient.

example:
if i execute this (GET)"FamilyMemberHistory?patient=e4ebad5da8814b04a756a144", the yield JSON is:
.....{
"resourceType": "FamilyMemberHistory",
"id": "af78c45d8f70aad16f2f16fe",
"meta": {
"versionId": "1574345827397",
"lastUpdated": "2019-11-21T14:17:07.397+00:00"
},
"patient": {
"reference": "Patient/e4ebad5da8814b04a756a144",
"display": "Emanuel Emanuel Silva"
},....

but searching for that specific FamilyHistory (GET)"FamilyMemberHistory/af78c45d8f70aad16f2f16fe" results in:
.....{
"resourceType": "FamilyMemberHistory",
"id": "af78c45d8f70aad16f2f16fe",
"meta": {
"versionId": "1574345827397",
"lastUpdated": "2019-11-21T14:17:07.397+00:00"
},
"patient": {
"reference": "Patient/e4ebad5da8814b04a756a144",
"display": "Testing Allergies"
},.....

note the difference in the patients names, is this what is causing the error?