Service locations
Read the service locations configured for a practice.
- Resource
client.locations- SOAP operation
GetServiceLocations- Flat method
get_service_locations- Writes
- None
Methods
client.locations.list#
readasync list(*, practice_id=None, practice_name=None, location_id=None, from_created_date=None, to_created_date=None, from_last_modified_date=None, to_last_modified_date=None, fields=None, extra_filter=None) -> list[dict]List service locations using GetServiceLocations.
Parameters
| Parameter | Type | Description |
|---|---|---|
practice_id | int | str | None | Filter by practice ID (sent as a string). |
practice_name | str | None | Filter by practice name. |
location_id | int | str | None | Filter by service location ID (sent as ID). |
from_created_date | str | date | datetime | None | Lower creation-date bound. |
to_created_date | str | date | datetime | None | Upper creation-date bound. |
from_last_modified_date | str | date | datetime | None | Lower last-modified bound. |
to_last_modified_date | str | date | datetime | None | Upper last-modified bound. |
fields | Iterable[str] | Mapping[str, bool] | None | Field selector. |
extra_filter | Mapping[str, Any] | None | Additional raw Filter keys. |
Returns
list[dict[str, Any]]Example
locations = await client.get_service_locations(practice_id=7)
for location in locations:
print(location["ID"], location["Name"])client.locations.get#
readasync get(location_id, *, practice_id=None, practice_name=None, fields=None) -> dict | NoneFetch a single service location by ID, returning None when not found.
Parameters
| Parameter | Type | Description |
|---|---|---|
location_idrequired | int | str | Service location ID. |
practice_id | int | str | None | Optional practice ID filter. |
practice_name | str | None | Optional practice name filter. |
fields | Iterable[str] | Mapping[str, bool] | None | Field selector. |
Returns
dict[str, Any] | None