lis_model.go 37KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  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 VYunjingPatientLabItems struct {
  78. Id int64 `gorm:"column:ID" json:"ID"`
  79. Zyid string `gorm:"column:ZYID" json:"ZYID"`
  80. Mzid string `gorm:"column:MZID" json:"MZID"`
  81. PatientId string `gorm:"column:PATIENT_ID" json:"PATIENT_ID"`
  82. Sfzh string `gorm:"column:SFZH" json:"SFZH"`
  83. PatientName string `gorm:"column:PATIENT_NAME" json:"PATIENT_NAME"`
  84. TestOrderNo string `gorm:"column:TEST_ORDER_NO" json:"TEST_ORDER_NO"`
  85. ItemType string `gorm:"column:ITEM_TYPE" json:"ITEM_TYPE"`
  86. ItemTypeName string `gorm:"column:ITEM_TYPE_NAME" json:"ITEM_TYPE_NAME"`
  87. ItemCode string `gorm:"column:ITEM_CODE" json:"ITEM_CODE"`
  88. ItemName string `gorm:"column:ITEM_NAME" json:"ITEM_NAME"`
  89. SubmitAt string `gorm:"column:SUBMIT_AT" json:"SUBMIT_AT"`
  90. CreateAt string `gorm:"column:CREATE_AT" json:"CREATE_AT"`
  91. DeptName string `gorm:"column:DEPT_NAME" json:"DEPT_NAME"`
  92. }
  93. func (VYunjingPatientLabItems) TableName() string {
  94. return "v_yunjing_patient_lab_items"
  95. }
  96. type VYunjingPatientLabAnti struct {
  97. Id int64 `gorm:"column:ID" json:"ID"`
  98. Zyid string `gorm:"column:ZYID" json:"ZYID"`
  99. Mzid string `gorm:"column:MZID" json:"MZID"`
  100. PatientId string `gorm:"column:PATIENT_ID" json:"PATIENT_ID"`
  101. Sfzh string `gorm:"column:SFZH" json:"SFZH"`
  102. PatientName string `gorm:"column:PATIENT_NAME" json:"PATIENT_NAME"`
  103. TestOrderNo string `gorm:"column:TEST_ORDER_NO" json:"TEST_ORDER_NO"`
  104. ResultDate string `gorm:"column:RESULT_DATE" json:"RESULT_DATE"`
  105. TestResult string `gorm:"column:TEST_RESULT" json:"TEST_RESULT"`
  106. Unit string `gorm:"column:UNIT" json:"UNIT"`
  107. ReferRange string `gorm:"column:REFER_RANGE" json:"REFER_RANGE"`
  108. AntiCode string `gorm:"column:ANTI_CODE" json:"ANTI_CODE"`
  109. AntiName string `gorm:"column:ANTI_NAME" json:"ANTI_NAME"`
  110. CreateAt string `gorm:"column:CREATE_AT" json:"CREATE_AT"`
  111. }
  112. func (VYunjingPatientLabAnti) TableName() string {
  113. return "v_yunjing_patient_lab_anti"
  114. }
  115. type PlugPlugcase struct {
  116. Id int64 `gorm:"column:ID" json:"ID"`
  117. Oldserialno string `gorm:"column:oldSerialNo" json:"oldSerialNo"`
  118. Serialno string `gorm:"column:serialNo" json:"serialNo"`
  119. Name string `gorm:"column:name" json:"name"`
  120. Gender string `gorm:"column:gender" json:"gender"`
  121. Age int64 `gorm:"column:age" json:"age"`
  122. RegistrantmanId int64 `gorm:"column:registrantMan_id" json:"registrantMan_id"`
  123. Mainindex string `gorm:"column:mainIndex" json:"mainIndex"`
  124. Orddoctor string `gorm:"column:ordDoctor" json:"ordDoctor"`
  125. Ordloc string `gorm:"column:ordLoc" json:"ordLoc"`
  126. Birthday string `gorm:"column:birthDay" json:"birthDay"`
  127. }
  128. func (PlugPlugcase) TableName() string {
  129. return "plug_plugcase"
  130. }
  131. type PlugPlugcheckitem struct {
  132. Id int64 `gorm:"column:ID" json:"ID"`
  133. Serialno string `gorm:"column:serialNo" json:"serialNo"`
  134. Itemcode string `gorm:"column:itemCode" json:"itemCode"`
  135. State int64 `gorm:"column:state" json:"state"`
  136. Itemplug string `gorm:"column:itemPlug" json:"itemPlug"`
  137. Checkitemid string `gorm:"column:checkItemId" json:"checkItemId"`
  138. Oldserialno string `gorm:"column:oldSerialNo" json:"oldSerialNo"`
  139. Applytime string `gorm:"column:applyTime" json:"applyTime"`
  140. Specimenname string `gorm:"column:specimenName" json:"specimenName"`
  141. Checkitemname string `gorm:"column:checkItemName" json:"checkItemName"`
  142. Liscollectuser string `gorm:"column:LisCollectUser" json:"LisCollectUser"`
  143. Liscollecttime string `gorm:"column:LisCollectTime" json:"LisCollectTime"`
  144. Lissignuser string `gorm:"column:LisSignUser" json:"LisSignUser"`
  145. Lissigntime string `gorm:"column:LissignTime" json:"LissignTime"`
  146. Lisacceptuser string `gorm:"column:LisAcceptUser" json:"LisAcceptUser"`
  147. Lisaccepttime string `gorm:"column:LisAcceptTime" json:"LisAcceptTime"`
  148. Lisregisteruser string `gorm:"column:LisRegisterUser" json:"LisRegisterUser"`
  149. Lisregistertime string `gorm:"column:LisRegisterTime" json:"LisRegisterTime"`
  150. Lischeckuser string `gorm:"column:LisCheckUser" json:"LisCheckUser"`
  151. Lischecktime string `gorm:"column:LisCheckTime" json:"LisCheckTime"`
  152. Lisrefuseuser string `gorm:"column:LisRefuseUser" json:"LisRefuseUser"`
  153. Lisrefusetime string `gorm:"column:LisRefuseTime" json:"LisRefuseTime"`
  154. Lisstatus string `gorm:"column:LisStatus" json:"LisStatus"`
  155. Refusereason string `gorm:"column:RefuseReason" json:"RefuseReason"`
  156. }
  157. func (PlugPlugcheckitem) TableName() string {
  158. return "plug_plugcheckitem"
  159. }
  160. type PlugPlugresult struct {
  161. Id int64 `gorm:"column:ID" json:"ID"`
  162. Serialno string `gorm:"column:serialNo" json:"serialNo"`
  163. Testitemname string `gorm:"column:testItemName" json:"testItemName"`
  164. Itemcode string `gorm:"column:itemcode" json:"itemcode"`
  165. Paritemno string `gorm:"column:parItemNo" json:"parItemNo"`
  166. Reportvalueall string `gorm:"column:reportValueAll" json:"reportValueAll"`
  167. Testitemdatetime string `gorm:"column:testItemDateTime" json:"testItemDateTime"`
  168. Unit string `gorm:"column:unit" json:"unit"`
  169. Refrange string `gorm:"column:refrange" json:"refrange"`
  170. Resultstatus string `gorm:"column:resultStatus" json:"resultStatus"`
  171. Itemorder int64 `gorm:"column:itemOrder" json:"itemOrder"`
  172. Checker string `gorm:"column:checker" json:"checker"`
  173. }
  174. func (PlugPlugresult) TableName() string {
  175. return "plug_plugresult"
  176. }
  177. type Schedules struct {
  178. ID int64 `gorm:"column:id" json:"id" form:"id"`
  179. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  180. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  181. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  182. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  183. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  184. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  185. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  186. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  187. Status int64 `gorm:"column:status" json:"status" form:"status"`
  188. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  189. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  190. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  191. }
  192. func (Schedules) TableName() string {
  193. return "xt_schedule"
  194. }
  195. type FiledConfig struct {
  196. ID int64 `gorm:"column:id" json:"id"`
  197. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  198. Module int64 `gorm:"column:module" json:"module"`
  199. FiledName string `gorm:"column:filed_name" json:"filed_name"`
  200. FiledNameCn string `gorm:"column:filed_name_cn" json:"filed_name_cn"`
  201. IsShow int64 `gorm:"column:is_show" json:"is_show"`
  202. CreateTime int64 `gorm:"column:create_time" json:"create_time"`
  203. UpdateTime int64 `gorm:"column:update_time" json:"update_time"`
  204. SysModule int64 `gorm:"column:sys_module" json:"sys_module" form:"sys_module"`
  205. }
  206. func (FiledConfig) TableName() string {
  207. return "xt_filed_config"
  208. }
  209. type MiddlePatients struct {
  210. ID int64 `gorm:"column:id" json:"id" form:"id"`
  211. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  212. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  213. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  214. XtPatientId int64 `gorm:"column:xt_patient_id" json:"xt_patient_id" form:"xt_patient_id"`
  215. SelectType int64 `gorm:"column:select_type" json:"select_type" form:"select_type"`
  216. Status int `gorm:"column:status" json:"status" form:"status"`
  217. }
  218. func (MiddlePatients) TableName() string {
  219. return "xt_middle_patients"
  220. }
  221. type Patients struct {
  222. ID int64 `gorm:"column:id" json:"id" form:"id"`
  223. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  224. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  225. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  226. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  227. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  228. Name string `gorm:"column:name" json:"name" form:"name"`
  229. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  230. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  231. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  232. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  233. Age int64 `gorm:"column:age" json:"age"`
  234. }
  235. func (Patients) TableName() string {
  236. return "xt_patients"
  237. }
  238. type DialysisSchedule struct {
  239. ID int64 `gorm:"column:id" json:"id" form:"id"`
  240. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  241. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  242. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  243. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  244. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  245. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  246. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  247. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  248. Status int64 `gorm:"column:status" json:"status" form:"status"`
  249. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  250. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  251. Patients Patients `gorm:"ForeignKey:PatientId" json:"patient"`
  252. }
  253. func (DialysisSchedule) TableName() string {
  254. return "xt_schedule"
  255. }
  256. type MiddleSyncInfo struct {
  257. ID int64 `gorm:"column:id" json:"id" form:"id"`
  258. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  259. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  260. SyncTime int64 `gorm:"column:sync_time" json:"sync_time" form:"sync_time"`
  261. SyncResultType int `gorm:"column:sync_result_type" json:"sync_result_type" form:"sync_result_type"`
  262. SyncRsultRemark string `gorm:"column:sync_result_remark" json:"sync_result_remark" form:"sync_result_remark"`
  263. SyncTotalNum int64 `gorm:"column:sync_total_num" json:"sync_total_num" form:"sync_total_num"`
  264. SyncSuccessNum int64 `gorm:"column:sync_success_num" json:"sync_success_num" form:"sync_success_num"`
  265. SyncInfo string `gorm:"column:sync_info" json:"sync_info" form:"sync_info"`
  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. }
  269. func (MiddleSyncInfo) TableName() string {
  270. return "xt_middle_sync_info"
  271. }
  272. type TBLISItem struct {
  273. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  274. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  275. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  276. PatientName string `gorm:"column:patient_name" json:"patient_name" form:"patient_name"`
  277. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  278. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  279. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  280. ItemType int `gorm:"column:item_type" json:"item_type" form:"item_type"`
  281. ItemValue string `gorm:"column:item_value" json:"item_value" form:"item_value"`
  282. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  283. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  284. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  285. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  286. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  287. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  288. }
  289. func (TBLISItem) TableName() string {
  290. return "TB_LIS_Item"
  291. }
  292. type Inspection struct {
  293. ID int64 `gorm:"column:id" json:"id" form:"id"`
  294. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  295. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  296. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  297. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  298. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  299. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  300. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  301. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  302. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  303. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  304. Status int64 `gorm:"column:status" json:"status" form:"status"`
  305. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  306. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  307. }
  308. func (Inspection) TableName() string {
  309. return "xt_inspection"
  310. }
  311. type InspectionReference struct {
  312. ID int64 `gorm:"column:id" json:"id" form:"id"`
  313. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  314. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  315. Project string `gorm:"column:project" json:"project" form:"project"`
  316. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  317. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  318. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  319. Item string `gorm:"column:item" json:"item" form:"item"`
  320. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  321. RangeType int `gorm:"column:range_type" json:"range_type" form:"range_type"`
  322. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  323. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  324. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  325. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  326. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  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. }
  331. func (InspectionReference) TableName() string {
  332. return "xt_inspection_reference"
  333. }
  334. type MiddleReportHandle struct {
  335. ID int64 `gorm:"column:id" json:"id" form:"id"`
  336. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  337. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  338. ApplyNo string `gorm:"column:apply_no" json:"apply_no" form:"apply_no"`
  339. ReportId string `gorm:"column:report_id" json:"report_id" form:"report_id"`
  340. Name string `gorm:"column:name" json:"name" form:"name"`
  341. Sex string `gorm:"column:sex" json:"sex" form:"sex"`
  342. Age string `gorm:"column:age" json:"age" form:"age"`
  343. Dept string `gorm:"column:dept" json:"dept" form:"dept"`
  344. PatientId string `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  345. RequestTime string `gorm:"column:request_time" json:"request_time" form:"request_time"`
  346. ExecuteTime string `gorm:"column:execute_time" json:"execute_time" form:"execute_time"`
  347. ReceiveTime string `gorm:"column:receive_time" json:"receive_time" form:"receive_time"`
  348. Item string `gorm:"column:item" json:"item" form:"item"`
  349. CheckTime string `gorm:"column:check_time" json:"check_time" form:"check_time"`
  350. PatientType string `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  351. ReportInfo string `gorm:"column:report_info" json:"report_info" form:"report_info"`
  352. ReportInfoItemNum int64 `gorm:"column:report_info_item_num" json:"report_info_item_num" form:"report_info_item_num"`
  353. ReportInfoItemHandleNum int64 `gorm:"column:report_info_item_handle_num" json:"report_info_item_handle_num" form:"report_info_item_handle_num"`
  354. HandleType int64 `gorm:"column:handle_type" json:"handle_type" form:"handle_type"`
  355. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  356. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  357. }
  358. func (MiddleReportHandle) TableName() string {
  359. return "xt_middle_report_handle"
  360. }
  361. type MiddleInspection struct {
  362. ID int64 `gorm:"column:id" json:"id" form:"id"`
  363. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  364. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  365. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  366. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  367. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  368. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  369. InspectType int `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  370. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  371. InspectTips string `gorm:"column:inspect_tips" json:"inspect_tips" form:"inspect_tips"`
  372. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  373. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  374. Status int64 `gorm:"column:status" json:"status" form:"status"`
  375. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  376. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  377. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  378. IsSync int `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  379. // SyncItemId int64 `gorm:"column:sync_item_id" json:"sync_item_id" form:"sync_item_id"`
  380. HisUserId string `gorm:"column:his_user_id" json:"his_user_id" form:"his_user_id"`
  381. SyncId int64 `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  382. SysProjectId int64 `gorm:"column:sys_project_id" json:"sys_project_id" form:"sys_project_id"`
  383. SysItemId int64 `gorm:"column:sys_item_id" json:"sys_item_id" form:"sys_item_id"`
  384. }
  385. func (MiddleInspection) TableName() string {
  386. return "xt_middle_inspection"
  387. }
  388. type MiddleInspectionReference struct {
  389. ID int64 `gorm:"column:id" json:"id" form:"id"`
  390. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  391. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  392. Project string `gorm:"column:project" json:"project" form:"project"`
  393. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  394. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  395. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  396. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  397. Item string `gorm:"column:item" json:"item" form:"item"`
  398. RangeType int `gorm:"column:range_type" json:"range_type" form:"range_type"`
  399. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  400. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  401. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  402. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  403. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  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. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  408. IsSync int `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  409. UTime string `gorm:"column:u_time" json:"u_time" form:"u_time"`
  410. SyncId int64 `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  411. ItemCode string `gorm:"column:item_code" json:"item_code" form:"item_code"`
  412. XtProjectId int64 `gorm:"column:xt_project_id" json:"xt_project_id" form:"xt_project_id"`
  413. XtItemId int64 `gorm:"column:xt_item_id" json:"xt_item_id" form:"xt_item_id"`
  414. }
  415. func (MiddleInspectionReference) TableName() string {
  416. return "xt_middle_inspection_reference"
  417. }
  418. type XtDoctorAdvice struct {
  419. ID int64 `gorm:"column:id" json:"id" form:"id"`
  420. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  421. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  422. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  423. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  424. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  425. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  426. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  427. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  428. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  429. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  430. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  431. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  432. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  433. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  434. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  435. Status int64 `gorm:"column:status" json:"status" form:"status"`
  436. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  437. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  438. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  439. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  440. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  441. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  442. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  443. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  444. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  445. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  446. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  447. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  448. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  449. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  450. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  451. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  452. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  453. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  454. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  455. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  456. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  457. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  458. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  459. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  460. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  461. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  462. SyncAdviceId int64 `gorm:"column:sync_advice_id" json:"sync_advice_id" form:"sync_advice_id"`
  463. IsSync int64 `gorm:"column:is_sync" json:"is_sync" form:"is_sync"`
  464. SyncId string `gorm:"column:sync_id" json:"sync_id" form:"sync_id"`
  465. }
  466. func (XtDoctorAdvice) TableName() string {
  467. return "xt_doctor_advice"
  468. }
  469. type UserAdminRole struct {
  470. ID int64 `gorm:"column:id" json:"id"`
  471. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  472. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  473. AppId int64 `gorm:"column:app_id" json:"app_id"`
  474. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  475. UserName string `gorm:"column:user_name" json:"user_name"`
  476. Avatar string `gorm:"column:avatar" json:"avatar"`
  477. UserType int64 `gorm:"column:user_type" json:"user_type"`
  478. UserTitle int64 `gorm:"column:user_title" json:"user_title"`
  479. Intro string `gorm:"column:intro" json:"intro"`
  480. Status int64 `gorm:"column:status" json:"status"`
  481. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  482. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  483. }
  484. func (UserAdminRole) TableName() string {
  485. return "sgj_user_admin_role"
  486. }
  487. type VMHisProjectTeam struct {
  488. ID int64 `gorm:"column:id" json:"id" form:"id"`
  489. ProjectTeam string `gorm:"column:project_team" json:"project_team" form:"project_team"`
  490. Price float64 `gorm:"column:price" json:"price" form:"price"`
  491. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  492. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  493. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  494. TeamType int64 `gorm:"column:team_type" json:"team_type" form:"team_type"`
  495. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  496. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  497. Status int64 `gorm:"column:status" json:"status" form:"status"`
  498. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  499. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  500. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  501. VMItemProjectList []*VMItemProjectList `gorm:"-" json:"list" form:"list"`
  502. ItemId string `gorm:"column:item_id" json:"item_id" form:"item_id"`
  503. }
  504. func (VMHisProjectTeam) TableName() string {
  505. return "xt_his_project_team"
  506. }
  507. type VMItemProjectList struct {
  508. ID int64 `gorm:"column:id" json:"id" form:"id"`
  509. Number int64 `gorm:"column:number" json:"number" form:"number"`
  510. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  511. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  512. Status int64 `gorm:"column:status" json:"status" form:"status"`
  513. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  514. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  515. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  516. Type int64 `gorm:"column:type" json:"type" form:"type"`
  517. }
  518. func (VMItemProjectList) TableName() string {
  519. return "xt_his_project_list"
  520. }
  521. type HisLabelPrintStatusInfo struct {
  522. ID int64 `gorm:"column:id" json:"id" form:"id"`
  523. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_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. IsCombinationPrint int64 `gorm:"column:is_combination_print" json:"is_combination_print" form:"is_combination_print"`
  528. RecordDate string `gorm:"column:record_date" json:"record_date" form:"record_date"`
  529. ItemIds string `gorm:"column:item_ids" json:"item_ids" form:"item_ids"`
  530. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  531. ProjectIds string `gorm:"column:project_ids" json:"project_ids" form:"project_ids"`
  532. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  533. Ids string `gorm:"column:ids" json:"ids" form:"ids"`
  534. IsTeam int64 `gorm:"column:is_team" json:"is_team" form:"is_team"`
  535. IsPrint int64 `gorm:"column:is_print" json:"is_print" form:"is_print"`
  536. Patient Patients `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId" json:"patient"`
  537. ApplyCode string `gorm:"column:apply_code" json:"apply_code" form:"apply_code"`
  538. }
  539. func (HisLabelPrintStatusInfo) TableName() string {
  540. return "his_label_print_status_info"
  541. }