Hi @IntegrationSupport @Shubhanshu_S , I am trying to add care context for the patient and its added successfully but in the on-discover APIs it returns empty care-contexts.
care contexts which is added
[
{
display: ‘OPD Records November28’,
referenceNumber: ‘OPD_visit_velukarthic_1’
},
{
display: ‘OPD Records November28’,
referenceNumber: ‘OPD_visit_velukarthic_2’
}
]
this is the carecontexts which is added to the add carecontext is sent on on-discover
[{
“display”:“OPD Records November28”,
“referenceNumber”:“OPD_visit_velukarthic_1”
},
{
“display”:“OPD Records November28”,
“referenceNumber”:“OPD_visit_velukarthic_2”
}]
got this response from the gateway
{
"patient": {
"referenceNumber": "velukarthi@sbx",
"display": "Contexts for velukarthi@sbx is/are displayed below",
"careContexts": [],
"matchedBy": [
"NDHM_HEALTH_NUMBER"
]
},
"transactionId": "284038a7-d905-4f61-a6c8-cae17ade1506"
}
but when the wrong carecontexts like the below is given
[{
“display”:“OPD Records”,
“referenceNumber”:“yyyyy”
},
{
“display”:“OPD Records December5”,
“referenceNumber”:“xxxxx”
}]
this result is shown like this,
{
"patient": {
"referenceNumber": "velukarthi@sbx",
"display": "Contexts for velukarthi@sbx is/are displayed below",
"careContexts":[{
"display":"OPD Records",
"referenceNumber":"yyyyy"
},
{
"display":"OPD Records December5",
"referenceNumber":"xxxxx"
}],
"matchedBy": [
"NDHM_HEALTH_NUMBER"
]
},
"transactionId": "284038a7-d905-4f61-a6c8-cae17ade1506"
}
Can you please help me to fix this issue