|
@@ -5,3 +5,119 @@ type CustomDialysisData struct {
|
5
|
5
|
Count int64 `json:"count"`
|
6
|
6
|
Total int64 `json:"total"`
|
7
|
7
|
}
|
|
8
|
+
|
|
9
|
+type QCPrescription struct {
|
|
10
|
+ ID int64 `gorm:"column:id" json:"id"`
|
|
11
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
|
|
12
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
|
|
13
|
+ ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
|
|
14
|
+ Status int64 `gorm:"column:status" json:"status"`
|
|
15
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
|
|
16
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
|
|
17
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date"`
|
|
18
|
+ RecordId int64 `gorm:"column:record_id" json:"record_id"`
|
|
19
|
+ UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:Creater;"`
|
|
20
|
+ Creater int64 `gorm:"column:creater" json:"creater"`
|
|
21
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier"`
|
|
22
|
+ QCPatients QCPatients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
|
|
23
|
+ QCDialysisOrder QCDialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,RecordDate" json:"order"`
|
|
24
|
+ QCAssessmentAfterDislysis QCAssessmentAfterDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,RecordDate" json:"ad"`
|
|
25
|
+}
|
|
26
|
+
|
|
27
|
+func (QCPrescription) TableName() string {
|
|
28
|
+ return "xt_dialysis_prescription"
|
|
29
|
+}
|
|
30
|
+
|
|
31
|
+type QCPatients struct {
|
|
32
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
33
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
34
|
+ Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
|
|
35
|
+ DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
|
|
36
|
+ Name string `gorm:"column:name" json:"name" form:"name"`
|
|
37
|
+ IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
|
|
38
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
39
|
+}
|
|
40
|
+
|
|
41
|
+func (QCPatients) TableName() string {
|
|
42
|
+ return "xt_patients"
|
|
43
|
+}
|
|
44
|
+
|
|
45
|
+type QCDialysisOrder struct {
|
|
46
|
+ ID int64 `gorm:"column:id" json:"id"`
|
|
47
|
+ DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
|
|
48
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
|
|
49
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
|
|
50
|
+ Stage int64 `gorm:"column:stage" json:"stage"`
|
|
51
|
+ Remark string `gorm:"column:remark" json:"remark"`
|
|
52
|
+ BedID int64 `gorm:"column:bed_id" json:"bed_id"`
|
|
53
|
+ StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
|
|
54
|
+ FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
|
|
55
|
+ Status int64 `gorm:"column:status" json:"status"`
|
|
56
|
+ DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
|
|
57
|
+ StartTime int64 `gorm:"column:start_time" json:"start_time"`
|
|
58
|
+ EndTime int64 `gorm:"column:end_time" json:"end_time"`
|
|
59
|
+ FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
|
|
60
|
+ FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
|
|
61
|
+ SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
|
|
62
|
+ UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:StartNurse;"`
|
|
63
|
+ ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
|
|
64
|
+}
|
|
65
|
+
|
|
66
|
+func (QCDialysisOrder) TableName() string {
|
|
67
|
+ return "xt_dialysis_order"
|
|
68
|
+}
|
|
69
|
+
|
|
70
|
+type QCAssessmentAfterDislysis struct {
|
|
71
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
72
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
73
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
74
|
+ AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
|
|
75
|
+ ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour" form:"actual_treatment_hour"`
|
|
76
|
+ ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute" form:"actual_treatment_minute"`
|
|
77
|
+}
|
|
78
|
+
|
|
79
|
+func (QCAssessmentAfterDislysis) TableName() string {
|
|
80
|
+
|
|
81
|
+ return "xt_assessment_after_dislysis"
|
|
82
|
+}
|
|
83
|
+
|
|
84
|
+type QCSchedule struct {
|
|
85
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
86
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
87
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
88
|
+ ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
|
|
89
|
+ ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
|
|
90
|
+ ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
|
|
91
|
+ ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
|
|
92
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
93
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
|
|
94
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
|
|
95
|
+ QCSPrescription QCSPrescription `gorm:"ForeignKey:RecordDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"prescription"`
|
|
96
|
+ QCPatients QCPatients `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId" json:"patient"`
|
|
97
|
+ QCDialysisOrder QCDialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,ScheduleDate" json:"order"`
|
|
98
|
+ QCAssessmentAfterDislysis QCAssessmentAfterDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,ScheduleDate" json:"ad"`
|
|
99
|
+}
|
|
100
|
+
|
|
101
|
+// `gorm:"ForeignKey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"dialysis_order"`
|
|
102
|
+func (QCSchedule) TableName() string {
|
|
103
|
+ return "xt_schedule"
|
|
104
|
+}
|
|
105
|
+
|
|
106
|
+type QCSPrescription struct {
|
|
107
|
+ ID int64 `gorm:"column:id" json:"id"`
|
|
108
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
|
|
109
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
|
|
110
|
+ ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
|
|
111
|
+ Status int64 `gorm:"column:status" json:"status"`
|
|
112
|
+ CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
|
|
113
|
+ UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
|
|
114
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date"`
|
|
115
|
+ RecordId int64 `gorm:"column:record_id" json:"record_id"`
|
|
116
|
+ UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:Creater;"`
|
|
117
|
+ Creater int64 `gorm:"column:creater" json:"creater"`
|
|
118
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier"`
|
|
119
|
+}
|
|
120
|
+
|
|
121
|
+func (QCSPrescription) TableName() string {
|
|
122
|
+ return "xt_dialysis_prescription"
|
|
123
|
+}
|