xcx_user_models.go 52KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  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. }
  119. type BloodSchedule struct {
  120. ID int64 `gorm:"column:id" json:"id" form:"id"`
  121. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  122. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  123. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  124. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  125. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  126. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  127. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  128. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  129. Status int64 `gorm:"column:status" json:"status" form:"status"`
  130. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  131. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  132. Name string
  133. Number string
  134. }
  135. func (BloodSchedule) TableName() string {
  136. return "xt_schedule"
  137. }
  138. type XcxDeviceZone struct {
  139. ID int64 `gorm:"column:id" json:"id"`
  140. OrgID int64 `gorm:"column:org_id" json:"-"`
  141. Name string `json:"name"`
  142. Type int `json:"type"`
  143. Status int8 `json:"-"`
  144. CreateTime int64 `gorm:"column:ctime" json:"-"`
  145. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  146. }
  147. func (XcxDeviceZone) TableName() string {
  148. return "xt_device_zone"
  149. }
  150. type XcxDeviceNumber struct {
  151. ID int64 `gorm:"column:id" json:"id"`
  152. OrgID int64 `gorm:"column:org_id" json:"-"`
  153. Number string `gorm:"column:number" json:"number"`
  154. GroupID int64 `gorm:"column:group_id" json:"group_id"`
  155. ZoneID int64 `gorm:"column:zone_id" json:"zone_id"`
  156. Status int8 `json:"-"`
  157. CreateTime int64 `gorm:"column:ctime" json:"-"`
  158. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  159. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  160. }
  161. func (XcxDeviceNumber) TableName() string {
  162. return "xt_device_number"
  163. }
  164. type XcXDialysisOrder struct {
  165. ID int64 `gorm:"column:id" json:"id" form:"id"`
  166. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  167. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  168. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  169. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  170. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  171. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  172. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  173. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  174. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  175. Status int64 `gorm:"column:status" json:"status" form:"status"`
  176. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  177. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  178. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  179. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  180. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  181. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  182. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  183. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  184. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  185. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  186. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  187. ChangeNurse int64 `gorm:"column:change_nurse" json:"change_nurse" form:"change_nurse"`
  188. DifficultPunctureNurse int64 `gorm:"column:difficult_puncture_nurse" json:"difficult_puncture_nurse" form:"difficult_puncture_nurse"`
  189. NewFistulaNurse string `gorm:"column:new_fistula_nurse" json:"new_fistula_nurse" form:"new_fistula_nurse"`
  190. }
  191. func (XcXDialysisOrder) TableName() string {
  192. return "xt_dialysis_order"
  193. }
  194. type XcxSgjUserOrg struct {
  195. ID int64 `gorm:"column:id" json:"id" form:"id"`
  196. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  197. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  198. OrgShortName string `gorm:"column:org_short_name" json:"org_short_name" form:"org_short_name"`
  199. OrgLogo string `gorm:"column:org_logo" json:"org_logo" form:"org_logo"`
  200. OrgIntroduction string `gorm:"column:org_introduction" json:"org_introduction" form:"org_introduction"`
  201. Illness string `gorm:"column:illness" json:"illness" form:"illness"`
  202. Province int64 `gorm:"column:province" json:"province" form:"province"`
  203. City int64 `gorm:"column:city" json:"city" form:"city"`
  204. District int64 `gorm:"column:district" json:"district" form:"district"`
  205. Address string `gorm:"column:address" json:"address" form:"address"`
  206. Longitude string `gorm:"column:longitude" json:"longitude" form:"longitude"`
  207. Latitude string `gorm:"column:latitude" json:"latitude" form:"latitude"`
  208. OrgType int64 `gorm:"column:org_type" json:"org_type" form:"org_type"`
  209. Comments int64 `gorm:"column:comments" json:"comments" form:"comments"`
  210. Evaluate float64 `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  211. Gallery string `gorm:"column:gallery" json:"gallery" form:"gallery"`
  212. BusinessWeek string `gorm:"column:business_week" json:"business_week" form:"business_week"`
  213. BusinessTime string `gorm:"column:business_time" json:"business_time" form:"business_time"`
  214. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  215. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  216. Claim int64 `gorm:"column:claim" json:"claim" form:"claim"`
  217. OperatingState int64 `gorm:"column:operating_state" json:"operating_state" form:"operating_state"`
  218. Status int64 `gorm:"column:status" json:"status" form:"status"`
  219. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  220. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  221. Source int64 `gorm:"column:source" json:"source" form:"source"`
  222. Ttype int64 `gorm:"column:ttype" json:"ttype" form:"ttype"`
  223. Ttid int64 `gorm:"column:ttid" json:"ttid" form:"ttid"`
  224. Tuid int64 `gorm:"column:tuid" json:"tuid" form:"tuid"`
  225. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  226. Level int64 `gorm:"column:level" json:"level" form:"level"`
  227. Website string `gorm:"column:website" json:"website" form:"website"`
  228. Import int64 `gorm:"column:import" json:"import" form:"import"`
  229. Sortno int64 `gorm:"column:sortno" json:"sortno" form:"sortno"`
  230. }
  231. func (XcxSgjUserOrg) TableName() string {
  232. return "sgj_user_org"
  233. }
  234. type XcxTreatmentSummary struct {
  235. ID int64 `gorm:"column:id" json:"id" form:"id"`
  236. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  237. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  238. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
  239. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  240. Mission string `gorm:"column:mission" json:"mission" form:"mission"`
  241. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary" form:"dialysis_summary"`
  242. Change int64 `gorm:"column:change" json:"change" form:"change"`
  243. SjNurse int64 `gorm:"column:sj_nurse" json:"sj_nurse" form:"sj_nurse"`
  244. ZlNurse int64 `gorm:"column:zl_nurse" json:"zl_nurse" form:"zl_nurse"`
  245. HdNurse int64 `gorm:"column:hd_nurse" json:"hd_nurse" form:"hd_nurse"`
  246. XjNurse int64 `gorm:"column:xj_nurse" json:"xj_nurse" form:"xj_nurse"`
  247. ZlDoctor int64 `gorm:"column:zl_doctor" json:"zl_doctor" form:"zl_doctor"`
  248. ChannelImage string `gorm:"column:channel_image" json:"channel_image" form:"channel_image"`
  249. Puncture string `gorm:"column:puncture" json:"puncture" form:"puncture"`
  250. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  251. PunctureDirection string `gorm:"column:puncture_direction" json:"puncture_direction" form:"puncture_direction"`
  252. Status int64 `gorm:"column:status" json:"status" form:"status"`
  253. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  254. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  255. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  256. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  257. NursingRecord string `gorm:"column:nursing_record" json:"nursing_record" form:"nursing_record"`
  258. SpecialRecord string `gorm:"column:special_record" json:"special_record" form:"special_record"`
  259. }
  260. func (XcxTreatmentSummary) TableName() string {
  261. return "xt_treatment_summary"
  262. }
  263. type XcxDoctorAdviceConfig struct {
  264. ID int64 `gorm:"column:id" json:"id" form:"id"`
  265. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  266. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  267. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  268. Status int64 `gorm:"column:status" json:"status" form:"status"`
  269. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  270. }
  271. func (XcxDoctorAdviceConfig) TableName() string {
  272. return "xt_doctor_config"
  273. }
  274. type XcxDoctorAdviceOne struct {
  275. ID int64 `gorm:"column:id" json:"id" form:"id"`
  276. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  277. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  278. Childs []*XcxDoctorAdvice `json:"childs" `
  279. }
  280. func (XcxDoctorAdviceOne) TableName() string {
  281. return "xt_doctor_advice"
  282. }
  283. type XcxDoctorAdvice struct {
  284. ID int64 `gorm:"column:id" json:"id" form:"id"`
  285. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  286. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  287. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  288. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  289. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  290. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  291. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  292. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  293. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  294. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  295. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  296. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  297. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  298. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  299. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  300. Status int64 `gorm:"column:status" json:"status" form:"status"`
  301. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  302. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  303. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  304. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  305. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  306. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  307. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  308. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  309. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  310. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  311. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  312. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  313. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  314. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  315. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  316. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  317. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  318. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  319. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  320. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  321. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  322. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  323. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  324. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  325. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  326. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  327. Way int64 `gorm:"column:way" json:"way" form:"way"`
  328. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  329. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  330. SyncAdviceId int64 `gorm:"column:sync_advice_id" json:"sync_advice_id" form:"sync_advice_id"`
  331. IsSync int64 `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  332. Childs []*XcxDoctorAdvice `json:"childs" `
  333. }
  334. func (XcxDoctorAdvice) TableName() string {
  335. return "xt_doctor_advice"
  336. }
  337. type XcxHisDoctorAdviceInfo struct {
  338. ID int64 `gorm:"column:id" json:"id" form:"id"`
  339. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  340. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  341. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  342. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  343. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  344. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  345. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  346. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  347. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  348. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  349. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  350. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  351. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  352. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  353. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  354. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  355. Status int64 `gorm:"column:status" json:"status" form:"status"`
  356. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  357. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  358. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  359. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  360. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  361. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  362. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  363. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  364. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  365. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  366. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  367. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  368. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  369. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  370. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  371. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  372. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  373. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  374. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  375. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  376. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  377. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  378. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  379. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  380. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  381. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  382. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  383. Price float64 `gorm:"column:price" json:"price" form:"price"`
  384. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  385. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  386. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  387. Day int64 `gorm:"column:day" json:"day" form:"day"`
  388. Way int64 `gorm:"column:way" json:"way" form:"way"`
  389. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  390. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  391. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  392. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  393. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  394. Childs []*XcxHisDoctorAdviceInfo `json:"childs" `
  395. }
  396. func (XcxHisDoctorAdviceInfo) TableName() string {
  397. return "his_doctor_advice_info"
  398. }
  399. type XcxXtDialysisPrescription struct {
  400. ID int64 `gorm:"column:id" json:"id" form:"id"`
  401. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  402. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  403. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialyzer"`
  404. MachineType string `gorm:"column:machine_type" json:"machine_type" form:"machine_type"`
  405. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount" form:"dewater_amount"`
  406. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  407. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering" form:"prescription_dewatering"`
  408. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  409. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  410. AnticoagulantStopTimeHour int64 `gorm:"column:anticoagulant_stop_time_hour" json:"anticoagulant_stop_time_hour" form:"anticoagulant_stop_time_hour"`
  411. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  412. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  413. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
  414. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  415. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
  416. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
  417. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
  418. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  419. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total" form:"replacement_total"`
  420. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  421. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  422. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  423. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  424. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  425. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode" form:"vascular_access_mode"`
  426. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access" form:"vascular_access"`
  427. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  428. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  429. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui" form:"displace_liqui"`
  430. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  431. Sodium float64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  432. Calcium float64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  433. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  434. Glucose float64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
  435. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature" form:"dialysate_temperature"`
  436. Conductivity float64 `gorm:"column:conductivity" json:"conductivity" form:"conductivity"`
  437. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor" form:"prescription_doctor"`
  438. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  439. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  440. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  441. Status int64 `gorm:"column:status" json:"status" form:"status"`
  442. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  443. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  444. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  445. RecordId int64 `gorm:"column:record_id" json:"record_id" form:"record_id"`
  446. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  447. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation" form:"dialysate_formulation"`
  448. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid" form:"body_fluid"`
  449. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine" form:"special_medicine"`
  450. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other" form:"special_medicine_other"`
  451. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part" form:"displace_liqui_part"`
  452. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access" form:"blood_access"`
  453. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value" form:"displace_liqui_value"`
  454. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration" form:"ultrafiltration"`
  455. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other" form:"body_fluid_other"`
  456. Niprocart int64 `gorm:"column:niprocart" json:"niprocart" form:"niprocart"`
  457. Jms int64 `gorm:"column:jms" json:"jms" form:"jms"`
  458. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set" form:"fistula_needle_set"`
  459. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16" form:"fistula_needle_set_16"`
  460. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion" form:"hemoperfusion"`
  461. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised" form:"dialyser_sterilised"`
  462. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer" form:"filtryzer"`
  463. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv" form:"target_ktv"`
  464. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers" form:"dialyzers"`
  465. Injector int64 `gorm:"column:injector" json:"injector" form:"injector"`
  466. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines" form:"bloodlines"`
  467. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis" form:"tubing_hemodialysis"`
  468. Package int64 `gorm:"column:package" json:"package" form:"package"`
  469. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid" form:"a_liquid"`
  470. PreImpulse float64 `gorm:"column:pre_impulse" json:"pre_impulse" form:"pre_impulse"`
  471. AnticoagulantStopTimeMin int64 `gorm:"column:anticoagulant_stop_time_min" json:"anticoagulant_stop_time_min" form:"anticoagulant_stop_time_min"`
  472. HeparinSodium string `gorm:"column:heparin_sodium" json:"heparin_sodium" form:"heparin_sodium"`
  473. Nucleoprotamine string `gorm:"column:nucleoprotamine" json:"nucleoprotamine" form:"nucleoprotamine"`
  474. PushTheProtamine string `gorm:"column:push_the_protamine" json:"push_the_protamine" form:"push_the_protamine"`
  475. NoHeparinRemarks string `gorm:"column:no_heparin_remarks" json:"no_heparin_remarks" form:"no_heparin_remarks"`
  476. Blood string `gorm:"column:blood" json:"blood" form:"blood"`
  477. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  478. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  479. AntioxidantCommodityName string `gorm:"column:antioxidant_commodity_name" json:"antioxidant_commodity_name" form:"antioxidant_commodity_name"`
  480. DisplaceSpeed string `gorm:"column:displace_speed" json:"displace_speed" form:"displace_speed"`
  481. Illness int64 `gorm:"column:illness" json:"illness" form:"illness"`
  482. Amylaceum string `gorm:"column:amylaceum" json:"amylaceum" form:"amylaceum"`
  483. SingleTime string `gorm:"column:single_time" json:"single_time" form:"single_time"`
  484. SingleWater string `gorm:"column:single_water" json:"single_water" form:"single_water"`
  485. ReplacementFlow string `gorm:"column:replacement_flow" json:"replacement_flow" form:"replacement_flow"`
  486. PlasmaSeparator string `gorm:"column:plasma_separator" json:"plasma_separator" form:"plasma_separator"`
  487. BilirubinAdsorptionColumn string `gorm:"column:bilirubin_adsorption_column" json:"bilirubin_adsorption_column" form:"bilirubin_adsorption_column"`
  488. OxygenUptake int64 `gorm:"column:oxygen_uptake" json:"oxygen_uptake" form:"oxygen_uptake"`
  489. OxygenFlow string `gorm:"column:oxygen_flow" json:"oxygen_flow" form:"oxygen_flow"`
  490. OxygenTime string `gorm:"column:oxygen_time" json:"oxygen_time" form:"oxygen_time"`
  491. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  492. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  493. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  494. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  495. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  496. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  497. MaxUltrafiltrationRate string `gorm:"column:max_ultrafiltration_rate" json:"max_ultrafiltration_rate" form:"max_ultrafiltration_rate"`
  498. }
  499. func (XcxXtDialysisPrescription) TableName() string {
  500. return "xt_dialysis_prescription"
  501. }
  502. type XcxGobalTemplate struct {
  503. ID int64 `gorm:"column:id" json:"id" form:"id"`
  504. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  505. TemplateId int64 `gorm:"column:template_id" json:"template_id" form:"template_id"`
  506. Status int64 `gorm:"column:status" json:"status" form:"status"`
  507. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  508. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  509. }
  510. func (XcxGobalTemplate) TableName() string {
  511. return "xt_gobal_template"
  512. }
  513. type GetHisName struct {
  514. ID int64 `gorm:"column:id" json:"id" form:"id"`
  515. Name string `gorm:"column:name" json:"name" form:"name"`
  516. }
  517. func (GetHisName) TableName() string {
  518. return "sgj_xt.xt_patients"
  519. }
  520. type Deposit struct {
  521. ID int64 `gorm:"column:id" json:"id" form:"id"`
  522. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` //机构id
  523. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"` //his病人id
  524. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  525. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  526. Status int64 `gorm:"column:status" json:"status" form:"status"`
  527. Deposit decimal.Decimal `gorm:"column:deposit" json:"deposit" form:"deposit"` //押金
  528. }
  529. func (Deposit) TableName() string {
  530. return "sgj_xt.his_deposit"
  531. }
  532. type DepositHistory struct {
  533. ID int64 `gorm:"column:id" json:"id" form:"id"`
  534. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` //机构id
  535. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"` //his病人id
  536. DepositCode string `gorm:"column:deposit_code" json:"deposit_code" form:"deposit_code"`
  537. Deposit decimal.Decimal `gorm:"column:deposit" json:"deposit" form:"deposit"` //本次操作金额
  538. SurplusDeposit decimal.Decimal `gorm:"column:surplus_deposit" json:"surplus_deposit" form:"surplus_deposit"` //剩余金额
  539. DepositStatus int64 `gorm:"column:deposit_status" json:"deposit_status" form:"deposit_status"` //1:充值,2:扣费,3:退款,4:退费
  540. Status int64 `gorm:"column:status" json:"status" form:"status"`
  541. CreateId int64 `gorm:"column:create_id" json:"create_id" form:"create_id"`
  542. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  543. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  544. TrialStatus int64 `gorm:"column:trial_status" json:"trial_status" form:"trial_status"` //审核状态0:未审核 ,1:已审核
  545. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"` //备注
  546. }
  547. func (DepositHistory) TableName() string {
  548. return "sgj_xt.his_deposit_history"
  549. }
  550. type XcxSchedule struct {
  551. ID int64 `gorm:"column:id" json:"id" form:"id"`
  552. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  553. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  554. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  555. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  556. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  557. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  558. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  559. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  560. Status int64 `gorm:"column:status" json:"status" form:"status"`
  561. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  562. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  563. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  564. }
  565. func (XcxSchedule) TableName() string {
  566. return "xt_schedule"
  567. }
  568. type XcxInspectionTwo struct {
  569. ID int64 `gorm:"column:id" json:"id" form:"id"`
  570. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  571. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  572. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  573. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  574. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  575. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  576. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  577. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  578. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  579. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  580. Status int64 `gorm:"column:status" json:"status" form:"status"`
  581. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  582. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  583. InspectionReference InspectionReference `json:"inspection_reference" gorm:"foreignkey:OrgId,ProjectId,ItemId;AssociationForeignKey:OrgId,ProjectId,ItemId;"`
  584. }
  585. func (XcxInspectionTwo) TableName() string {
  586. return "xt_inspection"
  587. }
  588. type XcxInspection struct {
  589. ID int64 `gorm:"column:id" json:"id" form:"id"`
  590. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  591. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  592. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  593. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  594. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  595. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  596. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  597. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  598. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  599. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  600. Status int64 `gorm:"column:status" json:"status" form:"status"`
  601. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  602. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  603. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  604. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  605. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  606. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  607. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  608. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  609. Childs []*XcxInspection `json:"childs" `
  610. }
  611. func (XcxInspection) TableName() string {
  612. return "xt_inspection"
  613. }