|
@@ -518,7 +518,7 @@ type HisPrescription struct {
|
518
|
518
|
HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
|
519
|
519
|
HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
|
520
|
520
|
HisAdditionalCharge []*HisAdditionalCharge `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
|
521
|
|
- HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,ScheduleDate" json:"info"`
|
|
521
|
+ HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId,RecordDate;AssociationForeignKey:PatientId,RecordDate" json:"info"`
|
522
|
522
|
HisOrder HisOrder `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
|
523
|
523
|
Total string `gorm:"-" json:"total" form:"total"`
|
524
|
524
|
PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
|
|
@@ -751,6 +751,52 @@ func (HisDoctorAdviceTemplate) TableName() string {
|
751
|
751
|
return "his_doctor_advice_template"
|
752
|
752
|
}
|
753
|
753
|
|
|
754
|
+type HisPrintPrescriptionProject struct {
|
|
755
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
756
|
+ ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
|
|
757
|
+ Price float64 `gorm:"column:price" json:"price" form:"price"`
|
|
758
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
759
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
760
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
761
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
762
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
763
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
764
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
765
|
+ PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
|
|
766
|
+ Count string `gorm:"column:count" json:"count" form:"count"`
|
|
767
|
+ FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
|
|
768
|
+ MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
|
|
769
|
+ SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
|
|
770
|
+ DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
|
|
771
|
+ ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
|
|
772
|
+ Day string `gorm:"column:day" json:"day" form:"day"`
|
|
773
|
+ HisProject HisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
|
|
774
|
+ GoodInfo GoodInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
|
|
775
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
776
|
+ Unit string `gorm:"column:unit" json:"unit" form:"unit"`
|
|
777
|
+ Type int64 `gorm:"column:type" json:"type" form:"type"`
|
|
778
|
+ Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
|
|
779
|
+ ExecutionTime int64 `gborm:"column:execution_time" json:"execution_time" form:"execution_time"`
|
|
780
|
+ ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
|
|
781
|
+ ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
|
|
782
|
+ CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
|
|
783
|
+ CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
|
|
784
|
+ Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
|
|
785
|
+ StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
|
|
786
|
+ TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
|
|
787
|
+
|
|
788
|
+ XtHisProjectTeam XtHisProjectTeam `gorm:"ForeignKey:TeamId;AssociationForeignKey:ID" json:"team"`
|
|
789
|
+
|
|
790
|
+ FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
|
|
791
|
+ DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
|
|
792
|
+ WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
|
|
793
|
+ IsCheckTeam int64 `gorm:"-" json:"is_check_team" form:"is_check_team"`
|
|
794
|
+}
|
|
795
|
+
|
|
796
|
+func (HisPrintPrescriptionProject) TableName() string {
|
|
797
|
+ return "his_prescription_project"
|
|
798
|
+}
|
|
799
|
+
|
754
|
800
|
type HisPrescriptionProject struct {
|
755
|
801
|
ID int64 `gorm:"column:id" json:"id" form:"id"`
|
756
|
802
|
ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
|