2
« เมื่อ: ธันวาคม 04, 2008, 14:31:19 PM »
Checking structure phase 2
ALTER TABLE xray_rent_type ADD `xray_rent_type_name` varchar(150) NOT NULL
ALTER TABLE xray_rent_status ADD `xray_rent_status_name` varchar(150) NOT NULL
ALTER TABLE xray_rent_department ADD `xray_rent_department_name` varchar(250) NOT NULL
ALTER TABLE xray_contrast_media_use ADD `volume_cc` int NULL
ALTER TABLE xray_class_xn ADD `xray_rent_status_id` int NULL
ALTER TABLE xray_class_xn ADD `pt_class_xn` int NOT NULL
ALTER TABLE xray_class_xn ADD `pt_xn` int NOT NULL
ALTER TABLE xray_class_rent ADD `xray_rent_type_id` int NULL
ALTER TABLE xray_class_rent ADD `xray_rent_department_id` int NULL
ALTER TABLE xray_class_rent ADD `rent_reason_id` int NULL
ALTER TABLE xray_class_rent ADD `authrize_staff` varchar(50) NULL
ALTER TABLE xray_class_rent ADD `rent_staff_name` varchar(50) NULL
ALTER TABLE xray_class_rent ADD `rent_time` time NULL
ALTER TABLE xray_class_rent ADD `rent_date` date NULL
ALTER TABLE xray_class_rent ADD `pt_class_xn` int NOT NULL
ALTER TABLE person_anc ADD `husband_person_id` int NULL
ALTER TABLE person_anc ADD `husband_lname` varchar(60) NULL
ALTER TABLE person_anc ADD `husband_fname` varchar(60) NULL
ALTER TABLE person_anc ADD `husband_pname` varchar(30) NULL
ALTER TABLE person_anc ADD `thalasseima_husband_dx_icd10` varchar(9) NULL
ALTER TABLE person_anc ADD `thalasseima_wife_dx_icd10` varchar(9) NULL
ALTER TABLE person_anc ADD `thalasseima_husband_alpha1_result` char(1) NULL
ALTER TABLE person_anc ADD `thalasseima_wife_alpha1_result` char(1) NULL
ALTER TABLE person_anc ADD `thalasseima_husband_hbtyping_result` char(1) NULL
ALTER TABLE person_anc ADD `thalasseima_wife_hbtyping_result` char(1) NULL
ALTER TABLE person_anc ADD `thalasseima_husband_dcip_result` char(1) NULL
ALTER TABLE person_anc ADD `thalasseima_wife_dcip_result` char(1) NULL
ALTER TABLE person_anc ADD `thalasseima_husband_of_result` char(1) NULL
ALTER TABLE person_anc ADD `thalasseima_wife_of_result` char(1) NULL
ALTER TABLE person_anc ADD `thalasseima_preg_age` int NULL
ALTER TABLE oapp_xray ADD `order_xn` int NULL
ALTER TABLE membrane_type ADD `membrane_type_name` varchar(150) NOT NULL
ALTER TABLE membrane_explode_type ADD `membrane_explode_type_name` varchar(150) NOT NULL
ALTER TABLE medication_reconciliation_manage ADD `medication_reconciliation_manage_name` varchar(100) NOT NULL
ALTER TABLE medication_reconciliation_detail ADD `medication_change_cause` varchar(250) NULL
ALTER TABLE medication_reconciliation_detail ADD `medication_reconciliation_manage_id` int NULL
ALTER TABLE medication_reconciliation_detail ADD `doctor_reconciliation_command_id` int NULL
ALTER TABLE medication_reconciliation_detail ADD `last_receive_date` date NULL
ALTER TABLE medication_reconciliation_detail ADD `receive_location` varchar(150) NULL
ALTER TABLE medication_reconciliation_detail ADD `medication_name` varchar(150) NOT NULL
ALTER TABLE medication_reconciliation_detail ADD `medication_reconciliation_id` int NOT NULL
ALTER TABLE medication_reconciliation ADD `note` text NULL
ALTER TABLE medication_reconciliation ADD `doctor` varchar(25) NULL
ALTER TABLE medication_reconciliation ADD `staff` varchar(25) NULL
ALTER TABLE medication_reconciliation ADD `last_recieve_medication_duration_day` int NULL
ALTER TABLE medication_reconciliation ADD `last_receive_medication_date` date NULL
ALTER TABLE medication_reconciliation ADD `medication_survey` char(1) NULL
ALTER TABLE medication_reconciliation ADD `an` varchar(9) NOT NULL
ALTER TABLE labour_stage ADD `labour_stage_name` varchar(150) NOT NULL
ALTER TABLE labour_complication ADD `icd10` varchar(9) NULL
ALTER TABLE labour_complication ADD `labour_stage_id` int NULL
ALTER TABLE labour_complication ADD `labour_complication_name` varchar(150) NOT NULL
ALTER TABLE ipt_pregnancy ADD `last_child_year` int NULL
ALTER TABLE ipt_labour_infant ADD `infant_dchtype` char(2) NULL
ALTER TABLE ipt_labour_infant ADD `infant_dchstts` char(2) NULL
ALTER TABLE ipt_labour_infant ADD `infant_an` char(9) NULL
ALTER TABLE ipt_labour_infant ADD `infant_check_feed_milk` char(1) NULL
ALTER TABLE ipt_labour_infant ADD `infant_check_narcan` char(1) NULL
ALTER TABLE ipt_labour_infant ADD `infant_check_azt` char(1) NULL
ALTER TABLE ipt_labour_infant ADD `infant_check_oxygen_box` char(1) NULL
ALTER TABLE ipt_labour_infant ADD `infant_check_chest_pump` char(1) NULL
ALTER TABLE ipt_labour_infant ADD `infant_check_et_tube` char(1) NULL
ALTER TABLE ipt_labour_infant ADD `infant_check_ppv` char(1) NULL
ALTER TABLE ipt_labour_infant ADD `infant_adaptor_type_id` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min10_color` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min10_tone` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min10_reflex` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min10_rr` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min10_hr` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min5_color` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min5_tone` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min5_reflex` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min5_hr` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min5_rr` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min1_color` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min1_tone` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min1_reflex` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min1_rr` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min1_hr` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min10` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min5` int NULL
ALTER TABLE ipt_labour_infant ADD `apgar_score_min1` int NULL
ALTER TABLE ipt_labour_infant ADD `head_length` int NULL
ALTER TABLE ipt_labour_infant ADD `body_length` int NULL
ALTER TABLE ipt_labour_infant ADD `infant_indication_type_id` int NULL
ALTER TABLE ipt_labour_infant ADD `infant_delivery_type_id` int NULL
ALTER TABLE ipt_labour_infant ADD `birth_weight` int NULL
ALTER TABLE ipt_labour_infant ADD `birth_time` time NULL
ALTER TABLE ipt_labour_infant ADD `birth_date` date NULL
ALTER TABLE ipt_labour_infant ADD `sex` char(1) NULL
ALTER TABLE ipt_labour_infant ADD `infant_number` int NULL
ALTER TABLE ipt_labour_infant ADD `ipt_labour_id` int NOT NULL
ALTER TABLE ipt_labour_complication ADD `complication_note` varchar(250) NULL
ALTER TABLE ipt_labour_complication ADD `labour_stage_id` int NOT NULL
ALTER TABLE ipt_labour_complication ADD `labour_complication_id` int NOT NULL
ALTER TABLE ipt_labour_complication ADD `ipt_labour_id` int NOT NULL
ALTER TABLE ipt_labour_birth_asphyxia ADD `ipt_labour_id` int NOT NULL
ALTER TABLE ipt_labour_birth_asphyxia ADD `birth_asphyxia_id` int NOT NULL
ALTER TABLE ipt_labour_birth_asphyxia ADD `birth_asphyxia_factor_id` int NOT NULL
ALTER TABLE ipt_labour ADD `t` int NULL
ALTER TABLE ipt_labour ADD `labour_before_visit` char(1) NULL
ALTER TABLE ipt_labour ADD `membrane_type_id` int NULL
ALTER TABLE ipt_labour ADD `membrane_explode_type_id` int NULL
ALTER TABLE ipt_labour ADD `delivery_type_id` int NULL
ALTER TABLE doctor_reconciliation_command ADD `doctor_reconciliation_command_name` varchar(250) NOT NULL
ALTER TABLE deliver_type ADD `deliver_name` varchar(150) NOT NULL
ALTER TABLE birth_asphyxia_factor ADD `birth_asphyxia_factor_name` varchar(150) NOT NULL
ALTER TABLE birth_asphyxia ADD `birth_asphyxia_name` varchar(150) NOT NULL
CREATE TABLE xray_rent_type ( `xray_rent_type_id` int NOT NULL )
CREATE TABLE xray_rent_status ( `xray_rent_status_id` int NOT NULL )
CREATE TABLE xray_rent_department ( `xray_rent_department_id` int NOT NULL )
CREATE TABLE xray_class_xn ( `xray_class_xn_id` int NOT NULL )
CREATE TABLE xray_class_rent ( `xray_class_rent_id` int NOT NULL )
CREATE TABLE membrane_type ( `membrane_type_id` int NOT NULL )
CREATE TABLE membrane_explode_type ( `membrane_explode_type_id` int NOT NULL )
CREATE TABLE medication_reconciliation_manage ( `medication_reconciliation_manage_id` int NOT NULL )
CREATE TABLE medication_reconciliation_detail ( `medication_reconciliation_detail_id` int NOT NULL )
CREATE TABLE medication_reconciliation ( `medication_reconciliation_id` int NOT NULL )
CREATE TABLE labour_stage ( `labour_stage_id` int NOT NULL )
CREATE TABLE labour_complication ( `labour_complication_id` int NOT NULL )
CREATE TABLE ipt_labour_infant ( `ipt_labour_infant_id` int NOT NULL )
CREATE TABLE ipt_labour_complication ( `ipt_labour_complication_id` int NOT NULL )
CREATE TABLE ipt_labour_birth_asphyxia ( `ipt_labour_birth_asphyxia_id` int NOT NULL )
CREATE TABLE doctor_reconciliation_command ( `doctor_reconciliation_command_id` int NOT NULL )
CREATE TABLE deliver_type ( `deliver_type` int NOT NULL )
CREATE TABLE birth_asphyxia_factor ( `birth_asphyxia_factor_id` int NOT NULL )
CREATE TABLE birth_asphyxia ( `birth_asphyxia_id` int NOT NULL )