For User Initiated Workflow (Discovery flow)-
- When a user searches for our HIP in the PHR app, we receive a discover request in our callback url ({HRP_CALLBACK_URL}/v0.5/care-contexts/discover). We are supposed to respond to the request (https://dev.abdm.gov.in/gateway/v0.5/care-contexts/on-discover), acknowledging that we have some records available in our HRP after applying the fuzzy logic .
- This above step however needs to be completed in 5 seconds, as the session expires in the PHR app and we are not able to respond to the request manually using postman. Even if we respond and get a successful response, it does not reflect in the PHR app since a message comes in the PHR app after 5 seconds “Unable to contact your hospital”
We need guidance from NHA on how we can test this out using postman. Also for the system to perform the fuzzy logic and respond to NHA within 5 seconds might be difficult as well.