his_hospital_models.go 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. package models
  2. type HisHospitalOrder 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. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  6. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  7. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  8. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  9. Status int64 `gorm:"column:status" json:"status" form:"status"`
  10. Number string `gorm:"column:number" json:"number" form:"number"`
  11. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  12. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  13. OrderStatus float64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  14. PayWay int64 `gorm:"column:pay_way" json:"pay_way" form:"pay_way"`
  15. PayPrice float64 `gorm:"column:pay_price" json:"pay_price" form:"pay_price"`
  16. PayCardNo string `gorm:"column:pay_card_no" json:"pay_card_no" form:"pay_card_no"`
  17. DiscountPrice float64 `gorm:"column:discount_price" json:"discount_price" form:"discount_price"`
  18. PreferentialPrice float64 `gorm:"column:preferential_price" json:"preferential_price" form:"preferential_price"`
  19. RealityPrice float64 `gorm:"column:reality_price" json:"reality_price" form:"reality_price"`
  20. FoundPrice float64 `gorm:"column:found_price" json:"found_price" form:"found_price"`
  21. MedicalInsurancePrice float64 `gorm:"column:medical_insurance_price" json:"medical_insurance_price" form:"medical_insurance_price"`
  22. PrivatePrice float64 `gorm:"column:private_price" json:"private_price" form:"private_price"`
  23. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  24. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  25. MzNumber string `gorm:"column:mz_number" json:"mz_number" form:"mz_number"`
  26. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  27. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  28. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  29. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  30. }
  31. func (HisHospitalOrder) TableName() string {
  32. return "his_order"
  33. }
  34. type HisHospitalCheckRecord struct {
  35. ID int64 `gorm:"column:id" json:"id" form:"id"`
  36. Name string `gorm:"column:name" json:"name" form:"name"`
  37. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  38. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  39. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  40. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  41. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  42. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  43. Status int64 `gorm:"column:status" json:"status" form:"status"`
  44. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  45. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  46. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  47. Number string `gorm:"column:number" json:"number" form:"number"`
  48. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  49. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  50. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  51. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  52. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  53. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  54. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  55. MedType int64 `gorm:"column:med_type" json:"med_type" form:"med_type"`
  56. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  57. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  58. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  59. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  60. AdmBed int64 `gorm:"column:adm_bed" json:"adm_bed" form:"adm_bed"`
  61. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  62. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  63. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  64. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  65. InHosptialTime string `gorm:"column:in_hosptial_time" json:"in_hosptial_time" form:"in_hosptial_time"`
  66. OutHosptialTime string `gorm:"column:out_hosptial_time" json:"out_hosptial_time" form:"out_hosptial_time"`
  67. InHospitalStatus int64 `gorm:"column:in_hospital_status" json:"in_hospital_status" form:"in_hospital_status"`
  68. Certificates int64 `gorm:"column:certificates" json:"certificates" form:"certificates"`
  69. InsutypeType string `gorm:"column:insutype_type" json:"insutype_type" form:"insutype_type"`
  70. OutHospitalStatus int64 `gorm:"column:out_hospital_status" json:"out_hospital_status" form:"out_hospital_status"`
  71. OutWay int64 `gorm:"column:out_way" json:"out_way" form:"out_way"`
  72. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  73. HisHospitalOrder HisHospitalOrder `gorm:"ForeignKey:MdtrtId,PatientId;AssociationForeignKey:Number,PatientId" json:"order"`
  74. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  75. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  76. }
  77. func (HisHospitalCheckRecord) TableName() string {
  78. return "his_hospital_check_record"
  79. }
  80. type HisHospitalCheckRecordTwo struct {
  81. ID int64 `gorm:"column:id" json:"id" form:"id"`
  82. Name string `gorm:"column:name" json:"name" form:"name"`
  83. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  84. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  85. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  86. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  87. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  88. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  89. Status int64 `gorm:"column:status" json:"status" form:"status"`
  90. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  91. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  92. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  93. Number string `gorm:"column:number" json:"number" form:"number"`
  94. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  95. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  96. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  97. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  98. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  99. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  100. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  101. MedType int64 `gorm:"column:med_type" json:"med_type" form:"med_type"`
  102. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  103. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  104. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  105. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  106. AdmBed int64 `gorm:"column:adm_bed" json:"adm_bed" form:"adm_bed"`
  107. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  108. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  109. InsutypeType string `gorm:"column:insutype_type" json:"insutype_type" form:"insutype_type"`
  110. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  111. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  112. InHosptialTime string `gorm:"column:in_hosptial_time" json:"in_hosptial_time" form:"in_hosptial_time"`
  113. OutHosptialTime string `gorm:"column:out_hosptial_time" json:"out_hosptial_time" form:"out_hosptial_time"`
  114. InHospitalStatus int64 `gorm:"column:in_hospital_status" json:"in_hospital_status" form:"in_hospital_status"`
  115. Certificates int64 `gorm:"column:certificates" json:"certificates" form:"certificates"`
  116. OutHospitalStatus int64 `gorm:"column:out_hospital_status" json:"out_hospital_status" form:"out_hospital_status"`
  117. OutWay int64 `gorm:"column:out_way" json:"out_way" form:"out_way"`
  118. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  119. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  120. PsnType int64 `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  121. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  122. }
  123. func (HisHospitalCheckRecordTwo) TableName() string {
  124. return "his_hospital_check_record"
  125. }
  126. type NewCustom struct {
  127. DetItemFeeSumamt float64
  128. Cut float64
  129. FeedetlSn string
  130. Price float64
  131. MedListCodg string
  132. LmtUsedFlag int64
  133. HospApprFlag int64
  134. FeeOcurTime string
  135. }
  136. type HisHospitalPrescription struct {
  137. ID int64 `gorm:"column:id" json:"id" form:"id"`
  138. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  139. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  140. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  141. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  142. Status int64 `gorm:"column:status" json:"status" form:"status"`
  143. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  144. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  145. Number string `gorm:"column:number" json:"number" form:"number"`
  146. Type int64 `gorm:"column:type" json:"type" form:"type"`
  147. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  148. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  149. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  150. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  151. PreTime int64 `gorm:"column:pre_time" json:"pre_time" form:"pre_time"`
  152. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  153. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  154. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  155. HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  156. HisAdditionalCharge []*HisAdditionalCharge `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
  157. Total string `gorm:"-" json:"total" form:"total"`
  158. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  159. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  160. }
  161. func (HisHospitalPrescription) TableName() string {
  162. return "his_prescription"
  163. }
  164. type HisHospitalOrderInfo struct {
  165. ID int64 `gorm:"column:id" json:"id" form:"id"`
  166. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  167. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  168. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  169. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  170. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  171. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  172. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  173. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  174. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  175. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  176. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  177. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  178. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  179. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  180. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  181. Status int64 `gorm:"column:status" json:"status" form:"status"`
  182. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  183. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  184. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  185. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  186. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  187. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  188. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  189. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  190. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  191. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  192. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  193. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  194. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  195. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  196. Type int64 `gorm:"column:type" json:"type" form:"type"`
  197. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  198. }
  199. func (HisHospitalOrderInfo) TableName() string {
  200. return "his_order_info"
  201. }
  202. type HisPsn struct {
  203. ID int64 `gorm:"column:id" json:"id" form:"id"`
  204. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  205. Age float64 `gorm:"column:age" json:"age" form:"age"`
  206. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  207. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  208. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  209. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  210. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  211. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  212. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  213. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  214. Insuinfo string `gorm:"column:insuinfo" json:"insuinfo" form:"insuinfo"`
  215. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  216. CardInfo string `gorm:"column:card_info" json:"card_info" form:"card_info"`
  217. VerifyNumber string `gorm:"column:verify_number" json:"verify_number" form:"verify_number"`
  218. }
  219. func (HisPsn) TableName() string {
  220. return "his_psn"
  221. }