dialysis.go 96KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190
  1. package models
  2. type SchedualPatient struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  6. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  7. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  8. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  9. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  10. Source int64 `gorm:"column:source" json:"source" form:"source"`
  11. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  12. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  13. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  14. Name string `gorm:"column:name" json:"name" form:"name"`
  15. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  16. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  17. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  18. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  19. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  20. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  21. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  22. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  23. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  24. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  25. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  26. Height int64 `gorm:"column:height" json:"height" form:"height"`
  27. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  28. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  29. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  30. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  31. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  32. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  33. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  34. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  35. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  36. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  37. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  38. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  39. Children int64 `gorm:"column:children" json:"children" form:"children"`
  40. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  41. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  42. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  43. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  44. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  45. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  46. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  47. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  48. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  49. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  50. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  51. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  52. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  53. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  54. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  55. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  56. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"` // 主诉
  57. PresentHistory string `gorm:"column:present_history" json:"present_history"` // 现病史
  58. PastHistory string `gorm:"column:past_history" json:"past_history"` // 既往史
  59. Temperature float64 `gorm:"column:temperature" json:"temperature"` // 体格检查-体温
  60. Pulse int64 `gorm:"column:pulse" json:"pulse"` // 体格检查-脉搏
  61. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"` // 体格检查-呼吸频率
  62. SBP int64 `gorm:"column:sbp" json:"sbp"` // 体格检查-收缩压
  63. DBP int64 `gorm:"column:dbp" json:"dbp"` // 体格检查-舒张压
  64. Age int64 `gorm:"column:age" json:"age"`
  65. Status int64 `gorm:"column:status" json:"status" form:"status"`
  66. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  67. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  68. PredialysisEvaluation PredialysisEvaluation `json:"PredialysisEvaluation" gorm:"ForeignKey:PatientId"`
  69. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:PatientId"`
  70. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:PatientId"`
  71. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind"`
  72. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  73. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  74. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  75. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  76. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  77. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  78. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  79. }
  80. func (SchedualPatient) TableName() string {
  81. return "xt_patients"
  82. }
  83. type SchedualPatient2 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. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  87. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  88. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  89. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  90. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  91. Source int64 `gorm:"column:source" json:"source" form:"source"`
  92. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  93. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  94. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  95. Name string `gorm:"column:name" json:"name" form:"name"`
  96. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  97. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  98. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  99. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  100. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  101. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  102. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  103. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  104. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  105. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  106. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  107. Height int64 `gorm:"column:height" json:"height" form:"height"`
  108. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  109. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  110. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  111. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  112. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  113. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  114. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  115. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  116. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  117. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  118. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  119. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  120. Children int64 `gorm:"column:children" json:"children" form:"children"`
  121. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  122. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  123. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  124. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  125. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  126. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  127. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  128. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  129. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  130. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  131. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  132. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  133. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  134. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  135. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  136. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  137. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"` // 主诉
  138. PresentHistory string `gorm:"column:present_history" json:"present_history"` // 现病史
  139. PastHistory string `gorm:"column:past_history" json:"past_history"` // 既往史
  140. Temperature float64 `gorm:"column:temperature" json:"temperature"` // 体格检查-体温
  141. Pulse int64 `gorm:"column:pulse" json:"pulse"` // 体格检查-脉搏
  142. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"` // 体格检查-呼吸频率
  143. SBP int64 `gorm:"column:sbp" json:"sbp"` // 体格检查-收缩压
  144. DBP int64 `gorm:"column:dbp" json:"dbp"` // 体格检查-舒张压
  145. Status int64 `gorm:"column:status" json:"status" form:"status"`
  146. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  147. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  148. DialysisSchedule DialysisSchedule `gorm:"ForeignKey:PatientId"`
  149. InfectiousDiseases []InfectiousDiseases `gorm:"ForeignKey:PatientId"`
  150. Age int64 `gorm:"column:age" json:"age"`
  151. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind"`
  152. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  153. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  154. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  155. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  156. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  157. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  158. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  159. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  160. }
  161. func (SchedualPatient2) TableName() string {
  162. return "xt_patients"
  163. }
  164. type DialysisSchedule struct {
  165. ID int64 `gorm:"column:id" json:"id" form:"id"`
  166. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  167. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  168. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  169. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  170. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  171. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  172. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  173. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  174. Status int64 `gorm:"column:status" json:"status" form:"status"`
  175. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  176. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  177. MonitorPatients *MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  178. DeviceNumber *DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  179. DeviceZone *DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  180. TreatmentMode *TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  181. DialysisOrder *MonitorDialysisOrder `gorm:"ForeignKey:DialysisDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"dialysis_order"`
  182. Prescription *DialysisPrescription `gorm:"ForeignKey:RecordDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"prescription"`
  183. AssessmentBeforeDislysis *PredialysisEvaluation `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_before_dislysis"`
  184. AssessmentAfterDislysis *AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"assessment_after_dislysis"`
  185. MonitoringRecord []*MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientId;AssociationForeignKey:ScheduleDate,PatientId" json:"monitoring_record"`
  186. //Patient string `gorm:"-" json:"patient" form:"patient"`
  187. //SchedualPatient SchedualPatient `gorm:"ForeignKey:PatientId"`
  188. //DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId"`
  189. //DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId"`
  190. //TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId"`
  191. }
  192. type DialysisScheduleOne struct {
  193. ID int64 `gorm:"column:id" json:"id" form:"id"`
  194. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  195. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  196. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  197. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  198. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  199. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  200. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  201. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  202. Status int64 `gorm:"column:status" json:"status" form:"status"`
  203. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  204. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  205. MonitorPatients MonitorPatients `gorm:"ForeignKey:PatientId" json:"patient"`
  206. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId" json:"device_number"`
  207. DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId" json:"device_zone"`
  208. TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId" json:"treatment_mode"`
  209. DialysisOrder MonitorDialysisOrder `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"dialysis_order"`
  210. Prescription DialysisPrescription `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"prescription"`
  211. AssessmentBeforeDislysis PredialysisEvaluation `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_before_dislysis"`
  212. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"assessment_after_dislysis"`
  213. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
  214. //Patient string `gorm:"-" json:"patient" form:"patient"`
  215. //SchedualPatient SchedualPatient `gorm:"ForeignKey:PatientId"`
  216. //DeviceNumber DeviceNumber `gorm:"ForeignKey:BedId"`
  217. //DeviceZone DeviceZone `gorm:"ForeignKey:PartitionId"`
  218. //TreatmentMode TreatmentMode `gorm:"ForeignKey:ModeId"`
  219. }
  220. func (DialysisSchedule) TableName() string {
  221. return "xt_schedule"
  222. }
  223. type PredialysisEvaluation struct {
  224. ID int64 `gorm:"column:id" json:"id"`
  225. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  226. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  227. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  228. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  229. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  230. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  231. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  232. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  233. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  234. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  235. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  236. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  237. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  238. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  239. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  240. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  241. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  242. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  243. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  244. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  245. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  246. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  247. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  248. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  249. Catheter string `gorm:"column:catheter" json:"catheter"`
  250. CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  251. Complication string `gorm:"column:complication" json:"complication"`
  252. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  253. Creater int64 `gorm:"column:creater" json:"creater"`
  254. Remark string `gorm:"column:remark" json:"remark"`
  255. Status int64 `gorm:"column:status" json:"status"`
  256. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  257. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  258. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  259. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  260. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  261. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  262. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  263. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  264. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  265. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  266. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  267. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  268. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way"`
  269. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  270. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  271. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  272. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  273. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  274. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  275. DialysisCount string `gorm:"column:dialysis_count" json:"dialysis_count"`
  276. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  277. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  278. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  279. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  280. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  281. Skin string `gorm:"column:skin" json:"skin"`
  282. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  283. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  284. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  285. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  286. LastPostDialysisOther string `gorm:"column:last_post_dialysis_other" json:"last_post_dialysis_other"`
  287. SymptomBeforeDialysisOther string `gorm:"column:symptom_before_dialysis_other" json:"symptom_before_dialysis_other"`
  288. DialysisInterphaseOther string `gorm:"column:dialysis_interphase_other" json:"dialysis_interphase_other"`
  289. HumorExcessiveSymptom string `gorm:"column:humor_excessive_symptom" json:"humor_excessive_symptom"`
  290. Phinholing string `gorm:"column:pinholing" json:"pinholing" form:"pinholing"`
  291. CatheterSuture string `gorm:"column:catheter_suture" json:"catheter_suture" form:"catheter_suture"`
  292. CatheterSutureOther string `gorm:"column:catheter_suture_other" json:"catheter_suture_other" form:"catheter_suture_other"`
  293. UrineVolume float64 `gorm:"column:urine_volume" json:"urine_volume" form:"urine_volume"`
  294. Edema string `gorm:"column:edema" json:"edema" form:"edema"`
  295. SpecialTreatment string `gorm:"column:special_treatment" json:"special_treatment" form:"special_treatment"`
  296. CatheterMaintenance string `gorm:"column:catheter_maintenance" json:"catheter_maintenance" form:"catheter_maintenance"`
  297. ThromubusType int64 `gorm:"column:thromubus_type" json:"thromubus_type" form:"thromubus_type"`
  298. ThrombusAv string `gorm:"column:thrombus_av" json:"thrombus_av" form:"thrombus_av"`
  299. ThromubusA string `gorm:"column:thromubus_a" json:"thromubus_a" form:"thromubus_a"`
  300. ThromubusV string `gorm:"column:thromubus_v" json:"thromubus_v" form:"thromubus_v"`
  301. Dehydration string `gorm:"column:dehydration" json:"dehydration" form:"dehydration"`
  302. PreDialysisDrugs string `gorm:"column:pre_dialysis_drugs" json:"pre_dialysis_drugs" form:"pre_dialysis_drugs"`
  303. Period int64 `gorm:"column:period" json:"period" form:"period"`
  304. EstimatedFoodIntake string `gorm:"column:estimated_food_intake" json:"estimated_food_intake" form:"estimated_food_intake"`
  305. BloodPressureDuringDialysis string `gorm:"column:blood_pressure_during_dialysis" json:"blood_pressure_during_dialysis" form:"blood_pressure_during_dialysis"`
  306. UreaBefor string `gorm:"column:urea_befor" json:"urea_befor" form:"urea_befor"`
  307. Suction string `gorm:"column:suction" json:"suction" form:"suction"`
  308. WeightBeforRemake string `gorm:"column:weight_befor_remake" json:"weight_befor_remake" form:"weight_befor_remake"`
  309. }
  310. func (PredialysisEvaluation) TableName() string {
  311. return "xt_assessment_before_dislysis"
  312. }
  313. type PredialysisEvaluationList struct {
  314. ID int64 `gorm:"column:id" json:"id"`
  315. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  316. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  317. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  318. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  319. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  320. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  321. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  322. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  323. }
  324. func (PredialysisEvaluationList) TableName() string {
  325. return "xt_assessment_before_dislysis"
  326. }
  327. //更改的地方
  328. type DoctorAdvices struct {
  329. ID int64 `gorm:"column:id" json:"id" form:"id"`
  330. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  331. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  332. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  333. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  334. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  335. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  336. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  337. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  338. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  339. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  340. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  341. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  342. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  343. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  344. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  345. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  346. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  347. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  348. Status int64 `gorm:"column:status" json:"status" form:"status"`
  349. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  350. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  351. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  352. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  353. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  354. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  355. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  356. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  357. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  358. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  359. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  360. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  361. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  362. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  363. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  364. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  365. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  366. AdviceId int64 `gorm:"-"`
  367. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  368. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  369. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  370. WeekDay string `gorm:"column:week_day" json:"week_day"`
  371. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  372. TemplateId string `gorm:"column:template_id" json:"template_id"`
  373. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  374. Name string `gorm:"column:name" json:"name" form:"name"`
  375. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  376. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  377. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  378. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  379. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  380. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  381. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  382. PushStartTime int64 `gorm:"column:push_start_time" json:"push_start_time" form:"push_start_time"`
  383. }
  384. type DoctorAdvice struct {
  385. ID int64 `gorm:"column:id" json:"id" form:"id"`
  386. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  387. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  388. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  389. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  390. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  391. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  392. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  393. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  394. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  395. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  396. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  397. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  398. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  399. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  400. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  401. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  402. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  403. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  404. Status int64 `gorm:"column:status" json:"status" form:"status"`
  405. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  406. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  407. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  408. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  409. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  410. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  411. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  412. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  413. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  414. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  415. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  416. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  417. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  418. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  419. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  420. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  421. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  422. AdviceId int64 `gorm:"-"`
  423. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  424. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  425. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  426. WeekDay string `gorm:"column:week_day" json:"week_day"`
  427. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  428. TemplateId string `gorm:"column:template_id" json:"template_id"`
  429. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  430. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  431. Way int64 `gorm:"column:way" json:"way" form:"way"`
  432. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  433. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  434. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  435. PushStartTime int64 `gorm:"column:push_start_time" json:"push_start_time" form:"push_start_time"`
  436. }
  437. func (DoctorAdvice) TableName() string {
  438. return "xt_doctor_advice"
  439. }
  440. type XtDoctorAdvice struct {
  441. ID int64 `gorm:"column:id" json:"id" form:"id"`
  442. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  443. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  444. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  445. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  446. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  447. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  448. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  449. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  450. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  451. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  452. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  453. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  454. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  455. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  456. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  457. Status int64 `gorm:"column:status" json:"status" form:"status"`
  458. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  459. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  460. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  461. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  462. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  463. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  464. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  465. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  466. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  467. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  468. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  469. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  470. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  471. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  472. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  473. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  474. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  475. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  476. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  477. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  478. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  479. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  480. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  481. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  482. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  483. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  484. CheckerName string `gorm:"column:user_name" json:"name" form:"name"`
  485. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  486. }
  487. func (XtDoctorAdvice) TableName() string {
  488. return "xt_doctor_advice"
  489. }
  490. type GroupAdvice struct {
  491. DoctorAdvice
  492. Children []*GroupAdvice
  493. }
  494. func (GroupAdvice) TableName() string {
  495. return "xt_doctor_advice"
  496. }
  497. type DoubleCheck struct {
  498. ID int64 `gorm:"column:id" json:"id"`
  499. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  500. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  501. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  502. CheckDate int64 `gorm:"column:check_date" json:"check_date"`
  503. DialysisItemCheck int64 `gorm:"column:dialysis_item_check" json:"dialysis_item_check"`
  504. DialysisItemDesc string `gorm:"column:dialysis_item_desc" json:"dialysis_item_desc"`
  505. DialysisParameterCheck int64 `gorm:"column:dialysis_parameter_check" json:"dialysis_parameter_check"`
  506. DialysisParameterDesc string `gorm:"column:dialysis_parameter_desc" json:"dialysis_parameter_desc"`
  507. VascularAccessVerification int64 `gorm:"column:vascular_access_verification" json:"vascular_access_verification"`
  508. VascularAccessDesc string `gorm:"column:vascular_access_desc" json:"vascular_access_desc"`
  509. PipelineConnectionCheck int64 `gorm:"column:pipeline_connection_check" json:"pipeline_connection_check"`
  510. PipelineConnectionDesc string `gorm:"column:pipeline_connection_desc" json:"pipeline_connection_desc"`
  511. Collator int64 `gorm:"column:collator" json:"collator"`
  512. Status int64 `gorm:"column:status" json:"status"`
  513. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  514. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  515. Creater int64 `gorm:"column:creater" json:"creater"`
  516. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  517. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  518. FirstCheckTime int64 `gorm:"column:first_check_time" json:"first_check_time"`
  519. EmployeeNumber string `gorm:"column:employee_number" json:"employee_number" form:"employee_number"`
  520. }
  521. func (DoubleCheck) TableName() string {
  522. return "xt_double_check"
  523. }
  524. type AssessmentAfterDislysis struct {
  525. ID int64 `gorm:"column:id" json:"id"`
  526. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  527. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  528. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  529. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  530. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  531. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  532. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  533. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  534. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  535. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  536. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  537. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  538. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  539. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  540. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  541. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  542. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  543. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  544. Cruor string `gorm:"column:cruor" json:"cruor"`
  545. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  546. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  547. // InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  548. Catheter string `gorm:"column:catheter" json:"catheter"`
  549. // CatheterBend int `gorm:"column:catheter_bend" json:"catheter_bend"`
  550. Complication string `gorm:"column:complication" json:"complication"`
  551. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  552. Remark string `gorm:"column:remark" json:"remark"`
  553. DialysisIntakes float64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  554. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  555. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  556. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  557. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  558. Status int64 `gorm:"column:status" json:"status"`
  559. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  560. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  561. Creater int64 `gorm:"column:creater" json:"creater"`
  562. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  563. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  564. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  565. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  566. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  567. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  568. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  569. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  570. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  571. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  572. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  573. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  574. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  575. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  576. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  577. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  578. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  579. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  580. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  581. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  582. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  583. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  584. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  585. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  586. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  587. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  588. DialysisIntakesUnit int64 `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit"`
  589. CvcA float64 `gorm:"column:cvc_a" json:"cvc_a" form:"cvc_a"`
  590. CvcV float64 `gorm:"column:cvc_v" json:"cvc_v" form:"cvc_v"`
  591. ReturnBlood int64 `gorm:"column:return_blood" json:"return_blood" form:"return_blood"`
  592. RehydrationVolume int64 `gorm:"column:rehydration_volume" json:"rehydration_volume" form:"rehydration_volume"`
  593. DialysisDuring int64 `gorm:"column:dialysis_during" json:"dialysis_during" form:"dialysis_during"`
  594. StrokeVolume int64 `gorm:"column:stroke_volume" json:"stroke_volume" form:"stroke_volume"`
  595. Channel int64 `gorm:"column:channel" json:"channel" form:"channel"`
  596. BloodFlow int64 `gorm:"column:blood_flow" json:"blood_flow" form:"blood_flow"`
  597. SealingFluidDispose string `gorm:"column:sealing_fluid_dispose" json:"sealing_fluid_dispose" form:"sealing_fluid_dispose"`
  598. SealingFluidSpecial string `gorm:"column:sealing_fluid_special" json:"sealing_fluid_special" form:"sealing_fluid_special"`
  599. DosageOfAnticoagulants float64 `gorm:"column:dosage_of_anticoagulants" json:"dosage_of_anticoagulants" form:"dosage_of_anticoagulants"`
  600. SupineSystolicBloodPressure string `gorm:"column:supine_systolic_blood_pressure" json:"supine_systolic_blood_pressure" form:"supine_systolic_blood_pressure"`
  601. SettingPressure string `gorm:"column:setting_pressure" json:"setting_pressure" form:"setting_pressure"`
  602. SupineDiastolicBloodPressure string `gorm:"column:supine_diastolic_blood_pressure" json:"supine_diastolic_blood_pressure" form:"supine_diastolic_blood_pressure"`
  603. DiastolicPressure string `gorm:"column:diastolic_pressure" json:"diastolic_pressure" form:"diastolic_pressure"`
  604. OtherComplication string `gorm:"column:other_complication" json:"other_complication" form:"other_complication"`
  605. Ktv string `gorm:"column:ktv" json:"ktv" form:"ktv"`
  606. Urr string `gorm:"column:urr" json:"urr" form:"urr"`
  607. Hypertenison int64 `gorm:"column:hypertenison" json:"hypertenison" form:"hypertenison"`
  608. Hypopiesia int64 `gorm:"column:hypopiesia" json:"hypopiesia" form:"hypopiesia"`
  609. LeaveOfficeMethod int64 `gorm:"column:leave_office_method" json:"leave_office_method" form:"leave_office_method"`
  610. Lapse int64 `gorm:"column:lapse" json:"lapse" form:"lapse"`
  611. Consciousness int64 `gorm:"column:consciousness" json:"consciousness" form:"consciousness"`
  612. Fallrisk int64 `gorm:"column:fallrisk" json:"fallrisk" form:"fallrisk"`
  613. MachineRun string `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  614. AfterUrea string `gorm:"column:after_urea" json:"after_urea" form:"after_urea"`
  615. PipCoagulation string `gorm:"column:pip_coagulation" json:"pip_coagulation" form:"pip_coagulation"`
  616. AccumulatedBloodVolume string `gorm:"column:accumulated_blood_volume" json:"accumulated_blood_volume" form:"accumulated_blood_volume"`
  617. }
  618. func (AssessmentAfterDislysis) TableName() string {
  619. return "xt_assessment_after_dislysis"
  620. }
  621. type TreatmentSummary struct {
  622. ID int64 `gorm:"column:id" json:"id"`
  623. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  624. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  625. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  626. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  627. Mission string `gorm:"column:mission" json:"mission"`
  628. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary"`
  629. Change int64 `gorm:"column:change" json:"change"`
  630. SjNurse int64 `gorm:"column:sj_nurse" json:"sj_nurse"`
  631. ZlNurse int64 `gorm:"column:zl_nurse" json:"zl_nurse"`
  632. HdNurse int64 `gorm:"column:hd_nurse" json:"hd_nurse"`
  633. XjNurse int64 `gorm:"column:xj_nurse" json:"xj_nurse"`
  634. ZlDoctor int64 `gorm:"column:zl_doctor" json:"zl_doctor"`
  635. ChannelImage string `gorm:"column:channel_image" json:"channel_image"`
  636. Puncture string `gorm:"column:puncture" json:"puncture"`
  637. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle"`
  638. PunctureDirection string `gorm:"column:puncture_direction" json:"puncture_direction"`
  639. Status int64 `gorm:"column:status" json:"status"`
  640. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  641. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  642. Creater int64 `gorm:"column:creater" json:"creater"`
  643. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  644. NursingRecord string `gorm:"column:nursing_record" json:"nursing_record" form:"nursing_record"`
  645. SpecialRecord string `gorm:"column:special_record" json:"special_record" form:"special_record"`
  646. }
  647. func (TreatmentSummary) TableName() string {
  648. return "xt_treatment_summary"
  649. }
  650. type DryWeightAdjust struct {
  651. ID int64 `gorm:"column:id" json:"id" form:"id"`
  652. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  653. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  654. Weight float64 `gorm:"column:weight" json:"weight" form:"weight"`
  655. AdjustedValue float64 `gorm:"column:adjusted_value" json:"adjusted_value" form:"adjusted_value"`
  656. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  657. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  658. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  659. Status int64 `gorm:"column:status" json:"status" form:"status"`
  660. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  661. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  662. }
  663. func (DryWeightAdjust) TableName() string {
  664. return "xt_dry_weight_adjust"
  665. }
  666. type MonitoringRecord struct {
  667. ID int64 `gorm:"column:id" json:"id"`
  668. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  669. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  670. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  671. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  672. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  673. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  674. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  675. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  676. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  677. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  678. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  679. Pic string `gorm:"column:pic" json:"pic"`
  680. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  681. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  682. VenousPressureType int64 `gorm:"column:venous_pressure_type" json:"venous_pressure_type"`
  683. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  684. ArterialPressureType int64 `gorm:"column:arterial_pressure_type" json:"arterial_pressure_type"`
  685. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  686. TransmembranePressureType int64 `gorm:"column:transmembrane_pressure_type" json:"transmembrane_pressure_type"`
  687. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  688. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  689. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  690. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  691. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  692. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  693. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  694. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  695. Symptom string `gorm:"column:symptom" json:"symptom"`
  696. Dispose string `gorm:"column:dispose" json:"dispose"`
  697. Result string `gorm:"column:result" json:"result"`
  698. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  699. Status int64 `gorm:"column:status" json:"status"`
  700. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  701. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  702. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  703. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  704. BloodOxygenSaturation string `gorm:"column:blood_oxygen_saturation" json:"blood_oxygen_saturation" form:"blood_oxygen_saturation"`
  705. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  706. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  707. Heparin float64 `gorm:"column:heparin" json:"heparin" form:"heparin"`
  708. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  709. Urr string `gorm:"column:urr" json:"urr"`
  710. BloodSugar float64 `gorm:"column:blood_sugar" json:"blood_sugar" form:"blood_sugar"`
  711. MonitorAnticoagulant int64 `gorm:"column:monitor_anticoagulant" json:"monitor_anticoagulant" form:"monitor_anticoagulant"`
  712. MonitorAnticoagulantValue string `gorm:"column:monitor_anticoagulant_value" json:"monitor_anticoagulant_value" form:"monitor_anticoagulant_value"`
  713. BloodPressureMonitoringSite int64 `gorm:"column:blood_pressure_monitoring_site" json:"blood_pressure_monitoring_site" form:"blood_pressure_monitoring_site"`
  714. Complication int64 `gorm:"column:complication" json:"complication" form:"complication"`
  715. AccumulatedBloodVolume float64 `gorm:"column:accumulated_blood_volume" json:"accumulated_blood_volume" form:"accumulated_blood_volume"`
  716. BloodTemperature float64 `gorm:"column:blood_temperature" json:"blood_temperature" form:"blood_temperature"`
  717. UreaMonitoring float64 `gorm:"column:urea_monitoring" json:"urea_monitoring" form:"urea_monitoring"`
  718. BloodThickness float64 `gorm:"column:blood_thickness" json:"blood_thickness" form:"blood_thickness"`
  719. BloodMonitor float64 `gorm:"column:blood_monitor" json:"blood_monitor" form:"blood_monitor"`
  720. HeparinAmount float64 `gorm:"column:heparin_amount" json:"heparin_amount" form:"heparin_amount"`
  721. Dehydration float64 `gorm:"column:dehydration" json:"dehydration" form:"dehydration"`
  722. }
  723. func (MonitoringRecord) TableName() string {
  724. return "xt_monitoring_record"
  725. }
  726. type DialysisOrders struct {
  727. ID int64 `gorm:"column:id" json:"id"`
  728. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  729. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  730. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  731. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  732. Stage int64 `gorm:"column:stage" json:"stage"`
  733. Remark string `gorm:"column:remark" json:"remark"`
  734. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  735. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  736. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  737. Status int64 `gorm:"column:status" json:"status"`
  738. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  739. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  740. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  741. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  742. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  743. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  744. Creator int64 `gorm:"column:creator" json:"creator"`
  745. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  746. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  747. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  748. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  749. Name int64 `gorm:"column:name" json:"name"`
  750. Number string `gorm:"column:number" json:"number"`
  751. }
  752. type VmDialysisOrder struct {
  753. Count int64
  754. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  755. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  756. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  757. Stage int64 `gorm:"column:stage" json:"stage"`
  758. Status int64 `gorm:"column:status" json:"status"`
  759. }
  760. func (VmDialysisOrder) TableName() string {
  761. return "xt_dialysis_order"
  762. }
  763. type DialysisOrder struct {
  764. ID int64 `gorm:"column:id" json:"id"`
  765. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  766. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  767. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  768. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  769. Stage int64 `gorm:"column:stage" json:"stage"`
  770. Remark string `gorm:"column:remark" json:"remark"`
  771. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  772. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  773. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  774. Status int64 `gorm:"column:status" json:"status"`
  775. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  776. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  777. DeviceNumber DeviceNumber `gorm:"ForeignKey:BedID"`
  778. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  779. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  780. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  781. Creator int64 `gorm:"column:creator" json:"creator"`
  782. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  783. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  784. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  785. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type"`
  786. UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:StartNurse;"`
  787. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  788. ChangeNurse int64 `gorm:"column:change_nurse" json:"change_nurse" form:"change_nurse"`
  789. DifficultPunctureNurse int64 `gorm:"column:difficult_puncture_nurse" json:"difficult_puncture_nurse" form:"difficult_puncture_nurse"`
  790. NewFistulaNurse int64 `gorm:"column:new_fistula_nurse" json:"new_fistula_nurse" form:"new_fistula_nurse"`
  791. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  792. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma" form:"puncture_point_haematoma"`
  793. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula" form:"blood_access_internal_fistula"`
  794. Catheter string `gorm:"column:catheter" json:"catheter" form:"catheter"`
  795. Cruor string `gorm:"column:cruor" json:"cruor" form:"cruor"`
  796. }
  797. func (DialysisOrder) TableName() string {
  798. return "xt_dialysis_order"
  799. }
  800. type XtDialysisOrder struct {
  801. ID int64 `gorm:"column:id" json:"id" form:"id"`
  802. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  803. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  804. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  805. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  806. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  807. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  808. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  809. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  810. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  811. Status int64 `gorm:"column:status" json:"status" form:"status"`
  812. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  813. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  814. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  815. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  816. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  817. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  818. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  819. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  820. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  821. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  822. Number int64 `gorm:"column:number" json:"number" form:"number"`
  823. UserName int64 `gorm:"column:user_name" json:"user_name" form:"user_name"`
  824. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  825. }
  826. func (XtDialysisOrder) TableName() string {
  827. return "xt_dialysis_order"
  828. }
  829. type XtDialysisOrders struct {
  830. ID int64 `gorm:"column:id" json:"id" form:"id"`
  831. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  832. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  833. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  834. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  835. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  836. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  837. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  838. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  839. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  840. Status int64 `gorm:"column:status" json:"status" form:"status"`
  841. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  842. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  843. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  844. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  845. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  846. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  847. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  848. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  849. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  850. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  851. Number string `gorm:"column:number" json:"number" form:"number"`
  852. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  853. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  854. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  855. }
  856. type TreatmentMode struct {
  857. ID int64 `gorm:"column:id" json:"id" form:"id"`
  858. Name string `gorm:"column:name" json:"name" form:"name"`
  859. DialysisDuration int64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  860. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  861. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  862. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  863. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  864. BloodFlowVolume int64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  865. DialysateFlow int64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  866. Kalium int64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  867. Sodium int64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  868. Calcium int64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  869. Bicarbonate int64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  870. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  871. Status int64 `gorm:"column:status" json:"status" form:"status"`
  872. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  873. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  874. }
  875. func (TreatmentMode) TableName() string {
  876. return "xt_treatment_mode"
  877. }
  878. type ReceiveTreatmentAsses struct {
  879. ID int64 `gorm:"column:id" json:"id"`
  880. Way int64 `gorm:"column:way" json:"way"`
  881. Consciousness int64 `gorm:"column:consciousness" json:"consciousness"`
  882. Appetite int64 `gorm:"column:appetite" json:"appetite"`
  883. Condition int64 `gorm:"column:condition" json:"condition"`
  884. Creater int64 `gorm:"column:creater" json:"creater"`
  885. Posture int64 `gorm:"column:posture" json:"posture"`
  886. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  887. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  888. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  889. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  890. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  891. Status int64 `gorm:"column:status" json:"status"`
  892. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  893. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  894. SickCondition int64 `gorm:"column:sick_condition" json:"sick_condition"`
  895. DangerLevel int64 `gorm:"column:danger_level" json:"danger_level"`
  896. Intake int64 `gorm:"column:intake" json:"intake"`
  897. Nutrition int64 `gorm:"column:nutrition" json:"nutrition"`
  898. PsychologicalAssessment int64 `gorm:"column:psychological_assessment" json:"psychological_assessment"`
  899. PsychologicalAssessmentOther string `gorm:"column:psychological_assessment_other" json:"psychological_assessment_other"`
  900. Score string `gorm:"column:score" json:"score"`
  901. SickConditionOther string `gorm:"column:sick_condition_other" json:"sick_condition_other"`
  902. Precaution string `gorm:"column:precaution" json:"precaution"`
  903. PrecautionOther string `gorm:"column:precaution_other" json:"precaution_other"`
  904. PsychologicalOther string `gorm:"column:psychological_other" json:"psychological_other"`
  905. IsPrecaution int64 `gorm:"column:is_precaution" json:"is_precaution"`
  906. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  907. Tumble int64 `gorm:"column:tumble" json:"tumble" form:"tumble"`
  908. }
  909. func (ReceiveTreatmentAsses) TableName() string {
  910. return "xt_receive_treatment_asses"
  911. }
  912. type GobalTemplate struct {
  913. ID int64 `gorm:"column:id" json:"id"`
  914. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  915. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  916. Status int64 `gorm:"column:status" json:"status"`
  917. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  918. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  919. }
  920. func (GobalTemplate) TableName() string {
  921. return "xt_gobal_template"
  922. }
  923. type SgjUserAdminRole struct {
  924. ID int64 `gorm:"column:id" json:"id" form:"id"`
  925. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  926. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  927. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  928. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  929. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  930. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  931. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  932. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  933. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  934. Status int64 `gorm:"column:status" json:"status" form:"status"`
  935. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  936. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  937. Message string `gorm:"column:message" json:"message" form:"message"`
  938. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  939. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  940. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  941. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  942. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  943. OrgLogo string `gorm:"column:org_logo" json:"org_logo" form:"org_logo"`
  944. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  945. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  946. }
  947. func (SgjUserAdminRole) TableName() string {
  948. return "sgj_user_admin_role"
  949. }
  950. type SgjUserAdmin struct {
  951. ID int64 `gorm:"column:id" json:"id" form:"id"`
  952. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  953. Password string `gorm:"column:password" json:"password" form:"password"`
  954. IsSuperAdmin int64 `gorm:"column:is_super_admin" json:"is_super_admin" form:"is_super_admin"`
  955. Status int64 `gorm:"column:status" json:"status" form:"status"`
  956. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  957. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  958. Source int64 `gorm:"column:source" json:"source" form:"source"`
  959. Ttype int64 `gorm:"column:ttype" json:"ttype" form:"ttype"`
  960. Ttid int64 `gorm:"column:ttid" json:"ttid" form:"ttid"`
  961. Tuid int64 `gorm:"column:tuid" json:"tuid" form:"tuid"`
  962. Name string `gorm:"column:name" json:"name" form:"name"`
  963. }
  964. func (SgjUserAdmin) TableName() string {
  965. return "sgj_user_admin"
  966. }
  967. type UserAdminRoles struct {
  968. ID int64 `gorm:"column:id" json:"id" form:"id"`
  969. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  970. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  971. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  972. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  973. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  974. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  975. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  976. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  977. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  978. Status int64 `gorm:"column:status" json:"status" form:"status"`
  979. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  980. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  981. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  982. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  983. Message string `gorm:"column:message" json:"message" form:"message"`
  984. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  985. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  986. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  987. Url string `gorm:"column:url" json:"url" form:"url"`
  988. Hash string `gorm:"column:hash" json:"hash" form:"hash"`
  989. }
  990. type DialysisBeforePrepare struct {
  991. ID int64 `gorm:"column:id" json:"id" form:"id"`
  992. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  993. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  994. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  995. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  996. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  997. Count int64 `gorm:"column:count" json:"count" form:"count"`
  998. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  999. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1000. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1001. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1002. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1003. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1004. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1005. Children []*DialysisBeforePrepare `gorm:"column:children" json:"children" form:"children"`
  1006. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1007. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1008. }
  1009. func (DialysisBeforePrepare) TableName() string {
  1010. return "dialysis_before_prepare"
  1011. }
  1012. type DialysisBeforePrepareGoods struct {
  1013. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1014. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1015. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1016. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  1017. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1018. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1019. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1020. }
  1021. type NewDialysisBeforePrepareGoods struct {
  1022. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1023. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1024. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1025. TypeName string `gorm:"column:type_name" json:"type_name" form:"type_name"`
  1026. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1027. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1028. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1029. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1030. }
  1031. type QueueCallConfig struct {
  1032. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1033. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1034. Qhsj int64 `gorm:"column:qhsj" json:"qhsj" form:"qhsj"`
  1035. Jzdcbbcs int64 `gorm:"column:jzdcbbcs" json:"jzdcbbcs" form:"jzdcbbcs"`
  1036. Jzbbsy int64 `gorm:"column:jzbbsy" json:"jzbbsy" form:"jzbbsy"`
  1037. Jzjhyc int64 `gorm:"column:jzjhyc" json:"jzjhyc" form:"jzjhyc"`
  1038. Sjdcbbcs int64 `gorm:"column:sjdcbbcs" json:"sjdcbbcs" form:"sjdcbbcs"`
  1039. Sjbbsy int64 `gorm:"column:sjbbsy" json:"sjbbsy" form:"sjbbsy"`
  1040. Sjjhyc int64 `gorm:"column:sjjhyc" json:"sjjhyc" form:"sjjhyc"`
  1041. Txxqyxs int64 `gorm:"column:txxqyxs" json:"txxqyxs" form:"txxqyxs"`
  1042. Txglsyxs int64 `gorm:"column:txglsyxs" json:"txglsyxs" form:"txglsyxs"`
  1043. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  1044. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  1045. }
  1046. func (QueueCallConfig) TableName() string {
  1047. return "xt_queue_call_config"
  1048. }
  1049. type XtDialysisBeforePrepare struct {
  1050. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1051. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1052. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1053. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1054. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1055. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1056. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1057. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1058. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1059. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1060. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1061. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1062. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1063. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1064. }
  1065. type BloodDoctorAdvice struct {
  1066. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1067. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1068. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1069. Total int64
  1070. }
  1071. type HisDoctorAdvice struct {
  1072. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1073. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1074. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1075. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1076. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1077. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1078. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1079. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1080. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1081. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1082. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1083. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1084. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1085. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1086. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1087. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1088. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1089. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1090. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1091. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1092. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1093. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1094. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1095. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1096. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1097. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1098. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1099. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1100. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1101. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1102. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1103. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1104. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1105. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  1106. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  1107. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1108. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1109. AdviceId int64 `gorm:"-"`
  1110. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  1111. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  1112. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  1113. WeekDay string `gorm:"column:week_day" json:"week_day"`
  1114. ChildDoctorAdvice []*HisDoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  1115. TemplateId string `gorm:"column:template_id" json:"template_id"`
  1116. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1117. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  1118. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1119. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1120. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  1121. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1122. }
  1123. func (HisDoctorAdvice) TableName() string {
  1124. return "his_doctor_advice_info"
  1125. }