On discover Care context Issue

Hi @IntegrationSupport @Shubhanshu_S am trying to discover care contexts from PHR App side APIs. So I initiated my on-discover API from HRP side with the corresponding transaction ID and request ID. But everytime I didn’t get any response and got gateway timeout from the PHR App side within 5-10 seconds. Can you please help I can’t able to proceed with the next because of this.

Hi Abishek
Can you share the request payload of on-discover api?
Also please note that it should be sent within 5sec.

Hi @ayadav33
{

"requestId": "{{$guid}}",

"timestamp": "{{$isoTimestamp}}",

"transactionId": "fd98a895-0df0-4491-8743-b5f544779762",

"patient": {

     "referenceNumber": "ref_check_23112023",

        "display": "OPD_nov23",

        "careContexts": [

            {

                "referenceNumber": "dummy_saref_cc_007mple_1",

                "display": "OPD Records April07"

            }

        ],

    "matchedBy": [

        "MOBILE"

    ]

},

"resp": {

    "requestId": "6c05987a-c5c1-4708-b720-ec83abb67257"

}

This is the payload I am sending.

Hi
Payload is correct. Are you testing with postman? What is the response you are getting in logs?
Can you make sure your response time for on-discover api is less than 5sec

Hi @ayadav33, I am testing it with postman only but how should i make that in 5 seconds any ideas regarding that. It’ll be helpful for me.

Hi
In postman it is difficult to send within 5sec. You can write a script in pipedream to receive the request and copy request id and transaction id and send the response
Please refer this - https://www.youtube.com/watch?v=rSir2gbkEmk

Thank you @ayadav33 I’ll try this