Data Request and Transfer not started automatically from gateway

Hello Team,

Data Request and Transfer flow is not started by gateway after granting access from PHR App. Here is payload for /v0.5/consents/hip/notify :

{

  "requestId": "be0f2c9d-7838-46be-b860-96bc06fd8ebc",

  "timestamp": "2022-11-19T13:29:19.964931",

  "notification": {

    "status": "GRANTED",

    "consentId": "e5656a41-2326-4969-b2b8-7291675f0fa8",

    "consentDetail": {

      "consentId": "e5656a41-2326-4969-b2b8-7291675f0fa8",

      "createdAt": "2022-11-19T13:29:19.839284",

      "patient": {

        "id": "hiteshzala1996@sbx"

      },

      "careContexts": [

        {

          "patientReference": "TEST-002",

          "careContextReference": "DEMO-26-002"

        }

      ],

      "hip": {

        "id": "HIP7M",

        "name": "7Mantra"

      },

      "consentManager": {

        "id": "sbx"

      },

      "hiTypes": [

        "DischargeSummary"

      ],

      "permission": {

        "accessMode": "VIEW",

        "dateRange": {

          "from": "2022-11-19T13:27:02.186",

          "to": "2022-11-19T13:27:02.186"

        },

        "dataEraseAt": "2022-11-20T13:27:02.186",

        "frequency": {

          "unit": "HOUR",

          "value": 1,

          "repeats": 0

        }

      }

    },

    "signature": "Yp/jlf2U3AuWTAkPWYmQq1CzJDzM2fj9mkf8VEyVVqb6fyCRkctOS9wAVrHNjt4QSFOapv5SQw8IQj+hh4jpUP/rhhhkqTvX2rwoWiXpc5pk19EVS8r1/Qesxz2vmwwI00xQViOllaYwcp4hCVQzuotgrr5EcwoLXUs9vpWTHdVHixMxWbuC40VeZHRHSGNW93PdWzWpogs/NXOpsV6GuTx3ZYHm7+A/vOX4fwD5KgSoqNHJWOHF1f0KPiji9jMa71Mj+JF6EeNVYx3ILE6zXLuELbkhugJ09840kGmHi3scBNe1QJGjTz1UYLqYhIg8pb7qcsRPcv6XBYRa5UR52A==",

    "grantAcknowledgement": ""

  }

}

We are getting 202 Request accepted for following payload on callback api /v0.5/consents/hip/on-notify :

{

  "requestId": "5f7a535d-a3fd-416b-b069-c97d021fbacd",

  "timestamp": "2022-11-19T13:29:20.346842",

  "acknowledgement": {

    "status": "OK",

    "consentId": "e5656a41-2326-4969-b2b8-7291675f0fa8"

  },

  "resp": {

    "requestId": "be0f2c9d-7838-46be-b860-96bc06fd8ebc"

  }

}

Please help if there is anything wrong.

Thank you.

Regards,
Daivat Soni.

@shubham.nakawe @sukreet @Govind_Deshmukh

Could you please help @IntegrationSupport ?

Hi, Can you please let us know the consent-artefact for which you would have received consents/hip/notify? We have raised this concern with our technical experts also. @Ramandeep1 may please help with resolution.
Thanks

Hey @daivat,

I see some wrong placements of the parameter in payload,
Please find the correct sample below,

  1. payload for /v0.5/consents/hip/notify :

{
“notification”: {
“consentDetail”: {
“consentId”: “b927576e-27af-4a24-9e26-efbccef464f6”,
“createdAt”: “2021-12-07T10:36:44.358286”,
“purpose”: {
“text”: “Self Requested”,
“code”: “PATRQT”,
“refUri”: “”
},
“patient”: {
“id”: “shubh@sbx”
},
“consentManager”: {
“id”: “sbx”
},
“hip”: {
“id”: “Demo_Test_002”,
“name”: null
},
“hiTypes”: [
“Prescription”,
“DiagnosticReport”,
“OPConsultation”,
“DischargeSummary”,
“ImmunizationRecord”,
“HealthDocumentRecord”,
“WellnessRecord”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “1921-12-07T10:36:43.6590558”,
“to”: “2021-12-08T10:36:43.6590662”
},
“dataEraseAt”: “2121-12-07T10:36:43.6590778”,
“frequency”: {
“unit”: “HOUR”,
“value”: 1,
“repeats”: 1
}
},
“careContexts”: [
{
“patientReference”: “ref_shubh”,
“careContextReference”: “DEMO-7-12_3”
}
]
},
“status”: “GRANTED”,
“signature”: “WaODlnJTVZcqI2U0e2H7SwLlJEEQUeQjueBE53MDq38N5zifszeagOv7fWR0AZvUGnUnimZAsu8Z0Z6+q3On4qdq14PNk156ZaIdLmtVRr1cZBlu43hoLdAoXFCexjpd9cwCrAwZy8HDfktI6UH7PwiFlmLKqQBebHZ9G21g8EPrlk8koUH00JLyuX4o9nJSZTvRYRLmapAWOV4yfnHPYQI/+LjeqC/JVmv8pbAr7+KCi7NgZ6QgBbXnk6S+htnDt8Zdo9nX4y65RizawesCwBaK7QJdEp715iMkMoTvNypJ19AnfArW7PFnRvodwepZwKPlg4VNGpvbog6JUT8PVw==”,
“consentId”: “b927576e-27af-4a24-9e26-efbccef464f6”,
“grantAcknowledgement”: false
},
“requestId”: “030d7491-e1a2-4961-965c-28043da72d15”,
“timestamp”: “2021-12-07T10:36:44.391519”
}

  1. payload for /v0.5/consents/hip/on-notify :

