Skip to main content

R4 DocumentReference

The DocumentReference resource provides "a reference to a document of any kind for any purpose". It also "provides metadata about the document so that the document can be discovered and managed".

Supported Profiles

This API supports the following FHIR profiles:

Operations

The General Purpose API DocumentReference resources supports the following standard operations. However, support varies by the targeted CareRecord or solution.

CareRecord / SolutionCreateReadUpdateSearch
GEHRIMED-Yes-Yes
myAvatar-Yes-Yes
myEvolv-Yes-Yes
myUnity-Yes-Yes
Referral ManagerYes-Yes-
info

Not all Netsmart solutions support DocumentReference search. See supported operations table above and consult your target solution's documentation for more information.

This operation retrieves a list of resources by these query parameters.

Standard Parameters

NameTypeDescription
authenticatorreferenceWho/what authenticated the document.
authorreferenceWho and/or what authored the document.
custodianreferenceOrganization which maintains the document.
patientreferenceREQUIRED Who/what is the subject of the document. Not required when searching by _id.
perioddateThe time of service that is being documented.
typetokenKind of document (LOINC if possible).
_ididUnique identifier of the DocumentReference. Cannot be used with other search parameters.

Search Examples

Via POST

The POST method is recommended as it keeps health information out of the URL.

Search by Patient and Type
curl -X POST https://fhir.netsmartcloud.com/v4/DocumentReference/_search \
-H "Authorization: {Bearer Token}" \
-H "Accept: application/fhir+json" \
-d "patient=Patient/123" \
-d "type=http://loinc.org|18842-5"

Via GET

Search by Patient and Type
curl -X GET "https://fhir.netsmartcloud.com/uscore/v1/DocumentReference?patient=Patient/123&type=http://loinc.org%7C18748-4" \
-H "Authorization: {Bearer Token}" \
-H "Accept: application/fhir+json"

Generate an Ad-hoc CDA

Disclaimer

This customization is expected to be replaced with an extended operation in future API versions.

This resource has been customized the search to allow for the generation of an ad-hoc CDA document similar to our CCD API.

This functionality is initiated by using one of our CCD API documentType values in type search parameter.

Supported CDA Types

The following CDA document types are currently supported by this API.

Typetype ParameterNote
Consultation NoteConsultationNote
Continuity of Care DocumentCCD
Discharge SummaryDischargeSummary
Electronic Initial Case ReportEICR
Emergency Healthcare SurveyEmergencyHealthcareSurvey
History and Physical NoteHistoryAndPhysicalNote
Inpatient Healthcare SurveyInpatientHealthcareSurvey
Outpatient Healthcare SurveyOutpatientHealthcareSurvey
Progress NoteProgressNoteDoc
Public Health Case ReportPublicHealthCaseReport
Referral NoteReferralNote
Transfer of CareTransferOfCareReserved for future use. This document type is not available currently.
Unstructured DocumentUnstructuredDocument

Parameters

The following search parameters are used to generate the CDA. All other search parameters passed are ignored.

NameTypeDescription
patientreferenceREQUIRED Who/what is the subject of the document.
perioddateThe time of service that is being documented.
typetokenCCD | ConsultationNote | DischargeSummary | EICR | EmergencyHealthcareSurvey | HistoryAndPhysicalNote | InpatientHealthcareSurvey | OutpatientHealthcareSurvey | ProgressNoteDoc | PublicHealthCaseReport | ReferralNote | TransferOfCare | UnstructuredDocument
REQUIRED The type of CDA.

Examples

The following examples show how to use the search parameters to generate a CDA.

Via POST

The POST method is recommended as it keeps health information out of the URL.

Generate a CCD by Patient, Type, and Period
curl -X POST https://fhir.netsmartcloud.com/v4/DocumentReference/_search \
-H "Authorization: {Bearer Token}" \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-form-urlencoded" \
-d "patient=Patient/123" \
-d "type=CCD" \
-d "period=ge2023-07-01" \
-d "period=le2023-07-31"

Via GET

Search by Patient and Type
curl -X GET "https://fhir.netsmartcloud.com/uscore/v1/DocumentReference?patient=Patient/123&type=CCD&period=ge2023-07-01&period=ge2023-07-31" \
-H "Authorization: {Bearer Token}" \
-H "Accept: application/fhir+json"