AddressObjects
Incomplete documentation - sorry!
Note
Neil - please put some data in technical/class_headings/AddressObjects.rst
methods and attributes
-
class lib_openmolar.client.db_orm.client_address.AddressObjects(patient_id)[source]
Bases: object
instantiating this class
grabs a list of AddressRecord types using the
view_addresses pseudo table
-
__init__(patient_id)[source]
-
add_address_link(address_id, category='home')[source]
-
break_address_link(address)[source]
need to put some code in here that alters the date in the address_link table
-
changes_html()[source]
an html representation of any changes to the object since __init__
-
commit_changes()[source]
-
details_html()[source]
an html representation of this object
-
get_records()[source]
poll the database to get all address records associated with the
patient_id given at init
-
is_dirty[source]
-
is_dirty_record(i)[source]
-
patient_id = None
a pointer to the id of the PatientModel
-
records[source]
returns a list of all records (type QtSql.QSqlRecords) found
-
who_else_lives_here(address_id)[source]
polls the database to get details of who else lives here now, or in the
past.
returns 2 lists. ([present occupants],[past occupants])
the lists are in the form
[“Mr John Smith 10/10/1964”, “Mrs.... “]