Hi @sukreet ,
I am facing issue in fetching data via HIU
- I have called subscription api and got Hip list in ‘v0.5/Subscription-Request/Hiu/Notify’ api response.
- After that i have raised consent-request using that HipId(single Hipid) and consent-request got auto approved.
- After auto approval i got two ids in consentArtefacts.Using that consentArtefact’s ids i have
called ‘/v0.5/consents/fetch’ Api and got response on ‘/v0.5/consents/on-fetch’ api. - But in the response of ‘/v0.5/consents/on-fetch’ api i got same HipId and same
careContexts list even after sending two different consentArtefacts id
Please guide us
Below is the json pay load
v0.5/Subscription-Request/Hiu/Notify
{“requestId”:“e54667d4-09ad-4504-89f5-9cf7a9df019b”,“timestamp”:“2021-05-27T11:03:10.8893853Z”,“notification”:{“subscriptionRequestId”:“fd5b69f6-943b-41cf-bf3d-113dfd39bb77”,“status”:“GRANTED”,“subscription”:{“id”:“761731e5-dae6-4d07-bc7f-29c702b21ed8”,“patient”:{“id”:“Varunmishra2202@sbx”,“name”:null},“hiu”:{“id”:“driefcasehl”},“sources”:[{“hip”:{“id”:“SBX_000080”},“categories”:[“LINK”,“DATA”],“period”:{“from”:“1916-05-27T10:59:05.277”,“to”:“2121-05-27T10:59:04.067”}},{“hip”:{“id”:“ehosp@nic”},“categories”:[“LINK”,“DATA”],“period”:{“from”:“1916-05-27T10:59:05.277”,“to”:“2121-05-27T10:59:04.067”}},{“hip”:{“id”:“InformDS”},“categories”:[“LINK”,“DATA”],“period”:{“from”:“1916-05-27T10:59:05.277”,“to”:“2121-05-27T10:59:04.067”}},{“hip”:{“id”:“AdityaClinic”},“categories”:[“LINK”,“DATA”],“period”:{“from”:“1916-05-27T10:59:05.277”,“to”:“2121-05-27T10:59:04.067”}}]}}}
/v0.5/consent-requests/init
{“requestId”:“a844fd82-58f0-47cc-a00a-8f56084d0d95”,“timestamp”:“2021-05-27T11:06:27.5459839Z”,“consent”:{“purpose”:{“text”:“Self Requested”,“code”:“PATRQT”,“refUri”:""},“patient”:{“id”:“Varunmishra2202@sbx”,“name”:null},“hip”:{“id”:“SBX_000080”},“hiu”:{“id”:“driefcasehl”},“requester”:{“name”:“DRiefcase Health Locker”,“identifier”:{“type”:“Health Locker”,“value”:"",“system”:""}},“hiTypes”:[“Prescription”,“DiagnosticReport”,“OPConsultation”,“DischargeSummary”,“ImmunizationRecord”],“permission”:{“accessMode”:“VIEW”,“dataEraseAt”:“2121-05-27T11:04:27.5456966Z”,“dateRange”:{“from”:“1921-05-27T11:04:27.5452147Z”,“to”:“2021-05-28T11:04:27.5452369Z”},“frequency”:{“unit”:“HOUR”,“value”:“1”,“repeats”:“1”}}}}
/v0.5/consents/hiu/notify
{“requestId”:“e1681f6b-0ed7-44a7-b34e-3a321e2b3afc”,“timestamp”:“2021-05-27T11:04:33.595759”,“notification”:{“consentRequestId”:“5ca48de0-8536-4a0a-ad27-d4308d87e6c1”,“status”:“GRANTED”,
“consentArtefacts”:[{“id”:“38c938e6-fc5b-45f3-bced-e9d8ad4b49b1”},{“id”:“f37c3cd3-590e-4cc5-8c90-ecc6b737f6d6”}]}}
/v0.5/consents/fetch
{“requestId”:“47dbdaf3-2e98-4e91-9856-7b82e05ec2a4”,“timestamp”:“2021-05-27T11:04:34.0547566Z”,“consentId”:“38c938e6-fc5b-45f3-bced-e9d8ad4b49b1”}
/v0.5/consents/on-fetch
{“requestId”:“e9078f3a-5abf-4a63-82ed-c86b8cf9443a”,“timestamp”:“2021-05-27T11:04:34.569888”,“consent”:{“status”:“GRANTED”,“signature”:“Df88ho9myGg+geTbKm+aKv4MZWrWFXlYfg75xjYO640KM8h2ko+4T5Uw2dvtSpvw/0KbJp5tOTX8CZ49lxr3xo6s6UUEVyEs09yBsG7M1P9PxQuOeUKTlwywTb+kJ1VWueNQ2wczyknyzacT7dMI+mR/waUvrZi18AXiCPDUUl2h/3HU1Ql1Gi7eh5p4NvEx2FWpTBzsigoYkw3sdkFnwZVUUndxBwOgOc8fSOFjv3G4RExDuOGbZk2yRPJFfdcylip/3tzB/dKGASLWQ1QHXssoaY/5sBmbwbFaHHBIR9hL3bo2ZnZzrz3cc5HNhoAFrZKJPTByqpKnW6EEX/W5+Q==”,“consentDetail”:{“schemaVersion”:“v0.5”,“consentId”:“38c938e6-fc5b-45f3-bced-e9d8ad4b49b1”,“createdAt”:“2021-05-27T11:04:33.539304”,“patient”:{“id”:“Varunmishra2202@sbx”,“name”:null},“careContexts”:[{“patientReference”:“varunmishra2202@sbx”,“careContextReference”:“0002UD000040”}],“purpose”:{“text”:“Self Requested”,“code”:“PATRQT”,“refUri”:""},“hip”:{“id”:“SBX_000080”},“hiu”:{“id”:“driefcasehl”},“consentManager”:{“id”:“sbx”},“requester”:{“name”:“DRiefcase Health Locker”,“identifier”:{“type”:“Health Locker”,“value”:"",“system”:""}},“hiTypes”:[“Prescription”,“DiagnosticReport”,“OPConsultation”,“DischargeSummary”,“ImmunizationRecord”],“permission”:{“accessMode”:“VIEW”,“dataEraseAt”:“2121-05-27T11:04:27.5456966”,“dateRange”:{“from”:“1921-05-27T11:04:27.5452147”,“to”:“2021-05-28T11:04:27.5452369”},“frequency”:{“unit”:“HOUR”,“value”:“1”,“repeats”:“1”}}}},“error”:null,“resp”:{“requestId”:“47dbdaf3-2e98-4e91-9856-7b82e05ec2a4”}}
/v0.5/consents/fetch
{“requestId”:“cf30e546-50be-44c8-a5fb-7d92ac0594b5”,“timestamp”:“2021-05-27T11:04:34.7844175Z”,“consentId”:“f37c3cd3-590e-4cc5-8c90-ecc6b737f6d6”}
/v0.5/consents/on-fetch
{“requestId”:“12785da1-1702-4019-9c84-b2aeb40c6e9a”,“timestamp”:“2021-05-27T11:04:35.636363”,“consent”:{“status”:“GRANTED”,“signature”:“OYNmKmyBQzI4dUfmSyl4F39Njkc1H3fSIP6jWlVVOrJkFfpKY/YYT7FmfPLROY4v8nQdS8spiSXeMc7FLdU/ok4KWCYlupqZVhE8dWKMYCbfoyBWSjrA8rbRFioP076inRi6RUB9CTlMkaGDPMjg2e/2ZITzb4neTytE0aF124GgGfUqG072ZFVOabakjdtsdtC22m/tnzGRu4tY2fNFXkSfQ/anW5BGJV31IUGovSWbEnWuOqMzeR1Wszowy52tix4Sgi+/aQrD4uWmR84P7wrPpG25NwMu7FzTW7TlMKhG+iNScj5AiHM+rnxXvl1xPOcxronNRJ79e+YW4K5U1g==”,“consentDetail”:{“schemaVersion”:“v0.5”,“consentId”:“f37c3cd3-590e-4cc5-8c90-ecc6b737f6d6”,“createdAt”:“2021-05-27T11:04:33.542725”,“patient”:{“id”:“Varunmishra2202@sbx”,“name”:null},“careContexts”:[{“patientReference”:“varunmishra2202@sbx”,“careContextReference”:“0002UD000041”}],“purpose”:{“text”:“Self Requested”,“code”:“PATRQT”,“refUri”:""},“hip”:{“id”:“SBX_000080”},“hiu”:{“id”:“driefcasehl”},“consentManager”:{“id”:“sbx”},“requester”:{“name”:“DRiefcase Health Locker”,“identifier”:{“type”:“Health Locker”,“value”:"",“system”:""}},“hiTypes”:[“Prescription”,“DiagnosticReport”,“OPConsultation”,“DischargeSummary”,“ImmunizationRecord”],“permission”:{“accessMode”:“VIEW”,“dataEraseAt”:“2121-05-27T11:04:27.5456966”,“dateRange”:{“from”:“1921-05-27T11:04:27.5452147”,“to”:“2021-05-28T11:04:27.5452369”},“frequency”:{“unit”:“HOUR”,“value”:“1”,“repeats”:“1”}}}},“error”:null,“resp”:{“requestId”:“cf30e546-50be-44c8-a5fb-7d92ac0594b5”}}