xcx_user_models.go 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. package models
  2. type XcxAdminUserRole struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. PatientName string `gorm:"column:patient_name" json:"patient_name" form:"patient_name"`
  5. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  6. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  7. Code string `gorm:"column:code" json:"code" form:"code"`
  8. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  9. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  10. Status int64 `gorm:"column:status" json:"status" form:"status"`
  11. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  12. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  13. Appid string `gorm:"column:appid" json:"appid" form:"appid"`
  14. Appsecret string `gorm:"column:appsecret" json:"appsecret" form:"appsecret"`
  15. SessionKey string `gorm:"column:session_key" json:"session_key" form:"session_key"`
  16. }
  17. func (XcxAdminUserRole) TableName() string {
  18. return "xcx_admin_user_role"
  19. }
  20. type XcxPatients struct {
  21. ID int64 `gorm:"column:id" json:"id" form:"id"`
  22. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  23. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  24. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  25. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  26. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  27. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  28. Source int64 `gorm:"column:source" json:"source" form:"source"`
  29. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  30. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  31. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  32. Name string `gorm:"column:name" json:"name" form:"name"`
  33. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  34. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  35. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  36. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  37. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  38. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  39. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  40. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  41. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  42. Height int64 `gorm:"column:height" json:"height" form:"height"`
  43. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  44. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  45. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  46. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  47. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  48. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  49. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  50. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  51. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  52. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  53. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  54. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  55. Children int64 `gorm:"column:children" json:"children" form:"children"`
  56. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  57. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  58. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  59. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  60. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  61. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  62. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  63. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  64. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  65. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  66. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  67. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  68. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  69. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  70. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  71. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  72. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  73. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  74. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  75. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  76. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  77. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  78. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  79. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  80. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  81. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  82. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  83. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  84. Status int64 `gorm:"column:status" json:"status" form:"status"`
  85. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  86. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  87. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  88. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  89. Age int64 `gorm:"column:age" json:"age" form:"age"`
  90. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  91. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  92. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  93. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  94. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  95. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  96. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  97. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  98. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  99. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  100. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  101. IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
  102. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  103. OutReason string `gorm:"column:out_reason" json:"out_reason" form:"out_reason"`
  104. DeathTime int64 `gorm:"column:death_time" json:"death_time" form:"death_time"`
  105. }
  106. func (XcxPatients) TableName() string {
  107. return "xt_patients"
  108. }
  109. type VmBloodSchedule struct {
  110. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  111. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  112. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  113. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  114. Name string `json:"name" form:"name"`
  115. }
  116. type BloodSchedule struct {
  117. ID int64 `gorm:"column:id" json:"id" form:"id"`
  118. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  119. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  120. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  121. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  122. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  123. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  124. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  125. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  126. Status int64 `gorm:"column:status" json:"status" form:"status"`
  127. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  128. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  129. Name string
  130. Number string
  131. }
  132. func (BloodSchedule) TableName() string {
  133. return "xt_schedule"
  134. }
  135. type XcxDeviceZone struct {
  136. ID int64 `gorm:"column:id" json:"id"`
  137. OrgID int64 `gorm:"column:org_id" json:"-"`
  138. Name string `json:"name"`
  139. Type int `json:"type"`
  140. Status int8 `json:"-"`
  141. CreateTime int64 `gorm:"column:ctime" json:"-"`
  142. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  143. }
  144. func (XcxDeviceZone) TableName() string {
  145. return "xt_device_zone"
  146. }
  147. type XcxDeviceNumber struct {
  148. ID int64 `gorm:"column:id" json:"id"`
  149. OrgID int64 `gorm:"column:org_id" json:"-"`
  150. Number string `gorm:"column:number" json:"number"`
  151. GroupID int64 `gorm:"column:group_id" json:"group_id"`
  152. ZoneID int64 `gorm:"column:zone_id" json:"zone_id"`
  153. Status int8 `json:"-"`
  154. CreateTime int64 `gorm:"column:ctime" json:"-"`
  155. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  156. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  157. }
  158. func (XcxDeviceNumber) TableName() string {
  159. return "xt_device_number"
  160. }
  161. type XcXDialysisOrder struct {
  162. ID int64 `gorm:"column:id" json:"id" form:"id"`
  163. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  164. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  165. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  166. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  167. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  168. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  169. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  170. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  171. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  172. Status int64 `gorm:"column:status" json:"status" form:"status"`
  173. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  174. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  175. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  176. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  177. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  178. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  179. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  180. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  181. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  182. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  183. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  184. ChangeNurse int64 `gorm:"column:change_nurse" json:"change_nurse" form:"change_nurse"`
  185. DifficultPunctureNurse int64 `gorm:"column:difficult_puncture_nurse" json:"difficult_puncture_nurse" form:"difficult_puncture_nurse"`
  186. NewFistulaNurse string `gorm:"column:new_fistula_nurse" json:"new_fistula_nurse" form:"new_fistula_nurse"`
  187. }
  188. func (XcXDialysisOrder) TableName() string {
  189. return "xt_dialysis_order"
  190. }
  191. type XcxSgjUserOrg struct {
  192. ID int64 `gorm:"column:id" json:"id" form:"id"`
  193. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  194. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  195. OrgShortName string `gorm:"column:org_short_name" json:"org_short_name" form:"org_short_name"`
  196. OrgLogo string `gorm:"column:org_logo" json:"org_logo" form:"org_logo"`
  197. OrgIntroduction string `gorm:"column:org_introduction" json:"org_introduction" form:"org_introduction"`
  198. Illness string `gorm:"column:illness" json:"illness" form:"illness"`
  199. Province int64 `gorm:"column:province" json:"province" form:"province"`
  200. City int64 `gorm:"column:city" json:"city" form:"city"`
  201. District int64 `gorm:"column:district" json:"district" form:"district"`
  202. Address string `gorm:"column:address" json:"address" form:"address"`
  203. Longitude string `gorm:"column:longitude" json:"longitude" form:"longitude"`
  204. Latitude string `gorm:"column:latitude" json:"latitude" form:"latitude"`
  205. OrgType int64 `gorm:"column:org_type" json:"org_type" form:"org_type"`
  206. Comments int64 `gorm:"column:comments" json:"comments" form:"comments"`
  207. Evaluate float64 `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  208. Gallery string `gorm:"column:gallery" json:"gallery" form:"gallery"`
  209. BusinessWeek string `gorm:"column:business_week" json:"business_week" form:"business_week"`
  210. BusinessTime string `gorm:"column:business_time" json:"business_time" form:"business_time"`
  211. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  212. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  213. Claim int64 `gorm:"column:claim" json:"claim" form:"claim"`
  214. OperatingState int64 `gorm:"column:operating_state" json:"operating_state" form:"operating_state"`
  215. Status int64 `gorm:"column:status" json:"status" form:"status"`
  216. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  217. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  218. Source int64 `gorm:"column:source" json:"source" form:"source"`
  219. Ttype int64 `gorm:"column:ttype" json:"ttype" form:"ttype"`
  220. Ttid int64 `gorm:"column:ttid" json:"ttid" form:"ttid"`
  221. Tuid int64 `gorm:"column:tuid" json:"tuid" form:"tuid"`
  222. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  223. Level int64 `gorm:"column:level" json:"level" form:"level"`
  224. Website string `gorm:"column:website" json:"website" form:"website"`
  225. Import int64 `gorm:"column:import" json:"import" form:"import"`
  226. Sortno int64 `gorm:"column:sortno" json:"sortno" form:"sortno"`
  227. }
  228. func (XcxSgjUserOrg) TableName() string {
  229. return "sgj_user_org"
  230. }