NotesModel

Incomplete documentation - sorry!

Note

Neil - please put some data in technical/class_headings/NotesModel.rst

methods and attributes

class lib_openmolar.client.db_orm.notes_model.NotesModel(patient_id)[source]

Bases: object

a view aware editable model of data stored in various notes tables

__init__(patient_id)[source]
add_view(view)[source]

make the model aware of the view so that it can be alerted when model changes. such views require a method “model_updated”

all_records[source]

yields all records from all note types

clerical_by_id(id)[source]
Param :id (int)

returns the NotesClericalDB with this id

clerical_html[source]

returns an html representation of the reception notes

clinical_by_id(id)[source]
Param :id (int)

returns the NotesClinicalDB with this id

clinical_html[source]

returns an html representation of the clinical notes

combined_html[source]

All notes together

commit_changes()[source]

commits any user edits to the database

commit_clerical(note)[source]

the note has been edited

commit_clinical(note)[source]

the note has been edited

is_dirty[source]

A Boolean. If True, then the record differs from the database state

new_clinical[source]

returns a new clinical note of type InsertableRecord

sorted_records[source]

yields all_records in order.

update_views()[source]
views = set([])

The model keeps a note of what is watching it.

what_has_changed()[source]

returns a stringlist of what has changed.

TODO could be much improved

Table Of Contents

Previous topic

NotesClinicalDB

Next topic

NotesWidget