Procedure

The FHIR R4 Procedure resource represents an activity performed on or for a patient as part of the provision of care. It may include surgical operations, diagnostic testing, counseling, or other clinical interventions. In Health Gorilla, Procedure records are typically imported from external networks, EHRs, or encounter documentation.

Use Cases

  • View historical procedures performed during hospital visits or specialty care
  • Filter procedures by type (e.g., colonoscopy, biopsy)
  • Link procedures to specific encounters or diagnoses

Base URLs

Authentication

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

Required Scopes

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

For more information, go to: OAuth 2.0 Authentication.

Supported Methods

MethodOperationDescription
GETRead ProcedureRetrieves a specific Procedure record by its FHIR ID.
GETSearch ProcedureSearches for Procedure records for a specified patient.
POSTCreate ProcedureSubmits a new Procedure record to the Health Gorilla FHIR server.
PUTUpdate ProcedureUpdates an existing Procedure record by full resource replacement.
DELETEDelete ProcedureRemoves an existing Procedure record from the system by full resource deletion.

Search Parameters

Searches are scoped to a single patient. Provide patient, then narrow with the optional filters.

ParameterRequiredDescription
patientYesThe patient whose procedures you want, as Patient/{id}. You can also search by a patient identifier using patient.identifier.
encounterNoReturns procedures recorded during the given encounter, as Encounter/{id}.
_lastUpdatedNoFilters on when the record was last written in the Health Gorilla FHIR server. Accepts a comparison prefix, for example ge2025-01-01.
_offsetNoSkips the given number of results.
_countNoLimits the number of results returned per page.
_tagNoFilters on meta.tag.
_securityNoFilters on meta.security.

The search also accepts _revinclude=Provenance:target, which returns the Provenance records describing where the results came from.

Resource Attributes

AttributeDescriptionExample ValuesFHIR Data TypeRequired
idUnique FHIR ID for the procedureprocedure-98765idYes
statusStatus of the procedure recordcompletedcodeYes
codeProcedure performed80146002 (Colonoscopy)CodeableConceptYes
subjectThe patient on whom the procedure was performedPatient/{id}Reference(Patient)Yes
performedDateTimeDate/time the procedure occurred2023-11-05T14:00:00-07:00dateTimeYes
encounterAssociated encounterEncounter/{id}Reference(Encounter)No
performerWho carried out the procedurePractitioner/{id}Procedure.Performer[]No
reasonCodeReason the procedure was performedScreening for colorectal cancerCodeableConcept[]No
noteComments or annotations"No complications observed."Annotation[]No
bodySiteLocation on the body where the procedure occurredcolon, left armCodeableConcept[]No

Webhooks

Clients can subscribe to webhook notifications when new Procedure records are imported into a patient’s chart, often following diagnostic or surgical encounters.

For more information, go to: Webhooks & Polling.

Error Handling

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

Additional Resources

HL7 FHIR Procedure