Facility

Introduction #

The Facility object represents a healthcare facility associated with patients within Canvas. Facilities can include hospitals, clinics, or other healthcare institutions where patients receive care. This object contains essential information about the facility, such as its address, contact details, and operational status.

Basic Usage #

To get a facility by identifier, use the get method on the Facility model manager:

from canvas_sdk.v1.data.facility import Facility

facility = Facility.objects.get(id="34b50dfa-1b3e-4dc2-a11d-41b3115c29f3")

Filtering #

Facilities can be filtered by any attribute that exists on the model.

Filtering for facilities is done with the filter method on the Facility model manager.

Attributes #

Specify attributes with filter to filter by those attributes:

from canvas_sdk.v1.data.facility import Facility

facilities = Facility.objects.filter(name="General Hospital", city="Metropolis")

Facility #

Field NameType
idUUID
dbidInteger
createdDateTime
modifiedDateTime
line1String
line2String
cityString
districtString
state_codeString
postal_codeString
nameString
npi_numberString
phone_numberString
activeBoolean