|
@@ -0,0 +1,215 @@
|
|
1
|
+package models
|
|
2
|
+
|
|
3
|
+type PharmacyBaseDrug struct {
|
|
4
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
5
|
+ DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
|
|
6
|
+ Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
|
|
7
|
+ Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
|
|
8
|
+ DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
|
|
9
|
+ DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
|
|
10
|
+ DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
|
|
11
|
+ DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
|
|
12
|
+ DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
|
|
13
|
+ DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
|
|
14
|
+ DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
|
|
15
|
+ DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
|
|
16
|
+ DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
|
|
17
|
+ MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
|
|
18
|
+ MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
|
|
19
|
+ MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
|
|
20
|
+ UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
|
|
21
|
+ RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
|
|
22
|
+ LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
|
|
23
|
+ DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
|
|
24
|
+ Number string `gorm:"column:number" json:"number" form:"number"`
|
|
25
|
+ DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
|
|
26
|
+ DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
|
|
27
|
+ DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
|
|
28
|
+ MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
|
|
29
|
+ Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
|
|
30
|
+ PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
|
|
31
|
+ StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
|
|
32
|
+ Code string `gorm:"column:code" json:"code" form:"code"`
|
|
33
|
+ IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
|
|
34
|
+ IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
|
|
35
|
+ Agent string `gorm:"column:agent" json:"agent" form:"agent"`
|
|
36
|
+ DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
|
|
37
|
+ LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
|
|
38
|
+ DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
|
|
39
|
+ ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
|
|
40
|
+ SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
|
|
41
|
+ PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
|
|
42
|
+ Label int64 `gorm:"column:label" json:"label" form:"label"`
|
|
43
|
+ Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
|
|
44
|
+ IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
|
|
45
|
+ IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
|
|
46
|
+ IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
|
|
47
|
+ IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
|
|
48
|
+ IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
|
|
49
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
50
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
51
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
52
|
+ OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
|
|
53
|
+ DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
|
|
54
|
+ Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
|
|
55
|
+ DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
|
|
56
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
57
|
+ DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
|
|
58
|
+ SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
|
|
59
|
+ IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
|
|
60
|
+ PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
|
|
61
|
+ HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
|
|
62
|
+ LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
|
|
63
|
+ Total float64 `gorm:"column:total" json:"total" form:"total"`
|
|
64
|
+ PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
|
|
65
|
+ MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
|
|
66
|
+ Dose float64 `gorm:"column:dose" json:"dose" form:"dose"`
|
|
67
|
+ DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
|
|
68
|
+ DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
|
|
69
|
+ MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
|
|
70
|
+ ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
|
|
71
|
+ IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
|
|
72
|
+ SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
|
|
73
|
+ BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
|
|
74
|
+ SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
|
|
75
|
+ IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"`
|
|
76
|
+ DrugWarehouseInfo []*XtDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
|
|
77
|
+}
|
|
78
|
+
|
|
79
|
+func (PharmacyBaseDrug) TableName() string {
|
|
80
|
+ return "xt_base_drug"
|
|
81
|
+}
|
|
82
|
+
|
|
83
|
+type PharmacyDoctorAdvice struct {
|
|
84
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
85
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
86
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
87
|
+ AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
|
|
88
|
+ AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
|
|
89
|
+ StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
|
|
90
|
+ AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
|
|
91
|
+ AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
|
|
92
|
+ ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
|
|
93
|
+ SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
|
|
94
|
+ SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
|
|
95
|
+ PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
|
|
96
|
+ PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
|
|
97
|
+ DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
|
|
98
|
+ ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
|
|
99
|
+ AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
|
|
100
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
101
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
|
102
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
|
103
|
+ AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
|
|
104
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
105
|
+ StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
|
|
106
|
+ StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
|
|
107
|
+ StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
|
|
108
|
+ StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
|
|
109
|
+ ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
|
|
110
|
+ ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
|
|
111
|
+ ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
|
|
112
|
+ ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
|
|
113
|
+ Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
|
|
114
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
115
|
+ DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
|
|
116
|
+ CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
|
|
117
|
+ CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
|
|
118
|
+ DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
|
|
119
|
+ DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
|
|
120
|
+ Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
|
|
121
|
+ RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
|
|
122
|
+ FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
|
|
123
|
+ DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
|
|
124
|
+ WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
|
|
125
|
+ TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
|
|
126
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
|
127
|
+ Way int64 `gorm:"column:way" json:"way" form:"way"`
|
|
128
|
+ DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
|
|
129
|
+ DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
|
|
130
|
+ SyncAdviceId int64 `gorm:"column:sync_advice_id" json:"sync_advice_id" form:"sync_advice_id"`
|
|
131
|
+ IsSync int64 `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
|
|
132
|
+ IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
|
|
133
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
134
|
+}
|
|
135
|
+
|
|
136
|
+func (PharmacyDoctorAdvice) TableName() string {
|
|
137
|
+ return "xt_doctor_advice"
|
|
138
|
+}
|
|
139
|
+
|
|
140
|
+type PharmacyHisDoctorAdviceInfo struct {
|
|
141
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
142
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
143
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
144
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
145
|
+ AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
|
|
146
|
+ AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
|
|
147
|
+ StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
|
|
148
|
+ AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
|
|
149
|
+ AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
|
|
150
|
+ ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
|
|
151
|
+ SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
|
|
152
|
+ SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
|
|
153
|
+ PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
|
|
154
|
+ PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
|
|
155
|
+ DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
|
|
156
|
+ ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
|
|
157
|
+ AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
|
|
158
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
159
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
|
160
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
|
161
|
+ AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
|
|
162
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
163
|
+ StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
|
|
164
|
+ StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
|
|
165
|
+ StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
|
|
166
|
+ StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
|
|
167
|
+ ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
|
|
168
|
+ ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
|
|
169
|
+ ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
|
|
170
|
+ ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
|
|
171
|
+ Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
|
|
172
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
173
|
+ DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
|
|
174
|
+ CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
|
|
175
|
+ CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
|
|
176
|
+ DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
|
|
177
|
+ DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
|
|
178
|
+ Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
|
|
179
|
+ RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
|
|
180
|
+ FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
|
|
181
|
+ DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
|
|
182
|
+ WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
|
|
183
|
+ TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
|
|
184
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
|
185
|
+ DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
|
|
186
|
+ Price float64 `gorm:"column:price" json:"price" form:"price"`
|
|
187
|
+ PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
|
|
188
|
+ MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
|
|
189
|
+ FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
|
|
190
|
+ Day int64 `gorm:"column:day" json:"day" form:"day"`
|
|
191
|
+ Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
|
|
192
|
+ HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
|
|
193
|
+ LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
|
|
194
|
+ Way int64 `gorm:"column:way" json:"way" form:"way"`
|
|
195
|
+ IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
|
|
196
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
197
|
+ AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
|
|
198
|
+}
|
|
199
|
+
|
|
200
|
+func (PharmacyHisDoctorAdviceInfo) TableName() string {
|
|
201
|
+ return "his_doctor_advice_info"
|
|
202
|
+}
|
|
203
|
+
|
|
204
|
+type PharmacyConfig struct {
|
|
205
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
206
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
207
|
+ IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
|
|
208
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
209
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
210
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
211
|
+}
|
|
212
|
+
|
|
213
|
+func (PharmacyConfig) TableName() string {
|
|
214
|
+ return "xt_pharmacy_config"
|
|
215
|
+}
|