This page is part of the International Patient Access (v0.1.0: STU 1 Ballot 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions
OPERATION: IPAFetchDocumentReference
The official URL for this operation definition is:
http://hl7.org/fhir/uv/ipa/OperationDefinition/docref
This operation is used to return all the references to documents related to a patient.
The operation requires a patient id and takes the optional input parameters:
and returns a Bundle of type "searchset" containing DocumentReference resources for the patient. If the server has or can create documents that are related to the patient, and that are available for the given user, the server returns the DocumentReference resources needed to support the records. The principle intended use for this operation is to provide a patient with access to their available document information.
This operation is different from a search by patient and type and date range because:
It is used to request a server generate a document based on the specified parameters.
If no parameters are specified, the server SHALL return a DocumentReference to the patient's most current summary document (depending on jurisdiction)
If the server cannot generate a document based on the specified parameters, the operation will return an empty search bundle.
This operation is the same as a FHIR RESTful search by patient, type and date range because:
Parameters
Use | Name | Cardinality | Type | Binding | Documentation |
IN | patient | 1..1 | id | The id of the patient resource located on the server on which this operation is executed. If there is no match, an empty Bundle is returned | |
IN | start | 0..1 | dateTime | The date range relates to care dates, not record currency dates - e.g. all records relating to care provided in a certain date range. If no start date is provided, all documents prior to the end date are in scope. If neither a start date nor an end date is provided, the most recent or current document is in scope. The client SHOULD provide values precise to the second + time offset. | |
IN | end | 0..1 | dateTime | The date range relates to care dates, not record currency dates - e.g. all records relating to care provided in a certain date range. If no end date is provided, all documents subsequent to the start date are in scope. If neither a start date nor an end date is provided, the most recent or current document is in scope. The client SHOULD provide values precise to the second + time offset. | |
IN | type | 0..1 | CodeableConcept | http://hl7.org/fhir/ValueSet/c80-doc-typecodes (Example) | The type of document being requested. It relates to document type, e.g. the LOINC code for a C-CDA Continuity of Care Document (CCD) is 34133-9 (Summary of episode note). If no type is provided, a CDA document, if available, SHOULD be in scope and all other document types MAY be in scope |
IN | on-demand | 0..1 | boolean | This on-demand parameter allows client to dictate whether they are requesting only ‘on-demand’ or both ‘on-demand’ and 'stable' documents (or delayed/deferred assembly) that meet the query parameters | |
IN | pofile | 0..1 | canonical | This parameter allows the client to request documents according to a specific profile, using the the profile's canonical reference | |
OUT | return | 1..1 | Bundle | The bundle type is "searchset"containing DocumentReference resources which SHOULD conform to the IPA profile of DocumentReference |
The server is responsible for determining what resources, if any, to return as included resources rather than the client specifying which ones. This frees the client from needing to determine what it could or should ask for. For example, the server may return the referenced document as an included FHIR Binary resource within the return bundle. The server's CapabilityStatement should document this behavior.
The document itself can be subsequently retrieved using the link provided in the DocumentReference.content.attachment.url element
. The link could be a FHIR endpoint to a Binary Resource or some other document repository.
It is assumed that the server has identified and secured the context appropriately, and can either associate the authorization context with a single patient, or determine whether the context has the rights to the nominated patient, if there is one. If there is no nominated patient (e.g. the operation is invoked at the system level) and the context is not associated with a single patient record, then the server should return an error. Specifying the relationship between the context, a user and patient records is outside the scope of this specification