package models type PharmacyBaseDrug struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"` Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"` DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"` DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"` DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"` DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"` DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"` DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"` DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"` MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"` MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"` DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"` Number string `gorm:"column:number" json:"number" form:"number"` DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"` DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"` DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"` MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"` StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"` Code string `gorm:"column:code" json:"code" form:"code"` IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"` IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"` Agent string `gorm:"column:agent" json:"agent" form:"agent"` DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"` LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"` DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"` ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"` SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"` PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"` Label int64 `gorm:"column:label" json:"label" form:"label"` Sort int64 `gorm:"column:sort" json:"sort" form:"sort"` IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"` IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"` IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"` IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"` IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"` Status int64 `gorm:"column:status" json:"status" form:"status"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"` RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"` DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"` SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"` IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"` PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"` HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"` LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"` Total float64 `gorm:"column:total" json:"total" form:"total"` PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"` MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"` Dose string `gorm:"column:dose" json:"dose" form:"dose"` DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"` DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"` MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"` ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"` IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"` SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"` BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"` SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"` IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"` DrugWarehouseInfo []*XtDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"` } func (PharmacyBaseDrug) TableName() string { return "xt_base_drug" } type PharmacyDoctorAdvice struct { ID int64 `gorm:"column:id" json:"id" form:"id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"` AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"` StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"` AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"` AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"` ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"` SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"` SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"` PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"` PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"` DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"` ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"` AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"` Status int64 `gorm:"column:status" json:"status" form:"status"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"` StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"` StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"` StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"` ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"` ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"` ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"` ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"` Checker int64 `gorm:"column:checker" json:"checker" form:"checker"` RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"` DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"` CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"` CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"` DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"` Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"` RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"` FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"` DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"` WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"` TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"` Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"` Way int64 `gorm:"column:way" json:"way" form:"way"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"` SyncAdviceId int64 `gorm:"column:sync_advice_id" json:"sync_advice_id" form:"sync_advice_id"` IsSync int64 `gorm:"column:is_sync" json:"is_sync" form:"is_sync"` IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` } func (PharmacyDoctorAdvice) TableName() string { return "xt_doctor_advice" } type PharmacyHisDoctorAdviceInfo struct { ID int64 `gorm:"column:id" json:"id" form:"id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"` AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"` AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"` StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"` AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"` AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"` ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"` SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"` SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"` PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"` PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"` DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"` ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"` AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"` Status int64 `gorm:"column:status" json:"status" form:"status"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"` StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"` StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"` StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"` ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"` ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"` ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"` ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"` Checker int64 `gorm:"column:checker" json:"checker" form:"checker"` RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"` DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"` CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"` CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"` DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"` Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"` RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"` FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"` DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"` WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"` TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"` Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` Price float64 `gorm:"column:price" json:"price" form:"price"` PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"` MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"` FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"` Day int64 `gorm:"column:day" json:"day" form:"day"` Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"` HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"` LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"` Way int64 `gorm:"column:way" json:"way" form:"way"` IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"` ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"` } func (PharmacyHisDoctorAdviceInfo) TableName() string { return "his_doctor_advice_info" } type PharmacyConfig struct { ID int64 `gorm:"column:id" json:"id" form:"id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"` Status int64 `gorm:"column:status" json:"status" form:"status"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` } func (PharmacyConfig) TableName() string { return "xt_pharmacy_config" } type Pharmacy struct { ID int64 `gorm:"column:id" json:"id" form:"id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` HisAdviceInfoId int64 `gorm:"column:his_advice_info_id" json:"his_advice_info_id" form:"his_advice_info_id"` XtAdviceId int64 `gorm:"column:xt_advice_id" json:"xt_advice_id" form:"xt_advice_id"` HisOrXt int64 `gorm:"column:his_or_xt" json:"his_or_xt" form:"his_or_xt"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` HisAdviceId int64 `gorm:"column:his_advice_id" json:"his_advice_id" form:"his_advice_id"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"` OrdreNumber string `gorm:"column:ordre_number" json:"ordre_number" form:"ordre_number"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"` } func (Pharmacy) TableName() string { return "xt_pharmacy" }