his_print_models.go 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  13. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  14. HisPrintPatient HisPrintPatient `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"his_patient"`
  15. HisHospitalCheckRecord HisHospitalCheckRecord `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"his_record_patient"`
  16. HisPrescriptionInfoTwo HisPrescriptionInfoTwo `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"info"`
  17. HisPrintPrescription []*HisPrintPrescription `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"prescriptions"`
  18. NewHisPrintPrescription []*HisPrintPrescription `json:"new_prescriptions"`
  19. }
  20. func (PrintPatient) TableName() string {
  21. return "xt_patients"
  22. }
  23. type CheckPrintPatient struct {
  24. ID int64 `gorm:"column:id" json:"id" form:"id"`
  25. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  26. Name string `gorm:"column:name" json:"name" form:"name"`
  27. Age string `gorm:"column:age" json:"age" form:"age"`
  28. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  29. HomeAddress string `gorm:"column:home_address" json:"home_address" form:"home_address"`
  30. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  31. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  32. Status int64 `gorm:"column:status" json:"status" form:"status"`
  33. ReimbursementWayId int64 `gorm:"column:reimbursement_way_id" json:"reimbursement_way_id" form:"reimbursement_way_id"`
  34. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  35. HisPrintPatient HisPrintPatient `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"his_patient"`
  36. HisHospitalCheckRecord HisHospitalCheckRecord `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"his_record_patient"`
  37. HisPrescriptionInfoTwo HisPrescriptionInfoTwo `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"info"`
  38. HisPrintPrescription []*HisPrintPrescription `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"prescriptions"`
  39. }
  40. func (CheckPrintPatient) TableName() string {
  41. return "xt_patients"
  42. }
  43. type HisPrintPatient struct {
  44. ID int64 `gorm:"column:id" json:"id" form:"id"`
  45. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  46. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  47. Name string `gorm:"column:name" json:"name" form:"name"`
  48. Gender int64 `gorm:"column:gender" json:"gender" form:"gender"`
  49. IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
  50. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  51. PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
  52. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  53. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  54. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  55. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  56. Total float64 `gorm:"column:total" json:"total" form:"total"`
  57. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  58. Status int64 `gorm:"column:status" json:"status" form:"status"`
  59. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  60. Number string `gorm:"column:number" json:"number" form:"number"`
  61. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  62. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  63. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  64. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  65. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  66. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  67. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  68. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  69. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  70. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  71. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  72. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  73. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  74. SocialType int64 `gorm:"column:social_type" json:"social_type" form:"social_type"`
  75. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  76. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  77. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  78. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  79. PatientInfo string `gorm:"column:patient_info" json:"patient_info" form:"patient_info"`
  80. }
  81. func (HisPrintPatient) TableName() string {
  82. return "his_patient"
  83. }
  84. type HisPrintPrescription struct {
  85. ID int64 `gorm:"column:id" json:"id" form:"id"`
  86. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  87. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  88. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  89. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  90. Status int64 `gorm:"column:status" json:"status" form:"status"`
  91. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  92. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  93. Number string `gorm:"column:number" json:"number" form:"number"`
  94. Type int64 `gorm:"column:type" json:"type" form:"type"`
  95. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  96. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  97. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  98. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  99. PreTime int64 `gorm:"column:pre_time" json:"pre_time" form:"pre_time"`
  100. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  101. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  102. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  103. HisPrescriptionProject []*HisPrintPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  104. Total string `gorm:"-" json:"total" form:"total"`
  105. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  106. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  107. }
  108. func (HisPrintPrescription) TableName() string {
  109. return "his_prescription"
  110. }
  111. type HisPrescriptionInfoTwo 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. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  115. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  116. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  117. Status int64 `gorm:"column:status" json:"status" form:"status"`
  118. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  119. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  120. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  121. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  122. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  123. RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
  124. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  125. Departments string `gorm:"column:departments" json:"departments" form:"departments"`
  126. SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
  127. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  128. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  129. PrescriptionStatus int64 `gorm:"column:prescription_status" json:"prescription_status" form:"prescription_status"`
  130. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  131. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  132. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  133. }
  134. func (HisPrescriptionInfoTwo) TableName() string {
  135. return "his_prescription_info"
  136. }
  137. type HisLabelPrintStatusInfo struct {
  138. ID int64 `gorm:"column:id" json:"id" form:"id"`
  139. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  140. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  141. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  142. Status int64 `gorm:"column:status" json:"status" form:"status"`
  143. IsCombinationPrint int64 `gorm:"column:is_combination_print" json:"is_combination_print" form:"is_combination_print"`
  144. RecordDate string `gorm:"column:record_date" json:"record_date" form:"record_date"`
  145. ItemIds string `gorm:"column:item_ids" json:"item_ids" form:"item_ids"`
  146. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  147. ProjectIds string `gorm:"column:project_ids" json:"project_ids" form:"project_ids"`
  148. Ids string `gorm:"column:ids" json:"ids" form:"ids"`
  149. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  150. IsTeam int64 `gorm:"column:is_team" json:"is_team" form:"is_team"`
  151. IsPrint int64 `gorm:"column:is_print" json:"is_print" form:"is_print"`
  152. ApplyCode string `gorm:"column:apply_code" json:"apply_code" form:"apply_code"`
  153. Patient Patients `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId" json:"patient"`
  154. }
  155. func (HisLabelPrintStatusInfo) TableName() string {
  156. return "his_label_print_status_info"
  157. }