lis_model.go 29KB

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