Retrieve Document

Endpoint

POST https://api.pjd.test.nhn.no//mhd/document

Scope

nhn:phr/mhd/read-document

Parameters:

documentUniqueId, homeCommunityId and repositoryUniqueId is returned from the request to Find Document References.

Parameter Type Required? Description
nhn-patient-nin Header Required Patient identifier (NIN), required to generate SAML assertion
nhn-source-system Header Required Name and version of the EPJ system
nhn-event-id Header Optional Unique id from consumer
documentUniqueId Query Required Global identifier for a document in Cross-enterprise document sharing for healthcare
homeCommunityId Query Required Identifier for participant's home community in Cross-enterprise document sharing for healthcare
repositoryUniqueId Query Required Unique ID for the document repository in Cross-enterprise document sharing for healthcare

Example GET request

GET api.pjd.test.nhn.no/mhd/document?documentUniqueId=1.2.840.4711.815.1.30112023.1&repositoryUniqueId=2.16.578.1.12.4.1.7.1.2.12.1.1.2.31&homeCommunityId=urn:oid:2.16.578.1.12.4.1.7.1.2.12.1.1
Host api.pjd.test.nhn.no
Accept: application/pdf; 
nhn-patient-nin: 13116900216
nhn-source-system: EPJ System 1.0
nhn-event-id: <unique id>
Authorization: DPoP <DPoP authorization bearer token>
DPoP: <DPoP proof token>

Return value

The document itself with its associated content type (e.g. application/pdf or application/xml).

NOTE: Currently the API cannot return a FHIR json bundle of type document with application/fhir+json, with all the content encoded as FHIR resources.