API reference
GETPatient
The practice's patients: names, MRN, birth date, sex, contact details, address and preferred language.
Conforms to US Core Patient. Scope: system/Patient.rs (or system/Patient.read).
GET
[base]/Patient/{id}Read one Patient.GET
[base]/Patient?{parameters}Search Patient. Returns a Bundle.POST
[base]/Patient/_searchSearch with the parameters in a form body.Search parameters
| Parameter | Type | Description |
|---|---|---|
_id | token | The resource id. Comma-separate for several. |
identifier | token | An identifier, as system|value or just value (MRN for Patient, NPI for Practitioner, Location and Organization). |
name | string | Any part of the name (starts with, case-insensitive). |
family | string | Family (last) name, starts with. |
given | string | Given (first) name, starts with. |
birthdate | date | Birth date (FHIR date, with prefixes). |
gender | token | male, female, other or unknown. |
phone | token | A 10-digit US phone number (formatting is ignored). |
telecom | token | A phone number or email address. |
email | token | Email address. |
active | token | true or false. |
_count | number | Results per page (default 50, at most 200). See paging. |
Repeat a parameter to AND its values; separate values with commas to OR them.
What's included
- The MRN as
identifier(typeMR). - The legal name (
official) and the name the patient likes to be called (usual). - Mobile, home and work phones and email; home address; preferred language (BCP-47).
genderfrom the sex recorded in Soma;activeis false for inactive or deceased patients.
The patient's clinical record is served as its own US Core resources, each searched by patient: see AllergyIntolerance, Condition, MedicationRequest, Encounter, Procedure, DocumentReference, CarePlan, CareTeam, Observation, ServiceRequest and RelatedPerson.
Example
curl "https://qa3.somahealth.com/api/fhir/r4/your-practice/Patient?family=sample&birthdate=1985-06-15" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/fhir+json"{
"resourceType": "Patient",
"id": "2b6f0c3e-8d4a-4e8b-9a51-6d2f1c0b7e19",
"meta": { "lastUpdated": "2026-12-01T14:22:05.000Z", "profile": ["http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"] },
"identifier": [{ "use": "usual", "type": { "coding": [{ "system": "http://terminology.hl7.org/CodeSystem/v2-0203", "code": "MR", "display": "Medical record number" }] }, "value": "100245" }],
"active": true,
"name": [
{ "use": "official", "family": "Sample", "given": ["Alex", "J"] },
{ "use": "usual", "family": "Sample", "given": ["AJ"] }
],
"telecom": [
{ "system": "phone", "value": "(555) 010-0100", "use": "mobile" },
{ "system": "email", "value": "alex.sample@example.com" }
],
"gender": "male",
"birthDate": "1985-06-15",
"address": [{ "use": "home", "line": ["100 Sample Street"], "city": "Springfield", "state": "NY", "postalCode": "10001", "country": "US" }],
"communication": [{ "language": { "coding": [{ "system": "urn:ietf:bcp:47", "code": "en", "display": "English" }], "text": "English" }, "preferred": true }]
}Examples use made-up data. Elements appear only when the practice has recorded them.