src_data.go 121KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561
  1. package models
  2. type XTSyncInfo struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  5. SyncType int64 `gorm:"column:sync_type" json:"sync_type" form:"sync_type"`
  6. SyncTime int64 `gorm:"column:sync_time" json:"sync_time" form:"sync_time"`
  7. SyncResultType int `gorm:"column:sync_result_type" json:"sync_result_type" form:"sync_result_type"`
  8. SyncRsultRemark string `gorm:"column:sync_result_remark" json:"sync_result_remark" form:"sync_result_remark"`
  9. SyncTotalNum int64 `gorm:"column:sync_total_num" json:"sync_total_num" form:"sync_total_num"`
  10. SyncSuccessNum int64 `gorm:"column:sync_success_num" json:"sync_success_num" form:"sync_success_num"`
  11. SyncInfo string `gorm:"column:sync_info" json:"sync_info" form:"sync_info"`
  12. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  13. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  14. }
  15. func (XTSyncInfo) TableName() string {
  16. return "data_sync_info"
  17. }
  18. type UserOrg struct {
  19. ID int64 `gorm:"column:id" json:"id"`
  20. Creator int64 `gorm:"column:creator" json:"creator"`
  21. OrgName string `gorm:"column:org_name" json:"org_name"`
  22. OrgShortName string `gorm:"column:org_short_name" json:"org_short_name"`
  23. OrgLogo string `gorm:"column:org_logo" json:"org_logo"`
  24. OrgIntroduction string `gorm:"column:org_introduction" json:"org_introduction"`
  25. Illness string `gorm:"column:illness" json:"illness"`
  26. Province int64 `gorm:"column:province" json:"province"`
  27. City int64 `gorm:"column:city" json:"city"`
  28. District int64 `gorm:"column:district" json:"district"`
  29. Address string `gorm:"column:address" json:"address"`
  30. Longitude string `gorm:"column:longitude" json:"longitude"`
  31. Latitude string `gorm:"column:latitude" json:"latitude"`
  32. OrgType int64 `gorm:"column:org_type" json:"org_type"`
  33. Comments int64 `gorm:"column:comments" json:"comments"`
  34. Evaluate float64 `gorm:"column:evaluate" json:"evaluate"`
  35. Gallery string `gorm:"column:gallery" json:"gallery"`
  36. BusinessWeek string `gorm:"column:business_week" json:"business_week"`
  37. BusinessTime string `gorm:"column:business_time" json:"business_time"`
  38. ContactName string `gorm:"column:contact_name" json:"contact_name"`
  39. Telephone string `gorm:"column:telephone" json:"telephone"`
  40. Claim int64 `gorm:"column:claim" json:"claim"`
  41. OperatingState int64 `gorm:"column:operating_state" json:"operating_state"`
  42. Status int64 `gorm:"column:status" json:"status"`
  43. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  44. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  45. Source int64 `gorm:"column:source" json:"source"`
  46. Ttype int64 `gorm:"column:ttype" json:"ttype"`
  47. Ttid int64 `gorm:"column:ttid" json:"ttid"`
  48. Tuid int64 `gorm:"column:tuid" json:"tuid"`
  49. Reason string `gorm:"column:reason" json:"reason"`
  50. Level int64 `gorm:"column:level" json:"level"`
  51. Website string `gorm:"column:website" json:"website"`
  52. Import int64 `gorm:"column:import" json:"import"`
  53. Sortno int64 `gorm:"column:sortno" json:"sortno"`
  54. DeviceNumber []*DeviceNumber `gorm:"ForeignKey:OrgId;AssociationForeignKey:ID" json:"device_number"`
  55. }
  56. func (UserOrg) TableName() string {
  57. return "sgj_user_org"
  58. }
  59. type UserAdminRole struct {
  60. ID int64 `gorm:"column:id" json:"id"`
  61. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  62. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  63. AppId int64 `gorm:"column:app_id" json:"app_id"`
  64. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  65. UserName string `gorm:"column:user_name" json:"user_name"`
  66. Avatar string `gorm:"column:avatar" json:"avatar"`
  67. UserType int64 `gorm:"column:user_type" json:"user_type"`
  68. UserTitle int64 `gorm:"column:user_title" json:"user_title"`
  69. Intro string `gorm:"column:intro" json:"intro"`
  70. Status int64 `gorm:"column:status" json:"status"`
  71. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  72. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  73. }
  74. func (UserAdminRole) TableName() string {
  75. return "sgj_user_admin_role"
  76. }
  77. type HisPatient struct {
  78. ID int64 `gorm:"column:id" json:"id" form:"id"`
  79. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  80. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  81. Name string `gorm:"column:name" json:"name" form:"name"`
  82. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  83. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  84. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  85. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  86. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  87. Age int64 `gorm:"column:age" json:"age" form:"age"`
  88. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  89. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  90. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  91. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  92. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  93. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  94. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  95. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  96. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  97. Total float64 `gorm:"column:total" json:"total" form:"total"`
  98. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  99. Status int64 `gorm:"column:status" json:"status" form:"status"`
  100. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  101. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  102. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  103. Number string `gorm:"column:number" json:"number" form:"number"`
  104. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  105. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  106. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  107. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  108. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  109. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  110. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  111. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  112. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  113. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  114. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  115. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  116. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  117. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  118. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  119. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  120. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  121. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  122. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  123. }
  124. func (HisPatient) TableName() string {
  125. return "his_patient"
  126. }
  127. type Patients struct {
  128. ID int64 `gorm:"column:id" json:"id"`
  129. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  130. UserId int64 `gorm:"column:user_id" json:"user_id"`
  131. Avatar string `gorm:"column:avatar" json:"avatar"`
  132. PatientType int64 `gorm:"column:patient_type" json:"patient_type"`
  133. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no"`
  134. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number"`
  135. Source int64 `gorm:"column:source" json:"source"`
  136. Lapseto int64 `gorm:"column:lapseto" json:"lapseto"`
  137. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  138. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  139. Name string `gorm:"column:name" json:"name"`
  140. Alias string `gorm:"column:alias" json:"alias"`
  141. Gender int64 `gorm:"column:gender" json:"gender"`
  142. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status"`
  143. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no"`
  144. Birthday int64 `gorm:"column:birthday" json:"birthday"`
  145. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id"`
  146. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type"`
  147. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no"`
  148. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date"`
  149. Height int64 `gorm:"column:height" json:"height"`
  150. BloodType int64 `gorm:"column:blood_type" json:"blood_type"`
  151. Rh int64 `gorm:"column:rh" json:"rh"`
  152. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date"`
  153. EducationLevel int64 `gorm:"column:education_level" json:"education_level"`
  154. Profession int64 `gorm:"column:profession" json:"profession"`
  155. Phone string `gorm:"column:phone" json:"phone"`
  156. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone"`
  157. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone"`
  158. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations"`
  159. HomeAddress string `gorm:"column:home_address" json:"home_address"`
  160. WorkUnit string `gorm:"column:work_unit" json:"work_unit"`
  161. UnitAddress string `gorm:"column:unit_address" json:"unit_address"`
  162. Children int64 `gorm:"column:children" json:"children"`
  163. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date"`
  164. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis"`
  165. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date"`
  166. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital"`
  167. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition"`
  168. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency"`
  169. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times"`
  170. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date"`
  171. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period"`
  172. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis"`
  173. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis"`
  174. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id"`
  175. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id"`
  176. Evaluate string `gorm:"column:evaluate" json:"evaluate"`
  177. Diagnose string `gorm:"column:diagnose" json:"diagnose"`
  178. Remark string `gorm:"column:remark" json:"remark"`
  179. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id"`
  180. Registrars string `gorm:"column:registrars" json:"registrars"`
  181. QrCode string `gorm:"column:qr_code" json:"qr_code"`
  182. BindingState int64 `gorm:"column:binding_state" json:"binding_state"`
  183. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"`
  184. PresentHistory string `gorm:"column:present_history" json:"present_history"`
  185. PastHistory string `gorm:"column:past_history" json:"past_history"`
  186. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  187. Pulse int64 `gorm:"column:pulse" json:"pulse"`
  188. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"`
  189. Sbp int64 `gorm:"column:sbp" json:"sbp"`
  190. Dbp int64 `gorm:"column:dbp" json:"dbp"`
  191. Status int64 `gorm:"column:status" json:"status"`
  192. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  193. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  194. Nation string `gorm:"column:nation" json:"nation"`
  195. NativePlace string `gorm:"column:native_place" json:"native_place"`
  196. Age int64 `gorm:"column:age" json:"age"`
  197. PatientLapseto PatientLapseto `gorm:"ForeignKey:PatientId,LapsetoType;AssociationForeignKey:ID,Lapseto" json:"patient_lapseto"`
  198. InfectiousDiseases []*InfectiousDiseases `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"infectious_diseases"`
  199. }
  200. func (Patients) TableName() string {
  201. return "xt_patients"
  202. }
  203. type InfectiousDiseases struct {
  204. ID int64 `gorm:"column:id" json:"id" form:"id"`
  205. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  206. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  207. Status int64 `gorm:"column:status" json:"status" form:"status"`
  208. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  209. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  210. }
  211. func (InfectiousDiseases) TableName() string {
  212. return "xt_patients_infectious_diseases"
  213. }
  214. type Device struct {
  215. ID int64 `gorm:"column:id" json:"id"`
  216. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  217. DeviceType int64 `gorm:"column:device_type" json:"device_type"`
  218. DmId int64 `gorm:"column:dm_id" json:"dm_id"`
  219. WteId int64 `gorm:"column:wte_id" json:"wte_id"`
  220. SerialNumber string `gorm:"column:serial_number" json:"serial_number"`
  221. Name string `gorm:"column:name" json:"name"`
  222. Model string `gorm:"column:model" json:"model"`
  223. DeviceNumberId int64 `gorm:"column:device_number_id" json:"device_number_id"`
  224. DeviceNumber string `gorm:"column:device_number" json:"device_number"`
  225. DeviceZoneId int64 `gorm:"column:device_zone_id" json:"device_zone_id"`
  226. DeviceGroupId int64 `gorm:"column:device_group_id" json:"device_group_id"`
  227. Status int64 `gorm:"column:status" json:"status"`
  228. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  229. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  230. }
  231. func (Device) TableName() string {
  232. return "xt_device"
  233. }
  234. type DeviceNumber struct {
  235. ID int64 `gorm:"column:id" json:"id"`
  236. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  237. Number string `gorm:"column:number" json:"number"`
  238. GroupId int64 `gorm:"column:group_id" json:"group_id"`
  239. ZoneId int64 `gorm:"column:zone_id" json:"zone_id"`
  240. Status int64 `gorm:"column:status" json:"status"`
  241. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  242. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  243. }
  244. func (DeviceNumber) TableName() string {
  245. return "xt_device_number"
  246. }
  247. type DeviceZone struct {
  248. ID int64 `gorm:"column:id" json:"id"`
  249. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  250. Name string `gorm:"column:name" json:"name"`
  251. Type int64 `gorm:"column:type" json:"type"`
  252. Status int64 `gorm:"column:status" json:"status"`
  253. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  254. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  255. }
  256. func (DeviceZone) TableName() string {
  257. return "xt_device_zone"
  258. }
  259. type Schedule struct {
  260. ID int64 `gorm:"column:id" json:"id"`
  261. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  262. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  263. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  264. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  265. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  266. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  267. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week"`
  268. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  269. Status int64 `gorm:"column:status" json:"status"`
  270. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  271. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  272. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  273. }
  274. func (Schedule) TableName() string {
  275. return "xt_schedule"
  276. }
  277. type DialysisPrescription struct {
  278. ID int64 `gorm:"column:id" json:"id"`
  279. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  280. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  281. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  282. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  283. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  284. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  285. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  286. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  287. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  288. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  289. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  290. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  291. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  292. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  293. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  294. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  295. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  296. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  297. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  298. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  299. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  300. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  301. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  302. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  303. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  304. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  305. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  306. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  307. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  308. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  309. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  310. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  311. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  312. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  313. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  314. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  315. Creater int64 `gorm:"column:creater" json:"creater"`
  316. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  317. Remark string `gorm:"column:remark" json:"remark"`
  318. Status int64 `gorm:"column:status" json:"status"`
  319. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  320. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  321. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  322. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  323. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  324. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  325. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  326. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  327. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  328. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  329. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  330. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  331. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  332. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  333. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  334. Jms int64 `gorm:"column:jms" json:"jms"`
  335. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  336. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  337. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  338. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  339. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  340. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  341. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  342. Injector int64 `gorm:"column:injector" json:"injector"`
  343. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  344. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  345. Package int64 `gorm:"column:package" json:"package"`
  346. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  347. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,RecordDate" json:"before"`
  348. DialysisOrder DialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,RecordDate" json:"order"`
  349. }
  350. func (DialysisPrescription) TableName() string {
  351. return "xt_dialysis_prescription"
  352. }
  353. type DoctorAdvice struct {
  354. ID int64 `gorm:"column:id" json:"id"`
  355. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  356. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  357. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  358. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date"`
  359. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  360. AdviceName string `gorm:"column:advice_name" json:"advice_name"`
  361. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc"`
  362. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date"`
  363. SingleDose float64 `gorm:"column:single_dose" json:"single_dose"`
  364. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit"`
  365. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number"`
  366. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit"`
  367. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way"`
  368. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency"`
  369. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor"`
  370. Status int64 `gorm:"column:status" json:"status"`
  371. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  372. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  373. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm"`
  374. Remark string `gorm:"column:remark" json:"remark"`
  375. StopTime int64 `gorm:"column:stop_time" json:"stop_time"`
  376. StopReason string `gorm:"column:stop_reason" json:"stop_reason"`
  377. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor"`
  378. StopState int64 `gorm:"column:stop_state" json:"stop_state"`
  379. ParentId int64 `gorm:"column:parent_id" json:"parent_id"`
  380. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time"`
  381. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff"`
  382. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state"`
  383. Checker int64 `gorm:"column:checker" json:"checker"`
  384. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  385. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  386. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  387. CheckState int64 `gorm:"column:check_state" json:"check_state"`
  388. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec"`
  389. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit"`
  390. Groupno int64 `gorm:"column:groupno" json:"groupno"`
  391. }
  392. func (DoctorAdvice) TableName() string {
  393. return "xt_doctor_advice"
  394. }
  395. type DoctorAdviceTemplate struct {
  396. ID int64 `gorm:"column:id" json:"id" form:"id"`
  397. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  398. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  399. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  400. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  401. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  402. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  403. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  404. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  405. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  406. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  407. Status int64 `gorm:"column:status" json:"status" form:"status"`
  408. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  409. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  410. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  411. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  412. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  413. ParentId int64 `gorm:"column:parent_id" json:"parent_id"`
  414. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  415. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  416. WeekDays string `gorm:"column:week_days" json:"week_days"`
  417. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  418. SubDoctorAdviceTemplate []*DoctorAdviceTemplate `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  419. }
  420. func (DoctorAdviceTemplate) TableName() string {
  421. return "xt_doctor_advice_template"
  422. }
  423. type AssessmentAfterDislysis struct {
  424. ID int64 `gorm:"column:id" json:"id"`
  425. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  426. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  427. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  428. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  429. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  430. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  431. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  432. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  433. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  434. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  435. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  436. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  437. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  438. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  439. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  440. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  441. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  442. Cruor string `gorm:"column:cruor" json:"cruor"`
  443. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  444. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  445. Catheter string `gorm:"column:catheter" json:"catheter"`
  446. Complication string `gorm:"column:complication" json:"complication"`
  447. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  448. Remark string `gorm:"column:remark" json:"remark"`
  449. DialysisIntakes int64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  450. DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  451. DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  452. DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  453. DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  454. Status int64 `gorm:"column:status" json:"status"`
  455. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  456. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  457. Creater int64 `gorm:"column:creater" json:"creater"`
  458. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  459. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  460. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  461. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  462. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  463. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  464. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  465. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  466. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  467. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  468. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  469. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  470. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  471. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  472. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  473. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  474. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  475. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  476. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  477. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  478. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  479. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  480. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  481. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  482. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  483. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  484. }
  485. func (AssessmentAfterDislysis) TableName() string {
  486. return "xt_assessment_after_dislysis"
  487. }
  488. type AssessmentBeforeDislysis struct {
  489. ID int64 `gorm:"column:id" json:"id"`
  490. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  491. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  492. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  493. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  494. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  495. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  496. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  497. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  498. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  499. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  500. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  501. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  502. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  503. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  504. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  505. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  506. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  507. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  508. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  509. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  510. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  511. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  512. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  513. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  514. CatheterBend int64 `gorm:"column:catheter_bend" json:"catheter_bend"`
  515. Catheter string `gorm:"column:catheter" json:"catheter"`
  516. Complication string `gorm:"column:complication" json:"complication"`
  517. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  518. Creater int64 `gorm:"column:creater" json:"creater"`
  519. Remark string `gorm:"column:remark" json:"remark"`
  520. Status int64 `gorm:"column:status" json:"status"`
  521. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  522. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  523. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  524. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  525. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  526. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  527. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  528. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  529. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  530. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  531. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  532. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  533. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way"`
  534. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  535. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  536. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  537. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  538. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  539. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  540. DialysisCount int64 `gorm:"column:dialysis_count" json:"dialysis_count"`
  541. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  542. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  543. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  544. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  545. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  546. Skin string `gorm:"column:skin" json:"skin"`
  547. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  548. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  549. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  550. }
  551. func (AssessmentBeforeDislysis) TableName() string {
  552. return "xt_assessment_before_dislysis"
  553. }
  554. type MonitoringRecord struct {
  555. ID int64 `gorm:"column:id" json:"id"`
  556. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  557. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  558. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  559. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  560. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  561. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  562. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  563. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  564. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  565. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  566. Pic string `gorm:"column:pic" json:"pic"`
  567. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  568. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  569. VenousPressureUnit string `gorm:"column:venous_pressure_unit" json:"venous_pressure_unit"`
  570. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  571. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  572. TransmembranePressureUnit string `gorm:"column:transmembrane_pressure_unit" json:"transmembrane_pressure_unit"`
  573. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  574. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  575. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  576. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  577. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  578. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  579. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  580. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  581. Symptom string `gorm:"column:symptom" json:"symptom"`
  582. Dispose string `gorm:"column:dispose" json:"dispose"`
  583. Result string `gorm:"column:result" json:"result"`
  584. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  585. Status int64 `gorm:"column:status" json:"status"`
  586. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  587. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  588. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  589. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  590. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  591. DialysisOrder DialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,MonitoringDate" json:"order"`
  592. }
  593. func (MonitoringRecord) TableName() string {
  594. return "xt_monitoring_record"
  595. }
  596. type PatientLapseto struct {
  597. ID int64 `gorm:"column:id" json:"id"`
  598. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  599. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type"`
  600. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time"`
  601. Status int64 `gorm:"column:status" json:"status"`
  602. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  603. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  604. }
  605. func (PatientLapseto) TableName() string {
  606. return "xt_patient_lapseto"
  607. }
  608. type DialysisOrder struct {
  609. ID int64 `gorm:"column:id" json:"id"`
  610. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  611. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  612. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  613. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  614. Stage int64 `gorm:"column:stage" json:"stage"`
  615. Remark string `gorm:"column:remark" json:"remark"`
  616. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  617. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  618. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  619. Status int64 `gorm:"column:status" json:"status"`
  620. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  621. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  622. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  623. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  624. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  625. Creator int64 `gorm:"column:creator" json:"creator"`
  626. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  627. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  628. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  629. }
  630. func (DialysisOrder) TableName() string {
  631. return "xt_dialysis_order"
  632. }
  633. type VMDialysisOrder struct {
  634. ID int64 `gorm:"column:id" json:"id"`
  635. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  636. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  637. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  638. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  639. Stage int64 `gorm:"column:stage" json:"stage"`
  640. Remark string `gorm:"column:remark" json:"remark"`
  641. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  642. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  643. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  644. Status int64 `gorm:"column:status" json:"status"`
  645. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  646. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  647. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  648. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  649. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  650. Creator int64 `gorm:"column:creator" json:"creator"`
  651. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  652. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  653. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  654. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  655. VMDialysisPrescription VMDialysisPrescription `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"prescription"`
  656. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"before"`
  657. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"after"`
  658. Schedule Schedule `gorm:"ForeignKey:ScheduleDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"schedule"`
  659. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"monitor"`
  660. }
  661. func (VMDialysisOrder) TableName() string {
  662. return "xt_dialysis_order"
  663. }
  664. type VMSchedule struct {
  665. ID int64 `gorm:"column:id" json:"id"`
  666. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  667. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  668. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  669. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  670. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  671. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  672. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week"`
  673. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  674. Status int64 `gorm:"column:status" json:"status"`
  675. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  676. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  677. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  678. VMDialysisPrescription VMDialysisPrescription `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"prescription"`
  679. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"before"`
  680. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"after"`
  681. DialysisOrder DialysisOrder `gorm:"ForeignKey:DialysisDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"order"`
  682. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"monitor"`
  683. }
  684. func (VMSchedule) TableName() string {
  685. return "xt_schedule"
  686. }
  687. type VMDialysisPrescription struct {
  688. ID int64 `gorm:"column:id" json:"id"`
  689. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  690. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  691. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  692. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  693. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  694. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  695. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  696. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  697. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  698. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  699. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  700. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  701. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  702. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  703. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  704. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  705. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  706. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  707. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  708. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  709. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  710. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  711. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  712. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  713. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  714. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  715. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  716. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  717. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  718. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  719. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  720. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  721. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  722. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  723. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  724. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  725. Creater int64 `gorm:"column:creater" json:"creater"`
  726. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  727. Remark string `gorm:"column:remark" json:"remark"`
  728. Status int64 `gorm:"column:status" json:"status"`
  729. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  730. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  731. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  732. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  733. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  734. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  735. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  736. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  737. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  738. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  739. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  740. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  741. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  742. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  743. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  744. Jms int64 `gorm:"column:jms" json:"jms"`
  745. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  746. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  747. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  748. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  749. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  750. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  751. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  752. Injector int64 `gorm:"column:injector" json:"injector"`
  753. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  754. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  755. Package int64 `gorm:"column:package" json:"package"`
  756. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  757. }
  758. func (VMDialysisPrescription) TableName() string {
  759. return "xt_dialysis_prescription"
  760. }
  761. type VMDeviceAddmacher struct {
  762. ID int64 `gorm:"column:id" json:"id" form:"id"`
  763. SerialNumber string `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
  764. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  765. BedNumber string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  766. DeviceName string `gorm:"column:device_name" json:"device_name" form:"device_name"`
  767. ManufactureFactory string `gorm:"column:manufacture_factory" json:"manufacture_factory" form:"manufacture_factory"`
  768. ServiceManufacturer string `gorm:"column:service_manufacturer" json:"service_manufacturer" form:"service_manufacturer"`
  769. UnitType int64 `gorm:"column:unit_type" json:"unit_type" form:"unit_type"`
  770. UseSection string `gorm:"column:use_section" json:"use_section" form:"use_section"`
  771. SectionNumber string `gorm:"column:section_number" json:"section_number" form:"section_number"`
  772. BuyDate int64 `gorm:"column:buy_date" json:"buy_date" form:"buy_date"`
  773. InstallDate int64 `gorm:"column:install_date" json:"install_date" form:"install_date"`
  774. StartDate int64 `gorm:"column:start_date" json:"start_date" form:"start_date"`
  775. MaintenaceEngineer string `gorm:"column:maintenace_engineer" json:"maintenace_engineer" form:"maintenace_engineer"`
  776. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  777. GuaranteeDate string `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  778. MachineStatus int64 `gorm:"column:machine_status" json:"machine_status" form:"machine_status"`
  779. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  780. DisinfectionMode int64 `gorm:"column:disinfection_mode" json:"disinfection_mode" form:"disinfection_mode"`
  781. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  782. RubbishDate int64 `gorm:"column:rubbish_date" json:"rubbish_date" form:"rubbish_date"`
  783. RubbishReason int64 `gorm:"column:rubbish_reason" json:"rubbish_reason" form:"rubbish_reason"`
  784. UserYear string `gorm:"column:user_year" json:"user_year" form:"user_year"`
  785. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  786. ReversMode int64 `gorm:"column:revers_mode" json:"revers_mode" form:"revers_mode"`
  787. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  788. Status int64 `gorm:"column:status" json:"status" form:"status"`
  789. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  790. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  791. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  792. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  793. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId"`
  794. }
  795. func (VMDeviceAddmacher) TableName() string {
  796. return "xt_device_addmacher"
  797. }
  798. type DeviceRepair struct {
  799. ID int64 `gorm:"column:id" json:"id" form:"id"`
  800. GuaranteeDate int64 `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  801. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  802. ArriveTime int64 `gorm:"column:arrive_time" json:"arrive_time" form:"arrive_time"`
  803. FinishTime int64 `gorm:"column:finish_time" json:"finish_time" form:"finish_time"`
  804. TotalDistance string `gorm:"column:total_distance" json:"total_distance" form:"total_distance"`
  805. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  806. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  807. CauseAnalysis string `gorm:"column:cause_analysis" json:"cause_analysis" form:"cause_analysis"`
  808. TreatmentProcess string `gorm:"column:treatment_process" json:"treatment_process" form:"treatment_process"`
  809. Images string `gorm:"column:images" json:"images" form:"images"`
  810. Exclude int64 `gorm:"column:exclude" json:"exclude" form:"exclude"`
  811. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  812. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  813. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  814. Status int64 `gorm:"column:status" json:"status" form:"status"`
  815. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  816. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  817. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  818. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  819. ImageName string `gorm:"column:image_name" json:"image_name" form:"image_name"`
  820. VMDeviceAddmacher VMDeviceAddmacher `gorm:"ForeignKey:ID;AssociationForeignKey:EquitmentId"`
  821. }
  822. func (DeviceRepair) TableName() string {
  823. return "xt_device_repair"
  824. }
  825. type XtInspectionReference struct {
  826. ID int64 `gorm:"column:id" json:"id" form:"id"`
  827. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  828. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  829. Project string `gorm:"column:project" json:"project" form:"project"`
  830. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  831. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  832. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  833. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  834. Item string `gorm:"column:item" json:"item" form:"item"`
  835. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  836. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  837. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  838. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  839. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  840. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  841. Status int64 `gorm:"column:status" json:"status" form:"status"`
  842. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  843. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  844. }
  845. func (XtInspectionReference) TableName() string {
  846. return "xt_inspection_reference"
  847. }
  848. type XtInspection struct {
  849. ID int64 `gorm:"column:id" json:"id" form:"id"`
  850. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  851. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  852. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  853. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  854. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  855. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  856. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  857. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  858. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  859. Status int64 `gorm:"column:status" json:"status" form:"status"`
  860. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  861. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  862. Patients Patients `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId"`
  863. XtInspectionReference XtInspectionReference `gorm:"ForeignKey:ProjectId,ItemId;AssociationForeignKey:ProjectId,ItemId;"`
  864. }
  865. func (XtInspection) TableName() string {
  866. return "xt_inspection"
  867. }
  868. type XtDeviceCulture struct {
  869. ID int64 `gorm:"column:id" json:"id" form:"id"`
  870. SpelingDate int64 `gorm:"column:speling_date" json:"speling_date" form:"speling_date"`
  871. Specimen int64 `gorm:"column:specimen" json:"specimen" form:"specimen"`
  872. ConcentrateNoa string `gorm:"column:concentrate_noa" json:"concentrate_noa" form:"concentrate_noa"`
  873. ConcentrateNob string `gorm:"column:concentrate_nob" json:"concentrate_nob" form:"concentrate_nob"`
  874. SamplingLocationa int64 `gorm:"column:sampling_locationa" json:"sampling_locationa" form:"sampling_locationa"`
  875. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  876. Sampler int64 `gorm:"column:sampler" json:"sampler" form:"sampler"`
  877. ReportingDate int64 `gorm:"column:reporting_date" json:"reporting_date" form:"reporting_date"`
  878. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  879. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  880. Status int64 `gorm:"column:status" json:"status" form:"status"`
  881. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  882. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  883. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  884. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  885. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  886. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  887. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  888. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  889. }
  890. func (XtDeviceCulture) TableName() string {
  891. return "xt_device_culture"
  892. }
  893. type XtDeviceDialysate struct {
  894. ID int64 `gorm:"column:id" json:"id" form:"id"`
  895. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  896. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  897. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  898. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  899. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  900. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  901. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  902. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  903. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  904. Status int64 `gorm:"column:status" json:"status" form:"status"`
  905. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  906. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  907. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  908. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  909. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  910. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  911. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  912. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  913. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  914. }
  915. func (XtDeviceDialysate) TableName() string {
  916. return "xt_device_dialysate"
  917. }
  918. type XtAerialDetection struct {
  919. ID int64 `gorm:"column:id" json:"id" form:"id"`
  920. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  921. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  922. Class int64 `gorm:"column:class" json:"class" form:"class"`
  923. DisinfectionMethods string `gorm:"column:disinfection_methods" json:"disinfection_methods" form:"disinfection_methods"`
  924. DisinfectionFluid string `gorm:"column:disinfection_fluid" json:"disinfection_fluid" form:"disinfection_fluid"`
  925. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  926. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  927. DetectionTime int64 `gorm:"column:detection_time" json:"detection_time" form:"detection_time"`
  928. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  929. UploadTime int64 `gorm:"column:upload_time" json:"upload_time" form:"upload_time"`
  930. CheckOut int64 `gorm:"column:check_out" json:"check_out" form:"check_out"`
  931. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  932. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  933. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  934. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  935. Status int64 `gorm:"column:status" json:"status" form:"status"`
  936. }
  937. func (XtAerialDetection) TableName() string {
  938. return "xt_aerial_detection"
  939. }
  940. type XtBodyDetection struct {
  941. ID int64 `gorm:"column:id" json:"id" form:"id"`
  942. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  943. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  944. Class int64 `gorm:"column:class" json:"class" form:"class"`
  945. DisinfectionMethods string `gorm:"column:disinfection_methods" json:"disinfection_methods" form:"disinfection_methods"`
  946. DisinfectionFluid string `gorm:"column:disinfection_fluid" json:"disinfection_fluid" form:"disinfection_fluid"`
  947. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  948. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  949. DetectionTime int64 `gorm:"column:detection_time" json:"detection_time" form:"detection_time"`
  950. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  951. UploadTime int64 `gorm:"column:upload_time" json:"upload_time" form:"upload_time"`
  952. CheckOut int64 `gorm:"column:check_out" json:"check_out" form:"check_out"`
  953. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  954. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  955. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  956. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  957. Status int64 `gorm:"column:status" json:"status" form:"status"`
  958. }
  959. func (XtBodyDetection) TableName() string {
  960. return "xt_body_detection"
  961. }
  962. type XtDeviceWater struct {
  963. ID int64 `gorm:"column:id" json:"id" form:"id"`
  964. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  965. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  966. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  967. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  968. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  969. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  970. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  971. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  972. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  973. Status int64 `gorm:"column:status" json:"status" form:"status"`
  974. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  975. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  976. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  977. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  978. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  979. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  980. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  981. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  982. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  983. }
  984. func (XtDeviceWater) TableName() string {
  985. return "xt_device_water"
  986. }
  987. type XtDeviceOxygenates struct {
  988. ID int64 `gorm:"column:id" json:"id" form:"id"`
  989. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  990. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  991. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  992. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  993. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  994. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  995. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  996. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  997. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  998. Status int64 `gorm:"column:status" json:"status" form:"status"`
  999. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1000. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1001. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1002. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1003. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1004. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1005. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1006. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1007. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1008. }
  1009. func (XtDeviceOxygenates) TableName() string {
  1010. return "xt_device_oxygenates"
  1011. }
  1012. type XtDevicePh struct {
  1013. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1014. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1015. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1016. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1017. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1018. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1019. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1020. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1021. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1022. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1023. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1024. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1025. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1026. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1027. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1028. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1029. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1030. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1031. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1032. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1033. }
  1034. func (XtDevicePh) TableName() string {
  1035. return "xt_device_ph"
  1036. }
  1037. type XtDeviceHadwater struct {
  1038. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1039. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1040. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1041. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1042. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1043. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1044. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1045. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1046. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1047. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1048. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1049. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1050. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1051. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1052. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1053. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1054. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1055. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1056. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1057. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1058. }
  1059. func (XtDeviceHadwater) TableName() string {
  1060. return "xt_device_hadwater"
  1061. }
  1062. type XtPatientVascularAccess struct {
  1063. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1064. AccessProject int64 `gorm:"column:access_project" json:"access_project" form:"access_project"`
  1065. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id" form:"blood_access_part_id"`
  1066. InflowPass string `gorm:"column:inflow_pass" json:"inflow_pass" form:"inflow_pass"`
  1067. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1068. FirstStartTime int64 `gorm:"column:first_start_time" json:"first_start_time" form:"first_start_time"`
  1069. BloodAccessPartOperaId string `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id" form:"blood_access_part_opera_id"`
  1070. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1071. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1072. UserStatus int64 `gorm:"column:user_status" json:"user_status" form:"user_status"`
  1073. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1074. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1075. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1076. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1077. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1078. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  1079. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1080. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1081. OtherVascular string `gorm:"column:other_vascular" json:"other_vascular" form:"other_vascular"`
  1082. CiType int64 `gorm:"column:ci_type" json:"ci_type" form:"ci_type"`
  1083. BloodCultupe int64 `gorm:"column:blood_cultupe" json:"blood_cultupe" form:"blood_cultupe"`
  1084. SequelaeType int64 `gorm:"column:sequelae_type" json:"sequelae_type" form:"sequelae_type"`
  1085. }
  1086. func (XtPatientVascularAccess) TableName() string {
  1087. return "xt_patient_vascular_access"
  1088. }
  1089. type App_Role struct {
  1090. Id int64 `gorm:"PRIMARY_KEY;AUTO_INCREMENT" json:"id"`
  1091. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  1092. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1093. AppId int64 `gorm:"column:app_id" json:"app_id"`
  1094. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  1095. Avatar string `json:"avatar" json:"avatar"`
  1096. UserName string `gorm:"column:user_name" json:"user_name"` // 用户名称
  1097. Intro string `json:"intro"` // 简介
  1098. UserType int8 `gorm:"column:user_type" json:"user_type"` // 用户类型(1.管理员;2.医生;3.护士;4.运营)
  1099. UserTitle int8 `gorm:"column:user_title" json:"user_title"` // 用户职称(1.医士;2.医师;3.住院医师;4.主治医师;5.副主任医师;6.主任医师;7.护士;8.护师;9.主管护师;10.副主任护师;11.主任护师;12.运营专员;13.运营主管)
  1100. Status int8 `json:"status"` // 状态 0.无效 1.有效
  1101. CreateTime int64 `gorm:"column:ctime" json:"ctime"` // 创建时间
  1102. ModifyTime int64 `gorm:"column:mtime" json:"mtime"` // 修改时间UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1103. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1104. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  1105. IsSubSuperAdmin bool `gorm:"-" json:"is_sub_super_admin" form:"is_sub_super_admin"`
  1106. Message string `gorm:"column:message" json:"message" form:"message"`
  1107. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  1108. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1109. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1110. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  1111. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  1112. Department string `gorm:"column:department" json:"department" form:"department"`
  1113. Age int64 `gorm:"column:age" json:"age" form:"age"`
  1114. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  1115. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  1116. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  1117. Education int64 `gorm:"column:education" json:"education" form:"education"`
  1118. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  1119. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  1120. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  1121. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1122. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  1123. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  1124. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  1125. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  1126. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  1127. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1128. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  1129. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  1130. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  1131. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  1132. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  1133. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  1134. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  1135. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  1136. OutpatientIllnesscategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  1137. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  1138. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  1139. }
  1140. func (App_Role) TableName() string {
  1141. return "sgj_user_admin_role"
  1142. }
  1143. type HisPrescriptionInfo struct {
  1144. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1145. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1146. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1147. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1148. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1149. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1150. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1151. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1152. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1153. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1154. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1155. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  1156. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1157. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  1158. SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
  1159. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  1160. PrescriptionStatus int64 `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
  1161. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1162. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  1163. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  1164. }
  1165. func (HisPrescriptionInfo) TableName() string {
  1166. return "his_prescription_info"
  1167. }
  1168. type HisPrescription struct {
  1169. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1170. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1171. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1172. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1173. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1174. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1175. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1176. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1177. Number string `gorm:"column:number" json:"number" form:"number"`
  1178. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1179. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1180. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1181. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1182. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1183. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1184. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  1185. }
  1186. func (HisPrescription) TableName() string {
  1187. return "his_prescription"
  1188. }
  1189. type HisDoctorAdviceInfo struct {
  1190. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1191. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1192. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1193. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1194. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1195. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1196. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1197. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1198. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1199. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1200. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1201. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1202. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1203. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1204. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1205. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1206. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1207. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1208. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1209. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1210. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1211. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1212. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1213. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1214. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1215. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1216. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1217. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1218. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1219. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1220. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1221. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1222. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1223. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1224. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1225. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1226. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1227. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1228. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1229. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1230. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1231. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1232. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1233. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1234. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1235. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1236. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1237. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1238. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1239. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1240. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug"`
  1241. }
  1242. func (HisDoctorAdviceInfo) TableName() string {
  1243. return "his_doctor_advice_info"
  1244. }
  1245. type BaseDrugLib struct {
  1246. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1247. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  1248. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1249. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1250. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  1251. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  1252. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  1253. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  1254. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1255. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  1256. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  1257. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  1258. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  1259. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  1260. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1261. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1262. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  1263. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1264. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  1265. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  1266. Number string `gorm:"column:number" json:"number" form:"number"`
  1267. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  1268. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  1269. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  1270. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1271. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1272. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  1273. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  1274. Code string `gorm:"column:code" json:"code" form:"code"`
  1275. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  1276. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1277. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  1278. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  1279. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  1280. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1281. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1282. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1283. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1284. Label int64 `gorm:"column:label" json:"label" form:"label"`
  1285. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1286. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  1287. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1288. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  1289. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  1290. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  1291. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1292. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1293. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1294. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1295. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  1296. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  1297. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1298. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  1299. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1300. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  1301. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1302. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1303. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1304. //MedicineInsurancePercentage []*MedicineInsurancePercentage `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
  1305. }
  1306. func (BaseDrugLib) TableName() string {
  1307. return "xt_base_drug"
  1308. }
  1309. type HisPrescriptionProject struct {
  1310. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1311. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1312. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1313. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1314. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1315. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1316. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1317. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1318. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1319. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1320. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1321. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1322. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1323. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1324. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1325. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1326. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1327. Day string `gorm:"column:day" json:"day" form:"day"`
  1328. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1329. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1330. }
  1331. func (HisPrescriptionProject) TableName() string {
  1332. return "his_prescription_project"
  1333. }
  1334. type HisOrder struct {
  1335. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1336. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1337. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1338. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  1339. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1340. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1341. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1342. Number string `gorm:"column:number" json:"number" form:"number"`
  1343. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1344. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  1345. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  1346. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  1347. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  1348. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  1349. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  1350. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1351. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  1352. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  1353. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  1354. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1355. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  1356. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1357. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  1358. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  1359. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  1360. Age float64 `gorm:"column:age" json:"age" form:"age"`
  1361. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  1362. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  1363. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  1364. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  1365. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  1366. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  1367. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  1368. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1369. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  1370. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1371. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1372. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  1373. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  1374. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  1375. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  1376. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  1377. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  1378. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  1379. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  1380. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  1381. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  1382. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  1383. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  1384. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  1385. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  1386. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  1387. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  1388. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  1389. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  1390. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  1391. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  1392. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  1393. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  1394. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  1395. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  1396. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  1397. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  1398. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  1399. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  1400. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  1401. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  1402. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  1403. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1404. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  1405. AccountPrice float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
  1406. SzChargeInfo string `gorm:"column:sz_charge_info" json:"sz_charge_info" form:"sz_charge_info"`
  1407. SzProjectInfo string `gorm:"column:sz_project_info" json:"sz_project_info" form:"sz_project_info"`
  1408. SzMedicineInsuranceInfo string `gorm:"column:sz_medicine_insurance_info" json:"sz_medicine_insurance_info" form:"sz_medicine_insurance_info"`
  1409. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  1410. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  1411. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  1412. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  1413. OrgSetlNumber string `gorm:"column:org_setl_number" json:"org_setl_number" form:"org_setl_number"`
  1414. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  1415. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  1416. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  1417. RefundLog string `gorm:"column:refund_log" json:"refund_log" form:"refund_log"`
  1418. DetailLog string `gorm:"column:detail_log" json:"detail_log" form:"detail_log"`
  1419. RequestLog string `gorm:"column:request_log" json:"request_log" form:"request_log"`
  1420. RefundRequestLog string `gorm:"column:refund_request_log" json:"refund_request_log" form:"refund_request_log"`
  1421. }
  1422. func (HisOrder) TableName() string {
  1423. return "his_order"
  1424. }
  1425. type HisOrderInfo struct {
  1426. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1427. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1428. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  1429. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  1430. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  1431. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  1432. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  1433. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1434. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  1435. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  1436. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1437. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  1438. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1439. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  1440. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  1441. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  1442. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1443. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  1444. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1445. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1446. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1447. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  1448. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1449. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  1450. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  1451. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1452. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  1453. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1454. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1455. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1456. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1457. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1458. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  1459. OverPricPsnPay float64 `gorm:"column:over_pric_psn_pay" json:"over_pric_psn_pay" form:"over_pric_psn_pay"`
  1460. AllowReimburse float64 `gorm:"column:allow_reimburse" json:"allow_reimburse" form:"allow_reimburse"`
  1461. HisDoctorAdviceInfo HisDoctorAdviceInfo `gorm:"ForeignKey:AdviceId;AssociationForeignKey:ID" json:"advice"`
  1462. HisPrescriptionProject HisPrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  1463. }
  1464. func (HisOrderInfo) TableName() string {
  1465. return "his_order_info"
  1466. }