PatientModel
Incomplete documentation - sorry!
Note
Neil - please put some data in technical/class_headings/PatientModel.rst
methods and attributes
-
class lib_openmolar.client.db_orm.patient_model.PatientModel(patient_id)[source]
Bases: object
This very important class represents the full patient record.
The behaviour of this object is very much like a dictionary.
-
__init__(patient_id)[source]
-
age_years[source]
returns an integer of the patient’s age in years
-
clerical_memo[source]
- returns the clerical memo for this patient
- displayed prominently on the reception page
-
clinical_memo[source]
- returns the clinical memo for this patient
- displayed under the chart on the summary page
-
commit_changes()[source]
commits any user edits to the database
-
current_bpe[source]
a patient will potentially have many bpes recorded.
this is the most recent one
-
current_contracted_dentist[source]
-
dent_key[source]
this property is an integer, which represents which teeth are present
-
details_html()[source]
an html representation of the patient
this is a combination of html data from several tables
-
full_name[source]
the patient’s full name
-
get(self, key, fallback=None)[source]
-
is_dirty[source]
A Boolean.
If True, then the record differs from the database state
-
notes[source]
the NotesModel for this patient
-
perio_data[source]
A convenience function to access perio data.
TODO only pocketing data is returned at the moment
-
refresh_bpe()[source]
reloads bpe data from the database
this function should be called if a BPE dialog
is raised and accepted
-
set_dent_key(key)[source]
sets the ..func::dent_key for this patient
-
static_chart_records[source]
returns all data needed about teeth in the static chart
see also ..func::dent_key
-
treatment_model[source]
the TreatmentModel for this patient
-
treatment_summary_html[source]
returns an html summary of the treatment plan
TODO - this is a placeholder function
-
what_has_changed()[source]
returns a stringlist of what has changed.
TODO could be much improved