HIU consent init

Hi @IntegrationSupport,

We are getting error when triggering https://dev.abdm.gov.in/gateway/v0.5/consent-requests/init POST call. The request we sent is as follows:
{‘requestId’: ‘9211913c-5828-11ee-994f-0242ac170005’, ‘timestamp’: ‘2023-09-21T02:42:56.762532’, ‘consent’: {‘purpose’: {‘text’: ‘Care Management’, ‘code’: ‘CAREMGT’}, ‘patient’: {‘id’: ‘arpitjain@sbx’}, ‘hiu’: {‘id’: ‘123123’}, ‘requester’: {‘name’: ‘Dr Arpit Jain’, ‘identifier’: {‘type’: ‘REGNO’, ‘value’: ‘12312’, ‘system’: ‘https://www.mciindia.org’}}, ‘hiTypes’: [‘Prescription’], ‘permission’: {‘accessMode’: ‘VIEW’, ‘dateRange’: {‘from’: ‘2023-01-01T00:00:00.000000’, ‘to’: ‘2023-09-01T00:00:00.000000’}, ‘dataEraseAt’: ‘2023-10-01T00:00:00.000000’, ‘frequency’: {‘unit’: ‘HOUR’, ‘value’: 1, ‘repeats’: 0}}}}]

We are receiving following response from the API call:
Request RejectedThe requested URL was rejected. Please consult with your administrator.

Your support ID is: 1296456373904779640

[Go Back]

Can you please help us with this on priority?

Thanks,
Arpit
CliniQ360

@Ramandeep1, @IntegrationSupport,

We are getting this error for all the gateway APIs since morning.
Client Id : “SBX_002789”

Can you please check and let us know what is wrong?

Thanks,
Arpit
CliniQ360

Hi Team,

This issue is resolved now. We can close this ticket.

Thanks,

@arpit
hi
I am hitting these url : https://dev.abdm.gov.in/gateway/v0.5/consent-requests/init

my request body :
{

// Here we can pass the values form consents/hip/notify url while getting the response in webhook

“requestId”: “{{$guid}}”,

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

“consent”: {

"purpose": {

  "text": "Radha",

  "code": "Kishna",

  "refUri": ""

},

"patient": {

  "id": "saivenkat1998@sbx"

},

"hip": {

  "id": "76543"

},

"careContexts": [

  {

    "patientReference": "TEST-02",

    "careContextReference": "paracetmal"

  }

],

"hiu": {

  "id": "76543"

},

"requester": {

  "name": "Saivenkat",

  "identifier": {

    "type": "REGNO",

    "value": "MH1001",

    "system": "https://www.mciindia.org"

  }

},

"hiTypes": [

    "OPConsultation"

],

"permission": {

  "accessMode": "VIEW",

  "dateRange": {

    "from": "2016-09-21T04:08:55.799037465",

    "to": "2023-09-21T04:08:55.79904012"

  },

  "dataEraseAt": "2023-11-20T13:42:43.719897",

  "frequency": {

    "unit": "HOUR",

    "value": 1,

    "repeats": 0

  }

}

}

}

my response :
{

"error": {

    "code": 2500,

    "message": "Unknown error occurred"

}

}

I am getting these error how can i resolve these error can u please tell me

Please pass {‘text’: ‘Care Management’, ‘code’: ‘CAREMGT’} in purpose.

@arpit
Hey hi
I can pass like these

“requestId”: “{{$guid}}”,

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

“consent”: {

"purpose": {

  "text": "Care Management",

  "code": "CAREMGT",

  "refUri": ""

},

"patient": {

  "id": "ramesh1231998@sbx"

},

"hip": {

  "id": "76543"

  //"name" : null

},

i am getting same error how can how can i resolve these issue

Here is the request we are trying:

{
“requestId”: “{{$guid}}”,
“timestamp”: “{{$isoTimestamp}}”,
“consent”: {
“purpose”: {
“text”: “string”,
“code”: “CAREMGT”
},
“patient”: {
“id”: “arpitjain@sbx”
},
“hiu”: {
“id”: “123124”
},
“requester”: {
“name”: “Dr. Saurabh Tripathi”,
“identifier”: {
“type”: “REGNO”,
“value”: “MH1001”,
“system”: “https://www.mciindia.org
}
},
“hiTypes”: [
“OPConsultation”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “2023-04-25T12:52:34.925Z”,
“to”: “2023-06-15T12:52:34.925Z”
},
“dataEraseAt”: “2023-11-25T12:52:34.925Z”,
“frequency”: {
“unit”: “HOUR”,
“value”: 1,
“repeats”: 0
}
}
}
}

The duration is not mentioned in your request

@arpit

Actually I am following these flow can u please tell me this flow is correct or wrong

I am clicking on Pull Records in ABHA SBX APP response was coming to webhook like these

https://webhook.site/f16c98fb-bd41-40d6-9965-1778c2042d9b/v0.5/consents/hip/notify

I am hitting these url : https://dev.abdm.gov.in/gateway/v0.5/consents/hip/on-notify in postman response was coming 202 Accepted only

After how can i get the data encrypt

Hai @Bhaskar1 @IntegrationSupport what values we need to pass in “refUri”,
could you please help me. I am getting like this in PHR APP as shown below,

@ramakrishna337
Hi ramakrishna
May be I am thinking your are not added the links/link/add-contexts

Can you please tell me your flow Which flow your are using

Hai @Bhaskar1 I am executing M3 API flow, first API “https://dev.abdm.gov.in/gateway/v0.5/consent-requests/init”, after executing this API I am getting consent-request notification in my PHR APP and also normal text message , then when I am trying to grand consent in PHR I am getting this issue. Already some visits are linked to that particular patient abha address, when contact @IntegrationSupport they said add refURi in the body, what values we need to pass to refUri. So could you please help me in this.

@ramakrishna337
Hey hi ramakrishna
I don’t know about m3 flow
Present I am stuck in FHIR Bundle Creation so can you please tell me How can do you create the FHIR Bundle or can you share me these code regarding how to create these Bundle data

or once we will connect in google meet if your free
So can you please help me on these

Hai @Bhaskar1 ji we are also structed at that part(FHIR Bundle Creation), On other end I am integrating this M3 part ,if we got any solution for that FHIR Bundle Creation, then I will share with you. meanwhile if you got any solution for that please let me know.

HI @Bhaskar1, please refer to FideliusCli for encryption and decryption. We are using that in backend. Here is the documentation link. https://sandbox.abdm.gov.in/abdm-docs/FideliusCLI

Hi @ramakrishna337, This seems like an issue with your HIU raise consent request. Can u please check what info you added to the HIU request?

Hai @arpit I am using this below curl for HIU consent request, this consent request API got 202 Accepted and I am getting on-init callback also the issue I am facing is When I try to grant consent from PHR APP , I am unable to grant consent its showing like this

curl --location ‘https://dev.abdm.gov.in/gateway/v0.5/consent-requests/init
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2OTcwMjEzNzYsImlhdCI6MTY5Njk5OTc3NiwianRpIjoiNGJiZTUxMGItZTMzMy00OWFlLWFhZDMtOWU2N2M2YWN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IU8CbOso6DOhSn3KAPWQiBd2B0dlY9vE9aZr3n_vwM7Ej6DrevJyFssrThV4R21KM-dzsDmvdWQRiIBUHDkzrux-GLE1PQKU6GlivzOH4e3VK8OPPAjLCx9TVs7isWV93tf5uG-GmFjPqEZ3MMculvaAZFeDiJDNs6wNfaib4oUMlIWoruqIHRKjDsV3nI7GjENm9-SA’
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–data-raw ‘{
“requestId”: “99d9e7a0-99dc-4e40-8ab2-31ea078dabb1”,
“timestamp”: “2023-10-12T04:33:24.001Z”,
“consent”: {
“purpose”: {
“text”: “Care Management”,
“code”: “CAREMGT”
},
“patient”: {
“id”: “ramakrishnag@sbx”
},
“hiu”: {
“id”: “eVaidya_HIU”
},
“requester”: {
“name”: “Dr. Surendra Kavali”,
“identifier”: {
“type”: “REGNO”,
“value”: “MH1001”,
“system”: “https://www.evaidya.com
}
},
“hiTypes”: [
“OPConsultation”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “2022-09-25T12:52:34.925Z”,
“to”: “2023-10-02T12:52:34.925Z”
},
“dataEraseAt”: “2024-11-25T12:52:34.925Z”,
“frequency”: {
“unit”: “HOUR”,
“value”: 1,
“repeats”: 0
}
}
}
}’