his_print_models.go 9.4KB

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