patient_models.go 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. package models
  2. type Patients struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. UserId int64 `gorm:"column:user_id" json:"user_id" form:"user_id"`
  6. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  7. PatientType int64 `gorm:"column:patient_type" json:"patient_type" form:"patient_type"`
  8. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  9. AdmissionNumber string `gorm:"column:admission_number" json:"admission_number" form:"admission_number"`
  10. Source int64 `gorm:"column:source" json:"source" form:"source"`
  11. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  12. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  13. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  14. Name string `gorm:"column:name" json:"name" form:"name"`
  15. Alias string `gorm:"column:alias" json:"alias" form:"alias"`
  16. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  17. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  18. NativePlace string `gorm:"column:native_place" json:"native_place" form:"native_place"`
  19. MaritalStatus int64 `gorm:"column:marital_status" json:"marital_status" form:"marital_status"`
  20. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  21. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  22. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  23. HealthCareType int64 `gorm:"column:health_care_type" json:"health_care_type" form:"health_care_type"`
  24. HealthCareNo string `gorm:"column:health_care_no" json:"health_care_no" form:"health_care_no"`
  25. HealthCareDueDate int64 `gorm:"column:health_care_due_date" json:"health_care_due_date" form:"health_care_due_date"`
  26. Height int64 `gorm:"column:height" json:"height" form:"height"`
  27. BloodType int64 `gorm:"column:blood_type" json:"blood_type" form:"blood_type"`
  28. Rh int64 `gorm:"column:rh" json:"rh" form:"rh"`
  29. HealthCareDueAlertDate int64 `gorm:"column:health_care_due_alert_date" json:"health_care_due_alert_date" form:"health_care_due_alert_date"`
  30. EducationLevel int64 `gorm:"column:education_level" json:"education_level" form:"education_level"`
  31. Profession int64 `gorm:"column:profession" json:"profession" form:"profession"`
  32. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  33. HomeTelephone string `gorm:"column:home_telephone" json:"home_telephone" form:"home_telephone"`
  34. RelativePhone string `gorm:"column:relative_phone" json:"relative_phone" form:"relative_phone"`
  35. RelativeRelations string `gorm:"column:relative_relations" json:"relative_relations" form:"relative_relations"`
  36. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  37. WorkUnit string `gorm:"column:work_unit" json:"work_unit" form:"work_unit"`
  38. UnitAddress string `gorm:"column:unit_address" json:"unit_address" form:"unit_address"`
  39. Children int64 `gorm:"column:children" json:"children" form:"children"`
  40. ReceivingDate int64 `gorm:"column:receiving_date" json:"receiving_date" form:"receiving_date"`
  41. IsHospitalFirstDialysis int64 `gorm:"column:is_hospital_first_dialysis" json:"is_hospital_first_dialysis" form:"is_hospital_first_dialysis"`
  42. FirstDialysisDate int64 `gorm:"column:first_dialysis_date" json:"first_dialysis_date" form:"first_dialysis_date"`
  43. FirstDialysisHospital string `gorm:"column:first_dialysis_hospital" json:"first_dialysis_hospital" form:"first_dialysis_hospital"`
  44. PredialysisCondition string `gorm:"column:predialysis_condition" json:"predialysis_condition" form:"predialysis_condition"`
  45. PreHospitalDialysisFrequency string `gorm:"column:pre_hospital_dialysis_frequency" json:"pre_hospital_dialysis_frequency" form:"pre_hospital_dialysis_frequency"`
  46. PreHospitalDialysisTimes int64 `gorm:"column:pre_hospital_dialysis_times" json:"pre_hospital_dialysis_times" form:"pre_hospital_dialysis_times"`
  47. HospitalFirstDialysisDate int64 `gorm:"column:hospital_first_dialysis_date" json:"hospital_first_dialysis_date" form:"hospital_first_dialysis_date"`
  48. InductionPeriod int64 `gorm:"column:induction_period" json:"induction_period" form:"induction_period"`
  49. InitialDialysis int64 `gorm:"column:initial_dialysis" json:"initial_dialysis" form:"initial_dialysis"`
  50. TotalDialysis int64 `gorm:"column:total_dialysis" json:"total_dialysis" form:"total_dialysis"`
  51. AttendingDoctorId int64 `gorm:"column:attending_doctor_id" json:"attending_doctor_id" form:"attending_doctor_id"`
  52. HeadNurseId int64 `gorm:"column:head_nurse_id" json:"head_nurse_id" form:"head_nurse_id"`
  53. Evaluate string `gorm:"column:evaluate" json:"evaluate" form:"evaluate"`
  54. Diagnose string `gorm:"column:diagnose" json:"diagnose" form:"diagnose"`
  55. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  56. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  57. Registrars string `gorm:"column:registrars" json:"registrars" form:"registrars"`
  58. QrCode string `gorm:"column:qr_code" json:"qr_code" form:"qr_code"`
  59. BindingState int64 `gorm:"column:binding_state" json:"binding_state" form:"binding_state"`
  60. PatientComplains string `gorm:"column:patient_complains" json:"patient_complains"` // 主诉
  61. PresentHistory string `gorm:"column:present_history" json:"present_history"` // 现病史
  62. PastHistory string `gorm:"column:past_history" json:"past_history"` // 既往史
  63. Temperature float64 `gorm:"column:temperature" json:"temperature"` // 体格检查-体温
  64. Pulse int64 `gorm:"column:pulse" json:"pulse"` // 体格检查-脉搏
  65. Respiratory int64 `gorm:"column:respiratory" json:"respiratory"` // 体格检查-呼吸频率
  66. SBP int64 `gorm:"column:sbp" json:"sbp"` // 体格检查-收缩压
  67. DBP int64 `gorm:"column:dbp" json:"dbp"` // 体格检查-舒张压
  68. Status int64 `gorm:"column:status" json:"status" form:"status"`
  69. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  70. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  71. DialysisSolutions []DialysisSolution `json:"solutions" gorm:"foreignkey:PatientId"`
  72. Age int64 `gorm:"column:age" json:"age"`
  73. Contagions []InfectiousDiseases `json:"contagions" gorm:"foreignkey:PatientId"`
  74. Diseases []ChronicDiseases `json:"diseases" gorm:"foreignkey:PatientId"`
  75. }
  76. func (Patients) TableName() string {
  77. return "xt_patients"
  78. }
  79. type ChronicDiseases struct {
  80. ID int64 `gorm:"column:id" json:"id" form:"id"`
  81. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  82. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  83. Status int64 `gorm:"column:status" json:"status" form:"status"`
  84. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  85. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  86. }
  87. func (ChronicDiseases) TableName() string {
  88. return "xt_patients_chronic_diseases"
  89. }
  90. type InfectiousDiseases struct {
  91. ID int64 `gorm:"column:id" json:"id" form:"id"`
  92. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  93. DiseaseId int64 `gorm:"column:disease_id" json:"disease_id" form:"disease_id"`
  94. Status int64 `gorm:"column:status" json:"status" form:"status"`
  95. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  96. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  97. }
  98. func (InfectiousDiseases) TableName() string {
  99. return "xt_patients_infectious_diseases"
  100. }
  101. type DialysisPrescription struct {
  102. ID int64 `gorm:"column:id" json:"id"`
  103. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id"`
  104. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  105. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer"`
  106. MachineType string `gorm:"column:machine_type" json:"machine_type"`
  107. DewaterAmount float64 `gorm:"column:dewater_amount" json:"dewater_amount"`
  108. PrescriptionDewatering float64 `gorm:"column:prescription_dewatering" json:"prescription_dewatering"`
  109. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant"`
  110. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji"`
  111. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi"`
  112. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang"`
  113. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng"`
  114. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang"`
  115. ModeId int64 `gorm:"column:mode_id" json:"mode_id"`
  116. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration"`
  117. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  118. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way"`
  119. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine"`
  120. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter"`
  121. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus"`
  122. // DryWeight float64 `gorm:"column:dry_weight" json:"dry_weight"`
  123. VascularAccessMode int64 `gorm:"column:vascular_access_mode" json:"vascular_access_mode"`
  124. VascularAccess int64 `gorm:"column:vascular_access" json:"vascular_access"`
  125. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume"`
  126. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow"`
  127. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui"`
  128. Kalium float64 `gorm:"column:kalium" json:"kalium"`
  129. Sodium float64 `gorm:"column:sodium" json:"sodium"`
  130. Calcium float64 `gorm:"column:calcium" json:"calcium"`
  131. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate"`
  132. Glucose float64 `gorm:"column:glucose" json:"glucose"`
  133. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature"`
  134. Conductivity float64 `gorm:"column:conductivity" json:"conductivity"`
  135. PrescriptionDoctor int64 `gorm:"column:prescription_doctor" json:"prescription_doctor"`
  136. Remark string `gorm:"column:remark" json:"remark"`
  137. Status int64 `gorm:"column:status" json:"status"`
  138. CreatedTime int64 `gorm:"column:created_time" json:"created_time"`
  139. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time"`
  140. RecordDate int64 `gorm:"column:record_date" json:"record_date"`
  141. RecordId int64 `gorm:"column:record_id" json:"record_id"`
  142. Creater int64 `gorm:"column:creater" json:"creater"`
  143. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  144. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour"`
  145. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute"`
  146. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation"`
  147. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration"`
  148. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  149. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  150. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  151. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  152. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  153. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  154. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  155. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  156. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  157. Niprocart int64 `gorm:"column:niprocart" json:"niprocart"`
  158. Jms int64 `gorm:"column:jms" json:"jms"`
  159. FistulaNeedleSet int64 `gorm:"column:fistula_needle_set" json:"fistula_needle_set"`
  160. FistulaNeedleSet16 int64 `gorm:"column:fistula_needle_set_16" json:"fistula_needle_set_16"`
  161. Hemoperfusion int64 `gorm:"column:hemoperfusion" json:"hemoperfusion"`
  162. DialyserSterilised int64 `gorm:"column:dialyser_sterilised" json:"dialyser_sterilised"`
  163. Filtryzer int64 `gorm:"column:filtryzer" json:"filtryzer"`
  164. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  165. Dialyzers int64 `gorm:"column:dialyzers" json:"dialyzers"`
  166. Injector int64 `gorm:"column:injector" json:"injector"`
  167. Bloodlines int64 `gorm:"column:bloodlines" json:"bloodlines"`
  168. TubingHemodialysis int64 `gorm:"column:tubing_hemodialysis" json:"tubing_hemodialysis"`
  169. Package int64 `gorm:"column:package" json:"package"`
  170. ALiquid int64 `gorm:"column:a_liquid" json:"a_liquid"`
  171. }
  172. func (DialysisPrescription) TableName() string {
  173. return "xt_dialysis_prescription"
  174. }
  175. type DialysisSolution struct {
  176. ID int64 `gorm:"column:id" json:"id" form:"id"`
  177. Name string `gorm:"column:name" json:"name" form:"name"`
  178. SubName string `gorm:"column:sub_name" json:"sub_name" form:"sub_name"`
  179. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  180. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  181. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  182. Type int64 `gorm:"column:type" json:"type" form:"type"`
  183. Period string `gorm:"column:period" json:"period" form:"period"`
  184. Times string `gorm:"column:times" json:"times" form:"times"`
  185. Anticoagulant int64 `gorm:"column:anticoagulant" json:"anticoagulant" form:"anticoagulant"`
  186. AnticoagulantShouji float64 `gorm:"column:anticoagulant_shouji" json:"anticoagulant_shouji" form:"anticoagulant_shouji"`
  187. AnticoagulantWeichi float64 `gorm:"column:anticoagulant_weichi" json:"anticoagulant_weichi" form:"anticoagulant_weichi"`
  188. AnticoagulantZongliang float64 `gorm:"column:anticoagulant_zongliang" json:"anticoagulant_zongliang" form:"anticoagulant_zongliang"`
  189. AnticoagulantGaimingcheng string `gorm:"column:anticoagulant_gaimingcheng" json:"anticoagulant_gaimingcheng" form:"anticoagulant_gaimingcheng"`
  190. AnticoagulantGaijiliang string `gorm:"column:anticoagulant_gaijiliang" json:"anticoagulant_gaijiliang" form:"anticoagulant_gaijiliang"`
  191. ModeName string `gorm:"column:mode_name" json:"mode_name" form:"mode_name"`
  192. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  193. DialysisDuration float64 `gorm:"column:dialysis_duration" json:"dialysis_duration" form:"dialysis_duration"`
  194. ReplacementWay int64 `gorm:"column:replacement_way" json:"replacement_way" form:"replacement_way"`
  195. HemodialysisMachine int64 `gorm:"column:hemodialysis_machine" json:"hemodialysis_machine" form:"hemodialysis_machine"`
  196. BloodFilter int64 `gorm:"column:blood_filter" json:"blood_filter" form:"blood_filter"`
  197. PerfusionApparatus int64 `gorm:"column:perfusion_apparatus" json:"perfusion_apparatus" form:"perfusion_apparatus"`
  198. BloodFlowVolume float64 `gorm:"column:blood_flow_volume" json:"blood_flow_volume" form:"blood_flow_volume"`
  199. Dewater float64 `gorm:"column:dewater" json:"dewater" form:"dewater"`
  200. DisplaceLiqui float64 `gorm:"column:displace_liqui" json:"displace_liqui" form:"displace_liqui"`
  201. Glucose float64 `gorm:"column:glucose" json:"glucose" form:"glucose"`
  202. DialysateFlow float64 `gorm:"column:dialysate_flow" json:"dialysate_flow" form:"dialysate_flow"`
  203. Kalium float64 `gorm:"column:kalium" json:"kalium" form:"kalium"`
  204. Sodium float64 `gorm:"column:sodium" json:"sodium" form:"sodium"`
  205. Calcium float64 `gorm:"column:calcium" json:"calcium" form:"calcium"`
  206. Bicarbonate float64 `gorm:"column:bicarbonate" json:"bicarbonate" form:"bicarbonate"`
  207. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  208. FirstDialysis int64 `gorm:"column:first_dialysis" json:"first_dialysis" form:"first_dialysis"`
  209. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  210. InitiateMode int64 `gorm:"column:initiate_mode" json:"initiate_mode" form:"initiate_mode"`
  211. AffirmState int64 `gorm:"column:affirm_state" json:"affirm_state" form:"affirm_state"`
  212. UseState int64 `gorm:"column:use_state" json:"use_state" form:"use_state"`
  213. Status int64 `gorm:"column:status" json:"status" form:"status"`
  214. RegistrarsId int64 `gorm:"column:registrars_id" json:"registrars_id" form:"registrars_id"`
  215. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  216. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  217. SolutionType int64 `gorm:"column:solution_type" json:"solution_type" form:"solution_type"`
  218. DialysateTemperature float64 `gorm:"column:dialysate_temperature" json:"dialysate_temperature" form:"dialysate_temperature"`
  219. Conductivity float64 `gorm:"column:conductivity" json:"conductivity" form:"conductivity"`
  220. BodyFluid int64 `gorm:"column:body_fluid" json:"body_fluid"`
  221. SpecialMedicine int64 `gorm:"column:special_medicine" json:"special_medicine"`
  222. SpecialMedicineOther string `gorm:"column:special_medicine_other" json:"special_medicine_other"`
  223. DisplaceLiquiPart int64 `gorm:"column:displace_liqui_part" json:"displace_liqui_part"`
  224. DisplaceLiquiValue float64 `gorm:"column:displace_liqui_value" json:"displace_liqui_value"`
  225. BloodAccess int64 `gorm:"column:blood_access" json:"blood_access"`
  226. Ultrafiltration float64 `gorm:"column:ultrafiltration" json:"ultrafiltration"`
  227. DialysisDurationHour int64 `gorm:"column:dialysis_duration_hour" json:"dialysis_duration_hour" form:"dialysis_duration_hour"`
  228. DialysisDurationMinute int64 `gorm:"column:dialysis_duration_minute" json:"dialysis_duration_minute" form:"dialysis_duration_minute"`
  229. TargetUltrafiltration float64 `gorm:"column:target_ultrafiltration" json:"target_ultrafiltration" form:"target_ultrafiltration"`
  230. DialysateFormulation int64 `gorm:"column:dialysate_formulation" json:"dialysate_formulation" form:"dialysate_formulation"`
  231. Dialyzer int64 `gorm:"column:dialyzer" json:"dialyzer" form:"dialysate_formulation"`
  232. ReplacementTotal float64 `gorm:"column:replacement_total" json:"replacement_total"`
  233. DialyzerPerfusionApparatus string `gorm:"column:dialyzer_perfusion_apparatus" json:"dialyzer_perfusion_apparatus"`
  234. BodyFluidOther string `gorm:"column:body_fluid_other" json:"body_fluid_other"`
  235. TargetKtv float64 `gorm:"column:target_ktv" json:"target_ktv"`
  236. }
  237. func (DialysisSolution) TableName() string {
  238. return "xt_dialysis_solution"
  239. }
  240. type PatientDialysisRecord struct {
  241. DialysisOrder
  242. ScheduleType int64 `gorm:"-" json:"schedule_type" form:"schedule_type"`
  243. PartitionId int64 `gorm:"-" json:"partition_id" form:"partition_id"`
  244. PartitionName string `gorm:"-" json:"partition_name" form:"partition_name"`
  245. DeviceNumber string `gorm:"-" json:"device_number" form:"device_number"`
  246. // DialysisPrescription DialysisPrescription `json:"prescription" gorm:"foreignkey:RecordId"`
  247. // PredialysisEvaluation PredialysisEvaluation `json:"predialysis_evaluation" gorm:"foreignkey:DialysisOrderId"`
  248. // AssessmentAfterDislysis AssessmentAfterDislysis `json:"assessment_after_dislysis" gorm:"foreignkey:DialysisOrderId"`
  249. // TreatmentSummary TreatmentSummary `json:"treatment_summary" gorm:"foreignkey:DialysisOrderId"`
  250. DialysisPrescription DialysisPrescription `json:"prescription" gorm:"foreignkey:RecordDate;AssociationForeignKey:DialysisDate;"`
  251. PredialysisEvaluation PredialysisEvaluation `json:"predialysis_evaluation" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  252. AssessmentAfterDislysis AssessmentAfterDislysis `json:"assessment_after_dislysis" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  253. TreatmentSummary TreatmentSummary `json:"treatment_summary" gorm:"foreignkey:AssessmentDate;AssociationForeignKey:DialysisDate;"`
  254. }
  255. type DialysisPrescriptionAddtional struct {
  256. DialysisPrescription
  257. }
  258. type PatientDiseaseCourse struct {
  259. ID int64 `gorm:"column:id" json:"id" form:"id"`
  260. OrgID int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  261. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  262. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  263. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  264. Content string `gorm:"column:content" json:"content" form:"content"`
  265. Status int64 `gorm:"column:status" json:"-" form:"-"`
  266. CreateTime int64 `gorm:"column:ctime" json:"-" form:"-"`
  267. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"-"`
  268. Title string `gorm:"column:title" json:"title"`
  269. }
  270. func (PatientDiseaseCourse) TableName() string {
  271. return "xt_patient_course_of_disease"
  272. }
  273. type PatientRescueRecord struct {
  274. ID int64 `gorm:"column:id" json:"id" form:"id"`
  275. OrgID int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  276. PatientID int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  277. Recorder int64 `gorm:"column:recorder" json:"recorder" form:"recorder"`
  278. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  279. Content string `gorm:"column:content" json:"content" form:"content"`
  280. Status int64 `gorm:"column:status" json:"-" form:"-"`
  281. CreateTime int64 `gorm:"column:ctime" json:"-" form:"-"`
  282. ModifyTime int64 `gorm:"column:mtime" json:"-" form:"-"`
  283. }
  284. func (PatientRescueRecord) TableName() string {
  285. return "xt_patient_rescue_record"
  286. }
  287. type PatientLapseto struct {
  288. ID int64 `gorm:"column:id" json:"id" form:"id"`
  289. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  290. LapsetoType int64 `gorm:"column:lapseto_type" json:"lapseto_type" form:"lapseto_type"`
  291. LapsetoTime int64 `gorm:"column:lapseto_time" json:"lapseto_time" form:"lapseto_time"`
  292. Status int64 `gorm:"column:status" json:"status" form:"status"`
  293. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  294. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  295. }
  296. func (PatientLapseto) TableName() string {
  297. return "xt_patient_lapseto"
  298. }