common_models.go 43KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614
  1. package models
  2. type QualityControlStandard struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. InspectionMajor int64 `gorm:"column:inspection_major" json:"inspection_major" form:"inspection_major"`
  5. InspectionMinor int64 `gorm:"column:inspection_minor" json:"inspection_minor" form:"inspection_minor"`
  6. MinRange string `gorm:"column:min_range" json:"min_range" form:"min_range"`
  7. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  8. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  9. Status int64 `gorm:"column:status" json:"status" form:"status"`
  10. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  11. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  12. LargeRange string `gorm:"column:large_range" json:"large_range" form:"large_range"`
  13. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  14. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  15. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  16. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  17. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  18. IsStatus int64 `gorm:"column:is_status" json:"is_status" form:"is_status"`
  19. }
  20. type XtQualityControlStandard struct {
  21. ID int64 `gorm:"column:id" json:"id" form:"id"`
  22. InspectionMajor int64 `gorm:"column:inspection_major" json:"inspection_major" form:"inspection_major"`
  23. InspectionMinor int64 `gorm:"column:inspection_minor" json:"inspection_minor" form:"inspection_minor"`
  24. MinRange string `gorm:"column:min_range" json:"min_range" form:"min_range"`
  25. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  26. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  27. Status int64 `gorm:"column:status" json:"status" form:"status"`
  28. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  29. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  30. LargeRange string `gorm:"column:large_range" json:"large_range" form:"large_range"`
  31. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  32. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  33. IsStatus int64 `gorm:"column:is_status" json:"is_status" form:"is_status"`
  34. }
  35. func (XtQualityControlStandard) TableName() string {
  36. return "xt_quality_control_standard"
  37. }
  38. type CheckConfiguration struct {
  39. ID int64 `gorm:"column:id" json:"id" form:"id"`
  40. InspectionMajor int64 `gorm:"column:inspection_major" json:"inspection_major" form:"inspection_major"`
  41. InspectionFrequency string `gorm:"column:inspection_frequency" json:"inspection_frequency" form:"inspection_frequency"`
  42. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  43. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  44. Status int64 `gorm:"column:status" json:"status" form:"status"`
  45. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  46. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  47. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  48. }
  49. type XtCheckConfiguration struct {
  50. ID int64 `gorm:"column:id" json:"id" form:"id"`
  51. InspectionMajor int64 `gorm:"column:inspection_major" json:"inspection_major" form:"inspection_major"`
  52. InspectionFrequency string `gorm:"column:inspection_frequency" json:"inspection_frequency" form:"inspection_frequency"`
  53. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  54. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  55. Status int64 `gorm:"column:status" json:"status" form:"status"`
  56. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  57. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  58. }
  59. func (XtCheckConfiguration) TableName() string {
  60. return "xt_check_configuration"
  61. }
  62. type PatientPrescriptionCountStruct struct {
  63. ModeId int64 `json:"mode_id"`
  64. Count int64 `json:"count"`
  65. }
  66. type PatientLapsetoCountStruct struct {
  67. lapseto_type int64 `json:"lapseto_type"`
  68. Count int64 `json:"count"`
  69. }
  70. type SgjDialysisOrder struct {
  71. ID int64 `gorm:"column:id" json:"id" form:"id"`
  72. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  73. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  74. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  75. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  76. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  77. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  78. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  79. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  80. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  81. Status int64 `gorm:"column:status" json:"status" form:"status"`
  82. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  83. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  84. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  85. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  86. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  87. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  88. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  89. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  90. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  91. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  92. Number int64 `gorm:"column:number" json:"number" form:"number"`
  93. UserName int64 `gorm:"column:user_name" json:"user_name" form:"user_name"`
  94. WashpipeNurse int64 `gorm:"column:washpipe_nurse" json:"washpipe_nurse" form:"washpipe_nurse"`
  95. }
  96. func (SgjDialysisOrder) TableName() string {
  97. return "xt_dialysis_order"
  98. }
  99. type PatientContagionsCountStruct struct {
  100. DiseaseId int64 `json:"disease_id"`
  101. Count int64 `json:"count"`
  102. }
  103. type PatientAgeCountStruct struct {
  104. Age int64 `json:"age"`
  105. Count int64 `json:"count"`
  106. }
  107. type DialysisAgePieDataStruct struct {
  108. Age int64 `json:"age"`
  109. Count int64 `json:"count"`
  110. }
  111. type BloodPatients struct {
  112. ID int64 `gorm:"column:id" json:"id" form:"id"`
  113. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  114. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  115. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  116. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  117. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  118. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  119. Source int64 `gorm:"column:source" json:"source" form:"source"`
  120. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  121. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  122. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  123. Name string `gorm:"column:name" json:"name" form:"name"`
  124. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  125. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  126. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  127. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  128. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  129. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  130. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  131. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  132. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  133. Height int64 `gorm:"column:height" json:"height" form:"height"`
  134. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  135. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  136. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  137. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  138. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  139. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  140. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  141. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  142. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  143. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  144. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  145. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  146. Children int64 `gorm:"column:children" json:"children" form:"children"`
  147. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  148. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  149. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  150. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  151. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  152. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  153. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  154. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  155. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  156. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  157. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  158. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  159. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  160. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  161. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  162. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  163. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  164. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  165. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  166. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  167. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  168. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  169. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  170. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  171. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  172. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  173. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  174. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  175. Status int64 `gorm:"column:status" json:"status" form:"status"`
  176. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  177. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  178. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  179. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  180. Age int64 `gorm:"column:age" json:"age" form:"age"`
  181. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  182. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  183. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  184. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  185. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  186. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  187. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  188. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  189. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  190. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  191. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  192. IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
  193. }
  194. func (BloodPatients) TableName() string {
  195. return "xt_patients"
  196. }
  197. type BloodDialysisPrescription struct {
  198. ID int64 `gorm:"column:id" json:"id" form:"id"`
  199. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  200. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  201. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialyzer"`
  202. MachineType string `gorm:"column:machine_type" json:"machine_type" form:"machine_type"`
  203. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount" form:"dewater_amount"`
  204. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus" form:"dialyzer_perfusion_apparatus"`
  205. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering" form:"prescription_dewatering"`
  206. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  207. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  208. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  209. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  210. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
  211. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
  212. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  213. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
  214. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
  215. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  216. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total" form:"replacement_total"`
  217. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  218. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  219. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  220. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  221. DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight" form:"dry_weight"`
  222. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode" form:"vascular_access_mode"`
  223. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access" form:"vascular_access"`
  224. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  225. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  226. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui" form:"displace_liqui"`
  227. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  228. Sodium float64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  229. Calcium float64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  230. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  231. Glucose float64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
  232. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature" form:"dialysate_temperature"`
  233. Conductivity float64 `gorm:"column:conductivity" json:"conductivity" form:"conductivity"`
  234. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor" form:"prescription_doctor"`
  235. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  236. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  237. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  238. Status int64 `gorm:"column:status" json:"status" form:"status"`
  239. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  240. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  241. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  242. RecordId int64 `gorm:"column:record_id" json:"record_id" form:"record_id"`
  243. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  244. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation" form:"dialysate_formulation"`
  245. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid" form:"body_fluid"`
  246. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine" form:"special_medicine"`
  247. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other" form:"special_medicine_other"`
  248. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part" form:"displace_liqui_part"`
  249. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access" form:"blood_access"`
  250. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value" form:"displace_liqui_value"`
  251. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration" form:"ultrafiltration"`
  252. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other" form:"body_fluid_other"`
  253. Niprocart int64 `gorm:"column:niprocart" json:"niprocart" form:"niprocart"`
  254. Jms int64 `gorm:"column:jms" json:"jms" form:"jms"`
  255. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set" form:"fistula_needle_set"`
  256. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16" form:"fistula_needle_set_16"`
  257. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion" form:"hemoperfusion"`
  258. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised" form:"dialyser_sterilised"`
  259. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer" form:"filtryzer"`
  260. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv" form:"target_ktv"`
  261. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers" form:"dialyzers"`
  262. Injector int64 `gorm:"column:injector" json:"injector" form:"injector"`
  263. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines" form:"bloodlines"`
  264. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis" form:"tubing_hemodialysis"`
  265. Package int64 `gorm:"column:package" json:"package" form:"package"`
  266. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid" form:"a_liquid"`
  267. Name string `gorm:"column:name" json:"name" form:"name"`
  268. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  269. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  270. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  271. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  272. AnticoagulantStopTimeMin int64 `gorm:"column:anticoagulant_stop_time_min" json:"anticoagulant_stop_time_min" form:"anticoagulant_stop_time_min"`
  273. AnticoagulantStopTimeHour int64 `gorm:"column:anticoagulant_stop_time_hour" json:"anticoagulant_stop_time_hour" form:"anticoagulant_stop_time_hour"`
  274. HemodialysisPipelines string `gorm:"column:hemodialysis_pipelines" json:"hemodialysis_pipelines" form:"hemodialysis_pipelines"`
  275. HemodialysisPipelinesCount float64 `gorm:"column:hemodialysis_pipelines_count" json:"hemodialysis_pipelines_count" form:"hemodialysis_pipelines_count"`
  276. PunctureNeedle string `gorm:"column:puncture_needle" json:"puncture_needle" form:"puncture_needle"`
  277. PunctureNeedleCount float64 `gorm:"column:puncture_needle_count" json:"puncture_needle_count" form:"puncture_needle_count"`
  278. Epo string `gorm:"column:epo" json:"epo" form:"epo"`
  279. EpoCount float64 `gorm:"column:epo_count" json:"epo_count" form:"epo_count"`
  280. DialysisDialyszers string `gorm:"column:dialysis_dialyszers" json:"dialysis_dialyszers" form:"dialysis_dialyszers"`
  281. DialysisIrrigation string `gorm:"column:dialysis_irrigation" json:"dialysis_irrigation" form:"dialysis_irrigation"`
  282. }
  283. func (BloodDialysisPrescription) TableName() string {
  284. return "xt_dialysis_prescription"
  285. }
  286. type DialysisTotalDataStruct struct {
  287. Date string `json:"date"`
  288. Number string `json:"number"`
  289. ModeID string `json:"mode_id"`
  290. }
  291. //type UserInspectionProjectCount struct {
  292. // PatientId int64
  293. // Count int64
  294. // ProjectId int64
  295. //}
  296. type InspectionReferenceMaps struct {
  297. ProjectName string `gorm:"-" json:"project_name" form:"project_name"`
  298. Project string `gorm:"-" json:"project" form:"project"`
  299. ProjectId int64 `gorm:"-" json:"project_id" form:"project_id"`
  300. Count int64 `gorm:"-" json:"count" form:"count"`
  301. CheckConfiguration []CheckConfiguration `gorm:"-" json:"inspection_reference" form:"inspection_reference"`
  302. }
  303. type VmPatientInspectionTwo struct {
  304. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  305. Total int64
  306. Count int64
  307. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  308. }
  309. type VmPatientInspection struct {
  310. ID int64 `gorm:"column:id" json:"id" form:"id"`
  311. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  312. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  313. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  314. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  315. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  316. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  317. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  318. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  319. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  320. Status int64 `gorm:"column:status" json:"status" form:"status"`
  321. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  322. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  323. Name string `gorm:"column:name" json:"name" form:"name"`
  324. RangMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  325. RangMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  326. Total int64
  327. Count int64
  328. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  329. }
  330. type XtPatientInspection struct {
  331. ID int64 `gorm:"column:id" json:"id" form:"id"`
  332. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  333. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  334. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  335. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  336. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  337. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  338. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  339. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  340. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  341. Status int64 `gorm:"column:status" json:"status" form:"status"`
  342. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  343. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  344. Name string `gorm:"column:name" json:"name" form:"name"`
  345. RangMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  346. RangMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  347. Count int64
  348. }
  349. type PatientsInspection struct {
  350. ID int64 `gorm:"column:id" json:"id" form:"id"`
  351. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  352. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  353. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  354. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  355. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  356. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  357. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  358. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  359. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  360. Status int64 `gorm:"column:status" json:"status" form:"status"`
  361. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  362. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  363. Name string `gorm:"column:name" json:"name" form:"name"`
  364. }
  365. func (PatientsInspection) TableName() string {
  366. return "xt_inspection"
  367. }
  368. type PatientInspectionProjectCount struct {
  369. PatientId int64
  370. Count int64
  371. ProjectId int64
  372. ProjectName string
  373. Name string `gorm:"column:name" json:"name" form:"name"`
  374. }
  375. type ProjectCountOne struct {
  376. Total string
  377. Count int64
  378. NoCount int64
  379. }
  380. type ProjectCountTwo struct {
  381. Name string
  382. Count int64
  383. }
  384. type ProjectCount struct {
  385. Total string
  386. Count int64
  387. }
  388. type PatientInspectionCount struct {
  389. ID int64 `gorm:"column:id" json:"id" form:"id"`
  390. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  391. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  392. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  393. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  394. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  395. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  396. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  397. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  398. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  399. Status int64 `gorm:"column:status" json:"status" form:"status"`
  400. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  401. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  402. Name string `gorm:"column:name" json:"name" form:"name"`
  403. RangMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  404. RangMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  405. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  406. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  407. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  408. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  409. LargeRange string `gorm:"column:large_range" json:"large_range" form:"large_range"`
  410. MinRange string `gorm:"column:min_range" json:"min_range" form:"min_range"`
  411. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  412. }
  413. func (PatientInspectionCount) TableName() string {
  414. return "xt_inspection"
  415. }
  416. type BloodDialysisOrderCount struct {
  417. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  418. Count int64
  419. }
  420. type BloodDialysisOrder struct {
  421. ID int64 `gorm:"column:id" json:"id" form:"id"`
  422. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  423. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  424. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  425. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  426. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  427. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  428. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  429. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  430. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  431. Status int64 `gorm:"column:status" json:"status" form:"status"`
  432. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  433. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  434. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  435. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  436. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  437. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  438. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  439. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  440. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  441. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  442. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  443. Name string `gorm:"column:name" json:"name" form:"name"`
  444. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  445. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  446. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  447. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  448. }
  449. type TreatDialysisOrder struct {
  450. Date string `json:"date"`
  451. }
  452. type TreatTotalStruct struct {
  453. Number string `json:"number"`
  454. ModeID string `json:"mode_id"`
  455. }
  456. type XTMonitoringRecords struct {
  457. ID int64 `gorm:"column:id" json:"id"`
  458. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  459. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  460. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  461. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  462. Monitoring_date int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  463. Name string `gorm:"column:name" json:"name"`
  464. }
  465. type XTMonitoringRecord struct {
  466. ID int64 `gorm:"column:id" json:"id"`
  467. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  468. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  469. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  470. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  471. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  472. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  473. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  474. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  475. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  476. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  477. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  478. Pic string `gorm:"column:pic" json:"pic"`
  479. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  480. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  481. VenousPressureType int64 `gorm:"column:venous_pressure_type" json:"venous_pressure_type"`
  482. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  483. ArterialPressureType int64 `gorm:"column:arterial_pressure_type" json:"arterial_pressure_type"`
  484. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  485. TransmembranePressureType int64 `gorm:"column:transmembrane_pressure_type" json:"transmembrane_pressure_type"`
  486. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  487. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  488. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  489. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  490. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  491. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  492. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  493. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  494. Symptom string `gorm:"column:symptom" json:"symptom"`
  495. Dispose string `gorm:"column:dispose" json:"dispose"`
  496. Result string `gorm:"column:result" json:"result"`
  497. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  498. Status int64 `gorm:"column:status" json:"status"`
  499. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  500. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  501. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  502. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  503. BloodOxygenSaturation string `gorm:"column:blood_oxygen_saturation" json:"blood_oxygen_saturation" form:"blood_oxygen_saturation"`
  504. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  505. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  506. Heparin float64 `gorm:"column:heparin" json:"heparin" form:"heparin"`
  507. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  508. Sort int64 `gorm:"column:sort" json:"sort"`
  509. }
  510. func (XTMonitoringRecord) TableName() string {
  511. return "xt_monitoring_record"
  512. }
  513. type VmMonitoringRecord struct {
  514. ID int64 `gorm:"column:id" json:"id"`
  515. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  516. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  517. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  518. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  519. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  520. }
  521. func (VmMonitoringRecord) TableName() string {
  522. return "xt_monitoring_record"
  523. }
  524. type XtPatientsInspection struct {
  525. ID int64 `gorm:"column:id" json:"id" form:"id"`
  526. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  527. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  528. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  529. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  530. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  531. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  532. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  533. Status int64 `gorm:"column:status" json:"status" form:"status"`
  534. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  535. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  536. Name string `gorm:"column:name" json:"name" form:"name"`
  537. MinRange string `gorm:"column:min_range" json:"min_range" form:"min_range"`
  538. LargeRange string `gorm:"column:large_range" json:"large_range" form:"large_range"`
  539. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  540. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  541. }
  542. type BloodDialysisModeIdCount struct {
  543. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  544. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  545. Count int64
  546. }
  547. type BloodTreateModeIdCount struct {
  548. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  549. Count int64
  550. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  551. }
  552. type BloodLapsetoCount struct {
  553. ID int64 `gorm:"column:id" json:"id" form:"id"`
  554. Count int64
  555. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time" form:"lapseto_time"`
  556. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type" form:"lapseto_type"`
  557. }
  558. type BloodDialysisOrderOne struct {
  559. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  560. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  561. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  562. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  563. Count int64
  564. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  565. }