src_data.go 148KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917
  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. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number"`
  74. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code"`
  75. }
  76. func (UserAdminRole) TableName() string {
  77. return "sgj_user_admin_role"
  78. }
  79. type DeviceZone struct {
  80. ID int64 `gorm:"column:id" json:"id"`
  81. OrgID int64 `gorm:"column:org_id" json:"-"`
  82. Name string `json:"name"`
  83. Type int64 `json:"type"`
  84. Status int8 `json:"-"`
  85. CreateTime int64 `gorm:"column:ctime" json:"-"`
  86. ModifyTime int64 `gorm:"column:mtime" json:"-"`
  87. }
  88. func (DeviceZone) TableName() string {
  89. return "xt_device_zone"
  90. }
  91. type ResultOne struct {
  92. Sumamt float64 `gorm:"column:sumamt" json:"sumamt" form:"sumamt"`
  93. Amt float64 `gorm:"column:amt" json:"amt" form:"amt"`
  94. }
  95. func (ResultOne) TableName() string {
  96. return "ResultOne"
  97. }
  98. type HisPatient struct {
  99. ID int64 `gorm:"column:id" json:"id" form:"id"`
  100. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  101. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  102. Name string `gorm:"column:name" json:"name" form:"name"`
  103. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  104. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  105. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  106. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  107. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  108. Age int64 `gorm:"column:age" json:"age" form:"age"`
  109. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  110. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  111. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  112. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  113. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  114. IsNeedCostOfProduction int64 `gorm:"column:is_need_cost_of_production" json:"is_need_cost_of_production" form:"is_need_cost_of_production"`
  115. RegisterCost float64 `gorm:"column:register_cost" json:"register_cost" form:"register_cost"`
  116. TreatmentCost float64 `gorm:"column:treatment_cost" json:"treatment_cost" form:"treatment_cost"`
  117. CostOfProduction float64 `gorm:"column:cost_of_production" json:"cost_of_production" form:"cost_of_production"`
  118. Total float64 `gorm:"column:total" json:"total" form:"total"`
  119. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  120. Status int64 `gorm:"column:status" json:"status" form:"status"`
  121. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  122. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  123. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  124. Number string `gorm:"column:number" json:"number" form:"number"`
  125. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  126. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  127. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  128. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  129. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  130. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  131. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  132. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  133. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  134. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  135. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  136. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  137. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  138. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  139. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  140. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  141. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  142. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  143. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  144. }
  145. func (HisPatient) TableName() string {
  146. return "his_patient"
  147. }
  148. type Patients struct {
  149. ID int64 `gorm:"column:id" json:"id"`
  150. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  151. UserId int64 `gorm:"column:user_id" json:"user_id"`
  152. Avatar string `gorm:"column:avatar" json:"avatar"`
  153. PatientType int64 `gorm:"column:patient_type" json:"patient_type"`
  154. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no"`
  155. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number"`
  156. Source int64 `gorm:"column:source" json:"source"`
  157. Lapseto int64 `gorm:"column:lapseto" json:"lapseto"`
  158. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  159. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  160. Name string `gorm:"column:name" json:"name"`
  161. Alias string `gorm:"column:alias" json:"alias"`
  162. Gender int64 `gorm:"column:gender" json:"gender"`
  163. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status"`
  164. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no"`
  165. Birthday int64 `gorm:"column:birthday" json:"birthday"`
  166. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id"`
  167. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type"`
  168. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no"`
  169. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date"`
  170. Height int64 `gorm:"column:height" json:"height"`
  171. BloodType int64 `gorm:"column:blood_type" json:"blood_type"`
  172. Rh int64 `gorm:"column:rh" json:"rh"`
  173. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date"`
  174. EducationLevel int64 `gorm:"column:education_level" json:"education_level"`
  175. Profession int64 `gorm:"column:profession" json:"profession"`
  176. Phone string `gorm:"column:phone" json:"phone"`
  177. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone"`
  178. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone"`
  179. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations"`
  180. HomeAddress string `gorm:"column:home_address" json:"home_address"`
  181. WorkUnit string `gorm:"column:work_unit" json:"work_unit"`
  182. UnitAddress string `gorm:"column:unit_address" json:"unit_address"`
  183. Children int64 `gorm:"column:children" json:"children"`
  184. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date"`
  185. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis"`
  186. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date"`
  187. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital"`
  188. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition"`
  189. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency"`
  190. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times"`
  191. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date"`
  192. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period"`
  193. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis"`
  194. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis"`
  195. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id"`
  196. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id"`
  197. Evaluate string `gorm:"column:evaluate" json:"evaluate"`
  198. Diagnose string `gorm:"column:diagnose" json:"diagnose"`
  199. Remark string `gorm:"column:remark" json:"remark"`
  200. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id"`
  201. Registrars string `gorm:"column:registrars" json:"registrars"`
  202. QrCode string `gorm:"column:qr_code" json:"qr_code"`
  203. BindingState int64 `gorm:"column:binding_state" json:"binding_state"`
  204. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"`
  205. PresentHistory string `gorm:"column:present_history" json:"present_history"`
  206. PastHistory string `gorm:"column:past_history" json:"past_history"`
  207. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  208. Pulse int64 `gorm:"column:pulse" json:"pulse"`
  209. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"`
  210. Sbp int64 `gorm:"column:sbp" json:"sbp"`
  211. Dbp int64 `gorm:"column:dbp" json:"dbp"`
  212. Status int64 `gorm:"column:status" json:"status"`
  213. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  214. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  215. Nation string `gorm:"column:nation" json:"nation"`
  216. NativePlace string `gorm:"column:native_place" json:"native_place"`
  217. Age int64 `gorm:"column:age" json:"age"`
  218. PatientLapseto PatientLapseto `gorm:"ForeignKey:PatientId,LapsetoType;AssociationForeignKey:ID,Lapseto" json:"patient_lapseto"`
  219. InfectiousDiseases []*InfectiousDiseases `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"infectious_diseases"`
  220. }
  221. func (Patients) TableName() string {
  222. return "xt_patients"
  223. }
  224. type InfectiousDiseases struct {
  225. ID int64 `gorm:"column:id" json:"id" form:"id"`
  226. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  227. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  228. Status int64 `gorm:"column:status" json:"status" form:"status"`
  229. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  230. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  231. }
  232. func (InfectiousDiseases) TableName() string {
  233. return "xt_patients_infectious_diseases"
  234. }
  235. type Device struct {
  236. ID int64 `gorm:"column:id" json:"id"`
  237. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  238. DeviceType int64 `gorm:"column:device_type" json:"device_type"`
  239. DmId int64 `gorm:"column:dm_id" json:"dm_id"`
  240. WteId int64 `gorm:"column:wte_id" json:"wte_id"`
  241. SerialNumber string `gorm:"column:serial_number" json:"serial_number"`
  242. Name string `gorm:"column:name" json:"name"`
  243. Model string `gorm:"column:model" json:"model"`
  244. DeviceNumberId int64 `gorm:"column:device_number_id" json:"device_number_id"`
  245. DeviceNumber string `gorm:"column:device_number" json:"device_number"`
  246. DeviceZoneId int64 `gorm:"column:device_zone_id" json:"device_zone_id"`
  247. DeviceGroupId int64 `gorm:"column:device_group_id" json:"device_group_id"`
  248. Status int64 `gorm:"column:status" json:"status"`
  249. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  250. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  251. }
  252. func (Device) TableName() string {
  253. return "xt_device"
  254. }
  255. type DeviceNumber struct {
  256. ID int64 `gorm:"column:id" json:"id"`
  257. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  258. Number string `gorm:"column:number" json:"number"`
  259. GroupId int64 `gorm:"column:group_id" json:"group_id"`
  260. ZoneId int64 `gorm:"column:zone_id" json:"zone_id"`
  261. Status int64 `gorm:"column:status" json:"status"`
  262. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  263. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  264. }
  265. func (DeviceNumber) TableName() string {
  266. return "xt_device_number"
  267. }
  268. // type DeviceZone struct {
  269. // ID int64 `gorm:"column:id" json:"id"`
  270. // OrgId int64 `gorm:"column:org_id" json:"org_id"`
  271. // Name string `gorm:"column:name" json:"name"`
  272. // Type int64 `gorm:"column:type" json:"type"`
  273. // Status int64 `gorm:"column:status" json:"status"`
  274. // Ctime int64 `gorm:"column:ctime" json:"ctime"`
  275. // Mtime int64 `gorm:"column:mtime" json:"mtime"`
  276. // }
  277. // func (DeviceZone) TableName() string {
  278. // return "xt_device_zone"
  279. // }
  280. type Schedule struct {
  281. ID int64 `gorm:"column:id" json:"id"`
  282. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  283. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  284. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  285. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  286. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  287. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  288. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week"`
  289. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  290. Status int64 `gorm:"column:status" json:"status"`
  291. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  292. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  293. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  294. }
  295. func (Schedule) TableName() string {
  296. return "xt_schedule"
  297. }
  298. type DialysisPrescription struct {
  299. ID int64 `gorm:"column:id" json:"id"`
  300. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  301. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  302. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  303. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  304. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  305. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  306. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  307. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  308. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  309. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  310. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  311. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  312. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  313. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  314. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  315. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  316. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  317. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  318. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  319. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  320. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  321. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  322. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  323. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  324. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  325. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  326. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  327. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  328. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  329. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  330. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  331. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  332. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  333. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  334. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  335. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  336. Creater int64 `gorm:"column:creater" json:"creater"`
  337. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  338. Remark string `gorm:"column:remark" json:"remark"`
  339. Status int64 `gorm:"column:status" json:"status"`
  340. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  341. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  342. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  343. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  344. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  345. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  346. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  347. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  348. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  349. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  350. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  351. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  352. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  353. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  354. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  355. Jms int64 `gorm:"column:jms" json:"jms"`
  356. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  357. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  358. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  359. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  360. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  361. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  362. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  363. Injector int64 `gorm:"column:injector" json:"injector"`
  364. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  365. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  366. Package int64 `gorm:"column:package" json:"package"`
  367. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  368. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:PatientId,AssessmentDate;AssociationForeignKey:PatientId,RecordDate" json:"before"`
  369. DialysisOrder DialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,RecordDate" json:"order"`
  370. }
  371. func (DialysisPrescription) TableName() string {
  372. return "xt_dialysis_prescription"
  373. }
  374. type DoctorAdvice struct {
  375. ID int64 `gorm:"column:id" json:"id"`
  376. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  377. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  378. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  379. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date"`
  380. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  381. AdviceName string `gorm:"column:advice_name" json:"advice_name"`
  382. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc"`
  383. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date"`
  384. SingleDose float64 `gorm:"column:single_dose" json:"single_dose"`
  385. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit"`
  386. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number"`
  387. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit"`
  388. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way"`
  389. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency"`
  390. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor"`
  391. Status int64 `gorm:"column:status" json:"status"`
  392. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  393. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  394. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm"`
  395. Remark string `gorm:"column:remark" json:"remark"`
  396. StopTime int64 `gorm:"column:stop_time" json:"stop_time"`
  397. StopReason string `gorm:"column:stop_reason" json:"stop_reason"`
  398. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor"`
  399. StopState int64 `gorm:"column:stop_state" json:"stop_state"`
  400. ParentId int64 `gorm:"column:parent_id" json:"parent_id"`
  401. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time"`
  402. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff"`
  403. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state"`
  404. Checker int64 `gorm:"column:checker" json:"checker"`
  405. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  406. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  407. CheckTime int64 `gorm:"column:check_time" json:"check_time"`
  408. CheckState int64 `gorm:"column:check_state" json:"check_state"`
  409. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec"`
  410. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit"`
  411. Groupno int64 `gorm:"column:groupno" json:"groupno"`
  412. }
  413. func (DoctorAdvice) TableName() string {
  414. return "xt_doctor_advice"
  415. }
  416. type DoctorAdviceTemplate struct {
  417. ID int64 `gorm:"column:id" json:"id" form:"id"`
  418. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  419. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  420. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  421. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  422. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  423. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  424. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  425. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  426. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  427. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  428. Status int64 `gorm:"column:status" json:"status" form:"status"`
  429. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  430. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  431. TemplateId int64 `gorm:"column:template_id" json:"template_id"`
  432. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  433. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  434. ParentId int64 `gorm:"column:parent_id" json:"parent_id"`
  435. AdviceType int64 `gorm:"column:advice_type" json:"advice_type"`
  436. DayCount int64 `gorm:"column:day_count" json:"day_count"`
  437. WeekDays string `gorm:"column:week_days" json:"week_days"`
  438. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type"`
  439. SubDoctorAdviceTemplate []*DoctorAdviceTemplate `gorm:"ForeignKey:ParentId;AssociationForeignKey:ID" json:"child"`
  440. }
  441. func (DoctorAdviceTemplate) TableName() string {
  442. return "xt_doctor_advice_template"
  443. }
  444. type AssessmentAfterDislysis struct {
  445. ID int64 `gorm:"column:id" json:"id"`
  446. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  447. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  448. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  449. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  450. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  451. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  452. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  453. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  454. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  455. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  456. ActualUltrafiltration float64 `gorm:"column:actual_ultrafiltration" json:"actual_ultrafiltration"`
  457. ActualDisplacement float64 `gorm:"column:actual_displacement" json:"actual_displacement"`
  458. ActualTreatmentHour int64 `gorm:"column:actual_treatment_hour" json:"actual_treatment_hour"`
  459. ActualTreatmentMinute int64 `gorm:"column:actual_treatment_minute" json:"actual_treatment_minute"`
  460. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  461. WeightAfter float64 `gorm:"column:weight_after" json:"weight_after"`
  462. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss"`
  463. Cruor string `gorm:"column:cruor" json:"cruor"`
  464. SymptomAfterDialysis string `gorm:"column:symptom_after_dialysis" json:"symptom_after_dialysis"`
  465. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  466. Catheter string `gorm:"column:catheter" json:"catheter"`
  467. Complication string `gorm:"column:complication" json:"complication"`
  468. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  469. Remark string `gorm:"column:remark" json:"remark"`
  470. // DialysisIntakes int64 `gorm:"column:dialysis_intakes" json:"dialysis_intakes"`
  471. // DialysisIntakesFeed int64 `gorm:"column:dialysis_intakes_feed" json:"dialysis_intakes_feed"`
  472. // DialysisIntakesTransfusion int64 `gorm:"column:dialysis_intakes_transfusion" json:"dialysis_intakes_transfusion"`
  473. // DialysisIntakesBloodTransfusion int64 `gorm:"column:dialysis_intakes_blood_transfusion" json:"dialysis_intakes_blood_transfusion"`
  474. // DialysisIntakesWashpipe int64 `gorm:"column:dialysis_intakes_washpipe" json:"dialysis_intakes_washpipe"`
  475. Ktv string `gorm:"column:ktv" json:"ktv"`
  476. Urr string `gorm:"column:urr" json:"urr"`
  477. Status int64 `gorm:"column:status" json:"status"`
  478. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  479. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  480. Creater int64 `gorm:"column:creater" json:"creater"`
  481. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  482. BloodAccessPartId int64 `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  483. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  484. PuncturePointOozingBlood int64 `gorm:"column:puncture_point_oozing_blood" json:"puncture_point_oozing_blood"`
  485. PuncturePointHaematoma int64 `gorm:"column:puncture_point_haematoma" json:"puncture_point_haematoma"`
  486. InternalFistulaTremorAc int64 `gorm:"column:internal_fistula_tremor_ac" json:"internal_fistula_tremor_ac"`
  487. PatientGose int64 `gorm:"column:patient_gose" json:"patient_gose"`
  488. InpatientDepartment string `gorm:"column:inpatient_department" json:"inpatient_department"`
  489. ObservationContent string `gorm:"column:observation_content" json:"observation_content"`
  490. ObservationContentOther string `gorm:"column:observation_content_other" json:"observation_content_other"`
  491. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  492. DialysisProcess int64 `gorm:"column:dialysis_process" json:"dialysis_process"`
  493. InAdvanceMinute float64 `gorm:"column:in_advance_minute" json:"in_advance_minute"`
  494. InAdvanceReason string `gorm:"column:in_advance_reason" json:"in_advance_reason"`
  495. HemostasisMinute int64 `gorm:"column:hemostasis_minute" json:"hemostasis_minute"`
  496. HemostasisOpera int64 `gorm:"column:hemostasis_opera" json:"hemostasis_opera"`
  497. TremorNoise int64 `gorm:"column:tremor_noise" json:"tremor_noise"`
  498. DisequilibriumSyndrome int64 `gorm:"column:disequilibrium_syndrome" json:"disequilibrium_syndrome"`
  499. DisequilibriumSyndromeOption string `gorm:"column:disequilibrium_syndrome_option" json:"disequilibrium_syndrome_option"`
  500. ArterialTube int64 `gorm:"column:arterial_tube" json:"arterial_tube"`
  501. IntravenousTube int64 `gorm:"column:intravenous_tube" json:"intravenous_tube"`
  502. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  503. InAdvanceReasonOther string `gorm:"column:in_advance_reason_other" json:"in_advance_reason_other"`
  504. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  505. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  506. IsEat int64 `gorm:"column:is_eat" json:"is_eat"`
  507. }
  508. func (AssessmentAfterDislysis) TableName() string {
  509. return "xt_assessment_after_dislysis"
  510. }
  511. type AssessmentBeforeDislysis struct {
  512. ID int64 `gorm:"column:id" json:"id"`
  513. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  514. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  515. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  516. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  517. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  518. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  519. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  520. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  521. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  522. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  523. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  524. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency"`
  525. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way"`
  526. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before"`
  527. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight"`
  528. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before"`
  529. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain"`
  530. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering"`
  531. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount"`
  532. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase"`
  533. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis"`
  534. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis"`
  535. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula"`
  536. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin"`
  537. CatheterBend int64 `gorm:"column:catheter_bend" json:"catheter_bend"`
  538. Catheter string `gorm:"column:catheter" json:"catheter"`
  539. Complication string `gorm:"column:complication" json:"complication"`
  540. Evaluator int64 `gorm:"column:evaluator" json:"evaluator"`
  541. Creater int64 `gorm:"column:creater" json:"creater"`
  542. Remark string `gorm:"column:remark" json:"remark"`
  543. Status int64 `gorm:"column:status" json:"status"`
  544. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  545. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  546. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  547. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id"`
  548. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id"`
  549. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage"`
  550. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage"`
  551. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other"`
  552. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method"`
  553. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula"`
  554. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other"`
  555. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise"`
  556. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way"`
  557. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization"`
  558. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part"`
  559. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other"`
  560. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii"`
  561. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment"`
  562. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other"`
  563. DialysisCount string `gorm:"column:dialysis_count" json:"dialysis_count"`
  564. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor"`
  565. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time"`
  566. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  567. IsInfect int64 `gorm:"column:is_infect" json:"is_infect"`
  568. Exposed float64 `gorm:"column:exposed" json:"exposed"`
  569. Skin string `gorm:"column:skin" json:"skin"`
  570. SkinOther string `gorm:"column:skin_other" json:"skin_other"`
  571. InfectOther string `gorm:"column:infect_other" json:"infect_other"`
  572. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other"`
  573. }
  574. func (AssessmentBeforeDislysis) TableName() string {
  575. return "xt_assessment_before_dislysis"
  576. }
  577. type MonitoringRecord struct {
  578. ID int64 `gorm:"column:id" json:"id"`
  579. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  580. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  581. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  582. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  583. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  584. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  585. BreathingRate string `gorm:"column:breathing_rate" json:"breathing_rate"`
  586. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  587. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  588. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  589. Pic string `gorm:"column:pic" json:"pic"`
  590. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  591. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  592. VenousPressureUnit string `gorm:"column:venous_pressure_unit" json:"venous_pressure_unit"`
  593. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  594. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  595. TransmembranePressureUnit string `gorm:"column:transmembrane_pressure_unit" json:"transmembrane_pressure_unit"`
  596. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  597. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  598. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  599. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  600. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  601. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  602. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  603. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  604. Symptom string `gorm:"column:symptom" json:"symptom"`
  605. Dispose string `gorm:"column:dispose" json:"dispose"`
  606. Result string `gorm:"column:result" json:"result"`
  607. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  608. Status int64 `gorm:"column:status" json:"status"`
  609. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  610. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  611. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  612. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  613. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  614. DialysisOrder DialysisOrder `gorm:"ForeignKey:PatientId,DialysisDate;AssociationForeignKey:PatientId,MonitoringDate" json:"order"`
  615. }
  616. func (MonitoringRecord) TableName() string {
  617. return "xt_monitoring_record"
  618. }
  619. type PatientLapseto struct {
  620. ID int64 `gorm:"column:id" json:"id"`
  621. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  622. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type"`
  623. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time"`
  624. Status int64 `gorm:"column:status" json:"status"`
  625. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  626. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  627. }
  628. func (PatientLapseto) TableName() string {
  629. return "xt_patient_lapseto"
  630. }
  631. type XtPatientAllergic struct {
  632. ID int64 `gorm:"column:id" json:"id" form:"id"`
  633. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  634. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  635. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  636. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  637. PatientSource int64 `gorm:"column:patient_source" json:"patient_source" form:"patient_source"`
  638. Status int64 `gorm:"column:status" json:"status" form:"status"`
  639. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  640. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  641. Remake string `gorm:"column:remake" json:"remake" form:"remake"`
  642. PatientAddress string `gorm:"column:patient_address" json:"patient_address" form:"patient_address"`
  643. }
  644. func (XtPatientAllergic) TableName() string {
  645. return "xt_patient_allergic"
  646. }
  647. type DialysisOrder struct {
  648. ID int64 `gorm:"column:id" json:"id"`
  649. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  650. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  651. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  652. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  653. Stage int64 `gorm:"column:stage" json:"stage"`
  654. Remark string `gorm:"column:remark" json:"remark"`
  655. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  656. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  657. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  658. Status int64 `gorm:"column:status" json:"status"`
  659. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  660. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  661. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  662. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  663. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  664. Creator int64 `gorm:"column:creator" json:"creator"`
  665. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  666. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  667. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  668. }
  669. func (DialysisOrder) TableName() string {
  670. return "xt_dialysis_order"
  671. }
  672. type VMDialysisOrder struct {
  673. ID int64 `gorm:"column:id" json:"id"`
  674. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  675. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  676. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  677. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  678. Stage int64 `gorm:"column:stage" json:"stage"`
  679. Remark string `gorm:"column:remark" json:"remark"`
  680. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  681. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  682. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse"`
  683. Status int64 `gorm:"column:status" json:"status"`
  684. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  685. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  686. StartTime int64 `gorm:"column:start_time" json:"start_time"`
  687. EndTime int64 `gorm:"column:end_time" json:"end_time"`
  688. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse"`
  689. Creator int64 `gorm:"column:creator" json:"creator"`
  690. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  691. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator"`
  692. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier"`
  693. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  694. VMDialysisPrescription VMDialysisPrescription `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"prescription"`
  695. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"before"`
  696. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"after"`
  697. Schedule Schedule `gorm:"ForeignKey:ScheduleDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"schedule"`
  698. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:DialysisDate,PatientID" json:"monitor"`
  699. }
  700. func (VMDialysisOrder) TableName() string {
  701. return "xt_dialysis_order"
  702. }
  703. type VMSchedule struct {
  704. ID int64 `gorm:"column:id" json:"id"`
  705. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  706. PartitionId int64 `gorm:"column:partition_id" json:"partition_id"`
  707. BedId int64 `gorm:"column:bed_id" json:"bed_id"`
  708. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  709. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date"`
  710. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type"`
  711. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week"`
  712. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  713. Status int64 `gorm:"column:status" json:"status"`
  714. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  715. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  716. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId" json:"device"`
  717. VMDialysisPrescription VMDialysisPrescription `gorm:"ForeignKey:RecordDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"prescription"`
  718. AssessmentBeforeDislysis AssessmentBeforeDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"before"`
  719. AssessmentAfterDislysis AssessmentAfterDislysis `gorm:"ForeignKey:AssessmentDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"after"`
  720. DialysisOrder DialysisOrder `gorm:"ForeignKey:DialysisDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"order"`
  721. MonitoringRecord []MonitoringRecord `gorm:"ForeignKey:MonitoringDate,PatientID;AssociationForeignKey:ScheduleDate,PatientID" json:"monitor"`
  722. }
  723. func (VMSchedule) TableName() string {
  724. return "xt_schedule"
  725. }
  726. type VMDialysisPrescription struct {
  727. ID int64 `gorm:"column:id" json:"id"`
  728. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  729. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  730. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  731. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  732. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  733. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  734. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  735. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  736. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  737. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  738. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  739. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  740. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  741. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  742. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  743. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  744. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  745. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  746. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  747. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  748. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  749. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  750. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  751. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  752. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  753. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  754. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  755. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  756. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  757. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  758. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  759. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  760. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  761. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  762. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  763. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  764. Creater int64 `gorm:"column:creater" json:"creater"`
  765. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  766. Remark string `gorm:"column:remark" json:"remark"`
  767. Status int64 `gorm:"column:status" json:"status"`
  768. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  769. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  770. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  771. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  772. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  773. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  774. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  775. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  776. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  777. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  778. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  779. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  780. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  781. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  782. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  783. Jms int64 `gorm:"column:jms" json:"jms"`
  784. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  785. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  786. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  787. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  788. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  789. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  790. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  791. Injector int64 `gorm:"column:injector" json:"injector"`
  792. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  793. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  794. Package int64 `gorm:"column:package" json:"package"`
  795. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  796. }
  797. func (VMDialysisPrescription) TableName() string {
  798. return "xt_dialysis_prescription"
  799. }
  800. type DeviceInformation struct {
  801. ID int64 `gorm:"column:id" json:"id" form:"id"`
  802. Date int64 `gorm:"column:date" json:"date" form:"date"`
  803. Class int64 `gorm:"column:class" json:"class" form:"class"`
  804. Zone int64 `gorm:"column:zone" json:"zone" form:"zone"`
  805. BedNumber int64 `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  806. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  807. Contagion string `gorm:"column:contagion" json:"contagion" form:"contagion"`
  808. DialysisMode int64 `gorm:"column:dialysis_mode" json:"dialysis_mode" form:"dialysis_mode"`
  809. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  810. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  811. DialysisHour string `gorm:"column:dialysis_hour" json:"dialysis_hour" form:"dialysis_hour"`
  812. Hyperfiltratio float64 `gorm:"column:hyperfiltratio" json:"hyperfiltratio" form:"hyperfiltratio"`
  813. WeightLoss float64 `gorm:"column:weight_loss" json:"weight_loss" form:"weight_loss"`
  814. WarningValue string `gorm:"column:warning_value" json:"warning_value" form:"warning_value"`
  815. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  816. Move int64 `gorm:"column:move" json:"move" form:"move"`
  817. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  818. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  819. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  820. DisinfectType int64 `gorm:"column:disinfect_type" json:"disinfect_type" form:"disinfect_type"`
  821. DisinfectantType int64 `gorm:"column:disinfectant_type" json:"disinfectant_type" form:"disinfectant_type"`
  822. Disinfection int64 `gorm:"column:disinfection" json:"disinfection" form:"disinfection"`
  823. MachineRun int64 `gorm:"column:machine_run" json:"machine_run" form:"machine_run"`
  824. FluidPath int64 `gorm:"column:fluid_path" json:"fluid_path" form:"fluid_path"`
  825. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  826. DisinfectionStatus int64 `gorm:"column:disinfection_status" json:"disinfection_status" form:"disinfection_status"`
  827. DisinfectionResidue int64 `gorm:"column:disinfection_residue" json:"disinfection_residue" form:"disinfection_residue"`
  828. LongTime string `gorm:"column:long_time" json:"long_time" form:"long_time"`
  829. DisinfecStartime int64 `gorm:"column:disinfec_startime" json:"disinfec_startime" form:"disinfec_startime"`
  830. DisinfecEndtime int64 `gorm:"column:disinfec_endtime" json:"disinfec_endtime" form:"disinfec_endtime"`
  831. DialysisChecked int64 `gorm:"column:dialysis_checked" json:"dialysis_checked" form:"dialysis_checked"`
  832. DialysisName int64 `gorm:"column:dialysis_name" json:"dialysis_name" form:"dialysis_name"`
  833. Norms string `gorm:"column:norms" json:"norms" form:"norms"`
  834. DialysisConcentration int64 `gorm:"column:dialysis_concentration" json:"dialysis_concentration" form:"dialysis_concentration"`
  835. GermChecked int64 `gorm:"column:germ_checked" json:"germ_checked" form:"germ_checked"`
  836. GermName int64 `gorm:"column:germ_name" json:"germ_name" form:"germ_name"`
  837. GermNumber string `gorm:"column:germ_number" json:"germ_number" form:"germ_number"`
  838. Clean int64 `gorm:"column:clean" json:"clean" form:"clean"`
  839. SignName int64 `gorm:"column:sign_name" json:"sign_name" form:"sign_name"`
  840. Status int64 `gorm:"column:status" json:"status" form:"status"`
  841. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  842. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  843. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  844. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  845. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  846. Stime int64 `gorm:"column:stime" json:"stime" form:"stime"`
  847. VMDeviceAddmacher VMDeviceAddmacher `gorm:"ForeignKey:ID;AssociationForeignKey:EquimentId"`
  848. }
  849. func (DeviceInformation) TableName() string {
  850. return "xt_device_information"
  851. }
  852. type VMDeviceAddmacher struct {
  853. ID int64 `gorm:"column:id" json:"id" form:"id"`
  854. SerialNumber string `gorm:"column:serial_number" json:"serial_number" form:"serial_number"`
  855. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  856. BedNumber string `gorm:"column:bed_number" json:"bed_number" form:"bed_number"`
  857. DeviceName string `gorm:"column:device_name" json:"device_name" form:"device_name"`
  858. ManufactureFactory string `gorm:"column:manufacture_factory" json:"manufacture_factory" form:"manufacture_factory"`
  859. ServiceManufacturer string `gorm:"column:service_manufacturer" json:"service_manufacturer" form:"service_manufacturer"`
  860. UnitType int64 `gorm:"column:unit_type" json:"unit_type" form:"unit_type"`
  861. UseSection string `gorm:"column:use_section" json:"use_section" form:"use_section"`
  862. SectionNumber string `gorm:"column:section_number" json:"section_number" form:"section_number"`
  863. BuyDate int64 `gorm:"column:buy_date" json:"buy_date" form:"buy_date"`
  864. InstallDate int64 `gorm:"column:install_date" json:"install_date" form:"install_date"`
  865. StartDate int64 `gorm:"column:start_date" json:"start_date" form:"start_date"`
  866. MaintenaceEngineer string `gorm:"column:maintenace_engineer" json:"maintenace_engineer" form:"maintenace_engineer"`
  867. Telephone string `gorm:"column:telephone" json:"telephone" form:"telephone"`
  868. GuaranteeDate string `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  869. MachineStatus int64 `gorm:"column:machine_status" json:"machine_status" form:"machine_status"`
  870. UserTotal string `gorm:"column:user_total" json:"user_total" form:"user_total"`
  871. DisinfectionMode int64 `gorm:"column:disinfection_mode" json:"disinfection_mode" form:"disinfection_mode"`
  872. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  873. RubbishDate int64 `gorm:"column:rubbish_date" json:"rubbish_date" form:"rubbish_date"`
  874. RubbishReason int64 `gorm:"column:rubbish_reason" json:"rubbish_reason" form:"rubbish_reason"`
  875. UserYear string `gorm:"column:user_year" json:"user_year" form:"user_year"`
  876. WorkTime string `gorm:"column:work_time" json:"work_time" form:"work_time"`
  877. ReversMode int64 `gorm:"column:revers_mode" json:"revers_mode" form:"revers_mode"`
  878. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  879. Status int64 `gorm:"column:status" json:"status" form:"status"`
  880. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  881. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  882. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  883. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  884. DeviceNumber DeviceNumber `gorm:"ForeignKey:ID;AssociationForeignKey:BedId"`
  885. }
  886. func (VMDeviceAddmacher) TableName() string {
  887. return "xt_device_addmacher"
  888. }
  889. type DevicePlan struct {
  890. ID int64 `gorm:"column:id" json:"id" form:"id"`
  891. DeviceType int64 `gorm:"column:device_type" json:"device_type" form:"device_type"`
  892. DisinfecTime int64 `gorm:"column:disinfec_time" json:"disinfec_time" form:"disinfec_time"`
  893. Time int64 `gorm:"column:time" json:"time" form:"time"`
  894. Classtime int64 `gorm:"column:classtime" json:"classtime" form:"classtime"`
  895. Way int64 `gorm:"column:way" json:"way" form:"way"`
  896. MachineDisinfectant int64 `gorm:"column:machine_disinfectant" json:"machine_disinfectant" form:"machine_disinfectant"`
  897. DisinfectanWay int64 `gorm:"column:disinfectan_way" json:"disinfectan_way" form:"disinfectan_way"`
  898. Disinfectant int64 `gorm:"column:disinfectant" json:"disinfectant" form:"disinfectant"`
  899. Status int64 `gorm:"column:status" json:"status" form:"status"`
  900. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  901. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  902. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  903. EquimentId int64 `gorm:"column:equiment_id" json:"equiment_id" form:"equiment_id"`
  904. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  905. VMDeviceAddmacher VMDeviceAddmacher `gorm:"ForeignKey:ID;AssociationForeignKey:EquimentId"`
  906. }
  907. func (DevicePlan) TableName() string {
  908. return "xt_device_plan"
  909. }
  910. type DeviceRepair struct {
  911. ID int64 `gorm:"column:id" json:"id" form:"id"`
  912. GuaranteeDate int64 `gorm:"column:guarantee_date" json:"guarantee_date" form:"guarantee_date"`
  913. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  914. ArriveTime int64 `gorm:"column:arrive_time" json:"arrive_time" form:"arrive_time"`
  915. FinishTime int64 `gorm:"column:finish_time" json:"finish_time" form:"finish_time"`
  916. TotalDistance string `gorm:"column:total_distance" json:"total_distance" form:"total_distance"`
  917. FailureStage int64 `gorm:"column:failure_stage" json:"failure_stage" form:"failure_stage"`
  918. FaultDescription string `gorm:"column:fault_description" json:"fault_description" form:"fault_description"`
  919. CauseAnalysis string `gorm:"column:cause_analysis" json:"cause_analysis" form:"cause_analysis"`
  920. TreatmentProcess string `gorm:"column:treatment_process" json:"treatment_process" form:"treatment_process"`
  921. Images string `gorm:"column:images" json:"images" form:"images"`
  922. Exclude int64 `gorm:"column:exclude" json:"exclude" form:"exclude"`
  923. Reason string `gorm:"column:reason" json:"reason" form:"reason"`
  924. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  925. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  926. Status int64 `gorm:"column:status" json:"status" form:"status"`
  927. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  928. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  929. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  930. CodeInformation string `gorm:"column:code_information" json:"code_information" form:"code_information"`
  931. ImageName string `gorm:"column:image_name" json:"image_name" form:"image_name"`
  932. VMDeviceAddmacher VMDeviceAddmacher `gorm:"ForeignKey:ID;AssociationForeignKey:EquitmentId"`
  933. }
  934. func (DeviceRepair) TableName() string {
  935. return "xt_device_repair"
  936. }
  937. type XtInspectionReference struct {
  938. ID int64 `gorm:"column:id" json:"id" form:"id"`
  939. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  940. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  941. Project string `gorm:"column:project" json:"project" form:"project"`
  942. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  943. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  944. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  945. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  946. Item string `gorm:"column:item" json:"item" form:"item"`
  947. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  948. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  949. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  950. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  951. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  952. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  953. Status int64 `gorm:"column:status" json:"status" form:"status"`
  954. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  955. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  956. }
  957. func (XtInspectionReference) TableName() string {
  958. return "xt_inspection_reference"
  959. }
  960. type XtInspection struct {
  961. ID int64 `gorm:"column:id" json:"id" form:"id"`
  962. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  963. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  964. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  965. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  966. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  967. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  968. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  969. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  970. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  971. Status int64 `gorm:"column:status" json:"status" form:"status"`
  972. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  973. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  974. Patients Patients `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId"`
  975. XtInspectionReference XtInspectionReference `gorm:"ForeignKey:ProjectId,ItemId;AssociationForeignKey:ProjectId,ItemId;"`
  976. }
  977. func (XtInspection) TableName() string {
  978. return "xt_inspection"
  979. }
  980. type XtDeviceCulture struct {
  981. ID int64 `gorm:"column:id" json:"id" form:"id"`
  982. SpelingDate int64 `gorm:"column:speling_date" json:"speling_date" form:"speling_date"`
  983. Specimen int64 `gorm:"column:specimen" json:"specimen" form:"specimen"`
  984. ConcentrateNoa string `gorm:"column:concentrate_noa" json:"concentrate_noa" form:"concentrate_noa"`
  985. ConcentrateNob string `gorm:"column:concentrate_nob" json:"concentrate_nob" form:"concentrate_nob"`
  986. SamplingLocationa int64 `gorm:"column:sampling_locationa" json:"sampling_locationa" form:"sampling_locationa"`
  987. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  988. Sampler int64 `gorm:"column:sampler" json:"sampler" form:"sampler"`
  989. ReportingDate int64 `gorm:"column:reporting_date" json:"reporting_date" form:"reporting_date"`
  990. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  991. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  992. Status int64 `gorm:"column:status" json:"status" form:"status"`
  993. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  994. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  995. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  996. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  997. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  998. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  999. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1000. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1001. }
  1002. func (XtDeviceCulture) TableName() string {
  1003. return "xt_device_culture"
  1004. }
  1005. type XtDeviceDialysate struct {
  1006. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1007. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1008. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1009. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1010. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1011. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1012. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1013. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1014. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1015. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1016. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1017. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1018. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1019. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1020. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1021. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1022. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1023. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1024. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1025. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1026. }
  1027. func (XtDeviceDialysate) TableName() string {
  1028. return "xt_device_dialysate"
  1029. }
  1030. type XtAerialDetection struct {
  1031. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1032. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1033. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1034. Class int64 `gorm:"column:class" json:"class" form:"class"`
  1035. DisinfectionMethods string `gorm:"column:disinfection_methods" json:"disinfection_methods" form:"disinfection_methods"`
  1036. DisinfectionFluid string `gorm:"column:disinfection_fluid" json:"disinfection_fluid" form:"disinfection_fluid"`
  1037. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1038. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1039. DetectionTime int64 `gorm:"column:detection_time" json:"detection_time" form:"detection_time"`
  1040. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  1041. UploadTime int64 `gorm:"column:upload_time" json:"upload_time" form:"upload_time"`
  1042. CheckOut int64 `gorm:"column:check_out" json:"check_out" form:"check_out"`
  1043. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1044. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1045. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1046. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1047. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1048. }
  1049. func (XtAerialDetection) TableName() string {
  1050. return "xt_aerial_detection"
  1051. }
  1052. type XtBodyDetection struct {
  1053. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1054. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1055. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1056. Class int64 `gorm:"column:class" json:"class" form:"class"`
  1057. DisinfectionMethods string `gorm:"column:disinfection_methods" json:"disinfection_methods" form:"disinfection_methods"`
  1058. DisinfectionFluid string `gorm:"column:disinfection_fluid" json:"disinfection_fluid" form:"disinfection_fluid"`
  1059. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1060. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1061. DetectionTime int64 `gorm:"column:detection_time" json:"detection_time" form:"detection_time"`
  1062. DetectionResult string `gorm:"column:detection_result" json:"detection_result" form:"detection_result"`
  1063. UploadTime int64 `gorm:"column:upload_time" json:"upload_time" form:"upload_time"`
  1064. CheckOut int64 `gorm:"column:check_out" json:"check_out" form:"check_out"`
  1065. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1066. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1067. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1068. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1069. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1070. }
  1071. func (XtBodyDetection) TableName() string {
  1072. return "xt_body_detection"
  1073. }
  1074. type XtDeviceWater struct {
  1075. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1076. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1077. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1078. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1079. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1080. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1081. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1082. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1083. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1084. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1085. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1086. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1087. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1088. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1089. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1090. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1091. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1092. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1093. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1094. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1095. }
  1096. func (XtDeviceWater) TableName() string {
  1097. return "xt_device_water"
  1098. }
  1099. //透析液离子浓度检测
  1100. type DeviceIon struct {
  1101. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1102. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1103. Samplerc int64 `gorm:"column:samplerc" json:"samplerc" form:"samplerc"`
  1104. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1105. ConcentrateNof string `gorm:"column:concentrate_nof" json:"concentrate_nof" form:"concentrate_nof"`
  1106. ConcentrateNog string `gorm:"column:concentrate_nog" json:"concentrate_nog" form:"concentrate_nog"`
  1107. DateReportc int64 `gorm:"column:date_reportc" json:"date_reportc" form:"date_reportc"`
  1108. ActualNa string `gorm:"column:actual_na" json:"actual_na" form:"actual_na"`
  1109. ActualPna string `gorm:"column:actual_pna" json:"actual_pna" form:"actual_pna"`
  1110. ActualK string `gorm:"column:actual_k" json:"actual_k" form:"actual_k"`
  1111. ActualCa string `gorm:"column:actual_ca" json:"actual_ca" form:"actual_ca"`
  1112. ActualCi string `gorm:"column:actual_ci" json:"actual_ci" form:"actual_ci"`
  1113. ActualHco string `gorm:"column:actual_hco" json:"actual_hco" form:"actual_hco"`
  1114. ActualMg string `gorm:"column:actual_mg" json:"actual_mg" form:"actual_mg"`
  1115. ActualPh string `gorm:"column:actual_ph" json:"actual_ph" form:"actual_ph"`
  1116. Remakes string `gorm:"column:remakes" json:"remakes" form:"remakes"`
  1117. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1118. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1119. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1120. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1121. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1122. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1123. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1124. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1125. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1126. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1127. }
  1128. func (DeviceIon) TableName() string {
  1129. return "xt_device_ion"
  1130. }
  1131. type XtDeviceOxygenates struct {
  1132. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1133. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1134. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1135. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1136. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1137. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1138. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1139. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1140. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1141. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1142. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1143. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1144. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1145. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1146. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1147. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1148. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1149. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1150. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1151. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1152. }
  1153. func (XtDeviceOxygenates) TableName() string {
  1154. return "xt_device_oxygenates"
  1155. }
  1156. type XtDevicePh struct {
  1157. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1158. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1159. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1160. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1161. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1162. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1163. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1164. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1165. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1166. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1167. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1168. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1169. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1170. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1171. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1172. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1173. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1174. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1175. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1176. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1177. }
  1178. func (XtDevicePh) TableName() string {
  1179. return "xt_device_ph"
  1180. }
  1181. type XtDeviceHadwater struct {
  1182. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1183. SamplingDate int64 `gorm:"column:sampling_date" json:"sampling_date" form:"sampling_date"`
  1184. Specimenb int64 `gorm:"column:specimenb" json:"specimenb" form:"specimenb"`
  1185. ConcentrateNoc string `gorm:"column:concentrate_noc" json:"concentrate_noc" form:"concentrate_noc"`
  1186. ConcentratebNod string `gorm:"column:concentrateb_nod" json:"concentrateb_nod" form:"concentrateb_nod"`
  1187. SamplingLocationb int64 `gorm:"column:sampling_locationb" json:"sampling_locationb" form:"sampling_locationb"`
  1188. DetectionUnit string `gorm:"column:detection_unit" json:"detection_unit" form:"detection_unit"`
  1189. Samplerb int64 `gorm:"column:samplerb" json:"samplerb" form:"samplerb"`
  1190. ReportingDateb int64 `gorm:"column:reporting_dateb" json:"reporting_dateb" form:"reporting_dateb"`
  1191. DetectionResultb string `gorm:"column:detection_resultb" json:"detection_resultb" form:"detection_resultb"`
  1192. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1193. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1194. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1195. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1196. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1197. EquitmentId int64 `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  1198. Bed string `gorm:"column:bed" json:"bed" form:"bed"`
  1199. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1200. PassExamination int64 `gorm:"column:pass_examination" json:"pass_examination" form:"pass_examination"`
  1201. Modifications int64 `gorm:"column:modifications" json:"modifications" form:"modifications"`
  1202. }
  1203. func (XtDeviceHadwater) TableName() string {
  1204. return "xt_device_hadwater"
  1205. }
  1206. type XtPatientVascularAccess struct {
  1207. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1208. AccessProject int64 `gorm:"column:access_project" json:"access_project" form:"access_project"`
  1209. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id" form:"blood_access_part_id"`
  1210. InflowPass string `gorm:"column:inflow_pass" json:"inflow_pass" form:"inflow_pass"`
  1211. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1212. FirstStartTime int64 `gorm:"column:first_start_time" json:"first_start_time" form:"first_start_time"`
  1213. BloodAccessPartOperaId string `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id" form:"blood_access_part_opera_id"`
  1214. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1215. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1216. UserStatus int64 `gorm:"column:user_status" json:"user_status" form:"user_status"`
  1217. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1218. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1219. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1220. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1221. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1222. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  1223. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1224. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1225. OtherVascular string `gorm:"column:other_vascular" json:"other_vascular" form:"other_vascular"`
  1226. CiType int64 `gorm:"column:ci_type" json:"ci_type" form:"ci_type"`
  1227. BloodCultupe int64 `gorm:"column:blood_cultupe" json:"blood_cultupe" form:"blood_cultupe"`
  1228. SequelaeType int64 `gorm:"column:sequelae_type" json:"sequelae_type" form:"sequelae_type"`
  1229. }
  1230. func (XtPatientVascularAccess) TableName() string {
  1231. return "xt_patient_vascular_access"
  1232. }
  1233. type App_Role struct {
  1234. Id int64 `gorm:"PRIMARY_KEY;AUTO_INCREMENT" json:"id"`
  1235. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  1236. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1237. AppId int64 `gorm:"column:app_id" json:"app_id"`
  1238. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  1239. Avatar string `json:"avatar" json:"avatar"`
  1240. UserName string `gorm:"column:user_name" json:"user_name"` // 用户名称
  1241. Intro string `json:"intro"` // 简介
  1242. UserType int8 `gorm:"column:user_type" json:"user_type"` // 用户类型(1.管理员;2.医生;3.护士;4.运营)
  1243. UserTitle int8 `gorm:"column:user_title" json:"user_title"` // 用户职称(1.医士;2.医师;3.住院医师;4.主治医师;5.副主任医师;6.主任医师;7.护士;8.护师;9.主管护师;10.副主任护师;11.主任护师;12.运营专员;13.运营主管)
  1244. Status int8 `json:"status"` // 状态 0.无效 1.有效
  1245. CreateTime int64 `gorm:"column:ctime" json:"ctime"` // 创建时间
  1246. ModifyTime int64 `gorm:"column:mtime" json:"mtime"` // 修改时间UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1247. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  1248. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  1249. IsSubSuperAdmin bool `gorm:"-" json:"is_sub_super_admin" form:"is_sub_super_admin"`
  1250. Message string `gorm:"column:message" json:"message" form:"message"`
  1251. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  1252. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1253. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1254. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  1255. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  1256. Department string `gorm:"column:department" json:"department" form:"department"`
  1257. Age int64 `gorm:"column:age" json:"age" form:"age"`
  1258. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  1259. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  1260. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  1261. Education int64 `gorm:"column:education" json:"education" form:"education"`
  1262. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  1263. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  1264. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  1265. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1266. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  1267. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  1268. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  1269. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  1270. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  1271. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1272. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  1273. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  1274. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  1275. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  1276. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  1277. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  1278. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  1279. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  1280. OutpatientIllnesscategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  1281. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  1282. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  1283. }
  1284. func (App_Role) TableName() string {
  1285. return "sgj_user_admin_role"
  1286. }
  1287. type HisPrescriptionInfo struct {
  1288. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1289. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1290. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1291. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1292. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1293. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1294. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1295. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1296. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1297. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1298. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1299. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  1300. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1301. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  1302. SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
  1303. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  1304. PrescriptionStatus int64 `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
  1305. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1306. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  1307. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  1308. }
  1309. func (HisPrescriptionInfo) TableName() string {
  1310. return "his_prescription_info"
  1311. }
  1312. type HisPrescription struct {
  1313. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1314. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1315. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1316. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1317. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1318. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1319. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1320. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1321. Number string `gorm:"column:number" json:"number" form:"number"`
  1322. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1323. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1324. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1325. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1326. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1327. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1328. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  1329. }
  1330. func (HisPrescription) TableName() string {
  1331. return "his_prescription"
  1332. }
  1333. type HisDoctorAdviceInfo struct {
  1334. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1335. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1336. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1337. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1338. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1339. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1340. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1341. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1342. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1343. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1344. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1345. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1346. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1347. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1348. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1349. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1350. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1351. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1352. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1353. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1354. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1355. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1356. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1357. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1358. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1359. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1360. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1361. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1362. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1363. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1364. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1365. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1366. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1367. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1368. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1369. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1370. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1371. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1372. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1373. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1374. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1375. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1376. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1377. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1378. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1379. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1380. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1381. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1382. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1383. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1384. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug"`
  1385. }
  1386. func (HisDoctorAdviceInfo) TableName() string {
  1387. return "his_doctor_advice_info"
  1388. }
  1389. type HisPrescriptionProject struct {
  1390. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1391. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1392. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1393. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1394. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1395. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1396. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1397. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1398. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1399. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1400. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1401. Count string `gorm:"column:count" json:"count" form:"count"`
  1402. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1403. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1404. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1405. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1406. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1407. Day string `gorm:"column:day" json:"day" form:"day"`
  1408. HisProject HisProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
  1409. GoodInfo GoodInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
  1410. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1411. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1412. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1413. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1414. ExecutionTime int64 `gborm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1415. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1416. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1417. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1418. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1419. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1420. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1421. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1422. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1423. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1424. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1425. IsCheckTeam int64 `gorm:"-" json:"is_check_team" form:"is_check_team"`
  1426. }
  1427. func (HisPrescriptionProject) TableName() string {
  1428. return "his_prescription_project"
  1429. }
  1430. type GoodInfo struct {
  1431. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1432. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  1433. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1434. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1435. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  1436. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1437. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  1438. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1439. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1440. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1441. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1442. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1443. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  1444. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  1445. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  1446. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1447. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  1448. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  1449. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  1450. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1451. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1452. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1453. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1454. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1455. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1456. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  1457. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  1458. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1459. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1460. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  1461. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  1462. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1463. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  1464. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  1465. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  1466. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1467. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1468. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  1469. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  1470. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  1471. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1472. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  1473. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  1474. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  1475. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1476. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1477. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  1478. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  1479. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1480. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  1481. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1482. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1483. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  1484. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1485. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1486. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1487. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  1488. Number string `gorm:"column:number" json:"number" form:"number"`
  1489. IsWarehouse int64 `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  1490. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  1491. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  1492. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  1493. }
  1494. func (GoodInfo) TableName() string {
  1495. return "xt_good_information"
  1496. }
  1497. type HisProject struct {
  1498. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1499. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  1500. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1501. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1502. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1503. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1504. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  1505. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  1506. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  1507. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  1508. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  1509. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1510. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1511. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  1512. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  1513. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1514. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1515. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  1516. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1517. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  1518. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  1519. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  1520. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1521. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  1522. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1523. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1524. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1525. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1526. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1527. NumberDays string `gorm:"column:number_days" json:"number_days" form:"number_days"`
  1528. Total string `gorm:"column:total" json:"total" form:"total"`
  1529. Category int64 `gorm:"column:category" json:"category" form:"category"`
  1530. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1531. SpecailProject int64 `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
  1532. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1533. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1534. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1535. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1536. }
  1537. func (HisProject) TableName() string {
  1538. return "xt_his_project"
  1539. }
  1540. type HisChargeDoctorAdviceInfo struct {
  1541. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1542. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1543. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1544. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1545. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1546. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1547. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1548. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1549. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1550. }
  1551. func (HisChargeDoctorAdviceInfo) TableName() string {
  1552. return "his_doctor_advice_info"
  1553. }
  1554. type BaseDrugLib struct {
  1555. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1556. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  1557. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1558. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1559. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  1560. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  1561. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  1562. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  1563. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1564. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  1565. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  1566. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  1567. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  1568. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  1569. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1570. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1571. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  1572. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1573. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  1574. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  1575. Number string `gorm:"column:number" json:"number" form:"number"`
  1576. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  1577. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  1578. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  1579. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1580. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1581. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  1582. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  1583. Code string `gorm:"column:code" json:"code" form:"code"`
  1584. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  1585. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1586. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  1587. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  1588. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  1589. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1590. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1591. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1592. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1593. Label int64 `gorm:"column:label" json:"label" form:"label"`
  1594. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1595. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  1596. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1597. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  1598. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  1599. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  1600. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1601. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1602. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1603. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1604. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  1605. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  1606. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1607. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  1608. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1609. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  1610. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1611. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1612. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1613. //MedicineInsurancePercentage []*MedicineInsurancePercentage `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"monitoring_record"`
  1614. }
  1615. func (BaseDrugLib) TableName() string {
  1616. return "xt_base_drug"
  1617. }
  1618. type XtHisProject struct {
  1619. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1620. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  1621. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1622. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1623. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1624. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1625. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  1626. ExecutiveSection int64 `gorm:"column:executive_section" json:"executive_section" form:"executive_section"`
  1627. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  1628. StatisticalClassification int64 `gorm:"column:statistical_classification" json:"statistical_classification" form:"statistical_classification"`
  1629. DiseaseDirectory int64 `gorm:"column:disease_directory" json:"disease_directory" form:"disease_directory"`
  1630. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1631. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1632. TubeColor int64 `gorm:"column:tube_color" json:"tube_color" form:"tube_color"`
  1633. MedicalStatus int64 `gorm:"column:medical_status" json:"medical_status" form:"medical_status"`
  1634. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1635. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1636. DefaultNumber string `gorm:"column:default_number" json:"default_number" form:"default_number"`
  1637. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1638. IsCharge int64 `gorm:"column:is_charge" json:"is_charge" form:"is_charge"`
  1639. IsEstimate int64 `gorm:"column:is_estimate" json:"is_estimate" form:"is_estimate"`
  1640. IsWorkload int64 `gorm:"column:is_workload" json:"is_workload" form:"is_workload"`
  1641. Sort string `gorm:"column:sort" json:"sort" form:"sort"`
  1642. DoctorAdvice int64 `gorm:"column:doctor_advice" json:"doctor_advice" form:"doctor_advice"`
  1643. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1644. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1645. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1646. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1647. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1648. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1649. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1650. NumberDays string `gorm:"column:number_days" json:"number_days" form:"number_days"`
  1651. Total string `gorm:"column:total" json:"total" form:"total"`
  1652. Category int64 `gorm:"column:category" json:"category" form:"category"`
  1653. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1654. SpecailProject int64 `gorm:"column:specail_project" json:"specail_project" form:"specail_project"`
  1655. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1656. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1657. }
  1658. func (XtHisProject) TableName() string {
  1659. return "xt_his_project"
  1660. }
  1661. type HisOrder struct {
  1662. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1663. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1664. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1665. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  1666. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1667. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1668. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1669. Number string `gorm:"column:number" json:"number" form:"number"`
  1670. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1671. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  1672. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  1673. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  1674. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  1675. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  1676. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  1677. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  1678. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  1679. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  1680. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  1681. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  1682. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  1683. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  1684. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  1685. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  1686. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  1687. Age float64 `gorm:"column:age" json:"age" form:"age"`
  1688. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  1689. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  1690. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  1691. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  1692. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  1693. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  1694. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  1695. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1696. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  1697. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1698. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1699. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  1700. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  1701. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  1702. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  1703. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  1704. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  1705. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  1706. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  1707. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  1708. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  1709. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  1710. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  1711. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  1712. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  1713. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  1714. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  1715. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  1716. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  1717. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  1718. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  1719. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  1720. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  1721. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  1722. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  1723. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  1724. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  1725. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  1726. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  1727. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  1728. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  1729. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  1730. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1731. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  1732. AccountPrice float64 `gorm:"column:account_price" json:"account_price" form:"account_price"`
  1733. SzChargeInfo string `gorm:"column:sz_charge_info" json:"sz_charge_info" form:"sz_charge_info"`
  1734. SzProjectInfo string `gorm:"column:sz_project_info" json:"sz_project_info" form:"sz_project_info"`
  1735. SzMedicineInsuranceInfo string `gorm:"column:sz_medicine_insurance_info" json:"sz_medicine_insurance_info" form:"sz_medicine_insurance_info"`
  1736. YiliaoNumber string `gorm:"column:yiliao_number" json:"yiliao_number" form:"yiliao_number"`
  1737. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  1738. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  1739. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  1740. OrgSetlNumber string `gorm:"column:org_setl_number" json:"org_setl_number" form:"org_setl_number"`
  1741. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  1742. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  1743. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  1744. RefundLog string `gorm:"column:refund_log" json:"refund_log" form:"refund_log"`
  1745. DetailLog string `gorm:"column:detail_log" json:"detail_log" form:"detail_log"`
  1746. RequestLog string `gorm:"column:request_log" json:"request_log" form:"request_log"`
  1747. RefundRequestLog string `gorm:"column:refund_request_log" json:"refund_request_log" form:"refund_request_log"`
  1748. HisPatient HisPatient `gorm:"ForeignKey:MdtrtId;AssociationForeignKey:Number" json:"his_patient"`
  1749. }
  1750. func (HisOrder) TableName() string {
  1751. return "his_order"
  1752. }
  1753. type HisOrderInfo struct {
  1754. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1755. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1756. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  1757. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  1758. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  1759. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  1760. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  1761. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1762. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  1763. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  1764. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  1765. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  1766. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  1767. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  1768. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  1769. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  1770. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1771. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  1772. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1773. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1774. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  1775. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  1776. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1777. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  1778. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  1779. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1780. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  1781. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1782. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1783. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  1784. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1785. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1786. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  1787. OverPricPsnPay float64 `gorm:"column:over_pric_psn_pay" json:"over_pric_psn_pay" form:"over_pric_psn_pay"`
  1788. AllowReimburse float64 `gorm:"column:allow_reimburse" json:"allow_reimburse" form:"allow_reimburse"`
  1789. HisDoctorAdviceInfo HisDoctorAdviceInfo `gorm:"ForeignKey:AdviceId;AssociationForeignKey:ID" json:"advice"`
  1790. HisPrescriptionProject HisPrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  1791. }
  1792. func (HisOrderInfo) TableName() string {
  1793. return "his_order_info"
  1794. }