Unable to view HIP transferred records on HIU interface

Hi
@Prajwal @Ramandeep1 @Govind_Deshmukh

I am testing the HIP flow where I requested consent on HIU dev interface for a patient and after approval, I sent the encrypted FHIR lab report to the data push url received in the API. I am using this tool for key generation and data encryption: https://github.com/sukreet/fidelius

The API shows status 202 accepted. However, when I try to access these records on the HIU dev interface, it shows
Error in the data received from 1 Health Information Providers!

Please see if my request has any issues.

This is my request:

url: “https://dev.abdm.gov.in/api-hiu/data/notification

headers:
{“Content-Type”=>“application/json”,
“Authorization”=>
“Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NTgxMjQ1NDgsImlhdCI6MTY1ODEyMzk0OCwianRpIjoiMWEyYzJjOTYtZjA5MS00MzY3LTk4ZWUtMDgwY2IzYWE0Zjk0IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJjMWE3ZWIyZi0xMzZmLTQ0Y2ItOTZjZC1jOTBmOTAxZmM2NWYiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxNzUxIiwic2Vzc2lvbl9zdGF0ZSI6IjJkYTcyMjQxLTUzNDAtNGUxMi05ZjQ0LTg3M2Y3MTcxMmYzZSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDE3NTEiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY3LjI0MSIsImNsaWVudElkIjoiU0JYXzAwMTc1MSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDE3NTEiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3LjI0MSJ9.NnkAutexhcxWsXbN30_TTKsoI-OHvP5O0pXNMGz0xX24ncIxUS7ZsNpj4Q2OZ8c62vY7CGZBy64LKot7Dvz9u9Ef3cuEtArsEEop_Ohvc6sgl50k-EN5TGQe2ubwqPjjON8HeoBzDSijHsvLa0fZBUhjukHl2bDsbH67vzSsd36iG1dfkweXCI7A8Nx5sE3fRHngM3Z_zybvuCb_8navYJ5f3-NDv3UTCIeIInqKGFg6mlX4-xk81UPAs_9BK7H1fOsiO0dd5f8rIJ85JO-HTKn5ViCDJMfjw2WyxzBmBlez35Gyhz0RVUaFQOjcv1LaSeLOBDMKHS6-QLx82BeQ9w”}

body:
{:pageNumber=>0,
:pageCount=>0,
:transactionId=>“bae368c6-289e-430c-abe0-d5c49f5468d0”,
:entries=>
[{:content=>
“/SspdX4qRmAjqcv6r5JnJc0VzGiNsqpuYQEe6mTjJw291IbwuYUrq+8yTjVlcd8E/d5fqgEDGiJlLJTXndbU0mext/ofanBhM7JSjCepBo4lPiKLThzllTA5iju6OM/zMB521w/IisN7wQs43+bZzSKtlA+VHyXnvPSTXD0vYHWJkDvy2+StipkfA2na35y5SfJrKJjLfGDj0Do02tXftS2xj1TYEZs1JgcjLZMYbrr92RsmrMK16PoJcfDqraHZ69bRIXFExpKzL6MWi2drszpFSVKZV0dy71+fwuyDgIDdg7IY3+6cbn9AQkNzgG9jG42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f6jwLi1eKHca2hCOGAezEzADQKn/wUhpwGUSSTskO6pUoA==”,
:media=>“application/fhir+json”,
:checksum=>“1229e19de3caa28ecae62cae770585ae”,
:careContextReference=>“LABREPORT001”}],
:keyMaterial=>
{:cryptoAlg=>“ECDH”,
:curve=>“Curve25519”,
:dhPublicKey=>
{:expiry=>“2022-07-23T10:53:48.73829”,
:parameters=>“Curve25519/32byte random key”,
:keyValue=>“BESNZQcKTqwNsf4dvy0Auyl231Q7ARmRL/YqFR6JnTzXJ80DLDlbeag6U5ucwNCUgc6ImSmVWjXUzNOy5T9Qpuo=”},
:nonce=>“s81X1PJSDCZ/4+ifUEwCeMrMAxHC/OM57BoWS1o20M0=”}}

Hi @simmi

It looks like that you are sending the public key value in the same format that you get from the http://localhost:8090/keys/generate call.

However, you have to send the public value in x509 format to this official ABDM sandbox HIU.

If you are using https://github.com/sukreet/fidelius, you receive this after your call to the http://localhost:8090/encrypt endpoint. Use the keyToShare attribute’s value in the JSON response from the above call, for dhPublickKey.keyValue in your request.

That should fix your issue.

hi @saiki. Thanks for your response.

When I tried to send the keyToShare in dhPublickKey, again I got status 202 accepted. But when I tried to fetch these records on HIU portal, it didn’t show any results.
Please check again.

url: “https://dev.abdm.gov.in/api-hiu/data/notification

headers:
{"Content-Type"=>"application/json", "Authorization"=>"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NTgzMTcxNTQsImlhdCI6MTY1ODMxNjU1NCwianRpIjoiZjY2N2NhZDktNDM1MS00Nzg1LTgyMWItMmU4OWNiMmViNzA2IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJjMWE3ZWIyZi0xMzZmLTQ0Y2ItO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L9JlZllQQjPMu8CVoNUc4l6wes19rNbxXWBacMXqZ/6Y2xCCigXy4m8DkJGFfEu93CSp9FuhilWXrnDmemZrMyJ/Kp9cPfgN0A6rMNuZ4iYk4Ghk9YBkNQ6lHlV4bBVYw8k/hv4eua32hv0YyTzSgCY2/QiXzp8B3VdhiVujnwp+76DXJDEh0AX0wbrqn+Ktaw9xPtiOO7346MCJznsa3qknX4ZvnsdWzdYBhPfrTZyMo0UTTCrFX4bond9or9J1Pori+BGALAYbnALKcu+K+zuLczeEYL3G1UAUfkon8qZAgqKksivPtKUdj71DITGteEMmnmrNeUBeKB8mM3K1NQYp/Z3l/mSpRbJJz4OyGMsWGbN2Qh6F3mZaO3SGyvsHt4A/cnb7bxekcVN9HVN3U564/BqxDgkZvYuot7uXBBKW6WA==", :media=>"application/fhir+json", :checksum=>"1229e19de3caa28ecae62cae770585ae", :careContextReference=>"LABREPORT001"}], :keyMaterial=>{:cryptoAlg=>"ECDH", :curve=>"curve25519", :dhPublicKey=>{:expiry=>"2022-07-22T10:49:46.64355", :parameters=>"Curve25519/32byte random key", :keyValue=>"MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAAQE/6D1jEW1hzNulYUsTIuAka9BgSvlo8+sCiguFt+L5kxyUpkh3/6d+q49KjcQ0Z7yCGW6siQQNSkwQH4WQRdh"}, :nonce=>"XPvZRSiJinO4J9JjolllspkNq5B45kw+B3pcq+pForQ="}}

Hi @simmi,

I would recommend trying two things:

  1. Changing the pageCount to 1
  2. Validating your unencrypted FHIR resource using the validator that can be downloaded at this link: http://hl7.org/fhir/validator/. You may have some FHIR specific errors, because of which the HIU is not being able to successfully decrypt your resource and display it. The validator should highlight these errors.

You can also look at fidelius-cli a stack-agnostic ECDH cryptography CLI tool with additional improvements, and features. Please refer to this post for additional details – Fidelius CLI: A complete end-to-end cryptography solution

cc: @saiki

Regards,

Ranveer

2 Likes

Thanks for your support @Ranveer, @saiki
This issue is resolved now.

2 Likes