Ejemplo n.º 1
0
 def setUp(self):
     self._TEST_DIAGNOSIS_CODE = Diagnosis()
     self._TEST_DIAGNOSIS_CODE.code = self._TEST_MAIN_ICD_CODE
     self._TEST_CLAIM_ADMIN = PractitionerTestMixin(
     ).create_test_imis_instance()
     self._TEST_HF = LocationTestMixin().create_test_imis_instance()
     self._TEST_INSUREE = PatientTestMixin().create_test_imis_instance()
     self._TEST_ITEM = self.create_test_claim_item()
     self._TEST_SERVICE = self.create_test_claim_service()
Ejemplo n.º 2
0
 def create_test_imis_instance(self):
     imis_claim = Claim()
     imis_claim.id = self._TEST_ID
     imis_claim.insuree = PatientTestMixin().create_test_imis_instance()
     imis_claim.code = self._TEST_CODE
     imis_claim.date_from = TimeUtils.str_to_date(self._TEST_DATE_FROM)
     imis_claim.date_to = TimeUtils.str_to_date(self._TEST_DATE_TO)
     icd = Diagnosis()
     icd.code = self._TEST_MAIN_ICD_CODE
     imis_claim.icd = icd
     imis_claim.claimed = self._TEST_CLAIMED
     imis_claim.date_claimed = TimeUtils.str_to_date(
         self._TEST_DATE_CLAIMED)
     imis_claim.health_facility = LocationTestMixin(
     ).create_test_imis_instance()
     imis_claim.guarantee_id = self._TEST_GUARANTEE_ID
     imis_claim.admin = PractitionerTestMixin().create_test_imis_instance()
     imis_claim.icd_1 = self._TEST_ICD_1
     imis_claim.icd_2 = self._TEST_ICD_2
     imis_claim.icd_3 = self._TEST_ICD_3
     imis_claim.icd_4 = self._TEST_ICD_4
     imis_claim.visit_type = self._TEST_VISIT_TYPE
     return imis_claim
Ejemplo n.º 3
0
 def get_queryset(self):
     return Diagnosis.get_queryset(None, self.request.user)