|
@@ -351,24 +351,105 @@ func (NewMSchedualPatientVMList) TableName() string {
|
351
|
351
|
}
|
352
|
352
|
|
353
|
353
|
type VmBloodScheduleTwo struct {
|
354
|
|
- ID int64 `gorm:"column:id" json:"id" form:"id"`
|
355
|
|
- UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
356
|
|
- PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
|
357
|
|
- BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
|
358
|
|
- PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
359
|
|
- ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
|
360
|
|
- ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
|
361
|
|
- ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
|
362
|
|
- ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
|
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
|
|
- IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
|
367
|
|
- DeviceNumber *NewMDeviceNumberVM `gorm:"ForeignKey:BedId" json:"device_number"`
|
368
|
|
- SchedualPatient *NewMSchedualPatientVMList `gorm:"ForeignKey:PatientId" json:"patient"`
|
369
|
|
- HisPrescriptionInfoTemplate HisPrescriptionInfoTemplate `gorm:"ForeignKey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId" json:"his_prescription_template"`
|
|
354
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
355
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
356
|
+ PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
|
|
357
|
+ BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
|
|
358
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
359
|
+ ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
|
|
360
|
+ ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
|
|
361
|
+ ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
|
|
362
|
+ ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
|
|
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
|
+ IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
|
|
367
|
+ DeviceNumber *NewMDeviceNumberVM `gorm:"ForeignKey:BedId" json:"device_number"`
|
|
368
|
+ SchedualPatient *NewMSchedualPatientVMList `gorm:"ForeignKey:PatientId" json:"patient"`
|
|
369
|
+ HisPrescriptionTemplateSix HisPrescriptionTemplateSix `gorm:"ForeignKey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId" json:"his_prescription_template"`
|
370
|
370
|
}
|
371
|
371
|
|
372
|
372
|
func (VmBloodScheduleTwo) TableName() string {
|
373
|
373
|
return "xt_schedule"
|
374
|
374
|
}
|
|
375
|
+
|
|
376
|
+type HisPrescriptionTemplateSix struct {
|
|
377
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
378
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
379
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
380
|
+ Type int64 `gorm:"column:type" json:"type" form:"type"`
|
|
381
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
382
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
383
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
384
|
+ Name string `gorm:"column:name" json:"name" form:"name"`
|
|
385
|
+ Mode int64 `gorm:"column:mode" json:"mode" form:"mode"`
|
|
386
|
+ HisPrescriptionInfoTemplateSix []*HisPrescriptionInfoTemplateSix `gorm:"ForeignKey:PTemplateId;AssociationForeignKey:ID" json:"his_prescription_info"`
|
|
387
|
+}
|
|
388
|
+
|
|
389
|
+func (HisPrescriptionTemplateSix) TableName() string {
|
|
390
|
+ return "his_prescription_template"
|
|
391
|
+}
|
|
392
|
+
|
|
393
|
+type HisPrescriptionInfoTemplateSix struct {
|
|
394
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
395
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
396
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
397
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
398
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
399
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
400
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
401
|
+ Type int64 `gorm:"column:type" json:"type" form:"type"`
|
|
402
|
+ Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
|
403
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
|
404
|
+ PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
|
|
405
|
+ PTemplateId int64 `gorm:"column:p_template_id" json:"p_template_id" form:"p_template_id"`
|
|
406
|
+ HisPrescriptionProjectTemplateSeven []*HisPrescriptionProjectTemplateSeven `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
|
|
407
|
+ MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
|
|
408
|
+}
|
|
409
|
+
|
|
410
|
+func (HisPrescriptionInfoTemplateSix) TableName() string {
|
|
411
|
+ return "his_prescription_info_template"
|
|
412
|
+}
|
|
413
|
+
|
|
414
|
+type HisPrescriptionProjectTemplateSeven struct {
|
|
415
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
416
|
+ ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
|
|
417
|
+ Price float64 `gorm:"column:price" json:"price" form:"price"`
|
|
418
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
419
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
420
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
421
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
422
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
423
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
424
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
425
|
+ Count string `gorm:"column:count" json:"count" form:"count"`
|
|
426
|
+ FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
|
|
427
|
+ MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
|
|
428
|
+ SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
|
|
429
|
+ DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
|
|
430
|
+ ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
|
|
431
|
+ Day string `gorm:"column:day" json:"day" form:"day"`
|
|
432
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
433
|
+ Unit string `gorm:"column:unit" json:"unit" form:"unit"`
|
|
434
|
+ Type int64 `gorm:"column:type" json:"type" form:"type"`
|
|
435
|
+ PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
|
|
436
|
+ GoodInfo GoodInfoNight `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"good_info"`
|
|
437
|
+ FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
|
|
438
|
+ DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
|
|
439
|
+ WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
|
|
440
|
+}
|
|
441
|
+
|
|
442
|
+func (HisPrescriptionProjectTemplateSeven) TableName() string {
|
|
443
|
+ return "his_prescription_project_template"
|
|
444
|
+}
|
|
445
|
+
|
|
446
|
+type GoodInfoNight struct {
|
|
447
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
448
|
+ GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
|
|
449
|
+ SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
|
|
450
|
+ GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
|
|
451
|
+}
|
|
452
|
+
|
|
453
|
+func (GoodInfoNight) TableName() string {
|
|
454
|
+ return "xt_good_information"
|
|
455
|
+}
|