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 | Description |
---|---|---|
hit-patient-pid | Header | Patient identifier (NIN), required to generate SAML assertion |
documentUniqueId | Query | Global identifier for a document in Cross-enterprise document sharing for healthcare |
homeCommunityId | Query | Identifier for participant's home community in Cross-enterprise document sharing for healthcare |
repositoryUniqueId | Query | 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;
hit-patient-pid: 13116900216
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.