lis_model.go 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. package models
  2. type DoctorAdvice struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  5. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  6. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  7. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  8. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  9. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  10. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  11. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  12. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  13. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  14. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  15. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  16. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  17. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  18. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  19. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  20. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  21. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  22. Status int64 `gorm:"column:status" json:"status" form:"status"`
  23. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  24. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  25. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  26. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  27. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  28. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  29. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  30. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  31. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  32. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  33. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  34. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  35. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  36. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  37. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  38. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  39. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  40. AdviceId int64 `gorm:"-"`
  41. RemindType int64 `gorm:"column:remind_type" json:"remind_type"`
  42. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  43. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  44. WeekDay string `gorm:"column:week_day" json:"week_day"`
  45. ChildDoctorAdvice []*DoctorAdvice `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  46. TemplateId string `gorm:"column:template_id" json:"template_id"`
  47. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  48. IsCheck int64 `gorm:"-" json:"is_check" form:"is_check"`
  49. }
  50. func (DoctorAdvice) TableName() string {
  51. return "xt_doctor_advice"
  52. }
  53. type FiledConfig struct {
  54. ID int64 `gorm:"column:id" json:"id"`
  55. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  56. Module int64 `gorm:"column:module" json:"module"`
  57. FiledName string `gorm:"column:filed_name" json:"filed_name"`
  58. FiledNameCn string `gorm:"column:filed_name_cn" json:"filed_name_cn"`
  59. IsShow int64 `gorm:"column:is_show" json:"is_show"`
  60. CreateTime int64 `gorm:"column:create_time" json:"create_time"`
  61. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  62. SysModule int64 `gorm:"column:sys_module" json:"sys_module" form:"sys_module"`
  63. }
  64. func (FiledConfig) TableName() string {
  65. return "xt_filed_config"
  66. }
  67. type MiddlePatients struct {
  68. ID int64 `gorm:"column:id" json:"id" form:"id"`
  69. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  70. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  71. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  72. XtPatientId int64 `gorm:"column:xt_patient_id" json:"xt_patient_id" form:"xt_patient_id"`
  73. SelectType int64 `gorm:"column:select_type" json:"select_type" form:"select_type"`
  74. Status int `gorm:"column:status" json:"status" form:"status"`
  75. }
  76. func (MiddlePatients) TableName() string {
  77. return "xt_middle_patients"
  78. }
  79. type Patients struct {
  80. ID int64 `gorm:"column:id" json:"id" form:"id"`
  81. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  82. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  83. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  84. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  85. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  86. Name string `gorm:"column:name" json:"name" form:"name"`
  87. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  88. }
  89. func (Patients) TableName() string {
  90. return "xt_patients"
  91. }
  92. type DialysisSchedule struct {
  93. ID int64 `gorm:"column:id" json:"id" form:"id"`
  94. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  95. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  96. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  97. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  98. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  99. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  100. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  101. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  102. Status int64 `gorm:"column:status" json:"status" form:"status"`
  103. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  104. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  105. Patients Patients `gorm:"ForeignKey:PatientId" json:"patient"`
  106. }
  107. func (DialysisSchedule) TableName() string {
  108. return "xt_schedule"
  109. }
  110. type MiddleSyncInfo struct {
  111. ID int64 `gorm:"column:id" json:"id" form:"id"`
  112. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  113. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  114. SyncTime int64 `gorm:"column:sync_time" json:"sync_time" form:"sync_time"`
  115. SyncResultType int `gorm:"column:sync_result_type" json:"sync_result_type" form:"sync_result_type"`
  116. SyncRsultRemark string `gorm:"column:sync_result_remark" json:"sync_result_remark" form:"sync_result_remark"`
  117. SyncTotalNum int64 `gorm:"column:sync_total_num" json:"sync_total_num" form:"sync_total_num"`
  118. SyncSuccessNum int64 `gorm:"column:sync_success_num" json:"sync_success_num" form:"sync_success_num"`
  119. SyncInfo string `gorm:"column:sync_info" json:"sync_info" form:"sync_info"`
  120. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  121. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  122. }
  123. func (MiddleSyncInfo) TableName() string {
  124. return "xt_middle_sync_info"
  125. }
  126. type TBLISItem struct {
  127. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  128. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  129. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  130. PatientName string `gorm:"column:patient_name" json:"patient_name" form:"patient_name"`
  131. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  132. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  133. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  134. ItemType int `gorm:"column:item_type" json:"item_type" form:"item_type"`
  135. ItemValue string `gorm:"column:item_value" json:"item_value" form:"item_value"`
  136. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  137. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  138. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  139. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  140. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  141. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  142. }
  143. func (TBLISItem) TableName() string {
  144. return "TB_LIS_Item"
  145. }
  146. type Inspection struct {
  147. ID int64 `gorm:"column:id" json:"id" form:"id"`
  148. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  149. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  150. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  151. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  152. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  153. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  154. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  155. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  156. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  157. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  158. Status int64 `gorm:"column:status" json:"status" form:"status"`
  159. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  160. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  161. }
  162. func (Inspection) TableName() string {
  163. return "xt_inspection"
  164. }
  165. type InspectionReference struct {
  166. ID int64 `gorm:"column:id" json:"id" form:"id"`
  167. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  168. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  169. Project string `gorm:"column:project" json:"project" form:"project"`
  170. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  171. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  172. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  173. Item string `gorm:"column:item" json:"item" form:"item"`
  174. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  175. RangeType int `gorm:"column:range_type" json:"range_type" form:"range_type"`
  176. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  177. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  178. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  179. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  180. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  181. Status int64 `gorm:"column:status" json:"status" form:"status"`
  182. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  183. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  184. }
  185. func (InspectionReference) TableName() string {
  186. return "xt_inspection_reference"
  187. }
  188. type MiddleReportHandle struct {
  189. ID int64 `gorm:"column:id" json:"id" form:"id"`
  190. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  191. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  192. ApplyNo string `gorm:"column:apply_no" json:"apply_no" form:"apply_no"`
  193. ReportId string `gorm:"column:report_id" json:"report_id" form:"report_id"`
  194. Name string `gorm:"column:name" json:"name" form:"name"`
  195. Sex string `gorm:"column:sex" json:"sex" form:"sex"`
  196. Age string `gorm:"column:age" json:"age" form:"age"`
  197. Dept string `gorm:"column:dept" json:"dept" form:"dept"`
  198. PatientId string `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  199. RequestTime string `gorm:"column:request_time" json:"request_time" form:"request_time"`
  200. ExecuteTime string `gorm:"column:execute_time" json:"execute_time" form:"execute_time"`
  201. ReceiveTime string `gorm:"column:receive_time" json:"receive_time" form:"receive_time"`
  202. Item string `gorm:"column:item" json:"item" form:"item"`
  203. CheckTime string `gorm:"column:check_time" json:"check_time" form:"check_time"`
  204. PatientType string `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  205. ReportInfo string `gorm:"column:report_info" json:"report_info" form:"report_info"`
  206. ReportInfoItemNum int64 `gorm:"column:report_info_item_num" json:"report_info_item_num" form:"report_info_item_num"`
  207. ReportInfoItemHandleNum int64 `gorm:"column:report_info_item_handle_num" json:"report_info_item_handle_num" form:"report_info_item_handle_num"`
  208. HandleType int64 `gorm:"column:handle_type" json:"handle_type" form:"handle_type"`
  209. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  210. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  211. }
  212. func (MiddleReportHandle) TableName() string {
  213. return "xt_middle_report_handle"
  214. }
  215. type MiddleInspection struct {
  216. ID int64 `gorm:"column:id" json:"id" form:"id"`
  217. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  218. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  219. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  220. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  221. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  222. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  223. InspectType int `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  224. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  225. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  226. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  227. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  228. Status int64 `gorm:"column:status" json:"status" form:"status"`
  229. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  230. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  231. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  232. IsSync int `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  233. // SyncItemId int64 `gorm:"column:sync_item_id" json:"sync_item_id" form:"sync_item_id"`
  234. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  235. SyncId int64 `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  236. }
  237. func (MiddleInspection) TableName() string {
  238. return "xt_middle_inspection"
  239. }
  240. type MiddleInspectionReference struct {
  241. ID int64 `gorm:"column:id" json:"id" form:"id"`
  242. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  243. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  244. Project string `gorm:"column:project" json:"project" form:"project"`
  245. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  246. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  247. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  248. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  249. Item string `gorm:"column:item" json:"item" form:"item"`
  250. RangeType int `gorm:"column:range_type" json:"range_type" form:"range_type"`
  251. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  252. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  253. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  254. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  255. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  256. Status int64 `gorm:"column:status" json:"status" form:"status"`
  257. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  258. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  259. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  260. IsSync int `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  261. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  262. SyncId int64 `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  263. }
  264. func (MiddleInspectionReference) TableName() string {
  265. return "xt_middle_inspection_reference"
  266. }
  267. type XtDoctorAdvice struct {
  268. ID int64 `gorm:"column:id" json:"id" form:"id"`
  269. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  270. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  271. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  272. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  273. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  274. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  275. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  276. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  277. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  278. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  279. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  280. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  281. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  282. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  283. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  284. Status int64 `gorm:"column:status" json:"status" form:"status"`
  285. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  286. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  287. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  288. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  289. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  290. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  291. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  292. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  293. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  294. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  295. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  296. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  297. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  298. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  299. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  300. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  301. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  302. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  303. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  304. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  305. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  306. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  307. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  308. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  309. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  310. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  311. SyncAdviceId int64 `gorm:"column:sync_advice_id" json:"sync_advice_id" form:"sync_advice_id"`
  312. IsSync int64 `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  313. }
  314. func (XtDoctorAdvice) TableName() string {
  315. return "xt_doctor_advice"
  316. }
  317. type UserAdminRole struct {
  318. ID int64 `gorm:"column:id" json:"id"`
  319. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  320. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  321. AppId int64 `gorm:"column:app_id" json:"app_id"`
  322. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  323. UserName string `gorm:"column:user_name" json:"user_name"`
  324. Avatar string `gorm:"column:avatar" json:"avatar"`
  325. UserType int64 `gorm:"column:user_type" json:"user_type"`
  326. UserTitle int64 `gorm:"column:user_title" json:"user_title"`
  327. Intro string `gorm:"column:intro" json:"intro"`
  328. Status int64 `gorm:"column:status" json:"status"`
  329. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  330. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  331. }
  332. func (UserAdminRole) TableName() string {
  333. return "sgj_user_admin_role"
  334. }