management_models.go 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package management_service
  2. type PatientLapseto struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  5. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type" form:"lapseto_type"`
  6. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time" form:"lapseto_time"`
  7. Status int64 `gorm:"column:status" json:"status" form:"status"`
  8. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  9. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  10. }
  11. func (PatientLapseto) TableName() string {
  12. return "xt_patient_lapseto"
  13. }
  14. type Patients struct {
  15. ID int64 `gorm:"column:id" json:"id" form:"id"`
  16. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  17. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  18. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  19. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  20. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  21. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  22. Source int64 `gorm:"column:source" json:"source" form:"source"`
  23. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  24. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  25. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  26. Name string `gorm:"column:name" json:"name" form:"name"`
  27. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  28. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  29. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  30. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  31. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  32. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  33. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  34. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  35. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  36. Height int64 `gorm:"column:height" json:"height" form:"height"`
  37. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  38. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  39. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  40. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  41. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  42. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  43. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  44. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  45. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  46. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  47. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  48. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  49. Children int64 `gorm:"column:children" json:"children" form:"children"`
  50. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  51. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  52. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  53. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  54. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  55. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  56. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  57. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  58. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  59. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  60. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  61. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  62. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  63. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  64. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  65. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  66. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  67. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  68. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  69. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  70. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains" form:"patient_complains"`
  71. PresentHistory string `gorm:"column:present_history" json:"present_history" form:"present_history"`
  72. PastHistory string `gorm:"column:past_history" json:"past_history" form:"past_history"`
  73. Temperature float64 `gorm:"column:temperature" json:"temperature" form:"temperature"`
  74. Pulse int64 `gorm:"column:pulse" json:"pulse" form:"pulse"`
  75. Respiratory int64 `gorm:"column:respiratory" json:"respiratory" form:"respiratory"`
  76. Sbp int64 `gorm:"column:sbp" json:"sbp" form:"sbp"`
  77. Dbp int64 `gorm:"column:dbp" json:"dbp" form:"dbp"`
  78. Status int64 `gorm:"column:status" json:"status" form:"status"`
  79. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  80. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  81. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  82. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  83. Age int64 `gorm:"column:age" json:"age" form:"age"`
  84. InfectiousNextRecordTime int64 `gorm:"column:infectious_next_record_time" json:"infectious_next_record_time" form:"infectious_next_record_time"`
  85. IsInfectious int64 `gorm:"column:is_infectious" json:"is_infectious" form:"is_infectious"`
  86. IsOpenRemind int64 `gorm:"column:is_open_remind" json:"is_open_remind" form:"is_open_remind"`
  87. RemindCycle int64 `gorm:"column:remind_cycle" json:"remind_cycle" form:"remind_cycle"`
  88. ResponseResult string `gorm:"column:response_result" json:"response_result" form:"response_result"`
  89. FirstTreatmentDate int64 `gorm:"column:first_treatment_date" json:"first_treatment_date" form:"first_treatment_date"`
  90. DialysisAge int64 `gorm:"column:dialysis_age" json:"dialysis_age" form:"dialysis_age"`
  91. ExpenseKind int64 `gorm:"column:expense_kind" json:"expense_kind" form:"expense_kind"`
  92. TellPhone string `gorm:"column:tell_phone" json:"tell_phone" form:"tell_phone"`
  93. ContactName string `gorm:"column:contact_name" json:"contact_name" form:"contact_name"`
  94. UserSysBeforeCount int64 `gorm:"column:user_sys_before_count" json:"user_sys_before_count" form:"user_sys_before_count"`
  95. IsExcelExport int64 `gorm:"column:is_excel_export" json:"is_excel_export" form:"is_excel_export"`
  96. }
  97. func (Patients) TableName() string {
  98. return "xt_patients"
  99. }