his_print_models.go 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. package models
  2. type PrintPatient 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. Name string `gorm:"column:name" json:"name" form:"name"`
  6. Age string `gorm:"column:age" json:"age" form:"age"`
  7. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  8. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  9. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  10. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  11. Status int64 `gorm:"column:status" json:"status" form:"status"`
  12. HisPrintPatient HisPrintPatient `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"his_patient"`
  13. HisHospitalCheckRecord HisHospitalCheckRecord `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"his_record_patient"`
  14. HisPrescriptionInfoTwo HisPrescriptionInfoTwo `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"info"`
  15. HisPrintPrescription []*HisPrintPrescription `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"prescriptions"`
  16. }
  17. func (PrintPatient) TableName() string {
  18. return "xt_patients"
  19. }
  20. type HisPrintPatient struct {
  21. ID int64 `gorm:"column:id" json:"id" form:"id"`
  22. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  23. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  24. Name string `gorm:"column:name" json:"name" form:"name"`
  25. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  26. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  27. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  28. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  29. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  30. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  31. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  32. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  33. Total float64 `gorm:"column:total" json:"total" form:"total"`
  34. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  35. Status int64 `gorm:"column:status" json:"status" form:"status"`
  36. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  37. Number string `gorm:"column:number" json:"number" form:"number"`
  38. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  39. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  40. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  41. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  42. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  43. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  44. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  45. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  46. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  47. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  48. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  49. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  50. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  51. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  52. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  53. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  54. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  55. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  56. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  57. }
  58. func (HisPrintPatient) TableName() string {
  59. return "his_patient"
  60. }
  61. type HisPrintPrescription struct {
  62. ID int64 `gorm:"column:id" json:"id" form:"id"`
  63. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  64. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  65. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  66. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  67. Status int64 `gorm:"column:status" json:"status" form:"status"`
  68. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  69. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  70. Number string `gorm:"column:number" json:"number" form:"number"`
  71. Type int64 `gorm:"column:type" json:"type" form:"type"`
  72. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  73. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  74. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  75. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  76. PreTime int64 `gorm:"column:pre_time" json:"pre_time" form:"pre_time"`
  77. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  78. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  79. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
  80. HisPatient VMHisPatient `gorm:"ForeignKey:PatientId;AssociationForeignKey:patient_id" json:"hisPatient"`
  81. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  82. HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  83. Total string `gorm:"-" json:"total" form:"total"`
  84. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  85. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  86. }
  87. func (HisPrintPrescription) TableName() string {
  88. return "his_prescription"
  89. }
  90. type HisPrescriptionInfoTwo struct {
  91. ID int64 `gorm:"column:id" json:"id" form:"id"`
  92. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  93. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  94. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  95. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  96. Status int64 `gorm:"column:status" json:"status" form:"status"`
  97. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  98. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  99. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  100. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  101. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  102. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  103. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  104. Departments string `gorm:"column:departments" json:"departments" form:"departments"`
  105. SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
  106. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  107. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  108. PrescriptionStatus int64 `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
  109. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  110. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  111. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  112. }
  113. func (HisPrescriptionInfoTwo) TableName() string {
  114. return "his_prescription_info"
  115. }