def __init__(self): self.current_case_id = "" self.ctrlDatabase_patient = ControllerDatabase.ControllerDatabase( s.DB_PATIENT) self.ctrlDatabase_appointment = ControllerDatabase.ControllerDatabase( s.DB_APPOINTMENT) self.ctrlDatabase_history = ControllerDatabase.ControllerDatabase( s.DB_REPORT)
def collectReport(self): """PRE PRE""" basic_info = self.patient.getPrePreInfo() appointment_info = self.appointment.getDataFor3Report() extra_info = self.patient.getExtraInfo() data_part_prepre = basic_info + appointment_info + extra_info """ PRE """ # [premed, PRC, FFP, Plt, PC, plannedICU, fullBed, service, ASA, BW, HT, BP, P, RR, T, GCS, smoking, alcoholic, allergy] preReport = self.createPreReport() """ INTRA """ intraReport = self.createIntraReport() """ POST """ post_report = self.createPostReport() new_history_report = HistoryReportClass.HistoryReport(self.patient.AN, data_part_prepre, preReport, intraReport, post_report) c = ControllerDatabase.ControllerDatabase(s.DB_REPORT) c.newObject(new_history_report) #self.parent.createHistory(new_history_report) self.callDialogCollectReport()
def __init__(self): self.ctrlDatabase = ControllerDatabase.ControllerDatabase(s.DB_USER) self.lst_admin = [] self.lst_roommanager = [] self.lst_doctor = [] self.lst_nurse = []
def __init__(self): self.ctrlDatabase = ControllerDatabase.ControllerDatabase(s.DB_USER)