Hey @all,
We have made some implementation change in **profile/share**
API,
We have published the details completely.
Please use end point and payload in below given format,
/v1/patients/profile/share
Request body
{ "requestId": "{{$guid}}", "intent": { "type": "string" }, "location": { "latitude": "string", "longitude": "string" }, "hipDetails": { "hipId": "HIP_Code", "code": "12345" } }
Responses :
{ "status": "SUCCESS", "healthId": "string", "tokenNumber": "string" }
/v1.0/patients/profile/share (Share patient profile details)
Request body :
{ "requestId": "ea00912c-f4f4-49b5-8c30-b9353ca0dc42", "timestamp": "2022-08-29T10:16:09.1299564", "intent": { "type": "string" }, "location": { "latitude": "string", "longitude": "string" }, "profile": { "hipCode": "12345", "patient": { "healthId": "phrAddress", "healthIdNumber": null, "name": "String", "gender": "M", "address": { "line": "Delhi,North West", "district": "North West", "state": "Delhi", "pincode": null }, "yearOfBirth": 1991, "dayOfBirth": 18, "monthOfBirth": 10, "identifiers": [ { "type": "MOBILE", "value": "XXXXX" }, { "type": "NDHM_HEALTH_NUMBER", "value": null } ] } } }
Responses
202 Request accepted
/v1.0/patients/profile/on-share (Response to patient’s share profile request)
Request body :
{ "requestId": "5f7a535d-a3fd-416b-b069-c97d021fbacd", "timestamp": "2022-08-26T07:58:36.759Z", "acknowledgement": { "status": "SUCCESS", "healthId": "<username>@<suffix>", "tokenNumber": "string" }, "error": { "code": 1000, "message": "string" }, "resp": { "requestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" } }
Responses
202 Request accepted
Thanks