xcx_user_models.go 52KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. package models
  2. import "github.com/shopspring/decimal"
  3. type XcxAdminUserRole struct {
  4. ID int64 `gorm:"column:id" json:"id" form:"id"`
  5. PatientName string `gorm:"column:patient_name" json:"patient_name" form:"patient_name"`
  6. Relationship string `gorm:"column:relationship" json:"relationship" form:"relationship"`
  7. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  8. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  9. Code string `gorm:"column:code" json:"code" form:"code"`
  10. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  11. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  12. Status int64 `gorm:"column:status" json:"status" form:"status"`
  13. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  14. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  15. Appid string `gorm:"column:appid" json:"appid" form:"appid"`
  16. Appsecret string `gorm:"column:appsecret" json:"appsecret" form:"appsecret"`
  17. SessionKey string `gorm:"column:session_key" json:"session_key" form:"session_key"`
  18. Openid string `gorm:"column:openid" json:"openid" form:"openid"`
  19. }
  20. func (XcxAdminUserRole) TableName() string {
  21. return "xcx_admin_user_role"
  22. }
  23. type XcxPatients struct {
  24. ID int64 `gorm:"column:id" json:"id" form:"id"`
  25. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  26. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  27. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  28. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  29. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  30. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  31. Source int64 `gorm:"column:source" json:"source" form:"source"`
  32. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  33. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  34. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  35. Name string `gorm:"column:name" json:"name" form:"name"`
  36. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  37. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  38. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  39. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  40. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  41. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  42. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  43. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  44. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  45. Height int64 `gorm:"column:height" json:"height" form:"height"`
  46. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  47. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  48. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  49. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  50. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  51. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  52. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  53. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  54. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  55. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  56. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  57. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  58. Children int64 `gorm:"column:children" json:"children" form:"children"`
  59. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  60. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  61. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  62. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  63. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  64. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  65. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  66. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  67. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  68. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  69. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  70. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  71. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  72. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  73. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  74. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  75. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  76. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  77. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  78. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  79. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  80. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  81. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  82. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  83. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  84. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  85. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  86. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  87. Status int64 `gorm:"column:status" json:"status" form:"status"`
  88. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  89. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  90. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  91. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  92. Age int64 `gorm:"column:age" json:"age" form:"age"`
  93. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  94. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  95. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  96. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  97. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  98. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  99. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  100. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  101. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  102. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  103. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  104. IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
  105. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  106. OutReason string `gorm:"column:out_reason" json:"out_reason" form:"out_reason"`
  107. DeathTime int64 `gorm:"column:death_time" json:"death_time" form:"death_time"`
  108. }
  109. func (XcxPatients) TableName() string {
  110. return "xt_patients"
  111. }
  112. type VmBloodSchedule struct {
  113. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  114. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  115. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  116. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  117. Name string `json:"name" form:"name"`
  118. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  119. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  120. }
  121. type BloodSchedule struct {
  122. ID int64 `gorm:"column:id" json:"id" form:"id"`
  123. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  124. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  125. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  126. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  127. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  128. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  129. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  130. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  131. Status int64 `gorm:"column:status" json:"status" form:"status"`
  132. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  133. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  134. Name string
  135. Number string
  136. }
  137. func (BloodSchedule) TableName() string {
  138. return "xt_schedule"
  139. }
  140. type XcxDeviceZone struct {
  141. ID int64 `gorm:"column:id" json:"id"`
  142. OrgID int64 `gorm:"column:org_id" json:"-"`
  143. Name string `json:"name"`
  144. Type int `json:"type"`
  145. Status int8 `json:"-"`
  146. CreateTime int64 `gorm:"column:ctime" json:"-"`
  147. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  148. }
  149. func (XcxDeviceZone) TableName() string {
  150. return "xt_device_zone"
  151. }
  152. type XcxDeviceNumber struct {
  153. ID int64 `gorm:"column:id" json:"id"`
  154. OrgID int64 `gorm:"column:org_id" json:"-"`
  155. Number string `gorm:"column:number" json:"number"`
  156. GroupID int64 `gorm:"column:group_id" json:"group_id"`
  157. ZoneID int64 `gorm:"column:zone_id" json:"zone_id"`
  158. Status int8 `json:"-"`
  159. CreateTime int64 `gorm:"column:ctime" json:"-"`
  160. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  161. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  162. }
  163. func (XcxDeviceNumber) TableName() string {
  164. return "xt_device_number"
  165. }
  166. type XcXDialysisOrder struct {
  167. ID int64 `gorm:"column:id" json:"id" form:"id"`
  168. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  169. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  170. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  171. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  172. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  173. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  174. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  175. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  176. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  177. Status int64 `gorm:"column:status" json:"status" form:"status"`
  178. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  179. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  180. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  181. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  182. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  183. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  184. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  185. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  186. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  187. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  188. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  189. ChangeNurse int64 `gorm:"column:change_nurse" json:"change_nurse" form:"change_nurse"`
  190. DifficultPunctureNurse int64 `gorm:"column:difficult_puncture_nurse" json:"difficult_puncture_nurse" form:"difficult_puncture_nurse"`
  191. NewFistulaNurse string `gorm:"column:new_fistula_nurse" json:"new_fistula_nurse" form:"new_fistula_nurse"`
  192. }
  193. func (XcXDialysisOrder) TableName() string {
  194. return "xt_dialysis_order"
  195. }
  196. type XcxSgjUserOrg struct {
  197. ID int64 `gorm:"column:id" json:"id" form:"id"`
  198. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  199. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  200. OrgShortName string `gorm:"column:org_short_name" json:"org_short_name" form:"org_short_name"`
  201. OrgLogo string `gorm:"column:org_logo" json:"org_logo" form:"org_logo"`
  202. OrgIntroduction string `gorm:"column:org_introduction" json:"org_introduction" form:"org_introduction"`
  203. Illness string `gorm:"column:illness" json:"illness" form:"illness"`
  204. Province int64 `gorm:"column:province" json:"province" form:"province"`
  205. City int64 `gorm:"column:city" json:"city" form:"city"`
  206. District int64 `gorm:"column:district" json:"district" form:"district"`
  207. Address string `gorm:"column:address" json:"address" form:"address"`
  208. Longitude string `gorm:"column:longitude" json:"longitude" form:"longitude"`
  209. Latitude string `gorm:"column:latitude" json:"latitude" form:"latitude"`
  210. OrgType int64 `gorm:"column:org_type" json:"org_type" form:"org_type"`
  211. Comments int64 `gorm:"column:comments" json:"comments" form:"comments"`
  212. Evaluate float64 `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  213. Gallery string `gorm:"column:gallery" json:"gallery" form:"gallery"`
  214. BusinessWeek string `gorm:"column:business_week" json:"business_week" form:"business_week"`
  215. BusinessTime string `gorm:"column:business_time" json:"business_time" form:"business_time"`
  216. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  217. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  218. Claim int64 `gorm:"column:claim" json:"claim" form:"claim"`
  219. OperatingState int64 `gorm:"column:operating_state" json:"operating_state" form:"operating_state"`
  220. Status int64 `gorm:"column:status" json:"status" form:"status"`
  221. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  222. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  223. Source int64 `gorm:"column:source" json:"source" form:"source"`
  224. Ttype int64 `gorm:"column:ttype" json:"ttype" form:"ttype"`
  225. Ttid int64 `gorm:"column:ttid" json:"ttid" form:"ttid"`
  226. Tuid int64 `gorm:"column:tuid" json:"tuid" form:"tuid"`
  227. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  228. Level int64 `gorm:"column:level" json:"level" form:"level"`
  229. Website string `gorm:"column:website" json:"website" form:"website"`
  230. Import int64 `gorm:"column:import" json:"import" form:"import"`
  231. Sortno int64 `gorm:"column:sortno" json:"sortno" form:"sortno"`
  232. }
  233. func (XcxSgjUserOrg) TableName() string {
  234. return "sgj_user_org"
  235. }
  236. type XcxTreatmentSummary struct {
  237. ID int64 `gorm:"column:id" json:"id" form:"id"`
  238. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  239. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  240. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
  241. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  242. Mission string `gorm:"column:mission" json:"mission" form:"mission"`
  243. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary" form:"dialysis_summary"`
  244. Change int64 `gorm:"column:change" json:"change" form:"change"`
  245. SjNurse int64 `gorm:"column:sj_nurse" json:"sj_nurse" form:"sj_nurse"`
  246. ZlNurse int64 `gorm:"column:zl_nurse" json:"zl_nurse" form:"zl_nurse"`
  247. HdNurse int64 `gorm:"column:hd_nurse" json:"hd_nurse" form:"hd_nurse"`
  248. XjNurse int64 `gorm:"column:xj_nurse" json:"xj_nurse" form:"xj_nurse"`
  249. ZlDoctor int64 `gorm:"column:zl_doctor" json:"zl_doctor" form:"zl_doctor"`
  250. ChannelImage string `gorm:"column:channel_image" json:"channel_image" form:"channel_image"`
  251. Puncture string `gorm:"column:puncture" json:"puncture" form:"puncture"`
  252. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  253. PunctureDirection string `gorm:"column:puncture_direction" json:"puncture_direction" form:"puncture_direction"`
  254. Status int64 `gorm:"column:status" json:"status" form:"status"`
  255. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  256. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  257. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  258. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  259. NursingRecord string `gorm:"column:nursing_record" json:"nursing_record" form:"nursing_record"`
  260. SpecialRecord string `gorm:"column:special_record" json:"special_record" form:"special_record"`
  261. }
  262. func (XcxTreatmentSummary) TableName() string {
  263. return "xt_treatment_summary"
  264. }
  265. type XcxDoctorAdviceConfig struct {
  266. ID int64 `gorm:"column:id" json:"id" form:"id"`
  267. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  268. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  269. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  270. Status int64 `gorm:"column:status" json:"status" form:"status"`
  271. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  272. }
  273. func (XcxDoctorAdviceConfig) TableName() string {
  274. return "xt_doctor_config"
  275. }
  276. type XcxDoctorAdviceOne struct {
  277. ID int64 `gorm:"column:id" json:"id" form:"id"`
  278. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  279. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  280. Childs []*XcxDoctorAdvice `json:"childs" `
  281. }
  282. func (XcxDoctorAdviceOne) TableName() string {
  283. return "xt_doctor_advice"
  284. }
  285. type XcxDoctorAdvice struct {
  286. ID int64 `gorm:"column:id" json:"id" form:"id"`
  287. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  288. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  289. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  290. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  291. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  292. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  293. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  294. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  295. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  296. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  297. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  298. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  299. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  300. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  301. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  302. Status int64 `gorm:"column:status" json:"status" form:"status"`
  303. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  304. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  305. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  306. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  307. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  308. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  309. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  310. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  311. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  312. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  313. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  314. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  315. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  316. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  317. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  318. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  319. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  320. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  321. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  322. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  323. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  324. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  325. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  326. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  327. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  328. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  329. Way int64 `gorm:"column:way" json:"way" form:"way"`
  330. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  331. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  332. SyncAdviceId int64 `gorm:"column:sync_advice_id" json:"sync_advice_id" form:"sync_advice_id"`
  333. IsSync int64 `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  334. Childs []*XcxDoctorAdvice `json:"childs" `
  335. }
  336. func (XcxDoctorAdvice) TableName() string {
  337. return "xt_doctor_advice"
  338. }
  339. type XcxHisDoctorAdviceInfo struct {
  340. ID int64 `gorm:"column:id" json:"id" form:"id"`
  341. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  342. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  343. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  344. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  345. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  346. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  347. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  348. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  349. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  350. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  351. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  352. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  353. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  354. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  355. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  356. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  357. Status int64 `gorm:"column:status" json:"status" form:"status"`
  358. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  359. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  360. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  361. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  362. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  363. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  364. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  365. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  366. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  367. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  368. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  369. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  370. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  371. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  372. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  373. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  374. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  375. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  376. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  377. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  378. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  379. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  380. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  381. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  382. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  383. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  384. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  385. Price float64 `gorm:"column:price" json:"price" form:"price"`
  386. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  387. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  388. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  389. Day int64 `gorm:"column:day" json:"day" form:"day"`
  390. Way int64 `gorm:"column:way" json:"way" form:"way"`
  391. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  392. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  393. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  394. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  395. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  396. Childs []*XcxHisDoctorAdviceInfo `json:"childs" `
  397. }
  398. func (XcxHisDoctorAdviceInfo) TableName() string {
  399. return "his_doctor_advice_info"
  400. }
  401. type XcxXtDialysisPrescription struct {
  402. ID int64 `gorm:"column:id" json:"id" form:"id"`
  403. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  404. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  405. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialyzer"`
  406. MachineType string `gorm:"column:machine_type" json:"machine_type" form:"machine_type"`
  407. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount" form:"dewater_amount"`
  408. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  409. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering" form:"prescription_dewatering"`
  410. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  411. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  412. AnticoagulantStopTimeHour int64 `gorm:"column:anticoagulant_stop_time_hour" json:"anticoagulant_stop_time_hour" form:"anticoagulant_stop_time_hour"`
  413. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  414. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  415. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
  416. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  417. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
  418. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
  419. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
  420. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  421. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total" form:"replacement_total"`
  422. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  423. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  424. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  425. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  426. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  427. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode" form:"vascular_access_mode"`
  428. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access" form:"vascular_access"`
  429. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  430. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  431. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui" form:"displace_liqui"`
  432. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  433. Sodium float64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  434. Calcium float64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  435. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  436. Glucose float64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
  437. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature" form:"dialysate_temperature"`
  438. Conductivity float64 `gorm:"column:conductivity" json:"conductivity" form:"conductivity"`
  439. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor" form:"prescription_doctor"`
  440. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  441. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  442. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  443. Status int64 `gorm:"column:status" json:"status" form:"status"`
  444. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  445. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  446. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  447. RecordId int64 `gorm:"column:record_id" json:"record_id" form:"record_id"`
  448. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  449. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation" form:"dialysate_formulation"`
  450. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid" form:"body_fluid"`
  451. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine" form:"special_medicine"`
  452. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other" form:"special_medicine_other"`
  453. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part" form:"displace_liqui_part"`
  454. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access" form:"blood_access"`
  455. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value" form:"displace_liqui_value"`
  456. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration" form:"ultrafiltration"`
  457. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other" form:"body_fluid_other"`
  458. Niprocart int64 `gorm:"column:niprocart" json:"niprocart" form:"niprocart"`
  459. Jms int64 `gorm:"column:jms" json:"jms" form:"jms"`
  460. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set" form:"fistula_needle_set"`
  461. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16" form:"fistula_needle_set_16"`
  462. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion" form:"hemoperfusion"`
  463. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised" form:"dialyser_sterilised"`
  464. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer" form:"filtryzer"`
  465. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv" form:"target_ktv"`
  466. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers" form:"dialyzers"`
  467. Injector int64 `gorm:"column:injector" json:"injector" form:"injector"`
  468. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines" form:"bloodlines"`
  469. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis" form:"tubing_hemodialysis"`
  470. Package int64 `gorm:"column:package" json:"package" form:"package"`
  471. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid" form:"a_liquid"`
  472. PreImpulse float64 `gorm:"column:pre_impulse" json:"pre_impulse" form:"pre_impulse"`
  473. AnticoagulantStopTimeMin int64 `gorm:"column:anticoagulant_stop_time_min" json:"anticoagulant_stop_time_min" form:"anticoagulant_stop_time_min"`
  474. HeparinSodium string `gorm:"column:heparin_sodium" json:"heparin_sodium" form:"heparin_sodium"`
  475. Nucleoprotamine string `gorm:"column:nucleoprotamine" json:"nucleoprotamine" form:"nucleoprotamine"`
  476. PushTheProtamine string `gorm:"column:push_the_protamine" json:"push_the_protamine" form:"push_the_protamine"`
  477. NoHeparinRemarks string `gorm:"column:no_heparin_remarks" json:"no_heparin_remarks" form:"no_heparin_remarks"`
  478. Blood string `gorm:"column:blood" json:"blood" form:"blood"`
  479. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  480. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  481. AntioxidantCommodityName string `gorm:"column:antioxidant_commodity_name" json:"antioxidant_commodity_name" form:"antioxidant_commodity_name"`
  482. DisplaceSpeed string `gorm:"column:displace_speed" json:"displace_speed" form:"displace_speed"`
  483. Illness int64 `gorm:"column:illness" json:"illness" form:"illness"`
  484. Amylaceum string `gorm:"column:amylaceum" json:"amylaceum" form:"amylaceum"`
  485. SingleTime string `gorm:"column:single_time" json:"single_time" form:"single_time"`
  486. SingleWater string `gorm:"column:single_water" json:"single_water" form:"single_water"`
  487. ReplacementFlow string `gorm:"column:replacement_flow" json:"replacement_flow" form:"replacement_flow"`
  488. PlasmaSeparator string `gorm:"column:plasma_separator" json:"plasma_separator" form:"plasma_separator"`
  489. BilirubinAdsorptionColumn string `gorm:"column:bilirubin_adsorption_column" json:"bilirubin_adsorption_column" form:"bilirubin_adsorption_column"`
  490. OxygenUptake int64 `gorm:"column:oxygen_uptake" json:"oxygen_uptake" form:"oxygen_uptake"`
  491. OxygenFlow string `gorm:"column:oxygen_flow" json:"oxygen_flow" form:"oxygen_flow"`
  492. OxygenTime string `gorm:"column:oxygen_time" json:"oxygen_time" form:"oxygen_time"`
  493. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  494. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  495. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  496. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  497. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  498. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  499. MaxUltrafiltrationRate string `gorm:"column:max_ultrafiltration_rate" json:"max_ultrafiltration_rate" form:"max_ultrafiltration_rate"`
  500. }
  501. func (XcxXtDialysisPrescription) TableName() string {
  502. return "xt_dialysis_prescription"
  503. }
  504. type XcxGobalTemplate struct {
  505. ID int64 `gorm:"column:id" json:"id" form:"id"`
  506. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  507. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  508. Status int64 `gorm:"column:status" json:"status" form:"status"`
  509. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  510. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  511. }
  512. func (XcxGobalTemplate) TableName() string {
  513. return "xt_gobal_template"
  514. }
  515. type GetHisName struct {
  516. ID int64 `gorm:"column:id" json:"id" form:"id"`
  517. Name string `gorm:"column:name" json:"name" form:"name"`
  518. }
  519. func (GetHisName) TableName() string {
  520. return "sgj_xt.xt_patients"
  521. }
  522. type Deposit struct {
  523. ID int64 `gorm:"column:id" json:"id" form:"id"`
  524. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` //机构id
  525. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"` //his病人id
  526. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  527. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  528. Status int64 `gorm:"column:status" json:"status" form:"status"`
  529. Deposit decimal.Decimal `gorm:"column:deposit" json:"deposit" form:"deposit"` //押金
  530. }
  531. func (Deposit) TableName() string {
  532. return "sgj_xt.his_deposit"
  533. }
  534. type DepositHistory struct {
  535. ID int64 `gorm:"column:id" json:"id" form:"id"`
  536. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` //机构id
  537. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"` //his病人id
  538. DepositCode string `gorm:"column:deposit_code" json:"deposit_code" form:"deposit_code"`
  539. Deposit decimal.Decimal `gorm:"column:deposit" json:"deposit" form:"deposit"` //本次操作金额
  540. SurplusDeposit decimal.Decimal `gorm:"column:surplus_deposit" json:"surplus_deposit" form:"surplus_deposit"` //剩余金额
  541. DepositStatus int64 `gorm:"column:deposit_status" json:"deposit_status" form:"deposit_status"` //1:充值,2:扣费,3:退款,4:退费
  542. Status int64 `gorm:"column:status" json:"status" form:"status"`
  543. CreateId int64 `gorm:"column:create_id" json:"create_id" form:"create_id"`
  544. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  545. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  546. TrialStatus int64 `gorm:"column:trial_status" json:"trial_status" form:"trial_status"` //审核状态0:未审核 ,1:已审核
  547. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"` //备注
  548. }
  549. func (DepositHistory) TableName() string {
  550. return "sgj_xt.his_deposit_history"
  551. }
  552. type XcxSchedule struct {
  553. ID int64 `gorm:"column:id" json:"id" form:"id"`
  554. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  555. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  556. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  557. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  558. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  559. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  560. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  561. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  562. Status int64 `gorm:"column:status" json:"status" form:"status"`
  563. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  564. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  565. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  566. }
  567. func (XcxSchedule) TableName() string {
  568. return "xt_schedule"
  569. }
  570. type XcxInspectionTwo struct {
  571. ID int64 `gorm:"column:id" json:"id" form:"id"`
  572. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  573. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  574. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  575. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  576. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  577. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  578. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  579. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  580. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  581. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  582. Status int64 `gorm:"column:status" json:"status" form:"status"`
  583. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  584. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  585. InspectionReference InspectionReference `json:"inspection_reference" gorm:"foreignkey:OrgId,ProjectId,ItemId;AssociationForeignKey:OrgId,ProjectId,ItemId;"`
  586. }
  587. func (XcxInspectionTwo) TableName() string {
  588. return "xt_inspection"
  589. }
  590. type XcxInspection struct {
  591. ID int64 `gorm:"column:id" json:"id" form:"id"`
  592. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  593. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  594. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  595. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  596. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  597. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  598. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  599. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  600. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  601. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  602. Status int64 `gorm:"column:status" json:"status" form:"status"`
  603. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  604. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  605. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  606. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  607. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  608. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  609. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  610. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  611. Childs []*XcxInspection `json:"childs" `
  612. }
  613. func (XcxInspection) TableName() string {
  614. return "xt_inspection"
  615. }