common_models.go 42KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  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. }
  281. func (BloodDialysisPrescription) TableName() string {
  282. return "xt_dialysis_prescription"
  283. }
  284. type DialysisTotalDataStruct struct {
  285. Date string `json:"date"`
  286. Number string `json:"number"`
  287. ModeID string `json:"mode_id"`
  288. }
  289. //type UserInspectionProjectCount struct {
  290. // PatientId int64
  291. // Count int64
  292. // ProjectId int64
  293. //}
  294. type InspectionReferenceMaps struct {
  295. ProjectName string `gorm:"-" json:"project_name" form:"project_name"`
  296. Project string `gorm:"-" json:"project" form:"project"`
  297. ProjectId int64 `gorm:"-" json:"project_id" form:"project_id"`
  298. Count int64 `gorm:"-" json:"count" form:"count"`
  299. CheckConfiguration []CheckConfiguration `gorm:"-" json:"inspection_reference" form:"inspection_reference"`
  300. }
  301. type VmPatientInspectionTwo struct {
  302. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  303. Total int64
  304. Count int64
  305. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  306. }
  307. type VmPatientInspection struct {
  308. ID int64 `gorm:"column:id" json:"id" form:"id"`
  309. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  310. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  311. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  312. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  313. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  314. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  315. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  316. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  317. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  318. Status int64 `gorm:"column:status" json:"status" form:"status"`
  319. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  320. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  321. Name string `gorm:"column:name" json:"name" form:"name"`
  322. RangMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  323. RangMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  324. Total int64
  325. Count int64
  326. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  327. }
  328. type XtPatientInspection struct {
  329. ID int64 `gorm:"column:id" json:"id" form:"id"`
  330. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  331. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  332. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  333. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  334. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  335. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  336. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  337. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  338. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  339. Status int64 `gorm:"column:status" json:"status" form:"status"`
  340. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  341. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  342. Name string `gorm:"column:name" json:"name" form:"name"`
  343. RangMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  344. RangMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  345. Count int64
  346. }
  347. type PatientsInspection struct {
  348. ID int64 `gorm:"column:id" json:"id" form:"id"`
  349. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  350. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  351. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  352. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  353. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  354. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  355. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  356. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  357. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  358. Status int64 `gorm:"column:status" json:"status" form:"status"`
  359. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  360. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  361. Name string `gorm:"column:name" json:"name" form:"name"`
  362. }
  363. func (PatientsInspection) TableName() string {
  364. return "xt_inspection"
  365. }
  366. type PatientInspectionProjectCount struct {
  367. PatientId int64
  368. Count int64
  369. ProjectId int64
  370. ProjectName string
  371. Name string `gorm:"column:name" json:"name" form:"name"`
  372. }
  373. type ProjectCountOne struct {
  374. Total string
  375. Count int64
  376. NoCount int64
  377. }
  378. type ProjectCountTwo struct {
  379. Name string
  380. Count int64
  381. }
  382. type ProjectCount struct {
  383. Total string
  384. Count int64
  385. }
  386. type PatientInspectionCount struct {
  387. ID int64 `gorm:"column:id" json:"id" form:"id"`
  388. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  389. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  390. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  391. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  392. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  393. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  394. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  395. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  396. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  397. Status int64 `gorm:"column:status" json:"status" form:"status"`
  398. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  399. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  400. Name string `gorm:"column:name" json:"name" form:"name"`
  401. RangMax string `gorm:"column:range_max" json:"range_max" form:"range_max"`
  402. RangMin string `gorm:"column:range_min" json:"range_min" form:"range_min"`
  403. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  404. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  405. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  406. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  407. LargeRange string `gorm:"column:large_range" json:"large_range" form:"large_range"`
  408. MinRange string `gorm:"column:min_range" json:"min_range" form:"min_range"`
  409. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  410. }
  411. func (PatientInspectionCount) TableName() string {
  412. return "xt_inspection"
  413. }
  414. type BloodDialysisOrderCount struct {
  415. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  416. Count int64
  417. }
  418. type BloodDialysisOrder struct {
  419. ID int64 `gorm:"column:id" json:"id" form:"id"`
  420. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  421. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  422. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  423. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  424. Stage int64 `gorm:"column:stage" json:"stage" form:"stage"`
  425. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  426. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  427. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  428. FinishNurse int64 `gorm:"column:finish_nurse" json:"finish_nurse" form:"finish_nurse"`
  429. Status int64 `gorm:"column:status" json:"status" form:"status"`
  430. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  431. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  432. PunctureNurse int64 `gorm:"column:puncture_nurse" json:"puncture_nurse" form:"puncture_nurse"`
  433. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  434. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  435. FinishCreator int64 `gorm:"column:finish_creator" json:"finish_creator" form:"finish_creator"`
  436. FinishModifier int64 `gorm:"column:finish_modifier" json:"finish_modifier" form:"finish_modifier"`
  437. SchedualType int64 `gorm:"column:schedual_type" json:"schedual_type" form:"schedual_type"`
  438. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  439. EndTime int64 `gorm:"column:end_time" json:"end_time" form:"end_time"`
  440. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  441. Name string `gorm:"column:name" json:"name" form:"name"`
  442. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  443. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  444. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  445. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  446. }
  447. type TreatDialysisOrder struct {
  448. Date string `json:"date"`
  449. }
  450. type TreatTotalStruct struct {
  451. Number string `json:"number"`
  452. ModeID string `json:"mode_id"`
  453. }
  454. type XTMonitoringRecords struct {
  455. ID int64 `gorm:"column:id" json:"id"`
  456. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  457. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  458. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  459. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  460. Monitoring_date int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  461. Name string `gorm:"column:name" json:"name"`
  462. }
  463. type XTMonitoringRecord struct {
  464. ID int64 `gorm:"column:id" json:"id"`
  465. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  466. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  467. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id"`
  468. MonitoringDate int64 `gorm:"column:monitoring_date" json:"monitoring_date"`
  469. OperateTime int64 `gorm:"column:operate_time" json:"operate_time"`
  470. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  471. PulseFrequency float64 `gorm:"column:pulse_frequency" json:"pulse_frequency"`
  472. BreathingRate float64 `gorm:"column:breathing_rate" json:"breathing_rate"`
  473. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  474. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  475. BloodPressureType int64 `gorm:"column:blood_pressure_type" json:"blood_pressure_type"`
  476. Pic string `gorm:"column:pic" json:"pic"`
  477. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  478. VenousPressure float64 `gorm:"column:venous_pressure" json:"venous_pressure"`
  479. VenousPressureType int64 `gorm:"column:venous_pressure_type" json:"venous_pressure_type"`
  480. ArterialPressure float64 `gorm:"column:arterial_pressure" json:"arterial_pressure"`
  481. ArterialPressureType int64 `gorm:"column:arterial_pressure_type" json:"arterial_pressure_type"`
  482. TransmembranePressure float64 `gorm:"column:transmembrane_pressure" json:"transmembrane_pressure"`
  483. TransmembranePressureType int64 `gorm:"column:transmembrane_pressure_type" json:"transmembrane_pressure_type"`
  484. UltrafiltrationRate float64 `gorm:"column:ultrafiltration_rate" json:"ultrafiltration_rate"`
  485. UltrafiltrationVolume float64 `gorm:"column:ultrafiltration_volume" json:"ultrafiltration_volume"`
  486. SodiumConcentration float64 `gorm:"column:sodium_concentration" json:"sodium_concentration"`
  487. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  488. Temperature float64 `gorm:"column:temperature" json:"temperature"`
  489. ReplacementRate float64 `gorm:"column:replacement_rate" json:"replacement_rate"`
  490. DisplacementQuantity float64 `gorm:"column:displacement_quantity" json:"displacement_quantity"`
  491. Ktv float64 `gorm:"column:ktv" json:"ktv"`
  492. Symptom string `gorm:"column:symptom" json:"symptom"`
  493. Dispose string `gorm:"column:dispose" json:"dispose"`
  494. Result string `gorm:"column:result" json:"result"`
  495. MonitoringNurse int64 `gorm:"column:monitoring_nurse" json:"monitoring_nurse"`
  496. Status int64 `gorm:"column:status" json:"status"`
  497. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  498. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  499. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  500. DisplacementFlowQuantity float64 `gorm:"column:displacement_flow_quantity" json:"displacement_flow_quantity"`
  501. BloodOxygenSaturation string `gorm:"column:blood_oxygen_saturation" json:"blood_oxygen_saturation" form:"blood_oxygen_saturation"`
  502. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  503. Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
  504. Heparin float64 `gorm:"column:heparin" json:"heparin" form:"heparin"`
  505. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  506. Sort int64 `gorm:"column:sort" json:"sort"`
  507. }
  508. func (XTMonitoringRecord) TableName() string {
  509. return "xt_monitoring_record"
  510. }
  511. type VmMonitoringRecord struct {
  512. ID int64 `gorm:"column:id" json:"id"`
  513. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  514. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  515. MonitoringTime string `gorm:"column:monitoring_time" json:"monitoring_time"`
  516. SystolicBloodPressure float64 `gorm:"column:systolic_blood_pressure" json:"systolic_blood_pressure"`
  517. DiastolicBloodPressure float64 `gorm:"column:diastolic_blood_pressure" json:"diastolic_blood_pressure"`
  518. }
  519. func (VmMonitoringRecord) TableName() string {
  520. return "xt_monitoring_record"
  521. }
  522. type XtPatientsInspection struct {
  523. ID int64 `gorm:"column:id" json:"id" form:"id"`
  524. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  525. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  526. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  527. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  528. InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"`
  529. InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"`
  530. InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"`
  531. Status int64 `gorm:"column:status" json:"status" form:"status"`
  532. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  533. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  534. Name string `gorm:"column:name" json:"name" form:"name"`
  535. MinRange string `gorm:"column:min_range" json:"min_range" form:"min_range"`
  536. LargeRange string `gorm:"column:large_range" json:"large_range" form:"large_range"`
  537. RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"`
  538. RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"`
  539. }
  540. type BloodDialysisModeIdCount struct {
  541. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  542. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  543. Count int64
  544. }
  545. type BloodTreateModeIdCount struct {
  546. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  547. Count int64
  548. DialysisDate int64 `gorm:"column:dialysis_date" json:"dialysis_date" form:"dialysis_date"`
  549. }
  550. type BloodLapsetoCount struct {
  551. ID int64 `gorm:"column:id" json:"id" form:"id"`
  552. Count int64
  553. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time" form:"lapseto_time"`
  554. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type" form:"lapseto_type"`
  555. }
  556. type BloodDialysisOrderOne struct {
  557. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  558. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  559. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  560. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  561. Count int64
  562. StartNurse int64 `gorm:"column:start_nurse" json:"start_nurse" form:"start_nurse"`
  563. }