|
@@ -121,7 +121,124 @@ type HisPrescriptionVm struct {
|
121
|
121
|
Name string
|
122
|
122
|
}
|
123
|
123
|
|
124
|
|
-type HisPrescription struct {
|
|
124
|
+type HisCaseHistoryTemplate struct {
|
|
125
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
126
|
+ HistoryOfPresentIllness string `gorm:"column:history_of_present_illness" json:"history_of_present_illness" form:"history_of_present_illness"`
|
|
127
|
+ PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
|
|
128
|
+ ChiefConplaint string `gorm:"column:chief_conplaint" json:"chief_conplaint" form:"chief_conplaint"`
|
|
129
|
+ PersonalHistory string `gorm:"column:personal_history" json:"personal_history" form:"personal_history"`
|
|
130
|
+ FamilyHistory string `gorm:"column:family_history" json:"family_history" form:"family_history"`
|
|
131
|
+ Diagnostic string `gorm:"column:diagnostic" json:"diagnostic" form:"diagnostic"`
|
|
132
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
133
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
134
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
135
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
136
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
137
|
+ TemplateName string `gorm:"column:template_name" json:"template_name" form:"template_name"`
|
|
138
|
+ TemplateRemark string `gorm:"column:template_remark" json:"template_remark" form:"template_remark"`
|
|
139
|
+ Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
|
140
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
|
141
|
+}
|
|
142
|
+
|
|
143
|
+func (HisCaseHistoryTemplate) TableName() string {
|
|
144
|
+ return "his_patient"
|
|
145
|
+}
|
|
146
|
+
|
|
147
|
+type HisDoctorAdviceInfo struct {
|
|
148
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
149
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
150
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
151
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
152
|
+ AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
|
|
153
|
+ AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
|
|
154
|
+ StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
|
|
155
|
+ AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
|
|
156
|
+ AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
|
|
157
|
+ ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
|
|
158
|
+ SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
|
|
159
|
+ SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
|
|
160
|
+ PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
|
|
161
|
+ PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
|
|
162
|
+ DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
|
|
163
|
+ ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
|
|
164
|
+ AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
|
|
165
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
166
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
|
167
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
|
168
|
+ AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
|
|
169
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
170
|
+ StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
|
|
171
|
+ StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
|
|
172
|
+ StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
|
|
173
|
+ StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
|
|
174
|
+ ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
|
|
175
|
+ ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
|
|
176
|
+ ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
|
|
177
|
+ ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
|
|
178
|
+ Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
|
|
179
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
180
|
+ DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
|
|
181
|
+ CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
|
|
182
|
+ CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
|
|
183
|
+ DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
|
|
184
|
+ DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
|
|
185
|
+ Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
|
|
186
|
+ RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
|
|
187
|
+ FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
|
|
188
|
+ DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
|
|
189
|
+ WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
|
|
190
|
+ TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
|
|
191
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
|
192
|
+ DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
|
|
193
|
+ Price float64 `gorm:"column:price" json:"price" form:"price"`
|
|
194
|
+ PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
|
|
195
|
+ Way int64 `gorm:"column:way" json:"way" form:"way"`
|
|
196
|
+ DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
|
|
197
|
+}
|
|
198
|
+
|
|
199
|
+func (HisDoctorAdviceInfo) TableName() string {
|
|
200
|
+ return "his_doctor_advice_info"
|
|
201
|
+}
|
|
202
|
+
|
|
203
|
+type HisGroupAdvice struct {
|
|
204
|
+ HisDoctorAdviceInfo
|
|
205
|
+ Children []*HisGroupAdvice
|
|
206
|
+}
|
|
207
|
+
|
|
208
|
+type HisPatientCaseHistory struct {
|
|
209
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
210
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
211
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
212
|
+ Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
|
|
213
|
+ BloodSugar float64 `gorm:"column:blood_sugar" json:"blood_sugar" form:"blood_sugar"`
|
|
214
|
+ Pulse float64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
|
|
215
|
+ Sbp float64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
|
|
216
|
+ Dbp float64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
|
|
217
|
+ Height float64 `gorm:"column:height" json:"height" form:"height"`
|
|
218
|
+ BloodFat float64 `gorm:"column:blood_fat" json:"blood_fat" form:"blood_fat"`
|
|
219
|
+ SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
|
|
220
|
+ Symptom string `gorm:"column:symptom" json:"symptom" form:"symptom"`
|
|
221
|
+ SickDate int64 `gorm:"column:sick_date" json:"sick_date" form:"sick_date"`
|
|
222
|
+ IsInfect int64 `gorm:"column:is_infect" json:"is_infect" form:"is_infect"`
|
|
223
|
+ HistoryOfPresentIllness string `gorm:"column:history_of_present_illness" json:"history_of_present_illness" form:"history_of_present_illness"`
|
|
224
|
+ PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
|
|
225
|
+ Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
|
|
226
|
+ ChiefConplaint string `gorm:"column:chief_conplaint" json:"chief_conplaint" form:"chief_conplaint"`
|
|
227
|
+ PersonalHistory string `gorm:"column:personal_history" json:"personal_history" form:"personal_history"`
|
|
228
|
+ FamilyHistory string `gorm:"column:family_history" json:"family_history" form:"family_history"`
|
|
229
|
+ Diagnostic string `gorm:"column:diagnostic" json:"diagnostic" form:"diagnostic"`
|
|
230
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
231
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
232
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
233
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
234
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
235
|
+}
|
|
236
|
+
|
|
237
|
+func (HisPatientCaseHistory) TableName() string {
|
|
238
|
+ return "his_patient_case_history"
|
|
239
|
+}
|
|
240
|
+
|
|
241
|
+type HisPatientInfo struct {
|
125
|
242
|
ID int64 `gorm:"column:id" json:"id" form:"id"`
|
126
|
243
|
UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
127
|
244
|
RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
@@ -130,34 +247,180 @@ type HisPrescription struct {
|
130
|
247
|
Status int64 `gorm:"column:status" json:"status" form:"status"`
|
131
|
248
|
Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
132
|
249
|
Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
133
|
|
- Number string `gorm:"column:number" json:"number" form:"number"`
|
134
|
|
- Type int64 `gorm:"column:type" json:"type" form:"type"`
|
135
|
|
- Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
|
136
|
250
|
Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
137
|
251
|
Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
|
252
|
+ Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
|
|
253
|
+ SickType string `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
|
|
254
|
+ PType string `gorm:"column:p_type" json:"p_type" form:"p_type"`
|
|
255
|
+}
|
|
256
|
+
|
|
257
|
+func (HisPatientInfo) TableName() string {
|
|
258
|
+ return "his_patient_info"
|
|
259
|
+}
|
|
260
|
+
|
|
261
|
+type HisPrescription struct {
|
|
262
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
263
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
264
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
265
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
266
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
267
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
268
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
269
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
270
|
+ Number string `gorm:"column:number" json:"number" form:"number"`
|
|
271
|
+ Type int64 `gorm:"column:type" json:"type" form:"type"`
|
|
272
|
+ Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
|
|
273
|
+ Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
|
274
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
|
275
|
+ HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"advices"`
|
|
276
|
+ HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PatientId,RecordDate,PrescriptionId;AssociationForeignKey:PatientId,RecordDate,ID" json:"project"`
|
138
|
277
|
}
|
139
|
278
|
|
140
|
279
|
func (HisPrescription) TableName() string {
|
141
|
280
|
return "his_prescription"
|
142
|
281
|
}
|
143
|
282
|
|
144
|
|
-type HisAdditionalCharge struct {
|
|
283
|
+type HisProject struct {
|
|
284
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
285
|
+ ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
|
|
286
|
+ Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
|
|
287
|
+ Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
|
|
288
|
+ Price float64 `gorm:"column:price" json:"price" form:"price"`
|
|
289
|
+ Unit string `gorm:"column:unit" json:"unit" form:"unit"`
|
|
290
|
+ CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
|
|
291
|
+ ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
|
|
292
|
+ MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
|
|
293
|
+ StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
|
|
294
|
+ DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
|
|
295
|
+ IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
|
|
296
|
+ MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
|
|
297
|
+ TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
|
|
298
|
+ MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
|
|
299
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
300
|
+ Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
|
|
301
|
+ DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
|
|
302
|
+ IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
|
|
303
|
+ IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
|
|
304
|
+ IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
|
|
305
|
+ IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
|
|
306
|
+ Sort string `gorm:"column:sort" json:"sort" form:"sort"`
|
|
307
|
+ DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
|
|
308
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
309
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
310
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
|
311
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
|
312
|
+}
|
|
313
|
+
|
|
314
|
+func (HisProject) TableName() string {
|
|
315
|
+ return "xt_his_project"
|
|
316
|
+}
|
|
317
|
+
|
|
318
|
+type HisProjectTeam struct {
|
145
|
319
|
ID int64 `gorm:"column:id" json:"id" form:"id"`
|
146
|
|
- DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
|
147
|
|
- PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
148
|
|
- Money float64 `gorm:"column:money" json:"money" form:"money"`
|
149
|
|
- AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
|
|
320
|
+ ProjectTeam string `gorm:"column:project_team" json:"project_team" form:"project_team"`
|
|
321
|
+ Price float64 `gorm:"column:price" json:"price" form:"price"`
|
|
322
|
+ Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
|
|
323
|
+ Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
|
|
324
|
+ TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
|
|
325
|
+ TeamType int64 `gorm:"column:team_type" json:"team_type" form:"team_type"`
|
|
326
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
150
|
327
|
UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
151
|
|
- RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
328
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
152
|
329
|
CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
153
|
330
|
UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
154
|
|
- Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
331
|
+ ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
|
|
332
|
+}
|
|
333
|
+
|
|
334
|
+func (HisProjectTeam) TableName() string {
|
|
335
|
+ return "xt_his_project_team"
|
|
336
|
+}
|
|
337
|
+
|
|
338
|
+type HisAdditionalCharge struct {
|
|
339
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
340
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
341
|
+ Price float64 `gorm:"column:price" json:"price" form:"price"`
|
|
342
|
+ AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
|
|
343
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
344
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
345
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
|
346
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
|
347
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
348
|
+ ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
|
|
349
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
350
|
+ ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
|
|
351
|
+ Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
|
352
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
155
|
353
|
}
|
156
|
354
|
|
157
|
355
|
func (HisAdditionalCharge) TableName() string {
|
158
|
356
|
return "his_additional_charge"
|
159
|
357
|
}
|
160
|
358
|
|
|
359
|
+type HisDoctorAdviceParentTemplate struct {
|
|
360
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
361
|
+ OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
|
|
362
|
+ Name string `gorm:"column:name" json:"name" form:"name"`
|
|
363
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
364
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
|
365
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
|
366
|
+ AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
|
|
367
|
+ HisDoctorAdviceTemplate []*HisDoctorAdviceTemplate `gorm:"ForeignKey:TemplateId;AssociationForeignKey:ID" json:"advices"`
|
|
368
|
+}
|
|
369
|
+
|
|
370
|
+func (HisDoctorAdviceParentTemplate) TableName() string {
|
|
371
|
+ return "his_doctor_advice_parent_template"
|
|
372
|
+}
|
|
373
|
+
|
|
374
|
+type HisDoctorAdviceTemplate struct {
|
|
375
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
376
|
+ OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
|
|
377
|
+ AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
|
|
378
|
+ AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
|
|
379
|
+ SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
|
|
380
|
+ SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
|
|
381
|
+ PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
|
|
382
|
+ PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
|
|
383
|
+ DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
|
|
384
|
+ ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
|
|
385
|
+ AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
|
|
386
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
387
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
|
388
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
|
389
|
+ TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
|
|
390
|
+ DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
|
|
391
|
+ DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
|
|
392
|
+ ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
|
|
393
|
+ AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
|
|
394
|
+ DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
|
|
395
|
+ WeekDays string `gorm:"column:week_days" json:"week_days" form:"week_days"`
|
|
396
|
+ FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
|
|
397
|
+ DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
|
|
398
|
+ Way int64 `gorm:"column:way" json:"way" form:"way"`
|
|
399
|
+ DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
|
|
400
|
+}
|
|
401
|
+
|
|
402
|
+func (HisDoctorAdviceTemplate) TableName() string {
|
|
403
|
+ return "his_doctor_advice_template"
|
|
404
|
+}
|
|
405
|
+
|
|
406
|
+type HisPrescriptionProject struct {
|
|
407
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
408
|
+ ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
|
|
409
|
+ Price float64 `gorm:"column:price" json:"price" form:"price"`
|
|
410
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
411
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
412
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
413
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
414
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
415
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
416
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
417
|
+ PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
|
|
418
|
+}
|
|
419
|
+
|
|
420
|
+func (HisPrescriptionProject) TableName() string {
|
|
421
|
+ return "his_prescription_project"
|
|
422
|
+}
|
|
423
|
+
|
161
|
424
|
type SchedulesVm struct {
|
162
|
425
|
ID int64 `gorm:"column:id" json:"id" form:"id"`
|
163
|
426
|
UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|