Beispiel #1
0
 def treatment_item(self):
     ti = TreatmentItem(self.proc_code)
     practitioner = self.chosen_practitioner
     ti.set_px_clinician(practitioner.id)
     ti.set_tx_clinician(practitioner.id)
     ti.set_cmp_date(self.date)
     return ti
Beispiel #2
0
 def treatment_item(self):
     ti = TreatmentItem(self.proc_code)
     practitioner = self.chosen_practitioner
     ti.set_px_clinician(practitioner.id)
     ti.set_tx_clinician(practitioner.id)
     ti.set_cmp_date(self.date)
     return ti
 def treatment_item(self):
     ti = TreatmentItem(self.proc_code)
     practitioner = self.chosen_practitioner
     if practitioner.is_hygienist:
         ti.set_px_clinician(
             SETTINGS.current_patient.current_contracted_dentist.id)
     ti.set_tx_clinician(practitioner.id)
     ti.set_cmp_date(self.date)
     return ti
    def chart_treatment_added(self, tooth_data, plan_or_cmp):
        """
        treatment has been added using the charts page
        if this is not understood, the following signal is emitted
        QtCore.SIGNAL("garbage chart tx")
        """
        proc_code = tooth_data.proc_code
        if proc_code == None:
            proc_code = SETTINGS.PROCEDURE_CODES.convert_user_shortcut(tooth_data.tx_input)
        if proc_code == None:
            self.emit(QtCore.SIGNAL("garbage chart tx"))
            return
        treatment_item = TreatmentItem(proc_code)
        treatment_item.set_teeth([tooth_data.tooth_id])
        treatment_item.set_surfaces(tooth_data.surfaces)
        if plan_or_cmp == "Completed":
            treatment_item.set_completed(True)
            treatment_item.set_cmp_date(QtCore.QDate.currentDate())
        self.add_treatment_item(treatment_item)

        self.emit(QtCore.SIGNAL("valid chart tx"))
Beispiel #5
0
    def chart_treatment_added(self, tooth_data, plan_or_cmp):
        '''
        treatment has been added using the charts page
        if this is not understood, the following signal is emitted
        QtCore.SIGNAL("garbage chart tx")
        '''
        proc_code = tooth_data.proc_code
        if proc_code == None:
            proc_code = SETTINGS.PROCEDURE_CODES.convert_user_shortcut(
                tooth_data.tx_input)
        if proc_code == None:
            self.emit(QtCore.SIGNAL("garbage chart tx"))
            return
        treatment_item = TreatmentItem(proc_code)
        treatment_item.set_teeth([tooth_data.tooth_id])
        treatment_item.set_surfaces(tooth_data.surfaces)
        if plan_or_cmp == "Completed":
            treatment_item.set_completed(True)
            treatment_item.set_cmp_date(QtCore.QDate.currentDate())
        self.add_treatment_item(treatment_item)

        self.emit(QtCore.SIGNAL("valid chart tx"))