Patient discovery process

hello team,
when i try to link my records with a particular hip the record is linked with a different hip
image
the hip id in header automatically gets changed

@IntegrationSupport
@Sachin

@john456123333
The logs you have share are not clear to me, please share the logs of complete API sequence with API endpoint and payload and response

  1. https://dev.abdm.gov.in/gateway/v0.5/care-contexts/on-discover
    $onDiscoverData = [
    “requestId” => generateGUID(),
    “timestamp” => generateTimestamp(),
    “transactionId” => $tranId,
    “patient” => [
    “referenceNumber” => “3774”,
    “display” => “rahil acharya”,
    “careContexts” => [
    [
    “referenceNumber” => “SX-999901”,
    “display” => “skin-10-19T06:30:09.479Z”
    ]
    ],
    “matchedBy” => [
    “MOBILE”
    ]
    ],
    “resp” => [
    “requestId” => $respId
    ]
    ];
    response:
    Array
    (
    [Content-Length] => 448
    [Content-Type] => application/json
    [Accept] => /
    [Correlation-Id] => 5587af4f-fae4-4f7f-8814-26ae53674a46
    [Host] => thims.in
    [User-Agent] => ReactorNetty/0.9.7.RELEASE
    [X-Hip-Id] => SKN0000999
    )

{“patient”:{“id”:“rahilacharya@sbx”,“name”:“Acharya Rahil Nitin”,“gender”:“M”,“yearOfBirth”:XXXX,“verifiedIdentifiers”:[{“type”:“MOBILE”,“value”:"+91-99796XXXXX"},{“type”:“NDHM_HEALTH_NUMBER”,“value”:“91-5087-4481-0427”},{“type”:“HEALTH_ID”,“value”:“rahilacharya@sbx”}],“unverifiedIdentifiers”:[]},“requestId”:“47db4cae-4ec0-4c14-ad6e-d9ad88638bea”,“timestamp”:“2023-10-25T05:04:15.456243922”,“transactionId”:“eed323e0-920c-41d6-ae67-c452fcde82e7”}

2.https://dev.abdm.gov.in/gateway/v0.5/links/link/on-init
$linkInitData = [
“requestId” => generateGUID(),
“timestamp” => generateTimestamp(),
“transactionId” => $tranId,
“link” => [
“referenceNumber” => “999888”,
“authenticationType” => “DIRECT”,
“meta” => [
“communicationMedium” => “MOBILE”,
“communicationHint” => “string”,
“communicationExpiry” => “Sat May 04 2024 16:53:22 GMT 0530 (India Standard Time)”
]
],
“error” => null,
“resp” => [
“requestId” => $respId
]
];
response:
Array
(
[Content-Length] => 261
[Content-Type] => application/json
[Accept] => /
[Correlation-Id] => c0328d2f-c87e-4bd1-a195-e42be938775e
[Host] => thims.in
[User-Agent] => ReactorNetty/0.9.7.RELEASE
[X-Hip-Id] => SKN0000999
)

{“requestId”:“fc8a025f-b081-49d4-8cbd-ece3c9a77033”,“timestamp”:“2023-10-25T05:04:20.719589649”,“transactionId”:“eed323e0-920c-41d6-ae67-c452fcde82e7”,“patient”:{“id”:“rahilacharya@sbx”,“referenceNumber”:“3774”,“careContexts”:[{“referenceNumber”:“SX-999901”}]}}

3.https://dev.abdm.gov.in/gateway/v0.5/links/link/on-confirm
$authConfirm = [
“requestId” => generateGUID(),
“timestamp” => generateTimestamp(),
“patient” => [
“referenceNumber” => “3774”,
“display” => “rahil acharya”,
“careContexts” => [
[
“referenceNumber” => “SX-999901”,
“display” => “skin-10-19T06:30:09.479Z”
]
]
],
“error” => null,
“resp” => [
“requestId” => $respId
]
];
response:
Array
(
[Content-Length] => 155
[Content-Type] => application/json
[Accept] => /
[Correlation-Id] => 05395af2-a072-423f-be62-377f7ab44de6
[Host] => thims.in
[User-Agent] => ReactorNetty/0.9.7.RELEASE
[X-Hip-Id] => IN2410000258
)

{“requestId”:“3e9eab20-6882-4f90-b5d6-c21d521bb8b9”,“timestamp”:“2023-10-25T05:04:35.099844013”,“confirmation”:{“linkRefNumber”:“999888”,“token”:“999888”}}

please look into this @IntegrationSupport @Sachin

please reply @IntegrationSupport @Sachin

Hi @john456123333,

Please drop a mail on abdm.pc20@nha.gov.in. Let connect over a call to understand and resolve this issue.
Please include this devforum link in the mail for reference.