Patient

The FHIR R4 Patient resource represents demographic and administrative information about an individual receiving healthcare services. It is the central reference point for nearly all clinical resources in FHIR. Health Gorilla supports reading, creating, updating, and searching for patients within the network.

Use Cases

  • Register a new patient in the Health Gorilla network
  • Retrieve or match patient demographics across systems
  • Link clinical data (e.g., labs, medications, encounters) to the patient record

Base URLs

Authentication

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

Required Scopes

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

For more information, go to: OAuth 2.0 Authentication.

Supported Methods

Patient Methods

MethodOperationDescription
GETRead PatientRetrieves a specific Patient record by its FHIR ID.
GETSearch PatientSearches for Patient records using demographic parameters.
POSTCreate PatientSubmits a new Patient record to the Health Gorilla FHIR server.
PUTUpdate PatientUpdates an existing Patient record by full resource replacement.
POSTExport CCDAGenerates a CCDA document for the patient via the $export-ccda operation.
GETPatient EverythingRetrieves the full clinical history for a patient via the $everything operation.

Frequently Used Search Parameters

ParameterDescriptionFHIR Value Set / Example ValuesFHIR Data TypeRequired
nameFilters by patient name (first, last, or both)"John", "Doe", "John Doe"stringNo
identifierSearches by a patient identifierMRN, SSN, or system-specific IDstokenNo
birthdateFilters by date of birtheq1980-01-01, le2000-12-31dateNo
genderFilters by genderAdministrativeGender (male, female, other)tokenNo
addressFilters by any part of the address"Sunnyvale"stringNo
telecomSearches by phone number or email555-1234, [email protected]tokenNo
_idSearches by the FHIR resource IDPatient/{id}tokenNo

Commonly Returned Resource Attributes

AttributeDescriptionExample ValuesFHIR Data TypeRequired
idUnique FHIR ID for the patientpat-78910idYes
identifierExternal patient IDsMRN: 123456, SSN: 999-12-3456Identifier[]No
nameFull patient nameJohn DoeHumanName[]Yes
genderPatient's gendermalecodeNo
birthDateDate of birth1985-06-21dateNo
telecomContact information555-555-5555, [email protected]ContactPoint[]No
addressPhysical or mailing address123 Main St, Sunnyvale, CAAddress[]No
deceasedBooleanIndicates if the patient is deceasedfalse, truebooleanNo
activeWhether the patient record is activetruebooleanNo
managingOrganizationOrganization responsible for the patientOrganization/{id}Reference(Organization)No
communication.languagePreferred languageen, esCodeableConceptNo
generalPractitionerReference to the primary care providerPractitioner/{id}ReferenceNo

Webhooks

Health Gorilla supports webhook notifications when a patient record is created or updated. Patient webhooks may also be triggered indirectly when linked clinical data (e.g., lab results or encounters) are retrieved or modified.

For more information, go to: Webhooks & Polling.

Error Handling

All Patient 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 Patient