示例#1
0
 def create_test_imis_instance(self):
     imis_claim = Claim()
     imis_claim.id = self._TEST_ID
     imis_claim.uuid = self._TEST_UUID
     imis_claim.code = self._TEST_CODE
     imis_claim.status = self._TEST_STATUS
     imis_claim.adjustment = self._TEST_ADJUSTMENT
     imis_claim.date_processed = TimeUtils.str_to_date(self._TEST_DATE_PROCESSED)
     imis_claim.approved = self._TEST_APPROVED
     imis_claim.rejection_reason = self._TEST_REJECTION_REASON
     feedback = Feedback()
     feedback.id = self._TEST_FEEDBACK_ID
     feedback.uuid = self._TEST_FEEDBACK_UUID
     imis_claim.feedback = feedback
     return imis_claim
示例#2
0
 def create_test_imis_instance(self):
     imis_claim = Claim()
     imis_claim.id = self._TEST_ID
     imis_claim.uuid = self._TEST_UUID
     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 = Diagnosis(code=self._TEST_ICD_1)
     imis_claim.icd_2 = Diagnosis(code=self._TEST_ICD_2)
     imis_claim.icd_3 = Diagnosis(code=self._TEST_ICD_3)
     imis_claim.icd_4 = Diagnosis(code=self._TEST_ICD_4)
     imis_claim.visit_type = self._TEST_VISIT_TYPE
     return imis_claim