API reference
GETLocation
The practice's offices, with address, phone, fax and place of service.
Conforms to US Core Location. Scope: system/Location.rs (or system/Location.read).
GET
[base]/Location/{id}Read one Location.GET
[base]/Location?{parameters}Search Location. Returns a Bundle.POST
[base]/Location/_searchSearch with the parameters in a form body.Search parameters
| Parameter | Type | Description |
|---|---|---|
_id | token | The resource id. Comma-separate for several. |
name | string | Any part of the name (starts with, case-insensitive). |
address | string | Any part of the address. |
address-city | string | City. |
address-state | string | Two-letter state. |
address-postalcode | string | ZIP code. |
identifier | token | An identifier, as system|value or just value (MRN for Patient, NPI for Practitioner, Location and Organization). |
_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.
Example
curl "https://qa3.somahealth.com/api/fhir/r4/your-practice/Location?address-city=springfield" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/fhir+json"{
"resourceType": "Location",
"id": "a7f3e210-6c4b-4d8e-9f15-2b0c8d7e6a53",
"meta": { "profile": ["http://hl7.org/fhir/us/core/StructureDefinition/us-core-location"] },
"status": "active",
"name": "Springfield Office",
"type": [{ "coding": [{ "system": "https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set", "code": "11" }] }],
"telecom": [{ "system": "phone", "value": "(555) 010-0300", "use": "work" }, { "system": "fax", "value": "(555) 010-0301", "use": "work" }],
"address": { "use": "work", "line": ["200 Example Avenue", "Suite 3"], "city": "Springfield", "state": "NY", "postalCode": "10001", "country": "US" },
"managingOrganization": { "reference": "Organization/0f4e2c19-5a7b-4c3d-8e21-6b9f0a1d2c34" }
}Examples use made-up data. Elements appear only when the practice has recorded them.