patient_models.go 125KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574
  1. package models
  2. type PatientListForFaceList struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  5. }
  6. func (PatientListForFaceList) TableName() string {
  7. return "xt_patients"
  8. }
  9. type MSchedualPatientList struct {
  10. ID int64 `gorm:"column:id" json:"id" form:"id"`
  11. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  12. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  13. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  14. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  15. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  16. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  17. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  18. Age int64 `gorm:"column:age" json:"age"`
  19. Name string `gorm:"column:name" json:"name" form:"name"`
  20. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  21. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  22. TrobleShoot int64 `gorm:"column:troble_shoot" json:"troble_shoot" form:"troble_shoot"`
  23. }
  24. func (MSchedualPatientList) TableName() string {
  25. return "xt_patients"
  26. }
  27. type MDialysisOrderForList struct {
  28. ID int64 `gorm:"column:id" json:"id"`
  29. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date"`
  30. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  31. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  32. // PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id"`
  33. Stage int64 `gorm:"column:stage" json:"stage"`
  34. // Remark string `gorm:"column:remark" json:"remark"`
  35. BedID int64 `gorm:"column:bed_id" json:"bed_id"`
  36. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse"`
  37. Status int64 `gorm:"column:status" json:"status"`
  38. DeviceNumber *MDeviceNumberForList `gorm:"ForeignKey:BedID" json:"device_number"`
  39. Creator int64 `gorm:"column:creator" json:"creator"`
  40. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  41. }
  42. func (MDialysisOrderForList) TableName() string {
  43. return "xt_dialysis_order"
  44. }
  45. type VMTreatmentSummaryForList struct {
  46. ID int64 `gorm:"column:id" json:"id"`
  47. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  48. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  49. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date"`
  50. DialysisSummary string `gorm:"column:dialysis_summary" json:"dialysis_summary" form:"dialysis_summary"`
  51. }
  52. func (VMTreatmentSummaryForList) TableName() string {
  53. return "xt_treatment_summary"
  54. }
  55. type VMDoctorAdviceForList struct {
  56. ID int64 `gorm:"column:id" json:"id" form:"id"`
  57. GroupNo int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  58. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  59. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  60. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  61. Status int64 `gorm:"column:status" json:"status" form:"status"`
  62. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  63. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  64. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  65. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  66. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  67. }
  68. func (VMDoctorAdviceForList) TableName() string {
  69. return "xt_doctor_advice"
  70. }
  71. type PatientListForFace struct {
  72. ID int64 `gorm:"column:id" json:"id" form:"id"`
  73. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  74. Name string `gorm:"column:name" json:"name" form:"name"`
  75. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  76. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  77. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  78. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  79. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  80. Age int64 `gorm:"column:age" json:"age"`
  81. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  82. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  83. }
  84. func (PatientListForFace) TableName() string {
  85. return "xt_patients"
  86. }
  87. type Patients struct {
  88. ID int64 `gorm:"column:id" json:"id" form:"id"`
  89. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  90. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  91. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  92. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  93. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  94. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  95. Source int64 `gorm:"column:source" json:"source" form:"source"`
  96. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  97. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  98. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  99. Name string `gorm:"column:name" json:"name" form:"name"`
  100. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  101. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  102. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  103. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  104. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  105. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  106. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  107. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  108. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  109. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  110. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  111. Height int64 `gorm:"column:height" json:"height" form:"height"`
  112. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  113. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  114. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  115. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  116. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  117. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  118. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  119. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  120. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  121. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  122. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  123. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  124. Children int64 `gorm:"column:children" json:"children" form:"children"`
  125. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  126. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  127. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  128. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  129. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  130. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  131. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  132. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  133. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  134. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  135. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  136. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  137. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  138. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  139. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  140. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  141. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  142. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  143. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  144. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  145. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"` // 主诉
  146. PresentHistory string `gorm:"column:present_history" json:"present_history"` // 现病史
  147. PastHistory string `gorm:"column:past_history" json:"past_history"` // 既往史
  148. Temperature float64 `gorm:"column:temperature" json:"temperature"` // 体格检查-体温
  149. Pulse int64 `gorm:"column:pulse" json:"pulse"` // 体格检查-脉搏
  150. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"` // 体格检查-呼吸频率
  151. SBP int64 `gorm:"column:sbp" json:"sbp"` // 体格检查-收缩压
  152. DBP int64 `gorm:"column:dbp" json:"dbp"` // 体格检查-舒张压
  153. Status int64 `gorm:"column:status" json:"status" form:"status"`
  154. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  155. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  156. DialysisSolutions []DialysisSolution `json:"solutions" gorm:"foreignkey:PatientId"`
  157. Age int64 `gorm:"column:age" json:"age"`
  158. Schedules []Schedule `json:"schedules" gorm:"foreignkey:PatientId"`
  159. Contagions []InfectiousDiseases `json:"contagions" gorm:"foreignkey:PatientId"`
  160. Diseases []ChronicDiseases `json:"diseases" gorm:"foreignkey:PatientId"`
  161. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time"`
  162. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious"`
  163. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle"`
  164. ResponseResult string `gorm:"column:response_result" json:"response_result"`
  165. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind"`
  166. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  167. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  168. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  169. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  170. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  171. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  172. IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
  173. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  174. OutReason string `gorm:"column:out_reason" json:"out_reason" form:"out_reason"`
  175. DeathTime int64 `gorm:"column:death_time" json:"death_time" form:"death_time"`
  176. TrobleShoot int64 `gorm:"column:troble_shoot" json:"troble_shoot" form:"troble_shoot"`
  177. ContagionIds []int64 `gorm:"-"`
  178. DryWeight float64 `gorm:"-"`
  179. ZbPatientId string `gorm:"column:zb_patient_id" json:"zb_patient_id" form:"zb_patient_id"`
  180. }
  181. func (Patients) TableName() string {
  182. return "xt_patients"
  183. }
  184. type ChronicDiseases struct {
  185. ID int64 `gorm:"column:id" json:"id" form:"id"`
  186. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  187. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  188. Status int64 `gorm:"column:status" json:"status" form:"status"`
  189. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  190. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  191. }
  192. func (ChronicDiseases) TableName() string {
  193. return "xt_patients_chronic_diseases"
  194. }
  195. type InfectiousDiseases struct {
  196. ID int64 `gorm:"column:id" json:"id" form:"id"`
  197. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  198. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  199. Status int64 `gorm:"column:status" json:"status" form:"status"`
  200. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  201. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  202. }
  203. func (InfectiousDiseases) TableName() string {
  204. return "xt_patients_infectious_diseases"
  205. }
  206. type DialysisPrescription struct {
  207. ID int64 `gorm:"column:id" json:"id"`
  208. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  209. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  210. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  211. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  212. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  213. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  214. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  215. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  216. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  217. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  218. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  219. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  220. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  221. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  222. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  223. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  224. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  225. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  226. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  227. //DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  228. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  229. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  230. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  231. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  232. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  233. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  234. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  235. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  236. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  237. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  238. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  239. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  240. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  241. Remark string `gorm:"column:remark" json:"remark"`
  242. Status int64 `gorm:"column:status" json:"status"`
  243. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  244. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  245. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  246. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  247. Creater int64 `gorm:"column:creater" json:"creater"`
  248. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  249. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  250. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  251. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  252. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  253. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  254. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  255. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  256. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  257. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  258. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  259. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  260. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  261. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  262. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  263. Jms int64 `gorm:"column:jms" json:"jms"`
  264. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  265. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  266. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  267. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  268. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  269. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  270. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  271. Injector int64 `gorm:"column:injector" json:"injector"`
  272. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  273. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  274. Package int64 `gorm:"column:package" json:"package"`
  275. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  276. UserAdminRole UserAdminRole `json:"role" gorm:"foreignkey:AdminUserId;AssociationForeignKey:Creater;"`
  277. PreImpulse float64 `gorm:"column:pre_impulse" json:"pre_impulse" form:"pre_impulse"`
  278. AnticoagulantStopTimeMin int64 `gorm:"column:anticoagulant_stop_time_min" json:"anticoagulant_stop_time_min" form:"anticoagulant_stop_time_min"`
  279. AnticoagulantStopTimeHour int64 `gorm:"column:anticoagulant_stop_time_hour" json:"anticoagulant_stop_time_hour" form:"anticoagulant_stop_time_hour"`
  280. Blood string `gorm:"column:blood" json:"blood"`
  281. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  282. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  283. AntioxidantCommodityName string `gorm:"column:antioxidant_commodity_name" json:"antioxidant_commodity_name" form:"antioxidant_commodity_name"`
  284. DisplaceSpeed string `gorm:"column:displace_speed" json:"displace_speed" form:"displace_speed"`
  285. Illness int64 `gorm:"column:illness" json:"illness" form:"illness"`
  286. Amylaceum string `gorm:"column:amylaceum" json:"amylaceum" form:"amylaceum"`
  287. SingleTime string `gorm:"column:single_time" json:"single_time" form:"single_time"`
  288. SingleWater string `gorm:"column:single_water" json:"single_water" form:"single_water"`
  289. ReplacementFlow string `gorm:"column:replacement_flow" json:"replacement_flow" form:"replacement_flow"`
  290. PlasmaSeparator string `gorm:"column:plasma_separator" json:"plasma_separator" form:"plasma_separator"`
  291. BilirubinAdsorptionColumn string `gorm:"column:bilirubin_adsorption_column" json:"bilirubin_adsorption_column" form:"bilirubin_adsorption_column"`
  292. OxygenUptake int64 `gorm:"column:oxygen_uptake" json:"oxygen_uptake" form:"oxygen_uptake"`
  293. OxygenFlow string `gorm:"column:oxygen_flow" json:"oxygen_flow" form:"oxygen_flow"`
  294. OxygenTime string `gorm:"column:oxygen_time" json:"oxygen_time" form:"oxygen_time"`
  295. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  296. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  297. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  298. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  299. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  300. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  301. MaxUltrafiltrationRate float64 `gorm:"column:max_ultrafiltration_rate" json:"max_ultrafiltration_rate" form:"max_ultrafiltration_rate"`
  302. }
  303. func (DialysisPrescription) TableName() string {
  304. return "xt_dialysis_prescription"
  305. }
  306. type DialysisPrescriptionList struct {
  307. ID int64 `gorm:"column:id" json:"id" form:"id"`
  308. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  309. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  310. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialyzer"`
  311. MachineType string `gorm:"column:machine_type" json:"machine_type" form:"machine_type"`
  312. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount" form:"dewater_amount"`
  313. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  314. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering" form:"prescription_dewatering"`
  315. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  316. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  317. AnticoagulantStopTimeHour int64 `gorm:"column:anticoagulant_stop_time_hour" json:"anticoagulant_stop_time_hour" form:"anticoagulant_stop_time_hour"`
  318. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  319. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  320. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
  321. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  322. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
  323. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
  324. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
  325. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  326. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total" form:"replacement_total"`
  327. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  328. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  329. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  330. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  331. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  332. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode" form:"vascular_access_mode"`
  333. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access" form:"vascular_access"`
  334. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  335. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  336. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui" form:"displace_liqui"`
  337. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  338. Sodium float64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  339. Calcium float64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  340. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  341. Glucose float64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
  342. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature" form:"dialysate_temperature"`
  343. Conductivity float64 `gorm:"column:conductivity" json:"conductivity" form:"conductivity"`
  344. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor" form:"prescription_doctor"`
  345. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  346. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  347. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  348. Status int64 `gorm:"column:status" json:"status" form:"status"`
  349. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  350. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  351. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  352. RecordId int64 `gorm:"column:record_id" json:"record_id" form:"record_id"`
  353. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  354. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation" form:"dialysate_formulation"`
  355. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid" form:"body_fluid"`
  356. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine" form:"special_medicine"`
  357. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other" form:"special_medicine_other"`
  358. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part" form:"displace_liqui_part"`
  359. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access" form:"blood_access"`
  360. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value" form:"displace_liqui_value"`
  361. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration" form:"ultrafiltration"`
  362. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other" form:"body_fluid_other"`
  363. Niprocart int64 `gorm:"column:niprocart" json:"niprocart" form:"niprocart"`
  364. Jms int64 `gorm:"column:jms" json:"jms" form:"jms"`
  365. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set" form:"fistula_needle_set"`
  366. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16" form:"fistula_needle_set_16"`
  367. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion" form:"hemoperfusion"`
  368. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised" form:"dialyser_sterilised"`
  369. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer" form:"filtryzer"`
  370. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv" form:"target_ktv"`
  371. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers" form:"dialyzers"`
  372. Injector int64 `gorm:"column:injector" json:"injector" form:"injector"`
  373. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines" form:"bloodlines"`
  374. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis" form:"tubing_hemodialysis"`
  375. Package int64 `gorm:"column:package" json:"package" form:"package"`
  376. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid" form:"a_liquid"`
  377. PreImpulse float64 `gorm:"column:pre_impulse" json:"pre_impulse" form:"pre_impulse"`
  378. AnticoagulantStopTimeMin int64 `gorm:"column:anticoagulant_stop_time_min" json:"anticoagulant_stop_time_min" form:"anticoagulant_stop_time_min"`
  379. HeparinSodium string `gorm:"column:heparin_sodium" json:"heparin_sodium" form:"heparin_sodium"`
  380. Nucleoprotamine string `gorm:"column:nucleoprotamine" json:"nucleoprotamine" form:"nucleoprotamine"`
  381. PushTheProtamine string `gorm:"column:push_the_protamine" json:"push_the_protamine" form:"push_the_protamine"`
  382. NoHeparinRemarks string `gorm:"column:no_heparin_remarks" json:"no_heparin_remarks" form:"no_heparin_remarks"`
  383. Blood string `gorm:"column:blood" json:"blood" form:"blood"`
  384. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  385. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  386. AntioxidantCommodityName string `gorm:"column:antioxidant_commodity_name" json:"antioxidant_commodity_name" form:"antioxidant_commodity_name"`
  387. DisplaceSpeed string `gorm:"column:displace_speed" json:"displace_speed" form:"displace_speed"`
  388. Illness int64 `gorm:"column:illness" json:"illness" form:"illness"`
  389. Amylaceum string `gorm:"column:amylaceum" json:"amylaceum" form:"amylaceum"`
  390. SingleTime string `gorm:"column:single_time" json:"single_time" form:"single_time"`
  391. SingleWater string `gorm:"column:single_water" json:"single_water" form:"single_water"`
  392. ReplacementFlow string `gorm:"column:replacement_flow" json:"replacement_flow" form:"replacement_flow"`
  393. PlasmaSeparator string `gorm:"column:plasma_separator" json:"plasma_separator" form:"plasma_separator"`
  394. BilirubinAdsorptionColumn string `gorm:"column:bilirubin_adsorption_column" json:"bilirubin_adsorption_column" form:"bilirubin_adsorption_column"`
  395. OxygenUptake int64 `gorm:"column:oxygen_uptake" json:"oxygen_uptake" form:"oxygen_uptake"`
  396. OxygenFlow string `gorm:"column:oxygen_flow" json:"oxygen_flow" form:"oxygen_flow"`
  397. OxygenTime string `gorm:"column:oxygen_time" json:"oxygen_time" form:"oxygen_time"`
  398. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  399. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  400. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  401. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  402. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  403. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  404. MaxUltrafiltrationRate string `gorm:"column:max_ultrafiltration_rate" json:"max_ultrafiltration_rate" form:"max_ultrafiltration_rate"`
  405. }
  406. func (DialysisPrescriptionList) TableName() string {
  407. return "xt_dialysis_prescription"
  408. }
  409. type DialysisAssesmentBefor struct {
  410. ID int64 `gorm:"column:id" json:"id"`
  411. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  412. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  413. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
  414. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id" form:"blood_access_part_opera_id"`
  415. }
  416. func (DialysisAssesmentBefor) TableName() string {
  417. return "xt_assessment_before_dislysis"
  418. }
  419. type DialysisSolution struct {
  420. ID int64 `gorm:"column:id" json:"id" form:"id"`
  421. Name string `gorm:"column:name" json:"name" form:"name"`
  422. SubName string `gorm:"column:sub_name" json:"sub_name" form:"sub_name"`
  423. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  424. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  425. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  426. Type int64 `gorm:"column:type" json:"type" form:"type"`
  427. Period string `gorm:"column:period" json:"period" form:"period"`
  428. Times string `gorm:"column:times" json:"times" form:"times"`
  429. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  430. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  431. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  432. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  433. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
  434. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
  435. ModeName string `gorm:"column:mode_name" json:"mode_name" form:"mode_name"`
  436. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  437. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  438. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  439. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  440. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  441. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  442. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  443. Dewater float64 `gorm:"column:dewater" json:"dewater" form:"dewater"`
  444. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui" form:"displace_liqui"`
  445. Glucose float64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
  446. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  447. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  448. Sodium float64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  449. Calcium float64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  450. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  451. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  452. FirstDialysis int64 `gorm:"column:first_dialysis" json:"first_dialysis" form:"first_dialysis"`
  453. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  454. InitiateMode int64 `gorm:"column:initiate_mode" json:"initiate_mode" form:"initiate_mode"`
  455. AffirmState int64 `gorm:"column:affirm_state" json:"affirm_state" form:"affirm_state"`
  456. UseState int64 `gorm:"column:use_state" json:"use_state" form:"use_state"`
  457. Status int64 `gorm:"column:status" json:"status" form:"status"`
  458. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  459. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  460. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  461. SolutionType int64 `gorm:"column:solution_type" json:"solution_type" form:"solution_type"`
  462. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature" form:"dialysate_temperature"`
  463. Conductivity float64 `gorm:"column:conductivity" json:"conductivity" form:"conductivity"`
  464. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  465. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  466. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  467. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  468. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  469. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  470. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  471. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
  472. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
  473. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  474. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation" form:"dialysate_formulation"`
  475. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialysate_formulation"`
  476. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  477. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  478. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  479. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  480. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  481. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  482. AntioxidantCommodityName string `gorm:"column:antioxidant_commodity_name" json:"antioxidant_commodity_name" form:"antioxidant_commodity_name"`
  483. DisplaceSpeed string `gorm:"column:displace_speed" json:"displace_speed" form:"displace_speed"`
  484. Illness int64 `gorm:"column:illness" json:"illness" form:"illness"`
  485. Amylaceum string `gorm:"column:amylaceum" json:"amylaceum" form:"amylaceum"`
  486. PlasmaSeparator string `gorm:"column:plasma_separator" json:"plasma_separator" form:"plasma_separator"`
  487. BilirubinAdsorptionColumn string `gorm:"column:bilirubin_adsorption_column" json:"bilirubin_adsorption_column" form:"bilirubin_adsorption_column"`
  488. OxygenUptake int64 `gorm:"column:oxygen_uptake" json:"oxygen_uptake" form:"oxygen_uptake"`
  489. OxygenFlow string `gorm:"column:oxygen_flow" json:"oxygen_flow" form:"oxygen_flow"`
  490. OxygenTime string `gorm:"column:oxygen_time" json:"oxygen_time" form:"oxygen_time"`
  491. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  492. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  493. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  494. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  495. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  496. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  497. MaxUltrafiltrationRate float64 `gorm:"column:max_ultrafiltration_rate" json:"max_ultrafiltration_rate" form:"max_ultrafiltration_rate"`
  498. PreImpulse float64 `gorm:"column:pre_impulse" json:"pre_impulse" form:"pre_impulse"`
  499. }
  500. func (DialysisSolution) TableName() string {
  501. return "xt_dialysis_solution"
  502. }
  503. type UserAdminRole struct {
  504. ID int64 `gorm:"column:id" json:"id"`
  505. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id"`
  506. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  507. AppId int64 `gorm:"column:app_id" json:"app_id"`
  508. RoleId int64 `gorm:"column:role_id" json:"role_id"`
  509. UserName string `gorm:"column:user_name" json:"user_name"`
  510. Avatar string `gorm:"column:avatar" json:"avatar"`
  511. UserType int64 `gorm:"column:user_type" json:"user_type"`
  512. UserTitle int64 `gorm:"column:user_title" json:"user_title"`
  513. Intro string `gorm:"column:intro" json:"intro"`
  514. Status int64 `gorm:"column:status" json:"status"`
  515. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  516. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  517. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number"`
  518. Department string `gorm:"column:department" json:"department"`
  519. DepartmentId int64 `gorm:"column:department_id" json:"department_id"`
  520. XtHisDepartment XtHisDepartment `json:"department" gorm:"foreignkey:DepartmentId;AssociationForeignKey:ID;"`
  521. }
  522. func (UserAdminRole) TableName() string {
  523. return "sgj_user_admin_role"
  524. }
  525. type PatientDialysisRecord struct {
  526. DialysisOrder
  527. ScheduleType int64 `gorm:"-" json:"schedule_type" form:"schedule_type"`
  528. PartitionId int64 `gorm:"-" json:"partition_id" form:"partition_id"`
  529. PartitionName string `gorm:"-" json:"partition_name" form:"partition_name"`
  530. DeviceNumber string `gorm:"-" json:"device_number" form:"device_number"`
  531. // DialysisPrescription DialysisPrescription `json:"prescription" gorm:"foreignkey:RecordId"`
  532. // PredialysisEvaluation PredialysisEvaluation `json:"predialysis_evaluation" gorm:"foreignkey:DialysisOrderId"`
  533. // AssessmentAfterDislysis AssessmentAfterDislysis `json:"assessment_after_dislysis" gorm:"foreignkey:DialysisOrderId"`
  534. // TreatmentSummary TreatmentSummary `json:"treatment_summary" gorm:"foreignkey:DialysisOrderId"`
  535. DialysisPrescription DialysisPrescription `json:"prescription" gorm:"foreignkey:RecordDate;AssociationForeignKey:DialysisDate;"`
  536. PredialysisEvaluation PredialysisEvaluation `json:"predialysis_evaluation" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  537. AssessmentAfterDislysis AssessmentAfterDislysis `json:"assessment_after_dislysis" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  538. TreatmentSummary TreatmentSummary `json:"treatment_summary" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  539. Device DeviceNumber `json:"device" gorm:"foreignkey:ID;AssociationForeignKey:BedID;"`
  540. MonitoringRecord []MonitoringRecord `json:"monitoring_record" gorm:"foreignkey:MonitoringDate;AssociationForeignKey:DialysisDate;"`
  541. }
  542. type DialysisPrescriptionAddtional struct {
  543. DialysisPrescription
  544. Device Device `json:"device" gorm:"foreignkey:dialyzer"`
  545. }
  546. type PatientDiseaseCourse struct {
  547. ID int64 `gorm:"column:id" json:"id" form:"id"`
  548. OrgID int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  549. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  550. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  551. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  552. Content string `gorm:"column:content" json:"content" form:"content"`
  553. Status int64 `gorm:"column:status" json:"-" form:"-"`
  554. CreateTime int64 `gorm:"column:ctime" json:"-" form:"-"`
  555. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"-"`
  556. Title string `gorm:"column:title" json:"title"`
  557. }
  558. func (PatientDiseaseCourse) TableName() string {
  559. return "xt_patient_course_of_disease"
  560. }
  561. type PatientRescueRecord struct {
  562. ID int64 `gorm:"column:id" json:"id" form:"id"`
  563. OrgID int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  564. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  565. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  566. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  567. Content string `gorm:"column:content" json:"content" form:"content"`
  568. Status int64 `gorm:"column:status" json:"-" form:"-"`
  569. CreateTime int64 `gorm:"column:ctime" json:"-" form:"-"`
  570. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"-"`
  571. }
  572. func (PatientRescueRecord) TableName() string {
  573. return "xt_patient_rescue_record"
  574. }
  575. type PatientLapseto struct {
  576. ID int64 `gorm:"column:id" json:"id" form:"id"`
  577. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  578. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type" form:"lapseto_type"`
  579. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time" form:"lapseto_time"`
  580. Status int64 `gorm:"column:status" json:"status" form:"status"`
  581. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  582. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  583. }
  584. func (PatientLapseto) TableName() string {
  585. return "xt_patient_lapseto"
  586. }
  587. type FormItem struct {
  588. ID int64 `json:"id"`
  589. ProjectId int64 `json:"project_id"`
  590. ProjectName string `json:"project_name"`
  591. ItemId int64 `json:"item_id"`
  592. Item string `json:"item"`
  593. ItemName string `json:"item_name"`
  594. RangeType int64 `json:"range_type"`
  595. Value string `json:"value"`
  596. }
  597. type SgjUserIllness struct {
  598. ID int64 `gorm:"column:id" json:"id" form:"id"`
  599. IllnessName string `gorm:"column:illness_name" json:"illness_name" form:"illness_name"`
  600. Status int64 `gorm:"column:status" json:"status" form:"status"`
  601. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  602. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  603. }
  604. func (SgjUserIllness) TableName() string {
  605. return "sgj_user_illness"
  606. }
  607. type XtPatientsNew struct {
  608. ID int64 `gorm:"column:id" json:"id" form:"id"`
  609. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  610. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  611. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  612. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  613. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  614. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  615. Source int64 `gorm:"column:source" json:"source" form:"source"`
  616. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  617. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  618. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  619. Name string `gorm:"column:name" json:"name" form:"name"`
  620. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  621. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  622. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  623. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  624. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  625. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  626. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  627. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  628. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  629. Height int64 `gorm:"column:height" json:"height" form:"height"`
  630. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  631. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  632. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  633. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  634. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  635. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  636. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  637. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  638. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  639. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  640. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  641. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  642. Children int64 `gorm:"column:children" json:"children" form:"children"`
  643. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  644. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  645. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  646. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  647. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  648. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  649. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  650. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  651. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  652. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  653. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  654. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  655. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  656. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  657. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  658. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  659. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  660. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  661. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  662. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  663. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  664. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  665. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  666. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  667. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  668. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  669. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  670. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  671. Status int64 `gorm:"column:status" json:"status" form:"status"`
  672. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  673. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  674. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  675. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  676. Age int64 `gorm:"column:age" json:"age" form:"age"`
  677. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  678. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  679. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  680. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  681. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  682. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  683. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  684. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  685. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  686. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  687. BloodPatients int64 `gorm:"column:blood_patients" json:"blood_patients" form:"blood_patients"`
  688. SlowPatients int64 `gorm:"column:slow_patients" json:"slow_patients" form:"slow_patients"`
  689. MemberPatients int64 `gorm:"column:member_patients" json:"member_patients" form:"member_patients"`
  690. EcommerPatients string `gorm:"column:ecommer_patients" json:"ecommer_patients" form:"ecommer_patients"`
  691. BloodId int64 `gorm:"column:blood_id" json:"blood_id" form:"blood_id"`
  692. SlowId int64 `gorm:"column:slow_id" json:"slow_id" form:"slow_id"`
  693. MemberId int64 `gorm:"column:member_id" json:"member_id" form:"member_id"`
  694. MemberFistdate int64 `gorm:"column:member_fistdate" json:"member_fistdate" form:"member_fistdate"`
  695. MemberPatienttype int64 `gorm:"column:member_patienttype" json:"member_patienttype" form:"member_patienttype"`
  696. MemberTreatement int64 `gorm:"column:member_treatement" json:"member_treatement" form:"member_treatement"`
  697. EquitmentId string `gorm:"column:equitment_id" json:"equitment_id" form:"equitment_id"`
  698. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  699. IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
  700. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  701. OutReason string `gorm:"column:out_reason" json:"out_reason" form:"out_reason"`
  702. DeathTime int64 `gorm:"column:death_time" json:"death_time" form:"death_time"`
  703. TrobleShoot int64 `gorm:"column:troble_shoot" json:"troble_shoot" form:"troble_shoot"`
  704. }
  705. func (XtPatientsNew) TableName() string {
  706. return "xt_patients_new"
  707. }
  708. type PatientsNew struct {
  709. ID int64 `gorm:"column:id" json:"id" form:"id"`
  710. Name string `gorm:"column:name" json:"name" form:"name"`
  711. }
  712. type CdmPatients struct {
  713. ID int64 `gorm:"column:id" json:"id" form:"id"`
  714. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  715. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  716. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  717. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  718. Source int64 `gorm:"column:source" json:"source" form:"source"`
  719. Name string `gorm:"column:name" json:"name" form:"name"`
  720. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  721. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  722. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  723. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  724. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  725. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  726. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  727. Height int64 `gorm:"column:height" json:"height" form:"height"`
  728. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  729. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  730. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  731. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  732. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  733. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  734. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  735. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  736. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  737. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  738. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  739. Children int64 `gorm:"column:children" json:"children" form:"children"`
  740. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  741. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  742. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  743. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  744. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  745. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  746. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  747. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  748. Status int64 `gorm:"column:status" json:"status" form:"status"`
  749. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  750. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  751. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  752. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  753. }
  754. func (CdmPatients) TableName() string {
  755. return "xt_patients"
  756. }
  757. type CdmPatientsInfectiousDiseases struct {
  758. ID int64 `gorm:"column:id" json:"id" form:"id"`
  759. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  760. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  761. Status int64 `gorm:"column:status" json:"status" form:"status"`
  762. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  763. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  764. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  765. }
  766. func (CdmPatientsInfectiousDiseases) TableName() string {
  767. return "xt_patients_infectious_diseases"
  768. }
  769. type CdmPatientsChronicDiseases struct {
  770. ID int64 `gorm:"column:id" json:"id" form:"id"`
  771. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  772. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  773. Status int64 `gorm:"column:status" json:"status" form:"status"`
  774. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  775. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  776. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  777. }
  778. func (CdmPatientsChronicDiseases) TableName() string {
  779. return "xt_patients_chronic_diseases"
  780. }
  781. type SgjUserCustomer struct {
  782. ID int64 `gorm:"column:id" json:"id" form:"id"`
  783. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  784. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  785. Mobile string `gorm:"column:mobile" json:"mobile" form:"mobile"`
  786. Name string `gorm:"column:name" json:"name" form:"name"`
  787. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  788. ProvinceId int64 `gorm:"column:province_id" json:"province_id" form:"province_id"`
  789. CityId int64 `gorm:"column:city_id" json:"city_id" form:"city_id"`
  790. Address string `gorm:"column:address" json:"address" form:"address"`
  791. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  792. TreatType int64 `gorm:"column:treat_type" json:"treat_type" form:"treat_type"`
  793. Relationship int64 `gorm:"column:relationship" json:"relationship" form:"relationship"`
  794. IllnessId int64 `gorm:"column:illness_id" json:"illness_id" form:"illness_id"`
  795. WechatOpenid string `gorm:"column:wechat_openid" json:"wechat_openid" form:"wechat_openid"`
  796. Membership int64 `gorm:"column:membership" json:"membership" form:"membership"`
  797. Sources int64 `gorm:"column:sources" json:"sources" form:"sources"`
  798. Status int64 `gorm:"column:status" json:"status" form:"status"`
  799. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  800. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  801. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  802. WechatUnionid string `gorm:"column:wechat_unionid" json:"wechat_unionid" form:"wechat_unionid"`
  803. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  804. MedicalDiagnose string `gorm:"column:medical_diagnose" json:"medical_diagnose" form:"medical_diagnose"`
  805. YzUid int64 `gorm:"column:yz_uid" json:"yz_uid" form:"yz_uid"`
  806. Tttime int64 `gorm:"column:tttime" json:"tttime" form:"tttime"`
  807. IllDate int64 `gorm:"column:ill_date" json:"ill_date" form:"ill_date"`
  808. DistrictId int64 `gorm:"column:district_id" json:"district_id" form:"district_id"`
  809. }
  810. func (SgjUserCustomer) TableName() string {
  811. return "sgj_user_customer"
  812. }
  813. type PatientCourseOfDiseases struct {
  814. ID int64 `gorm:"column:id" json:"id" form:"id"`
  815. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  816. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  817. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  818. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  819. Content string `gorm:"column:content" json:"content" form:"content"`
  820. Status int64 `gorm:"column:status" json:"status" form:"status"`
  821. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  822. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  823. Title string `gorm:"column:title" json:"title" form:"title"`
  824. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  825. }
  826. type PatientCourseOfDiseasess struct {
  827. ID int64 `gorm:"column:id" json:"id" form:"id"`
  828. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  829. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  830. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  831. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  832. Content string `gorm:"column:content" json:"content" form:"content"`
  833. Status int64 `gorm:"column:status" json:"status" form:"status"`
  834. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  835. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  836. Title string `gorm:"column:title" json:"title" form:"title"`
  837. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  838. Name string `gorm:"column:name" json:"name" form:"name"`
  839. }
  840. type PatientCourseOfDisease struct {
  841. ID int64 `gorm:"column:id" json:"id" form:"id"`
  842. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  843. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  844. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  845. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  846. Content string `gorm:"column:content" json:"content" form:"content"`
  847. Status int64 `gorm:"column:status" json:"status" form:"status"`
  848. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  849. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  850. Title string `gorm:"column:title" json:"title" form:"title"`
  851. }
  852. func (PatientCourseOfDisease) TableName() string {
  853. return "xt_patient_course_of_disease"
  854. }
  855. type XtPatientsInfectiousDiseases struct {
  856. ID int64 `gorm:"column:id" json:"id" form:"id"`
  857. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  858. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  859. Status int64 `gorm:"column:status" json:"status" form:"status"`
  860. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  861. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  862. }
  863. func (XtPatientsInfectiousDiseases) TableName() string {
  864. return "xt_patients_infectious_diseases"
  865. }
  866. type XtInspectionReference struct {
  867. ID int64 `gorm:"column:id" json:"id" form:"id"`
  868. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  869. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  870. Project string `gorm:"column:project" json:"project" form:"project"`
  871. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  872. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  873. ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"`
  874. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  875. Item string `gorm:"column:item" json:"item" form:"item"`
  876. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  877. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  878. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  879. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  880. RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"`
  881. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  882. Status int64 `gorm:"column:status" json:"status" form:"status"`
  883. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  884. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  885. }
  886. func (XtInspectionReference) TableName() string {
  887. return "xt_inspection_reference"
  888. }
  889. type VmXtInspection struct {
  890. ID int64 `gorm:"column:id" json:"id" form:"id"`
  891. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  892. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  893. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  894. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  895. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  896. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  897. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  898. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  899. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  900. Status int64 `gorm:"column:status" json:"status" form:"status"`
  901. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  902. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  903. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  904. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  905. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  906. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  907. }
  908. type XtInspection struct {
  909. ID int64 `gorm:"column:id" json:"id" form:"id"`
  910. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  911. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  912. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  913. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  914. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  915. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  916. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  917. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  918. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  919. Status int64 `gorm:"column:status" json:"status" form:"status"`
  920. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  921. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  922. }
  923. func (XtInspection) TableName() string {
  924. return "xt_inspection"
  925. }
  926. type VmInspection struct {
  927. ID int64 `gorm:"column:id" json:"id" form:"id"`
  928. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  929. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  930. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  931. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  932. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  933. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  934. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  935. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  936. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  937. Status int64 `gorm:"column:status" json:"status" form:"status"`
  938. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  939. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  940. RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  941. RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  942. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  943. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  944. }
  945. type BloodXtPatients struct {
  946. ID int64 `gorm:"column:id" json:"id" form:"id"`
  947. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  948. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  949. Name string `gorm:"column:name" json:"name" form:"name"`
  950. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  951. }
  952. func (BloodXtPatients) TableName() string {
  953. return "xt_patients"
  954. }
  955. type XtPatients struct {
  956. ID int64 `gorm:"column:id" json:"id" form:"id"`
  957. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  958. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  959. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  960. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  961. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  962. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  963. Source int64 `gorm:"column:source" json:"source" form:"source"`
  964. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  965. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  966. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  967. Name string `gorm:"column:name" json:"name" form:"name"`
  968. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  969. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  970. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  971. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  972. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  973. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  974. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  975. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  976. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  977. Height int64 `gorm:"column:height" json:"height" form:"height"`
  978. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  979. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  980. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  981. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  982. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  983. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  984. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  985. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  986. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  987. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  988. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  989. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  990. Children int64 `gorm:"column:children" json:"children" form:"children"`
  991. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  992. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  993. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  994. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  995. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  996. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  997. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  998. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  999. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  1000. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  1001. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  1002. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  1003. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  1004. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  1005. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  1006. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1007. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  1008. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  1009. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  1010. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  1011. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  1012. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  1013. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  1014. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  1015. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  1016. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  1017. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  1018. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  1019. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1020. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1021. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1022. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  1023. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  1024. Age int64 `gorm:"column:age" json:"age" form:"age"`
  1025. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  1026. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  1027. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  1028. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  1029. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  1030. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  1031. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  1032. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  1033. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  1034. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  1035. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  1036. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  1037. }
  1038. func (XtPatients) TableName() string {
  1039. return "xt_patients"
  1040. }
  1041. type SgjUserAdminLoginLog struct {
  1042. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1043. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1044. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1045. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  1046. Ip string `gorm:"column:ip" json:"ip" form:"ip"`
  1047. OperateType int64 `gorm:"column:operate_type" json:"operate_type" form:"operate_type"`
  1048. AppType int64 `gorm:"column:app_type" json:"app_type" form:"app_type"`
  1049. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1050. }
  1051. func (SgjUserAdminLoginLog) TableName() string {
  1052. return "sgj_user_admin_login_log"
  1053. }
  1054. type KyActivityTable struct {
  1055. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1056. Name string `gorm:"column:name" json:"name" form:"name"`
  1057. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  1058. Address string `gorm:"column:address" json:"address" form:"address"`
  1059. Position int64 `gorm:"column:position" json:"position" form:"position"`
  1060. HospitalName string `gorm:"column:hospital_name" json:"hospital_name" form:"hospital_name"`
  1061. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  1062. IsThink int64 `gorm:"column:is_think" json:"is_think" form:"is_think"`
  1063. OtherMode string `gorm:"column:other_mode" json:"other_mode" form:"other_mode"`
  1064. OtherRemark string `gorm:"column:other_remark" json:"other_remark" form:"other_remark"`
  1065. Gift int64 `gorm:"column:gift" json:"gift" form:"gift"`
  1066. OtherMessage string `gorm:"column:other_message" json:"other_message" form:"other_message"`
  1067. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1068. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1069. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1070. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1071. SystemName string `gorm:"column:system_name" json:"system_name" form:"system_name"`
  1072. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1073. }
  1074. func (KyActivityTable) TableName() string {
  1075. return "ky_activity_table"
  1076. }
  1077. type SgjUserRole struct {
  1078. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1079. RoleName string `gorm:"column:role_name" json:"role_name" form:"role_name"`
  1080. RoleIntroduction string `gorm:"column:role_introduction" json:"role_introduction" form:"role_introduction"`
  1081. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  1082. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1083. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  1084. IsSuperAdmin int64 `gorm:"column:is_super_admin" json:"is_super_admin" form:"is_super_admin"`
  1085. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1086. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1087. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1088. Number int64 `gorm:"column:number" json:"number" form:"number"`
  1089. IsSystem int64 `gorm:"column:is_system" json:"is_system" form:"is_system"`
  1090. }
  1091. func (SgjUserRole) TableName() string {
  1092. return "sgj_user_role"
  1093. }
  1094. type ExportErrLog struct {
  1095. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1096. LogType int64 `gorm:"column:log_type" json:"log_type" form:"log_type"`
  1097. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1098. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  1099. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  1100. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  1101. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1102. ExportTime int64 `gorm:"column:export_time" json:"export_time" form:"export_time"`
  1103. }
  1104. func (ExportErrLog) TableName() string {
  1105. return "xt_export_err_log"
  1106. }
  1107. type ExportLog struct {
  1108. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1109. LogType int64 `gorm:"column:log_type" json:"log_type" form:"log_type"`
  1110. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1111. TotalNum int64 `gorm:"column:total_num" json:"total_num" form:"total_num"`
  1112. FailNum int64 `gorm:"column:fail_num" json:"fail_num" form:"fail_num"`
  1113. SuccessNum int64 `gorm:"column:success_num" json:"success_num" form:"success_num"`
  1114. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  1115. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  1116. ExportTime int64 `gorm:"column:export_time" json:"export_time" form:"export_time"`
  1117. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1118. ExportErrLog []*ExportErrLog `json:"err_logs" gorm:"foreignkey:ExportTime;AssociationForeignKey:ExportTime;"`
  1119. }
  1120. func (ExportLog) TableName() string {
  1121. return "xt_export_log"
  1122. }
  1123. type XtTemplateSummary struct {
  1124. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1125. StartYear int64 `gorm:"column:start_year" json:"start_year" form:"start_year"`
  1126. StartMonth int64 `gorm:"column:start_month" json:"start_month" form:"start_month"`
  1127. Radio int64 `gorm:"column:radio" json:"radio" form:"radio"`
  1128. Quarter int64 `gorm:"column:quarter" json:"quarter" form:"quarter"`
  1129. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  1130. DialysisCount int64 `gorm:"column:dialysis_count" json:"dialysis_count" form:"dialysis_count"`
  1131. HdCount int64 `gorm:"column:hd_count" json:"hd_count" form:"hd_count"`
  1132. HdfCount int64 `gorm:"column:hdf_count" json:"hdf_count" form:"hdf_count"`
  1133. HpCount int64 `gorm:"column:hp_count" json:"hp_count" form:"hp_count"`
  1134. OtherCount int64 `gorm:"column:other_count" json:"other_count" form:"other_count"`
  1135. DialzerApparatus string `gorm:"column:dialzer_apparatus" json:"dialzer_apparatus" form:"dialzer_apparatus"`
  1136. PerfusionApparatus string `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  1137. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  1138. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  1139. Autunite float64 `gorm:"column:autunite" json:"autunite" form:"autunite"`
  1140. Natrium float64 `gorm:"column:natrium" json:"natrium" form:"natrium"`
  1141. Hour int64 `gorm:"column:hour" json:"hour" form:"hour"`
  1142. Minute int64 `gorm:"column:minute" json:"minute" form:"minute"`
  1143. BeforWeight float64 `gorm:"column:befor_weight" json:"befor_weight" form:"befor_weight"`
  1144. AfterWeight float64 `gorm:"column:after_weight" json:"after_weight" form:"after_weight"`
  1145. BeforPressure string `gorm:"column:befor_pressure" json:"befor_pressure" form:"befor_pressure"`
  1146. AfterPressure string `gorm:"column:after_pressure" json:"after_pressure" form:"after_pressure"`
  1147. TemplateSummaryId int64 `gorm:"column:template_summary_id" json:"template_summary_id" form:"template_summary_id"`
  1148. TemplateSummaryContent string `gorm:"column:template_summary_content" json:"template_summary_content" form:"template_summary_content"`
  1149. TemplatePlanId int64 `gorm:"column:template_plan_id" json:"template_plan_id" form:"template_plan_id"`
  1150. TemplatePlanContent string `gorm:"column:template_plan_content" json:"template_plan_content" form:"template_plan_content"`
  1151. TemplateInspectionId int64 `gorm:"column:template_inspection_id" json:"template_inspection_id" form:"template_inspection_id"`
  1152. TemplateInspectionContent string `gorm:"column:template_inspection_content" json:"template_inspection_content" form:"template_inspection_content"`
  1153. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  1154. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  1155. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1156. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1157. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1158. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1159. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1160. Title string `gorm:"column:title" json:"title" form:"title"`
  1161. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1162. InspectDate string `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  1163. Patients VmPatients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  1164. Children []*VmInspection `gorm:"column:children" json:"children" form:"children"`
  1165. }
  1166. func (XtTemplateSummary) TableName() string {
  1167. return "xt_template_summary"
  1168. }
  1169. type VmPatients struct {
  1170. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1171. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1172. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  1173. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  1174. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  1175. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  1176. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  1177. Source int64 `gorm:"column:source" json:"source" form:"source"`
  1178. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  1179. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1180. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1181. Name string `gorm:"column:name" json:"name" form:"name"`
  1182. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  1183. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  1184. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  1185. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  1186. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1187. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  1188. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  1189. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  1190. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  1191. Height int64 `gorm:"column:height" json:"height" form:"height"`
  1192. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  1193. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  1194. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  1195. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  1196. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  1197. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  1198. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  1199. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  1200. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  1201. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  1202. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  1203. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  1204. Children int64 `gorm:"column:children" json:"children" form:"children"`
  1205. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  1206. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  1207. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  1208. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  1209. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  1210. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  1211. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  1212. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  1213. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  1214. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  1215. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  1216. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  1217. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  1218. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  1219. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  1220. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1221. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  1222. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  1223. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  1224. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  1225. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  1226. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  1227. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  1228. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  1229. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  1230. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  1231. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  1232. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  1233. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1234. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1235. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1236. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  1237. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  1238. Age int64 `gorm:"column:age" json:"age" form:"age"`
  1239. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  1240. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  1241. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  1242. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  1243. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  1244. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  1245. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  1246. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  1247. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  1248. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  1249. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  1250. IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
  1251. SchRemark string `gorm:"column:sch_remark" json:"sch_remark" form:"sch_remark"`
  1252. OutReason string `gorm:"column:out_reason" json:"out_reason" form:"out_reason"`
  1253. DeathTime int64 `gorm:"column:death_time" json:"death_time" form:"death_time"`
  1254. }
  1255. func (VmPatients) TableName() string {
  1256. return "xt_patients"
  1257. }
  1258. type XtAssessmentBeforeDislysis struct {
  1259. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1260. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1261. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1262. AssessmentDate int64 `gorm:"column:assessment_date" json:"assessment_date" form:"assessment_date"`
  1263. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1264. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  1265. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency" form:"pulse_frequency"`
  1266. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate" form:"breathing_rate"`
  1267. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure" form:"systolic_blood_pressure"`
  1268. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure" form:"diastolic_blood_pressure"`
  1269. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type" form:"blood_pressure_type"`
  1270. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  1271. WeightAfterLastTransparency float64 `gorm:"column:weight_after_last_transparency" json:"weight_after_last_transparency" form:"weight_after_last_transparency"`
  1272. WeighingWay string `gorm:"column:weighing_way" json:"weighing_way" form:"weighing_way"`
  1273. WeighingBefore float64 `gorm:"column:weighing_before" json:"weighing_before" form:"weighing_before"`
  1274. AdditionalWeight float64 `gorm:"column:additional_weight" json:"additional_weight" form:"additional_weight"`
  1275. WeightBefore float64 `gorm:"column:weight_before" json:"weight_before" form:"weight_before"`
  1276. WeightGain float64 `gorm:"column:weight_gain" json:"weight_gain" form:"weight_gain"`
  1277. PreloadedDewatering float64 `gorm:"column:preloaded_dewatering" json:"preloaded_dewatering" form:"preloaded_dewatering"`
  1278. UltrafiltrationAmount float64 `gorm:"column:ultrafiltration_amount" json:"ultrafiltration_amount" form:"ultrafiltration_amount"`
  1279. DialysisInterphase string `gorm:"column:dialysis_interphase" json:"dialysis_interphase" form:"dialysis_interphase"`
  1280. LastPostDialysis string `gorm:"column:last_post_dialysis" json:"last_post_dialysis" form:"last_post_dialysis"`
  1281. SymptomBeforeDialysis string `gorm:"column:symptom_before_dialysis" json:"symptom_before_dialysis" form:"symptom_before_dialysis"`
  1282. InternalFistula string `gorm:"column:internal_fistula" json:"internal_fistula" form:"internal_fistula"`
  1283. InternalFistulaSkin string `gorm:"column:internal_fistula_skin" json:"internal_fistula_skin" form:"internal_fistula_skin"`
  1284. CatheterBend int64 `gorm:"column:catheter_bend" json:"catheter_bend" form:"catheter_bend"`
  1285. Catheter string `gorm:"column:catheter" json:"catheter" form:"catheter"`
  1286. Complication string `gorm:"column:complication" json:"complication" form:"complication"`
  1287. Evaluator int64 `gorm:"column:evaluator" json:"evaluator" form:"evaluator"`
  1288. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1289. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1290. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1291. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1292. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1293. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1294. BloodAccessPartId string `gorm:"column:blood_access_part_id" json:"blood_access_part_id" form:"blood_access_part_id"`
  1295. BloodAccessPartOperaId int64 `gorm:"column:blood_access_part_opera_id" json:"blood_access_part_opera_id" form:"blood_access_part_opera_id"`
  1296. IsHemorrhage int64 `gorm:"column:is_hemorrhage" json:"is_hemorrhage" form:"is_hemorrhage"`
  1297. Hemorrhage string `gorm:"column:hemorrhage" json:"hemorrhage" form:"hemorrhage"`
  1298. HemorrhageOther string `gorm:"column:hemorrhage_other" json:"hemorrhage_other" form:"hemorrhage_other"`
  1299. PunctureMethod string `gorm:"column:puncture_method" json:"puncture_method" form:"puncture_method"`
  1300. BloodAccessInternalFistula string `gorm:"column:blood_access_internal_fistula" json:"blood_access_internal_fistula" form:"blood_access_internal_fistula"`
  1301. InternalFistulaOther string `gorm:"column:internal_fistula_other" json:"internal_fistula_other" form:"internal_fistula_other"`
  1302. BloodAccessNoise int64 `gorm:"column:blood_access_noise" json:"blood_access_noise" form:"blood_access_noise"`
  1303. PunctureWay string `gorm:"column:puncture_way" json:"puncture_way" form:"puncture_way"`
  1304. VenousCatheterization int64 `gorm:"column:venous_catheterization" json:"venous_catheterization" form:"venous_catheterization"`
  1305. VenousCatheterizationPart int64 `gorm:"column:venous_catheterization_part" json:"venous_catheterization_part" form:"venous_catheterization_part"`
  1306. VenousCatheterizationPartOther string `gorm:"column:venous_catheterization_part_other" json:"venous_catheterization_part_other" form:"venous_catheterization_part_other"`
  1307. DuctusArantii string `gorm:"column:ductus_arantii" json:"ductus_arantii" form:"ductus_arantii"`
  1308. EmergencyTreatment int64 `gorm:"column:emergency_treatment" json:"emergency_treatment" form:"emergency_treatment"`
  1309. EmergencyTreatmentOther string `gorm:"column:emergency_treatment_other" json:"emergency_treatment_other" form:"emergency_treatment_other"`
  1310. DialysisCount string `gorm:"column:dialysis_count" json:"dialysis_count" form:"dialysis_count"`
  1311. AssessmentDoctor int64 `gorm:"column:assessment_doctor" json:"assessment_doctor" form:"assessment_doctor"`
  1312. AssessmentTime int64 `gorm:"column:assessment_time" json:"assessment_time" form:"assessment_time"`
  1313. MachineType string `gorm:"column:machine_type" json:"machine_type" form:"machine_type"`
  1314. IsInfect int64 `gorm:"column:is_infect" json:"is_infect" form:"is_infect"`
  1315. Exposed float64 `gorm:"column:exposed" json:"exposed" form:"exposed"`
  1316. Skin string `gorm:"column:skin" json:"skin" form:"skin"`
  1317. SkinOther string `gorm:"column:skin_other" json:"skin_other" form:"skin_other"`
  1318. InfectOther string `gorm:"column:infect_other" json:"infect_other" form:"infect_other"`
  1319. DuctusArantiiOther string `gorm:"column:ductus_arantii_other" json:"ductus_arantii_other" form:"ductus_arantii_other"`
  1320. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  1321. DialysisIntakesUnit int64 `gorm:"column:dialysis_intakes_unit" json:"dialysis_intakes_unit" form:"dialysis_intakes_unit"`
  1322. HumorExcessiveSymptom string `gorm:"column:humor_excessive_symptom" json:"humor_excessive_symptom" form:"humor_excessive_symptom"`
  1323. LastPostDialysisOther string `gorm:"column:last_post_dialysis_other" json:"last_post_dialysis_other" form:"last_post_dialysis_other"`
  1324. SymptomBeforeDialysisOther string `gorm:"column:symptom_before_dialysis_other" json:"symptom_before_dialysis_other" form:"symptom_before_dialysis_other"`
  1325. DialysisInterphaseOther string `gorm:"column:dialysis_interphase_other" json:"dialysis_interphase_other" form:"dialysis_interphase_other"`
  1326. Pinholing string `gorm:"column:pinholing" json:"pinholing" form:"pinholing"`
  1327. CatheterSuture string `gorm:"column:catheter_suture" json:"catheter_suture" form:"catheter_suture"`
  1328. CatheterSutureOther string `gorm:"column:catheter_suture_other" json:"catheter_suture_other" form:"catheter_suture_other"`
  1329. UrineVolume float64 `gorm:"column:urine_volume" json:"urine_volume" form:"urine_volume"`
  1330. Edema string `gorm:"column:edema" json:"edema" form:"edema"`
  1331. SpecialTreatment string `gorm:"column:special_treatment" json:"special_treatment" form:"special_treatment"`
  1332. CatheterMaintenance string `gorm:"column:catheter_maintenance" json:"catheter_maintenance" form:"catheter_maintenance"`
  1333. ThrombusAv string `gorm:"column:thrombus_av" json:"thrombus_av" form:"thrombus_av"`
  1334. ThromubusA string `gorm:"column:thromubus_a" json:"thromubus_a" form:"thromubus_a"`
  1335. ThromubusV string `gorm:"column:thromubus_v" json:"thromubus_v" form:"thromubus_v"`
  1336. ThromubusType int64 `gorm:"column:thromubus_type" json:"thromubus_type" form:"thromubus_type"`
  1337. Dehydration string `gorm:"column:dehydration" json:"dehydration" form:"dehydration"`
  1338. PreDialysisDrugs string `gorm:"column:pre_dialysis_drugs" json:"pre_dialysis_drugs" form:"pre_dialysis_drugs"`
  1339. EstimatedFoodIntake string `gorm:"column:estimated_food_intake" json:"estimated_food_intake" form:"estimated_food_intake"`
  1340. Period int64 `gorm:"column:period" json:"period" form:"period"`
  1341. BloodPressureDuringDialysis string `gorm:"column:blood_pressure_during_dialysis" json:"blood_pressure_during_dialysis" form:"blood_pressure_during_dialysis"`
  1342. }
  1343. func (XtAssessmentBeforeDislysis) TableName() string {
  1344. return "xt_assessment_before_dislysis"
  1345. }
  1346. type MsDeviceNumber struct {
  1347. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1348. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1349. Number string `gorm:"column:number" json:"number" form:"number"`
  1350. GroupId int64 `gorm:"column:group_id" json:"group_id" form:"group_id"`
  1351. ZoneId int64 `gorm:"column:zone_id" json:"zone_id" form:"zone_id"`
  1352. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1353. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1354. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1355. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1356. }
  1357. func (MsDeviceNumber) TableName() string {
  1358. return "xt_device_number"
  1359. }
  1360. type MsDeviceZone struct {
  1361. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1362. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1363. Name string `gorm:"column:name" json:"name" form:"name"`
  1364. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1365. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1366. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1367. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1368. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1369. }
  1370. func (MsDeviceZone) TableName() string {
  1371. return "xt_device_zone"
  1372. }
  1373. type XtHospitalSummary struct {
  1374. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1375. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1376. AdmissionTime int64 `gorm:"column:admission_time" json:"admission_time" form:"admission_time"`
  1377. DischargeTime int64 `gorm:"column:discharge_time" json:"discharge_time" form:"discharge_time"`
  1378. SickPersonnel string `gorm:"column:sick_personnel" json:"sick_personnel" form:"sick_personnel"`
  1379. Xray string `gorm:"column:xray" json:"xray" form:"xray"`
  1380. Connecticut string `gorm:"column:connecticut" json:"connecticut" form:"connecticut"`
  1381. NuclearMagneticResonance string `gorm:"column:nuclear_magnetic_resonance" json:"nuclear_magnetic_resonance" form:"nuclear_magnetic_resonance"`
  1382. Ultrasound string `gorm:"column:ultrasound" json:"ultrasound" form:"ultrasound"`
  1383. Pathology string `gorm:"column:pathology" json:"pathology" form:"pathology"`
  1384. AdmittingDiagnosisId string `gorm:"column:admitting_diagnosis_id" json:"admitting_diagnosis_id" form:"admitting_diagnosis_id"`
  1385. AdmittingDiagnosis string `gorm:"column:admitting_diagnosis" json:"admitting_diagnosis" form:"admitting_diagnosis"`
  1386. DischargeDiagnosisId string `gorm:"column:discharge_diagnosis_id" json:"discharge_diagnosis_id" form:"discharge_diagnosis_id"`
  1387. DischargeDiagnosis string `gorm:"column:discharge_diagnosis" json:"discharge_diagnosis" form:"discharge_diagnosis"`
  1388. DiagnosisAdmissionId string `gorm:"column:diagnosis_admission_id" json:"diagnosis_admission_id" form:"diagnosis_admission_id"`
  1389. DiagnosisAdmission string `gorm:"column:diagnosis_admission" json:"diagnosis_admission" form:"diagnosis_admission"`
  1390. TreatmentId string `gorm:"column:treatment_id" json:"treatment_id" form:"treatment_id"`
  1391. Treatment string `gorm:"column:treatment" json:"treatment" form:"treatment"`
  1392. IllnessDischargeId string `gorm:"column:illness_discharge_id" json:"illness_discharge_id" form:"illness_discharge_id"`
  1393. IllnessDischarge string `gorm:"column:illness_discharge" json:"illness_discharge" form:"illness_discharge"`
  1394. DischargeAdviceId string `gorm:"column:discharge_advice_id" json:"discharge_advice_id" form:"discharge_advice_id"`
  1395. DischargeAdvice string `gorm:"column:discharge_advice" json:"discharge_advice" form:"discharge_advice"`
  1396. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1397. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1398. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1399. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1400. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  1401. Title string `gorm:"column:title" json:"title" form:"title"`
  1402. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1403. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1404. DeanId int64 `gorm:"column:dean_id" json:"dean_id" form:"dean_id"`
  1405. }
  1406. func (XtHospitalSummary) TableName() string {
  1407. return "xt_hospital_summary"
  1408. }
  1409. type VmDialysisSolution struct {
  1410. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1411. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1412. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1413. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1414. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  1415. ModeName string `gorm:"column:mode_name" json:"mode_name" form:"mode_name"`
  1416. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1417. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  1418. DialysisSolution VmDialysisSolutionOne `gorm:"ForeignKey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId" json:"solution"`
  1419. }
  1420. func (VmDialysisSolution) TableName() string {
  1421. return "xt_dialysis_solution"
  1422. }
  1423. type VmDialysisSolutionOne struct {
  1424. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1425. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1426. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1427. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1428. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  1429. ModeName string `gorm:"column:mode_name" json:"mode_name" form:"mode_name"`
  1430. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1431. }
  1432. func (VmDialysisSolutionOne) TableName() string {
  1433. return "xt_dialysis_solution"
  1434. }
  1435. type VmDialysisPrescription struct {
  1436. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1437. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1438. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  1439. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  1440. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  1441. ModeName string `gorm:"column:mode_name" json:"mode_name" form:"mode_name"`
  1442. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1443. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  1444. }
  1445. func (VmDialysisPrescription) TableName() string {
  1446. return "xt_dialysis_prescription"
  1447. }
  1448. type XtScheduleList struct {
  1449. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1450. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  1451. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  1452. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1453. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  1454. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  1455. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  1456. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  1457. DialysisSolution VmDialysisSolution `gorm:"ForeignKey:PatientId,ModeId;AssociationForeignKey:PatientId,ModeId" json:"vmsolution"`
  1458. }
  1459. func (XtScheduleList) TableName() string {
  1460. return "xt_schedule"
  1461. }