common_models.go 41KB

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