{
“requestId”: “8ad8485e-80d8-4bb9-bd59-90332b4d066e”,
“timestamp”: “2021-12-07T10:36:43.514062”,
“event”: {
“id”: “8ef39644-62ba-4843-8786-9a84a1cfa5a7”,
“published”: “2021-12-07T10:36:43.495121”,
“subscriptionId”: “f7ad8b9e-333a-4900-ad22-031ce5bdf16b”,
“category”: “LINK”,
“content”: {
“patient”: {
“id”: “shubh@sbx”
},
“hip”: {
“id”: “Demo_Test_002”,
“name”: null
},
“context”: [
{
“careContext”: {
“patientReference”: “ref_shubh”,
“careContextReference”: “DEMO-7-12_3”
},
“hiTypes”: [
]
}
]
}
}
}

Thanks

Hey @daivat,

I see some wrong placements of the parameter in payload,
Please find the correct sample below,

  1. payload for /v0.5/consents/hip/notify :

{
“notification”: {
“consentDetail”: {
“consentId”: “b927576e-27af-4a24-9e26-efbccef464f6”,
“createdAt”: “2021-12-07T10:36:44.358286”,
“purpose”: {
“text”: “Self Requested”,
“code”: “PATRQT”,
“refUri”: “”
},
“patient”: {
“id”: “shubh@sbx”
},
“consentManager”: {
“id”: “sbx”
},
“hip”: {
“id”: “Demo_Test_002”,
“name”: null
},
“hiTypes”: [
“Prescription”,
“DiagnosticReport”,
“OPConsultation”,
“DischargeSummary”,
“ImmunizationRecord”,
“HealthDocumentRecord”,
“WellnessRecord”
],
“permission”: {
“accessMode”: “VIEW”,
“dateRange”: {
“from”: “1921-12-07T10:36:43.6590558”,
“to”: “2021-12-08T10:36:43.6590662”
},
“dataEraseAt”: “2121-12-07T10:36:43.6590778”,
“frequency”: {
“unit”: “HOUR”,
“value”: 1,
“repeats”: 1
}
},
“careContexts”: [
{
“patientReference”: “ref_shubh”,
“careContextReference”: “DEMO-7-12_3”
}
]
},
“status”: “GRANTED”,
“signature”: “WaODlnJTVZcqI2U0e2H7SwLlJEEQUeQjueBE53MDq38N5zifszeagOv7fWR0AZvUGnUnimZAsu8Z0Z6+q3On4qdq14PNk156ZaIdLmtVRr1cZBlu43hoLdAoXFCexjpd9cwCrAwZy8HDfktI6UH7PwiFlmLKqQBebHZ9G21g8EPrlk8koUH00JLyuX4o9nJSZTvRYRLmapAWOV4yfnHPYQI/+LjeqC/JVmv8pbAr7+KCi7NgZ6QgBbXnk6S+htnDt8Zdo9nX4y65RizawesCwBaK7QJdEp715iMkMoTvNypJ19AnfArW7PFnRvodwepZwKPlg4VNGpvbog6JUT8PVw==”,
“consentId”: “b927576e-27af-4a24-9e26-efbccef464f6”,
“grantAcknowledgement”: false
},
“requestId”: “030d7491-e1a2-4961-965c-28043da72d15”,
“timestamp”: “2021-12-07T10:36:44.391519”
}

  1. payload for /v0.5/consents/hip/on-notify :

{
“requestId”: “8ad8485e-80d8-4bb9-bd59-90332b4d066e”,
“timestamp”: “2021-12-07T10:36:43.514062”,
“event”: {
“id”: “8ef39644-62ba-4843-8786-9a84a1cfa5a7”,
“published”: “2021-12-07T10:36:43.495121”,
“subscriptionId”: “f7ad8b9e-333a-4900-ad22-031ce5bdf16b”,
“category”: “LINK”,
“content”: {
“patient”: {
“id”: “shubh@sbx”
},
“hip”: {
“id”: “Demo_Test_002”,
“name”: null
},
“context”: [
{
“careContext”: {
“patientReference”: “ref_shubh”,
“careContextReference”: “DEMO-7-12_3”
},
“hiTypes”: [
]
}
]
}
}
}

Note : Error that you are facing is purely due to poor connection of the server to our gateway. For reference screenshot has been attached below.

Thanks

hello @Shubhanshu_S
but this payload totally differnent from what is mentioned in doc

{
“requestId”: “5f7a535d-a3fd-416b-b069-c97d021fbacd”,
“timestamp”: “2022-06-09T06:42:34.297Z”,
“acknowledgement”: {
“status”: “OK”,
“consentId”: “”
},
“error”: {
“code”: 1000,
“message”: “string”
},
“resp”: {
“requestId”: “3fa85f64-5717-4562-b3fc-2c963f66afa6”
}
}

do i need to change the payload from doc to the one which u mentioned???

Can we mark this thread as closed ? @deeptomar93 @daivat

yes please ,but please provide resolution for the issue
data not showing on HIU part i’ve raised on dev forum as well as mail