Example #1
0
    def test_get_last_procedure_date(self):
        testAssign, testPatient, testProcedure = self.test_create_assignedProcedure(
        )

        testAssign.completed = True
        testAssign.save()

        actual_return = AssignedProcedures.get_last_completed_date(testPatient)

        self.assertEqual(actual_return.date(), timezone.now().date())
Example #2
0
 def patient_completion_date(self):
     from assigned_procedures.models import AssignedProcedures
     return AssignedProcedures.get_last_completed_date(self)