his_hospital_models.go 18KB

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