his_hospital_models.go 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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. }
  82. func (HisHospitalCheckRecord) TableName() string {
  83. return "his_hospital_check_record"
  84. }
  85. type HisHospitalCheckRecordTwo struct {
  86. ID int64 `gorm:"column:id" json:"id" form:"id"`
  87. Name string `gorm:"column:name" json:"name" form:"name"`
  88. MedicalTreatmentType int64 `gorm:"column:medical_treatment_type" json:"medical_treatment_type" form:"medical_treatment_type"`
  89. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  90. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  91. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  92. Departments int64 `gorm:"column:departments" json:"departments" form:"departments"`
  93. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  94. Status int64 `gorm:"column:status" json:"status" form:"status"`
  95. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  96. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  97. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  98. Number string `gorm:"column:number" json:"number" form:"number"`
  99. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  100. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  101. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  102. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  103. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  104. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  105. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  106. MedType int64 `gorm:"column:med_type" json:"med_type" form:"med_type"`
  107. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  108. Iinfo string `gorm:"column:iinfo" json:"iinfo" form:"iinfo"`
  109. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  110. IptOtpNo string `gorm:"column:ipt_otp_no" json:"ipt_otp_no" form:"ipt_otp_no"`
  111. AdmBed int64 `gorm:"column:adm_bed" json:"adm_bed" form:"adm_bed"`
  112. IdCardType int64 `gorm:"column:id_card_type" json:"id_card_type" form:"id_card_type"`
  113. Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  114. InsutypeType string `gorm:"column:insutype_type" json:"insutype_type" form:"insutype_type"`
  115. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  116. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  117. InHosptialTime string `gorm:"column:in_hosptial_time" json:"in_hosptial_time" form:"in_hosptial_time"`
  118. OutHosptialTime string `gorm:"column:out_hosptial_time" json:"out_hosptial_time" form:"out_hosptial_time"`
  119. InHospitalStatus int64 `gorm:"column:in_hospital_status" json:"in_hospital_status" form:"in_hospital_status"`
  120. Certificates int64 `gorm:"column:certificates" json:"certificates" form:"certificates"`
  121. OutHospitalStatus int64 `gorm:"column:out_hospital_status" json:"out_hospital_status" form:"out_hospital_status"`
  122. OutWay int64 `gorm:"column:out_way" json:"out_way" form:"out_way"`
  123. Phone string `gorm:"column:phone" json:"phone" form:"phone"`
  124. BalanceAccountsType int64 `gorm:"column:balance_accounts_type" json:"balance_accounts_type" form:"balance_accounts_type"`
  125. PsnType int64 `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  126. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  127. }
  128. func (HisHospitalCheckRecordTwo) TableName() string {
  129. return "his_hospital_check_record"
  130. }
  131. type NewCustom struct {
  132. DetItemFeeSumamt float64
  133. Cut float64
  134. FeedetlSn string
  135. Price float64
  136. MedListCodg string
  137. LmtUsedFlag int64
  138. HospApprFlag int64
  139. FeeOcurTime string
  140. }
  141. type HisHospitalPrescription struct {
  142. ID int64 `gorm:"column:id" json:"id" form:"id"`
  143. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  144. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  145. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  146. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  147. Status int64 `gorm:"column:status" json:"status" form:"status"`
  148. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  149. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  150. Number string `gorm:"column:number" json:"number" form:"number"`
  151. Type int64 `gorm:"column:type" json:"type" form:"type"`
  152. Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
  153. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  154. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  155. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  156. PreTime int64 `gorm:"column:pre_time" json:"pre_time" form:"pre_time"`
  157. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  158. PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
  159. HisDoctorAdviceInfo []*HisDoctorAdviceInfo `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"advices"`
  160. HisPrescriptionProject []*HisPrescriptionProject `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"project"`
  161. HisAdditionalCharge []*HisAdditionalCharge `gorm:"ForeignKey:PrescriptionId;AssociationForeignKey:ID" json:"addition"`
  162. Total string `gorm:"-" json:"total" form:"total"`
  163. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  164. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  165. }
  166. func (HisHospitalPrescription) TableName() string {
  167. return "his_prescription"
  168. }
  169. type HisHospitalOrderInfo struct {
  170. ID int64 `gorm:"column:id" json:"id" form:"id"`
  171. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  172. UploadDate int64 `gorm:"column:upload_date" json:"upload_date" form:"upload_date"`
  173. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  174. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  175. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  176. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  177. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  178. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  179. SelfpayProp float64 `gorm:"column:selfpay_prop" json:"selfpay_prop" form:"selfpay_prop"`
  180. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  181. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  182. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  183. BasMednFlag string `gorm:"column:bas_medn_flag" json:"bas_medn_flag" form:"bas_medn_flag"`
  184. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  185. HiNegoDrugFlag string `gorm:"column:hi_nego_drug_flag" json:"hi_nego_drug_flag" form:"hi_nego_drug_flag"`
  186. Status int64 `gorm:"column:status" json:"status" form:"status"`
  187. Memo string `gorm:"column:memo" json:"memo" form:"memo"`
  188. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  189. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  190. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  191. DrtReimFlag string `gorm:"column:drt_reim_flag" json:"drt_reim_flag" form:"drt_reim_flag"`
  192. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  193. ListSpItemFlag string `gorm:"column:list_sp_item_flag" json:"list_sp_item_flag" form:"list_sp_item_flag"`
  194. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  195. LmtUsedFlag string `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  196. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  197. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  198. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  199. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  200. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  201. Type int64 `gorm:"column:type" json:"type" form:"type"`
  202. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  203. }
  204. func (HisHospitalOrderInfo) TableName() string {
  205. return "his_order_info"
  206. }
  207. type HisPsn struct {
  208. ID int64 `gorm:"column:id" json:"id" form:"id"`
  209. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  210. Age float64 `gorm:"column:age" json:"age" form:"age"`
  211. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  212. Certno string `gorm:"column:certno" json:"certno" form:"certno"`
  213. Brdy string `gorm:"column:brdy" json:"brdy" form:"brdy"`
  214. Gend string `gorm:"column:gend" json:"gend" form:"gend"`
  215. Naty string `gorm:"column:naty" json:"naty" form:"naty"`
  216. PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
  217. PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
  218. Idetinfo string `gorm:"column:idetinfo" json:"idetinfo" form:"idetinfo"`
  219. Insuinfo string `gorm:"column:insuinfo" json:"insuinfo" form:"insuinfo"`
  220. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  221. CardInfo string `gorm:"column:card_info" json:"card_info" form:"card_info"`
  222. VerifyNumber string `gorm:"column:verify_number" json:"verify_number" form:"verify_number"`
  223. }
  224. func (HisPsn) TableName() string {
  225. return "his_psn"
  226. }