patient_models.go 130KB

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