lis_model.go 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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 Schedules struct {
  54. ID int64 `gorm:"column:id" json:"id" form:"id"`
  55. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  56. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  57. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  58. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  59. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  60. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  61. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  62. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  63. Status int64 `gorm:"column:status" json:"status" form:"status"`
  64. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  65. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  66. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  67. }
  68. func (Schedules) TableName() string {
  69. return "xt_schedule"
  70. }
  71. type FiledConfig struct {
  72. ID int64 `gorm:"column:id" json:"id"`
  73. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  74. Module int64 `gorm:"column:module" json:"module"`
  75. FiledName string `gorm:"column:filed_name" json:"filed_name"`
  76. FiledNameCn string `gorm:"column:filed_name_cn" json:"filed_name_cn"`
  77. IsShow int64 `gorm:"column:is_show" json:"is_show"`
  78. CreateTime int64 `gorm:"column:create_time" json:"create_time"`
  79. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  80. SysModule int64 `gorm:"column:sys_module" json:"sys_module" form:"sys_module"`
  81. }
  82. func (FiledConfig) TableName() string {
  83. return "xt_filed_config"
  84. }
  85. type MiddlePatients struct {
  86. ID int64 `gorm:"column:id" json:"id" form:"id"`
  87. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  88. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  89. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  90. XtPatientId int64 `gorm:"column:xt_patient_id" json:"xt_patient_id" form:"xt_patient_id"`
  91. SelectType int64 `gorm:"column:select_type" json:"select_type" form:"select_type"`
  92. Status int `gorm:"column:status" json:"status" form:"status"`
  93. }
  94. func (MiddlePatients) TableName() string {
  95. return "xt_middle_patients"
  96. }
  97. type Patients struct {
  98. ID int64 `gorm:"column:id" json:"id" form:"id"`
  99. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  100. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  101. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  102. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  103. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  104. Name string `gorm:"column:name" json:"name" form:"name"`
  105. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  106. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  107. }
  108. func (Patients) TableName() string {
  109. return "xt_patients"
  110. }
  111. type DialysisSchedule struct {
  112. ID int64 `gorm:"column:id" json:"id" form:"id"`
  113. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  114. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  115. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  116. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  117. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  118. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  119. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  120. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  121. Status int64 `gorm:"column:status" json:"status" form:"status"`
  122. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  123. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  124. Patients Patients `gorm:"ForeignKey:PatientId" json:"patient"`
  125. }
  126. func (DialysisSchedule) TableName() string {
  127. return "xt_schedule"
  128. }
  129. type MiddleSyncInfo struct {
  130. ID int64 `gorm:"column:id" json:"id" form:"id"`
  131. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  132. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  133. SyncTime int64 `gorm:"column:sync_time" json:"sync_time" form:"sync_time"`
  134. SyncResultType int `gorm:"column:sync_result_type" json:"sync_result_type" form:"sync_result_type"`
  135. SyncRsultRemark string `gorm:"column:sync_result_remark" json:"sync_result_remark" form:"sync_result_remark"`
  136. SyncTotalNum int64 `gorm:"column:sync_total_num" json:"sync_total_num" form:"sync_total_num"`
  137. SyncSuccessNum int64 `gorm:"column:sync_success_num" json:"sync_success_num" form:"sync_success_num"`
  138. SyncInfo string `gorm:"column:sync_info" json:"sync_info" form:"sync_info"`
  139. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  140. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  141. }
  142. func (MiddleSyncInfo) TableName() string {
  143. return "xt_middle_sync_info"
  144. }
  145. type TBLISItem struct {
  146. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  147. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  148. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  149. PatientName string `gorm:"column:patient_name" json:"patient_name" form:"patient_name"`
  150. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  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. ItemType int `gorm:"column:item_type" json:"item_type" form:"item_type"`
  154. ItemValue string `gorm:"column:item_value" json:"item_value" form:"item_value"`
  155. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  156. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  157. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  158. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  159. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  160. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  161. }
  162. func (TBLISItem) TableName() string {
  163. return "TB_LIS_Item"
  164. }
  165. type Inspection struct {
  166. ID int64 `gorm:"column:id" json:"id" form:"id"`
  167. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  168. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  169. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  170. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  171. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  172. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  173. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  174. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  175. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  176. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  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. }
  181. func (Inspection) TableName() string {
  182. return "xt_inspection"
  183. }
  184. type InspectionReference struct {
  185. ID int64 `gorm:"column:id" json:"id" form:"id"`
  186. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  187. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  188. Project string `gorm:"column:project" json:"project" form:"project"`
  189. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  190. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  191. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  192. Item string `gorm:"column:item" json:"item" form:"item"`
  193. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  194. RangeType int `gorm:"column:range_type" json:"range_type" form:"range_type"`
  195. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  196. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  197. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  198. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  199. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  200. Status int64 `gorm:"column:status" json:"status" form:"status"`
  201. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  202. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  203. }
  204. func (InspectionReference) TableName() string {
  205. return "xt_inspection_reference"
  206. }
  207. type MiddleReportHandle struct {
  208. ID int64 `gorm:"column:id" json:"id" form:"id"`
  209. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  210. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  211. ApplyNo string `gorm:"column:apply_no" json:"apply_no" form:"apply_no"`
  212. ReportId string `gorm:"column:report_id" json:"report_id" form:"report_id"`
  213. Name string `gorm:"column:name" json:"name" form:"name"`
  214. Sex string `gorm:"column:sex" json:"sex" form:"sex"`
  215. Age string `gorm:"column:age" json:"age" form:"age"`
  216. Dept string `gorm:"column:dept" json:"dept" form:"dept"`
  217. PatientId string `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  218. RequestTime string `gorm:"column:request_time" json:"request_time" form:"request_time"`
  219. ExecuteTime string `gorm:"column:execute_time" json:"execute_time" form:"execute_time"`
  220. ReceiveTime string `gorm:"column:receive_time" json:"receive_time" form:"receive_time"`
  221. Item string `gorm:"column:item" json:"item" form:"item"`
  222. CheckTime string `gorm:"column:check_time" json:"check_time" form:"check_time"`
  223. PatientType string `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  224. ReportInfo string `gorm:"column:report_info" json:"report_info" form:"report_info"`
  225. ReportInfoItemNum int64 `gorm:"column:report_info_item_num" json:"report_info_item_num" form:"report_info_item_num"`
  226. ReportInfoItemHandleNum int64 `gorm:"column:report_info_item_handle_num" json:"report_info_item_handle_num" form:"report_info_item_handle_num"`
  227. HandleType int64 `gorm:"column:handle_type" json:"handle_type" form:"handle_type"`
  228. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  229. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  230. }
  231. func (MiddleReportHandle) TableName() string {
  232. return "xt_middle_report_handle"
  233. }
  234. type MiddleInspection struct {
  235. ID int64 `gorm:"column:id" json:"id" form:"id"`
  236. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  237. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  238. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  239. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  240. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  241. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  242. InspectType int `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  243. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  244. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  245. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  246. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  247. Status int64 `gorm:"column:status" json:"status" form:"status"`
  248. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  249. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  250. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  251. IsSync int `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  252. // SyncItemId int64 `gorm:"column:sync_item_id" json:"sync_item_id" form:"sync_item_id"`
  253. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  254. SyncId int64 `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  255. }
  256. func (MiddleInspection) TableName() string {
  257. return "xt_middle_inspection"
  258. }
  259. type MiddleInspectionReference struct {
  260. ID int64 `gorm:"column:id" json:"id" form:"id"`
  261. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  262. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  263. Project string `gorm:"column:project" json:"project" form:"project"`
  264. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  265. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  266. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  267. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  268. Item string `gorm:"column:item" json:"item" form:"item"`
  269. RangeType int `gorm:"column:range_type" json:"range_type" form:"range_type"`
  270. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  271. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  272. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  273. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  274. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  275. Status int64 `gorm:"column:status" json:"status" form:"status"`
  276. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  277. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  278. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  279. IsSync int `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  280. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  281. SyncId int64 `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  282. }
  283. func (MiddleInspectionReference) TableName() string {
  284. return "xt_middle_inspection_reference"
  285. }
  286. type XtDoctorAdvice struct {
  287. ID int64 `gorm:"column:id" json:"id" form:"id"`
  288. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  289. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  290. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  291. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  292. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  293. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  294. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  295. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  296. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  297. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  298. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  299. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  300. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  301. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  302. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  303. Status int64 `gorm:"column:status" json:"status" form:"status"`
  304. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  305. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  306. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  307. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  308. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  309. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  310. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  311. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  312. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  313. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  314. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  315. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  316. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  317. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  318. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  319. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  320. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  321. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  322. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  323. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  324. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  325. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  326. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  327. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  328. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  329. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  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. SyncId string `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  333. }
  334. func (XtDoctorAdvice) TableName() string {
  335. return "xt_doctor_advice"
  336. }
  337. type UserAdminRole struct {
  338. ID int64 `gorm:"column:id" json:"id"`
  339. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  340. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  341. AppId int64 `gorm:"column:app_id" json:"app_id"`
  342. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  343. UserName string `gorm:"column:user_name" json:"user_name"`
  344. Avatar string `gorm:"column:avatar" json:"avatar"`
  345. UserType int64 `gorm:"column:user_type" json:"user_type"`
  346. UserTitle int64 `gorm:"column:user_title" json:"user_title"`
  347. Intro string `gorm:"column:intro" json:"intro"`
  348. Status int64 `gorm:"column:status" json:"status"`
  349. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  350. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  351. }
  352. func (UserAdminRole) TableName() string {
  353. return "sgj_user_admin_role"
  354. }
  355. type VMHisProjectTeam struct {
  356. ID int64 `gorm:"column:id" json:"id" form:"id"`
  357. ProjectTeam string `gorm:"column:project_team" json:"project_team" form:"project_team"`
  358. Price float64 `gorm:"column:price" json:"price" form:"price"`
  359. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  360. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  361. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  362. TeamType int64 `gorm:"column:team_type" json:"team_type" form:"team_type"`
  363. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  364. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  365. Status int64 `gorm:"column:status" json:"status" form:"status"`
  366. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  367. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  368. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  369. VMItemProjectList []*VMItemProjectList `gorm:"-" json:"list" form:"list"`
  370. ItemId string `gorm:"column:item_id" json:"item_id" form:"item_id"`
  371. }
  372. func (VMHisProjectTeam) TableName() string {
  373. return "xt_his_project_team"
  374. }
  375. type VMItemProjectList struct {
  376. ID int64 `gorm:"column:id" json:"id" form:"id"`
  377. Number int64 `gorm:"column:number" json:"number" form:"number"`
  378. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  379. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  380. Status int64 `gorm:"column:status" json:"status" form:"status"`
  381. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  382. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  383. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  384. Type int64 `gorm:"column:type" json:"type" form:"type"`
  385. }
  386. func (VMItemProjectList) TableName() string {
  387. return "xt_his_project_list"
  388. }