Hi @IntegrationSupport we are trying to push pdf data to the dataPushURL.
The steps we are following is as follows.
- We are converting PDF data to base64 String.
- We are adding this base64 String to the FHIR json which is pasted below for your reference.
- We are then encrypting this json data using fidelius-cli
- Then we are adding this encrypted data to the hiu api inside “content’
We are adding all the key materials as shown in the webinar and also referred to the document.
But, we are getting this error in the HIU app " Error in the data received from Health information Providers”.
We are getting 202 Accepted.
Please help us to resolve this issue.
FHIR JSON - {
“resourceType”: “Bundle”,
“id”: “9285fcde-fe04-4746-a85a-88badd1006ae”,
“meta”: {
“lastUpdated”: “2023-06-13T10:05:20+0000”
},
“identifier”: {
“system”: “https://abdmtest.viewzenlabs.in”,
“value”: “9285fcde-fe04-4746-a85a-88badd1006ae”
},
“type”: “document”,
“timestamp”: “2023-06-13T10:05:20+0000”,
“entry”: [
{
“fullUrl”: “Composition/3698f51b-a868-4a37-833c-b19f138fe2d4”,
“resource”: {
“resourceType”: “Composition”,
“id”: “3698f51b-a868-4a37-833c-b19f138fe2d4”,
“identifier”: {
“system”: “https://abdmtest.viewzenlabs.in”,
“value”: “3698f51b-a868-4a37-833c-b19f138fe2d4”
},
“status”: “final”,
“type”: {
“coding”: [
{
“system”: “https://projecteka.in/sct”,
“code”: “419891008”,
“display”: “Record artifact”
}
]
},
“subject”: {
“reference”: “Patient/LIVNO99”
},
“date”: “2023-06-13T10:05:20+0000”,
“author”: [
{
“reference”: “Practitioner/MAX1456”
}
],
“title”: “Health Document Record”,
“section”: [
{
“title”: “Health Document Record”,
“code”: {
“coding”: [
{
“system”: “https://projecteka.in/sct”,
“code”: “419891008”,
“display”: “Record artifact”
}
]
},
“entry”: [
{
“reference”: “DocumentReference/a95874a8-cc27-4c70-820c-fe1fa9fe9e2a”
}
]
}
]
}
},
{
“fullUrl”: “Practitioner/MAX1456”,
“resource”: {
“resourceType”: “Practitioner”,
“id”: “MAX1456”,
“identifier”: [
{
“system”: “https://www.mciindia.in/doctor”,
“value”: “MAX1456”
}
],
“name”: [
{
“text”: “Ramya”,
“prefix”: [
“Dr”
],
“suffix”: [
“MBBS”
]
}
]
}
},
{
“fullUrl”: “Patient/LIVNO99”,
“resource”: {
“resourceType”: “Patient”,
“id”: “LIVNO99”,
“name”: [
{
“text”: “Venki”
}
],
“gender”: “male”
}
},
{
“fullUrl”: “DocumentReference/a95874a8-cc27-4c70-820c-fe1fa9fe9e2a”,
“resource”: {
“resourceType”: “DocumentReference”,
“id”: “a95874a8-cc27-4c70-820c-fe1fa9fe9e2a”,
“status”: “current”,
“type”: {
“coding”: [
{
“system”: “https://projecteka.in/loinc”,
“code”: “30954-2”,
“display”: “Surgical Pathology Report”
}
]
},
“author”: [
{
“reference”: “Practitioner/MAX1456”
}
],
“content”: [
{
“attachment”: {
“contentType”: “application/pdf”,
“data”: “<PDF base 64 String>”,
“title”: “Health Document Record”
}
}
]
}
}
]
}
https://dev.abdm.gov.in/api-hiu/data/notification (Request body):-
{
“pageNumber”: 1,
“pageCount”: 1,
“transactionId”: “780a18dd-4608-4e5d-9aac-6d1b60111564”,
“entries”: [
{
“content”: “”,
“media”: “application/pdf”,
“checksum”: “72a9491fdb7b7e341d3a0b4c45f9684c”,
“careContextReference”: “00781”
}
],
“keyMaterial”: {
“cryptoAlg”: “ECDH”,
“curve”: “Curve25519”,
“dhPublicKey”: {
“expiry”: “2023-06-16T08:06:06.115467”,
“parameters”: “Ephemeral public key”,
“keyValue”: “MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAARMiCi4Jv2Jd61yrVIYCjHugIbvBZL3SRm5awOMF2H7ozyMyxM8+gK94b3o6hvy7C5QNNUKasZbDn5Fw15ZxSmR”
}
},
“nonce”: “aO3k2Jgk1VYRWO8tzPpob5wD5Rt2FBXPyyJAyUYDw+4=”
}
https://dev.abdm.gov.in/gateway/v0.5/health-information/notify (Request body)
{
"requestId": "{{$guid}}",
"timestamp": "{{timestamp}}",
"notification": {
"consentId": "d265c216-89fc-4651-8ed9-2a45c455e72d",
"transactionId": "780a18dd-4608-4e5d-9aac-6d1b60111564",
"doneAt": "{{timestamp}}",
"notifier": {
"type": "HIU",
"id": "Test_Doc_001"
},
"statusNotification": {
"sessionStatus": "TRANSFERRED",
"hipId": "IN2910000178_2",
"statusResponses": [
{
"careContextReference": "00781",
"hiStatus": "OK",
"description": "Acidity"
}
]
}
}
}