13], [['import_by'], 'integer'], [['message_control_id'], 'string', 'max' => 64], [['patient_id_internal_hn', 'visit_number', 'orc_placer_order_number', 'orc_filler_order_number'], 'string', 'max' => 64], [['encoding_characters', 'sending_application', 'sending_facility', 'receiving_application', 'receiving_facility', 'message_type', 'message_type_code', 'message_type_name', 'processing_id', 'version_id', 'sex', 'race', 'patient_class', 'preadmit_number', 'attending_doctor', 'attending_id', 'hospital_service', 'temporary_location', 'temporary_location_code', 'temporary_location_name', 'admitting_doctor', 'admitting_id', 'patient_type', 'patient_type_code', 'patient_type_name', 'order_control', 'order_status', 'orc_ordering_provider', 'orc_ordering_provider_id', 'order_control_code_reason', 'entering_organization', 'entering_device', 'action_by'], 'string', 'max' => 255], [['patient_name', 'patient_last_name', 'patient_first_name', 'patient_middle', 'patient_name_suffix', 'patient_name_prefix', 'patient_alias', 'patient_last_name_o', 'patient_first_name_o', 'patient_middle_o', 'patient_name_suffix_o', 'patient_name_prefix_o', 'patient_address', 'patient_street_address', 'sub_district', 'city', 'state', 'zip', 'phone_number_home', 'attending_last_name', 'attending_first_name', 'attending_middle_name', 'attending_prefix_name', 'admitting_last_name', 'admitting_first_name', 'admitting_middle_name', 'admitting_prefix_name', 'orc_ordering_provider_last_name', 'orc_ordering_provider_first_name', 'orc_ordering_provider_middle_name', 'orc_ordering_provider_prefix_name'], 'string', 'max' => 255], [['alternate_patient_id'], 'string', 'max' => 50], [['message_control_id'], 'unique'], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'request_datetime' => 'Request At', 'patient_id_internal_hn' => 'HN', ]; } public function getObrs() { return $this->hasMany(HisObr::class, ['his_request_id' => 'id']); } }