Practice Location

Introduction #

The PracticeLocation model lists all the clinical practice locations that fall under an Organization.

Basic usage #

To query a PracticeLocation by name, the filter method can be used like so:

from canvas_sdk.v1.data.practicelocation import PracticeLocation

practice_location = PracticeLocation.objects.filter(full_name__icontains="downtown")

To retrieve a list of all practice locations:

practice_locations = PracticeLocation.objects.all()

Each PracticeLocation has location-specific settings that control certain behavior within the EMR application. To retrieve the available settings for a PracticeLocation instance, the settings attribute can be used to retrieve a list of names:

practice_location = PracticeLocation.objects.first()

available_settings = practice_location.settings.values_list('name', flat=True)

Additionally, a setting’s value can be found by accessing the value attribute on the PracticeLocationSetting:

practice_location = PracticeLocation.objects.first()

preferred_lab_partner_text = practice_location.settings.get(name="preferredLabPartner").value

Please note that the content of each value field can contain any value that is JSON-serializable, which includes string values. This means that value could be any of the Python types string, list or dict.

Attributes #

PracticeLocation #

Field NameType
idUUID
dbidInteger
createdDateTime
modifiedDateTime
organizationOrganization
place_of_service_codeString
full_nameString
short_nameString
background_image_urlString
background_gradientString
activeBoolean
npi_numberString
bill_through_organizationBoolean
tax_idString
tax_id_typeTaxIDType
billing_location_nameString
group_npi_numberString
taxonomy_numberString
include_zz_qualifierBoolean

PracticeLocationSetting #

Field NameType
dbidInteger
practice_locationPracticeLocation
nameString
valueJSON

Enumeration types #

TaxIDType #

ValueLabel
EEIN text
SSSN