ServiceRequest

The FHIR R4 ServiceRequest resource represents a request for a clinical service to be performed. This includes lab tests, imaging, procedures, referrals, consults, and other services. It is commonly used to document orders initiated by clinicians as part of diagnostic or treatment workflows.

Use Cases

  • Order laboratory tests or radiology studies
  • Refer a patient to a specialist or external facility
  • Track the status of a service requested during an encounter

Base URLs

Authentication

All requests require OAuth 2.0 authentication using a Bearer Token. Unauthorized requests return 401 Unauthorized responses.

Required Scopes

  • servicerequest.read for GET
  • servicerequest.write for POST, PUT, DELETE

For more information, go to: OAuth 2.0 Authentication

Supported Methods

MethodOperationDescription
GETRead ServiceRequestRetrieves a specific ServiceRequest record by its FHIR ID.
GETSearch ServiceRequestSearches for ServiceRequest records associated with a patient.
POSTCreate ServiceRequestSubmits a new ServiceRequest record to the Health Gorilla FHIR server.
GETDownload ServiceRequest PDFRetrieves a PDF version of the ServiceRequest document, formatted for human-readable display.

Frequently Used Search Parameters

ParameterDescriptionFHIR Value Set or Example ValuesFHIR Data TypeRequired
patientFilters by patient IDPatient/{id}ReferenceYes
statusFilters by status of the service requestRequestStatus (active)tokenNo
intentFilters by intent of the requestRequestIntent (order)tokenNo
codeFilters by requested service codeSNOMED CT or LOINC codes (72166-2, 312850006)tokenNo
authoredFilters by when the request was createdge2023-01-01, le2023-12-31dateNo
encounterFilters by associated encounterEncounter/{id}ReferenceNo
requesterFilters by the practitioner or organizationPractitioner/{id}, Organization/{id}ReferenceNo
identifierFilters by external request identifiersystem-assigned or facility order IDtokenNo

Commonly Returned Resource Attributes

AttributeDescriptionExample ValuesFHIR Data TypeRequired
idUnique FHIR ID for the service requestservicerequest-98765idYes
statusCurrent status of the requestactivecodeYes
intentPurpose of the requestorder, plancodeYes
codeType of service being requestedLOINC or SNOMED CTCodeableConceptYes
subjectThe patient associated with the requestPatient/{id}Reference(Patient)Yes
requesterWho initiated the requestPractitioner/{id}, Organization/{id}ReferenceNo
performerIntended individual or organization to fulfill the orderOrganization/{id}, Practitioner/{id}Reference[]No
reasonCodeReason for the servicechest pain, screeningCodeableConcept[]No
occurrenceScheduled time for the service2024-01-15T09:00:00-07:00dateTimeNo
authoredOnDate the request was created2023-12-01T14:32:00-08:00dateTimeNo
noteAdditional notes or comments"Urgent referral requested"Annotation[]No

Webhooks

ServiceRequest records can trigger webhook notifications when new requests are submitted or existing requests are updated. These are useful for tracking pending services or orders that require action. For more information, go to: Webhooks and Polling

Error Handling

All ServiceRequest operations follow standard Health Gorilla error handling, including structured FHIR OperationOutcome responses. For more information, go to: Error Handling

Additional Resources