def create_exam_freezing(self): from exam.models import Exam exam = Exam() exam.id = 1 exam.request_date = timezone.now() exam.receipt_date = timezone.now() exam.speciment_collection_date = timezone.now() exam.received_speciment = 'Speciment' exam.examination_time = '00:00:00' exam.requesting_physician = 'Request Physician' exam.responsible_physician = 'Responsible Physician' exam.exam_type_id = 1 exam.patient = 1 exam.save()
def create_exam_biopsy(self, patient_id=1): from exam.models import Exam exam = Exam() exam.id = 1 exam.request_date = timezone.now() exam.receipt_date = timezone.now() exam.speciment_collection_date = timezone.now() exam.received_speciment = 'Speciment' exam.requesting_physician = 'Request Physician' exam.responsible_physician = 'Responsible Physician' exam.exam_type_id = 1 exam.patient = patient_id exam.save() self.create_biopsy(exam.id)