Note

Introduction #

The Note model represents clinical notes that appear on a patient’s chart. A Note can contain multiple commands.

Basic usage #

To get a note by identifier, use the get method on the Note model manager:

from canvas_sdk.v1.data.note import Note

note = Note.objects.get(id="89992c23-c298-4118-864a-26cb3e1ae822")

If you have a patient object, the notes for a patient can be found using the notes attribute on the Patient instance:

from canvas_sdk.v1.data.patient import Patient

patient = Patient.objects.get(id="fd2ecd87c26044a6a755287f296dd17f")
patient_notes = patient.notes.all()

Filtering #

By attribute #

Notes can also be filtered by attribute. For example, to get all notes for a patient where the datetime_of_service is after a certain date, the following code can be used:

import arrow

from canvas_sdk.v1.data.note import Note
from canvas_sdk.v1.data.patient import Patient

patient = Patient.objects.get(id="fd2ecd87c26044a6a755287f296dd17f")
recent_notes = Note.objects.filter(
    patient=patient,
    datetime_of_service__gte=arrow.now().shift(weeks=-3).datetime
)

The NoteType model can also be used to find notes by type.

from canvas_sdk.v1.data.note import NoteType
from canvas_sdk.v1.data.patient import Patient

note_type = NoteType.objects.get(name="Office visit")
patient = Patient.objects.get(id="fd2ecd87c26044a6a755287f296dd17f")
patient_office_visits = Note.objects.filter(patient=patient, note_type_version=note_type)

All of the commands in a Note can be found by using the commands attribute:

from canvas_sdk.v1.data.note import Note

note = Note.objects.get(id="89992c23-c298-4118-864a-26cb3e1ae822")
commands_in_note = Note.commands.all()

Attributes #

Note #

Field NameType
idUUID
dbidInteger
createdDateTime
modifiedDateTime
patientPatient
note_type_versionNoteType
titleString
bodyJSON
originatorCanvasUser
checksumString
billing_noteString
related_dataJSON
datetime_of_serviceDateTime
place_of_serviceString

NoteType #

Field NameType
dbidInteger
createdDateTime
modifiedDateTime
systemString
versionString
codeString
displayString
user_selectedBoolean
nameString
iconString
categoryNoteTypeCategories
rankInteger
is_default_appointment_typeBoolean
is_scheduleableBoolean
is_telehealthBoolean
is_billableBoolean
defer_place_of_service_to_practice_locationBoolean
available_places_of_serviceArray[PracticeLocationPOS]
default_place_of_servicePracticeLocationPOS
is_system_managedBoolean
is_visibleBoolean
is_activeBoolean
unique_identifierUUID
deprecated_atDateTime
is_patient_requiredBoolean
allow_custom_titleBoolean

Enumeration types #

NoteTypeCategories #

ValueDescription
messageMessage
letterLetter
inpatientInpatient Visit Note
reviewChart Review Note
encounterEncounter Note
appointmentAppointment Note
taskTask
dataData
ccdaC-CDA
schedule_eventSchedule Event

PracticeLocationPOS #

ValueDescription
01Pharmacy
02Telehealth
03Education Facility
04Homeless Shelter
09Prison
10Telehealth in Patient’s Home
11Office
12Home
13Asssisted Living Facility
14Group Home
15Mobile Unit
17Walk-In Retail Health Clinic
19Off-Campus Outpatient Hospital
20Urgent Care Facility
21Inpatient Hospital
22On-Campus Outpatient Hospital
23Emergency Room Hospital
24Ambulatory Surgery Center
25Birthing Center
26Military Treatment Facility
27Outreach Site / Street
31Skilled Nursing Facility
32Nursing Facility
33Custodial Care Facility
34Hospice
41Ambulance Land
42Ambulance Air or Water
49Independent Clinic
50Federally Qualified Health Center
51Inpatient Psychiatric Facility
52Inpatient Psychiatric Facility - Partial Hospitalization
53Community Mental Health Center
54Intermediate Care Facility for Mentally Retarded
55Residential Substance Abuse Treatment Facility
56Psychiatric Residential Treatment Center
57Non-Residential Substance Abuse Treatment Facility
60Mass Immunization Center
61Inpatient Rehabilitation Facility
62Outpatient Rehabilitation Facility
65End-Stage Renal Disease Treatment Facility
71State or Local Public Health Clinic
72Rural Health Clinic
81Independent Laboratory
99Other Place of Service