Patient

Introduction #

The Patient model represents an individual receiving care or other health-related services.

Basic usage #

To get a patient by identifier, use the get method on the Patient model manager:

from canvas_sdk.v1.data.patient import Patient

patient = Patient.objects.get(id="b80b1cdc2e6a4aca90ccebc02e683f35")

Filtering #

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

Filtering for patients is done with the filter method on the Patient model manager.

By attribute #

Specify attributes with filter to filter by those attributes:

from canvas_sdk.v1.data.patient import Patient

patients = Patient.objects.filter(first_name="Bob", last_name="Loblaw", birth_date="1960-09-22")

Attributes #

Patient #

Field NameType
idString
dbidInteger
first_nameString
last_nameString
birth_dateDate
sex_at_birthSexAtBirth
createdDateTime
modifiedDateTime
prefixString
suffixString
middle_nameString
maiden_nameString
nicknameString
sexual_orientation_termString
sexual_orientation_codeString
gender_identity_termString
gender_identity_codeString
preferred_pronounsString
biological_race_codesArray[String]
last_known_timezoneString
mrnString
activeBoolean
deceasedBoolean
deceased_datetimeDateTime
deceased_causeString
deceased_commentString
other_gender_descriptionString
social_security_numberString
administrative_noteString
clinical_noteString
mothers_maiden_nameString
multiple_birth_indicatorBoolean
birth_orderInteger
default_location_idInteger
default_provider_idInteger
allergy_intolerancesAllergyIntolerance[]
billing_line_itemsBillingLineItem[]
conditionsCondition[]
detected_issuesDetectedIssue[]
devicesDevice[]
imaging_ordersImagingOrder[]
imaging_reportsImagingReport[]
imaging_reviewsImagingReview[]
interviewsInterview[]
lab_ordersLabOrder[]
lab_reportsLabReport[]
lab_reviewsLabReview[]
medicationsMedication[]
observationsObservation[]
protocol_overridesProtocolOverride[]
tasksTask[]

Enumeration types #

SexAtBirth #

ValueLabel
Ffemale
Mmale
Oother
UNKunknown
”” (empty string)””