ClientConnection

Incomplete documentation - sorry!

Note

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

methods and attributes

class lib_openmolar.client.connect.ClientConnection(connection_data)[source]

Bases: lib_openmolar.common.qt4.postgres.openmolar_database.OpenmolarDatabase

inherits from lib_openmolar.common.connect.OpenmolarDatabase, which in turn inherits from PyQt4.QSql.QSqlDatabase

__init__(connection_data)[source]
blank_address_record[source]
completer(query, bindings=[])[source]
connect()
emit_caught_error(error)[source]

emits a signal with signature “db error” hopefully someone will see it!

fname_completer(sname)[source]
get_address_matchmodel(search_values)[source]

get’s a list of addresses who’s criteria match a user search

get_matchlist(search_values)[source]

get’s a list of patients who’s criteria match a user search return a list of BasePatient objects (with address details appended) NOTE - also called when a new patient is being added, in which case search values is a dictionary)

sname_completer()[source]
subscribeToNotifications()[source]

this should be overwritten when this connection is implemented postgres can emit signals when the database is changed by another client. the query is simple NOTIFY new_appointment_made, ‘id’

Table Of Contents

Previous topic

ChooseClinicianFrame

Next topic

ClientMainWindow