Hi Team,
When I’m hitting the links API then in the response we’re getting same “referenceNumber” multiple times.Below is the API curl:
curl --location --request GET ‘https://dev.abdm.gov.in/cm/patients/links’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDU2MDk5NTMsImlhdCI6MTY0NTYwOTM1MywianRpIjoiMTc4MmFjN2YtZWFkOC00MTkwLWE5ZDgtYmM2NDc3YzNmM2IxIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJhNzIxM2I3MS0zZWExLTQ1OGEtOGYyNC0yZDFiMWFlZDg5ZDQiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwNDAyIiwic2Vzc2lvbl9zdGF0ZSI6IjBmMTI5MmM0LTliYTYtNDA5Mi1hMmQ2LTlhNjAzYzgxMjVmZiIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDA0MDIiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY3LjIzOCIsImVtYWlsX3ZlcmlmaWVkIjpm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sxO5RVSb_Cqy59Su4D9p5t__nT8l63BAJ6VL6oSpbCL0ueTNFmk8dljZMOUryuQI1ysW2pqjVJt6bAHvJC65ZWJSnfBVmAFBqeaxSn2hKdCneMBtTxdaYWsXXYmwNau5RTvLjo1FZJtsR1ph6GkBYA5A59xifkb_2t-K__uywcI-qHdESy37gtL4PXX2WQtNzTwo4qqmO7CRoADVz1p7YwKwoqa579xD8N3Asv1njfIN2j_q0uTDlMMwqhGQgEI2-VAVKIaBHGUKYMMxNF-GAvoadytwtAfHPwQSDRvVpiMRlzRUtaXTu5ylWclJYej8Py3Tk5QmMxTNLov7wea5jyRuLQEMzz3y9DWccnKOn1DSNB2-LDcUXvAqTP-ovEithfrjVN8’
–header ‘Cookie: TS011c04bd=01115a1c90c652312bc993d57bbde1cfc25379084d972ddbb931ca540fe6a7dee8344755553f5d76d6dc240502905946d9435ecb3d’
API Response:
{
“patient”: {
“id”: “24-0834-4283-0368”,
“links”: [
{
“hip”: {
“id”: “IN3410000232”,
“name”: “Sri Arunachalam Hospital”,
“type”: “HIP”
},
“referenceNumber”: “15301”,
“display”: “Patient Visit Details”,
“careContexts”: [
{
“referenceNumber”: “15301”,
“display”: “No Data Available”
},
{
“referenceNumber”: “15301”,
“display”: “No Data Available”
},
{
“referenceNumber”: “15303”,
“display”: “No Data Available”
},
{
“referenceNumber”: “15303”,
“display”: “No Data Available”
},
{
“referenceNumber”: “15303”,
“display”: “No Data Available”
}
]
},
{
“hip”: {
“id”: “paytm-test-hip”,
“name”: “Paytm Test HIP”,
“type”: “HIP”
},
“referenceNumber”: “TEST-123”,
“display”: “Testing”,
“careContexts”: [
{
“referenceNumber”: “DEMO-28-001”,
“display”: “28-dec-OPD”
}
]
},
{
“hip”: {
“id”: “IN3410000219”,
“name”: “Kidney Center Hospital”,
“type”: “HIP”
},
“referenceNumber”: “10962”,
“display”: “Bushra Khan”,
“careContexts”: [
{
“referenceNumber”: “15300”,
“display”: “In Patient”
},
{
“referenceNumber”: “15300”,
“display”: “Clinical Consultation Report Available”
},
{
“referenceNumber”: “15320”,
“display”: “Emergency”
},
{
“referenceNumber”: “15369”,
“display”: “Day Care”
},
{
“referenceNumber”: “15370”,
“display”: “No Data Available”
},
{
“referenceNumber”: “15371”,
“display”: “No Data Available”
},
{
“referenceNumber”: “15319”,
“display”: “Diagnostic Report ,Discharge Summary Available”
},
{
“referenceNumber”: “15395”,
“display”: “No Data Available”
},
{
“referenceNumber”: “15461”,
“display”: “No Data Available”
},
{
“referenceNumber”: “15471”,
“display”: “No Data Available”
},
{
“referenceNumber”: “15472”,
“display”: “No Data Available”
},
{
“referenceNumber”: “15475”,
“display”: “Diagnostic Report ,Discharge Summary Available”
},
{
“referenceNumber”: “15477”,
“display”: “Diagnostic Report ,Discharge Summary Available”
}
]
},
{
“hip”: {
“id”: “IN3410000238”,
“name”: “Manakular Vinayagar medical College and hospital city centre”,
“type”: “HIP”
},
“referenceNumber”: “15159”,
“display”: “Patient Visit Details”,
“careContexts”: [
{
“referenceNumber”: “15159”,
“display”: “Prescription Available”
}
]
}
]
}
}