def createDefaultInsuree(cls, audit_user_id):
     imis_insuree = Insuree()
     imis_insuree.head = GeneralConfiguration.get_default_value_of_patient_head_attribute()
     imis_insuree.card_issued = GeneralConfiguration.get_default_value_of_patient_card_issued_attribute()
     imis_insuree.validity_from = TimeUtils.now()
     imis_insuree.audit_user_id = audit_user_id
     return imis_insuree
Beispiel #2
0
 def _create_and_save_hf(self):
     imis_hf = LocationTestMixin().create_test_imis_instance()
     imis_hf.id = None
     imis_hf.validity_from = TimeUtils.now()
     imis_hf.offline = False
     imis_hf.audit_user_id = self._TEST_ADMIN_USER_ID
     imis_hf.code = self._TEST_LOCATION_CODE
     imis_hf.save()
     return imis_hf
 def createDefaultInsuree(cls, audit_user_id):
     imis_hf = HealthFacility()
     # TODO legalForm isn't covered because that value is missing in the model (value need to be nullable in DB)
     # TODO LocationId isn't covered because that value is missing in the model (value need to be nullable in DB)
     imis_hf.offline = GeneralConfiguration.get_default_value_of_location_offline_attribute(
     )
     imis_hf.care_type = GeneralConfiguration.get_default_value_of_location_care_type(
     )
     imis_hf.validity_from = TimeUtils.now()
     imis_hf.audit_user_id = audit_user_id
     return imis_hf
 def create_default_claim_admin(cls, audit_user_id):
     imis_claim_admin = ClaimAdmin()
     imis_claim_admin.validity_from = TimeUtils.now()
     imis_claim_admin.audit_user_id = audit_user_id
     return imis_claim_admin