Sukreet @sukreet
Please help me with this
Steps i followed:
1.Creation of accessToken
https://dev.ndhm.gov.in/gateway/v0.5/sessions
{
“clientId”: “SBX_000178”,
“clientSecret”: “{secret}”
}
2.Creation bridge using access token
https://dev.ndhm.gov.in/devservice/v1/bridges
{
"url": "https://webhook.site/becaf57a-bbf9-479e-a2fb-8e3207fb33d5"
}
3.Registered a facitly
https://dev.ndhm.gov.in/devservice/v1/bridges/services
{
“id”: “NIKITHIU_124235”,
“name”: “NIKIT HIP”,
“type”: “HIU”,
“active”: true,
“alias”: [
“nikit”
]
}
4.Created a health id from https://healthid.ndhm.gov.in/
HealthId: nikithealthy@ndhm
This is a prod. health id, i have also tried fred-d@sbx for below request on step 5
-
consent-requests/init
https://dev.ndhm.gov.in/gateway/v0.5/consent-requests/init
{
“requestId”: “{{$guid}}”,
“timestamp”: “{{timestamp}}”,
“consent”: {
“purpose”: {
“text”: “string”,
“code”: “CAREMGT”
},
“patient”: {
“id”: “fred-d@sbx”
},
“hiu”: {
“id”: “NIKITHIU_124235”
},
“requester”: {
“name”: “Dr. Suman”,
“identifier”: {
“type”: “REGNO”,
“value”: “MH1001”,
“system”: “https://www.mciindia.org”
}
},
“hiTypes”: [
“OPConsultation”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “2020-09-25T12:52:34.925Z”,
“to”: “2021-09-25T12:52:34.925Z”
},
“dataEraseAt”: “2021-10-25T12:52:34.925Z”
}
}
}
Requested using above JSON, receiving Access Denied 403 Forbidden
Please help me