his_charge_models.go 37KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. package models
  2. type HisChargePrescriptionProject struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  5. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  6. Status int64 `gorm:"column:status" json:"status" form:"status"`
  7. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  8. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  9. Count string `gorm:"column:count" json:"count" form:"count"`
  10. Type int64 `gorm:"column:type" json:"type" form:"type"`
  11. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  12. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  13. HisChargeProject HisChargeProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"project"`
  14. HisChargeGoodInfo HisChargeGoodInfo `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ID" json:"good_info"`
  15. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  16. }
  17. func (HisChargePrescriptionProject) TableName() string {
  18. return "his_prescription_project"
  19. }
  20. type HisChargeDoctorAdviceInfo struct {
  21. ID int64 `gorm:"column:id" json:"id" form:"id"`
  22. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  23. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  24. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  25. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  26. Status int64 `gorm:"column:status" json:"status" form:"status"`
  27. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  28. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  29. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  30. Drug Drug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  31. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  32. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  33. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  34. }
  35. func (HisChargeDoctorAdviceInfo) TableName() string {
  36. return "his_doctor_advice_info"
  37. }
  38. type HisChargeOrderInfo struct {
  39. ID int64 `gorm:"column:id" json:"id" form:"id"`
  40. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  41. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  42. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  43. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  44. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  45. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  46. Status int64 `gorm:"column:status" json:"status" form:"status"`
  47. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  48. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  49. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  50. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  51. Type int64 `gorm:"column:type" json:"type" form:"type"`
  52. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  53. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  54. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  55. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  56. HisChargePrescriptionProject HisChargePrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  57. HisChargeDoctorAdviceInfo HisChargeDoctorAdviceInfo `gorm:"ForeignKey:AdviceId;AssociationForeignKey:ID" json:"advice"`
  58. }
  59. func (HisChargeOrderInfo) TableName() string {
  60. return "his_order_info"
  61. }
  62. type ChargePatient 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. Name string `gorm:"column:name" json:"name" form:"name"`
  66. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  67. Status int64 `gorm:"column:status" json:"status" form:"status"`
  68. HisChargeOrder []*HisChargeOrder `gorm:"ForeignKey:PatientID;AssociationForeignKey:ID" json:"orders"`
  69. }
  70. func (ChargePatient) TableName() string {
  71. return "xt_patients"
  72. }
  73. type SettlePatient struct {
  74. ID int64 `gorm:"column:id" json:"id" form:"id"`
  75. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  76. Name string `gorm:"column:name" json:"name" form:"name"`
  77. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  78. Status int64 `gorm:"column:status" json:"status" form:"status"`
  79. IdCardNo string `gorm:"column:id_card_no" json:"id_card_no" form:"id_card_no"`
  80. HisChargeSettleOrder []*HisChargeSettleOrder `gorm:"ForeignKey:PatientID;AssociationForeignKey:ID" json:"orders"`
  81. TempDialysisOrder []*TempDialysisOrder `gorm:"ForeignKey:PatientID;AssociationForeignKey:ID" json:"dis"`
  82. }
  83. func (SettlePatient) TableName() string {
  84. return "xt_patients"
  85. }
  86. type OrderHisPatient struct {
  87. ID int64 `gorm:"column:id" json:"id" form:"id"`
  88. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  89. Number string `gorm:"column:number" json:"number" form:"number"`
  90. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  91. InsuplcAdmdvs string `gorm:"column:insuplc_admdvs" json:"insuplc_admdvs" form:"insuplc_admdvs"`
  92. }
  93. func (OrderHisPatient) TableName() string {
  94. return "his_patient"
  95. }
  96. type HisChargeOrder struct {
  97. ID int64 `gorm:"column:id" json:"id" form:"id"`
  98. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  99. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  100. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  101. Status int64 `gorm:"column:status" json:"status" form:"status"`
  102. Number string `gorm:"column:number" json:"number" form:"number"`
  103. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  104. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  105. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  106. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  107. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  108. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  109. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  110. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  111. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  112. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  113. IsUploadDiagnose int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
  114. IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
  115. IsUploadSuccess int64 `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
  116. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  117. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  118. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  119. HisChargeOrderInfo []*HisChargeOrderInfo `gorm:"ForeignKey:OrderNumber;AssociationForeignKey:Number" json:"order_info"`
  120. Patients Patients `gorm:"ForeignKey:ID;AssociationForeignKey:PatientId" json:"patient"`
  121. CardDesc string `gorm:"card_desc" json:"card_desc" form:"card_desc"`
  122. }
  123. func (HisChargeOrder) TableName() string {
  124. return "his_order"
  125. }
  126. type HisChargeSettleOrder struct {
  127. ID int64 `gorm:"column:id" json:"id" form:"id"`
  128. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  129. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  130. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  131. Status int64 `gorm:"column:status" json:"status" form:"status"`
  132. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  133. Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
  134. WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
  135. Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
  136. ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
  137. RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
  138. InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
  139. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  140. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  141. SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
  142. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  143. PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
  144. CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
  145. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  146. MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
  147. MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
  148. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  149. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  150. OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
  151. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  152. InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
  153. ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
  154. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  155. CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
  156. PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
  157. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  158. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  159. HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
  160. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  161. OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
  162. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  163. PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
  164. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  165. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  166. HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
  167. Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
  168. AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
  169. MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
  170. ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
  171. ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
  172. ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
  173. SetlDetail string `gorm:"column:setl_detail" json:"setl_detail" form:"setl_detail"`
  174. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  175. PType int64 `gorm:"column:p_type" json:"p_type" form:"p_type"`
  176. SettleType int64 `gorm:"column:settle_type" json:"settle_type" form:"settle_type"`
  177. SettleStartTime int64 `gorm:"column:settle_start_time" json:"settle_start_time" form:"settle_start_time"`
  178. SettleEndTime int64 `gorm:"column:settle_end_time" json:"settle_end_time" form:"settle_end_time"`
  179. IsPre int64 `gorm:"column:is_pre" json:"is_pre" form:"is_pre"`
  180. FaPiaoCode string `gorm:"column:fa_piao_code" json:"fa_piao_code" form:"fa_piao_code"`
  181. FaPiaoNumber string `gorm:"column:fa_piao_number" json:"fa_piao_number" form:"fa_piao_number"`
  182. CashPay string `gorm:"cash_pay" json:"cash_pay" form:"cash_pay"`
  183. BandCardPay string `gorm:"band_card_pay" json:"band_card_pay" form:"band_card_pay"`
  184. WechatPay string `gorm:"wechat_pay" json:"wechat_pay" form:"wechat_pay"`
  185. AliPay string `gorm:"ali_pay" json:"ali_pay" form:"ali_pay"`
  186. JifenPay string `gorm:"jifen_pay" json:"jifen_pay" form:"jifen_pay"`
  187. OthDesc string `gorm:"oth_desc" json:"oth_desc" form:"oth_desc"`
  188. IsUploadDiagnose int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
  189. IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
  190. IsUploadSuccess int64 `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
  191. SickName string `gorm:"sick_name" json:"sick_name" form:"sick_name"`
  192. CardDesc string `gorm:"card_desc" json:"card_desc" form:"card_desc"`
  193. OrderHisPatient OrderHisPatient `gorm:"ForeignKey:Number;AssociationForeignKey:MdtrtId" json:"his"`
  194. OrderSchedule OrderSchedule `gorm:"ForeignKey:PatientID,ScheduleDate;AssociationForeignKey:PatientID,SettleAccountsDate" json:"sch"`
  195. }
  196. func (HisChargeSettleOrder) TableName() string {
  197. return "his_order"
  198. }
  199. type HisChargeProject struct {
  200. ID int64 `gorm:"column:id" json:"id" form:"id"`
  201. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  202. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  203. MedicalCoverage int64 `gorm:"column:medical_coverage" json:"medical_coverage" form:"medical_coverage"`
  204. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  205. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  206. }
  207. func (HisChargeProject) TableName() string {
  208. return "xt_his_project"
  209. }
  210. type HisChargeGoodInfo struct {
  211. ID int64 `gorm:"column:id" json:"id" form:"id"`
  212. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  213. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit"`
  214. SpecificationnName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  215. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  216. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  217. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  218. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  219. }
  220. func (HisChargeGoodInfo) TableName() string {
  221. return "xt_good_information"
  222. }
  223. type HisLabelPrintInfo struct {
  224. ID int64 `gorm:"column:id" json:"id" form:"id"`
  225. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  226. Number string `gorm:"column:number" json:"number" form:"number"`
  227. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  228. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  229. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  230. Status int64 `gorm:"column:status" json:"status" form:"status"`
  231. ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
  232. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  233. IsPrint int64 `gorm:"column:is_print" json:"is_print" form:"is_print"`
  234. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  235. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  236. HisProjectTeam HisProjectTeam `gorm:"ForeignKey:ID;AssociationForeignKey:ItemId" json:"team"`
  237. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  238. PProjectId int64 `gorm:"column:p_project_id" json:"p_project_id" form:"p_project_id"`
  239. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  240. DoctorName string `gorm:"column:doctor_name" json:"doctor_name" form:"doctor_name"`
  241. PatientName string `gorm:"column:patient_name" json:"patient_name" form:"patient_name"`
  242. }
  243. func (HisLabelPrintInfo) TableName() string {
  244. return "his_label_print_info"
  245. }
  246. type HisFapiaoRecord struct {
  247. ID int64 `gorm:"column:id" json:"id" form:"id"`
  248. FapiaoCode string `gorm:"column:fapiao_code" json:"fapiao_code" form:"fapiao_code"`
  249. FapiaoNumber string `gorm:"column:fapiao_number" json:"fapiao_number" form:"fapiao_number"`
  250. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  251. Status int64 `gorm:"column:status" json:"status" form:"status"`
  252. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  253. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  254. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  255. }
  256. func (HisFapiaoRecord) TableName() string {
  257. return "his_fapiao_record"
  258. }
  259. type GdybPsnNcdsRecord struct {
  260. ID int64 `gorm:"column:id" json:"id" form:"id"`
  261. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  262. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  263. PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
  264. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  265. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  266. Status int64 `gorm:"column:status" json:"status" form:"status"`
  267. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  268. TrtDclaDetlSn string `gorm:"column:trt_dcla_detl_sn" json:"trt_dcla_detl_sn" form:"trt_dcla_detl_sn"`
  269. DoctorId int64 `gorm:"column:doctor_id" json:"doctor_id" form:"doctor_id"`
  270. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  271. Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
  272. SickType int64 `gorm:"column:sick_type" json:"sick_type" form:"sick_type"`
  273. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  274. }
  275. func (GdybPsnNcdsRecord) TableName() string {
  276. return "gdyb_psn_ncds_record"
  277. }
  278. type ChargePatientTwo struct {
  279. ID int64 `gorm:"column:id" json:"id" form:"id"`
  280. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  281. Name string `gorm:"column:name" json:"name" form:"name"`
  282. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  283. Status int64 `gorm:"column:status" json:"status" form:"status"`
  284. }
  285. func (ChargePatientTwo) TableName() string {
  286. return "xt_patients"
  287. }
  288. type HisChargeOrderTwo struct {
  289. ID int64 `gorm:"column:id" json:"id" form:"id"`
  290. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  291. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  292. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  293. Status int64 `gorm:"column:status" json:"status" form:"status"`
  294. Number string `gorm:"column:number" json:"number" form:"number"`
  295. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  296. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  297. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  298. HisChargeOrderInfoTwo []*HisChargeOrderInfoTwo `gorm:"ForeignKey:OrderNumber;AssociationForeignKey:Number" json:"order_info"`
  299. CardDesc string `gorm:"card_desc" json:"card_desc" form:"card_desc"`
  300. }
  301. func (HisChargeOrderTwo) TableName() string {
  302. return "his_order"
  303. }
  304. type HisChargeOrderInfoTwo struct {
  305. ID int64 `gorm:"column:id" json:"id" form:"id"`
  306. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  307. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  308. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  309. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  310. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  311. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  312. Status int64 `gorm:"column:status" json:"status" form:"status"`
  313. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  314. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  315. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  316. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  317. Type int64 `gorm:"column:type" json:"type" form:"type"`
  318. HisChargePrescriptionProject HisChargePrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  319. HisChargeDoctorAdviceInfo HisChargeDoctorAdviceInfo `gorm:"ForeignKey:AdviceId;AssociationForeignKey:ID" json:"advice"`
  320. }
  321. func (HisChargeOrderInfoTwo) TableName() string {
  322. return "his_order_info"
  323. }
  324. type NewChargePatient struct {
  325. ID int64 `gorm:"column:id" json:"id" form:"id"`
  326. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  327. Name string `gorm:"column:name" json:"name" form:"name"`
  328. Lapseto int64 `gorm:"column:lapseto" json:"lapseto" form:"lapseto"`
  329. Status int64 `gorm:"column:status" json:"status" form:"status"`
  330. HisChargeOrder []*NewHisChargeOrder `gorm:"ForeignKey:PatientID;AssociationForeignKey:ID" json:"orders"`
  331. }
  332. func (NewChargePatient) TableName() string {
  333. return "xt_patients"
  334. }
  335. type NewChargeDetail struct {
  336. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  337. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  338. PName string `gorm:"column:p_name" json:"p_name" form:"p_name"`
  339. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  340. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  341. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  342. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  343. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  344. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  345. DetItemFeeSumamt string `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  346. PId int64 `gorm:"column:p_id" json:"p_id" form:"p_id"`
  347. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  348. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  349. PType string `gorm:"column:p_type" json:"p_type" form:"p_type"`
  350. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  351. ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"`
  352. Pdate string `gorm:"column:pdate" json:"pdate" form:"pdate"`
  353. CostClassify int64 `gorm:"column:cost_classify" json:"cost_classify" form:"cost_classify"`
  354. }
  355. type NewHisChargeOrder struct {
  356. ID int64 `gorm:"column:id" json:"id" form:"id"`
  357. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  358. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  359. SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
  360. Status int64 `gorm:"column:status" json:"status" form:"status"`
  361. Number string `gorm:"column:number" json:"number" form:"number"`
  362. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  363. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  364. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  365. HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
  366. MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
  367. FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
  368. AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
  369. MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
  370. HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
  371. HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
  372. IsUploadDiagnose int64 `gorm:"column:is_upload_diagnose" json:"is_upload_diagnose" form:"is_upload_diagnose"`
  373. IsUploadOrderInfo int64 `gorm:"column:is_upload_order_info" json:"is_upload_order_info" form:"is_upload_order_info"`
  374. IsUploadSuccess int64 `gorm:"column:is_upload_success" json:"is_upload_success" form:"is_upload_success"`
  375. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  376. PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
  377. IsMedicineInsurance int64 `gorm:"column:is_medicine_insurance" json:"is_medicine_insurance" form:"is_medicine_insurance"`
  378. HisChargeOrderInfo []*NewHisChargeOrderInfoTwo `gorm:"ForeignKey:OrderNumber;AssociationForeignKey:Number" json:"order_info"`
  379. CardDesc string `gorm:"card_desc" json:"card_desc" form:"card_desc"`
  380. }
  381. func (NewHisChargeOrder) TableName() string {
  382. return "his_order"
  383. }
  384. type NewHisChargeOrderInfoTwo struct {
  385. ID int64 `gorm:"column:id" json:"id" form:"id"`
  386. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  387. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  388. DetItemFeeSumamt float64 `gorm:"column:det_item_fee_sumamt" json:"det_item_fee_sumamt" form:"det_item_fee_sumamt"`
  389. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  390. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  391. MedChrgitmType string `gorm:"column:med_chrgitm_type" json:"med_chrgitm_type" form:"med_chrgitm_type"`
  392. Status int64 `gorm:"column:status" json:"status" form:"status"`
  393. ChldMedcFlag string `gorm:"column:chld_medc_flag" json:"chld_medc_flag" form:"chld_medc_flag"`
  394. ChrgitmLv string `gorm:"column:chrgitm_lv" json:"chrgitm_lv" form:"chrgitm_lv"`
  395. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  396. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  397. Type int64 `gorm:"column:type" json:"type" form:"type"`
  398. FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
  399. OverlmtAmt float64 `gorm:"column:overlmt_amt" json:"overlmt_amt" form:"overlmt_amt"`
  400. PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
  401. PricUplmtAmt float64 `gorm:"column:pric_uplmt_amt" json:"pric_uplmt_amt" form:"pric_uplmt_amt"`
  402. HisChargePrescriptionProject HisChargePrescriptionProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
  403. HisChargeDoctorAdviceInfo NewHisChargeDoctorAdviceInfo `gorm:"ForeignKey:AdviceId;AssociationForeignKey:ID" json:"advice"`
  404. }
  405. func (NewHisChargeOrderInfoTwo) TableName() string {
  406. return "his_order_info"
  407. }
  408. type NewDrug struct {
  409. ID int64 `gorm:"column:id" json:"id" form:"id"`
  410. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  411. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  412. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  413. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  414. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  415. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  416. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  417. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  418. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  419. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  420. }
  421. func (NewDrug) TableName() string {
  422. return "xt_base_drug"
  423. }
  424. type NewHisChargeDoctorAdviceInfo struct {
  425. ID int64 `gorm:"column:id" json:"id" form:"id"`
  426. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  427. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  428. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  429. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  430. Status int64 `gorm:"column:status" json:"status" form:"status"`
  431. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  432. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  433. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  434. Drug NewDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" json:"drug"`
  435. IsMedicine int64 `gorm:"column:is_medicine" json:"is_medicine" form:"is_medicine"`
  436. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  437. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  438. }
  439. func (NewHisChargeDoctorAdviceInfo) TableName() string {
  440. return "his_doctor_advice_info"
  441. }
  442. type NewPDetail struct {
  443. PType string `gorm:"column:p_type" json:"p_type" form:"p_type"`
  444. PName string `gorm:"column:p_name" json:"p_name" form:"p_name"`
  445. RecordDate string `gorm:"column:record_date" json:"record_date" form:"record_date"`
  446. ItemCostType int64 `gorm:"column:item_cost_type" json:"item_cost_type" form:"item_cost_type"`
  447. MedType int64 `gorm:"column:med_type" json:"med_type" form:"med_type"`
  448. Cnt float64 `gorm:"column:cnt" json:"cnt" form:"cnt"`
  449. Pric float64 `gorm:"column:pric" json:"pric" form:"pric"`
  450. ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"`
  451. Spec string `gorm:"column:spec" json:"spec" form:"spec"`
  452. OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
  453. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  454. SetlTime string `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
  455. PId string `gorm:"column:p_id" json:"p_id" form:"p_id"`
  456. AdviceId string `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  457. ProjectId string `gorm:"column:project_id" json:"project_id" form:"project_id"`
  458. ItemId string `gorm:"column:item_id" json:"item_id" form:"item_id"`
  459. MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
  460. CertNo string `gorm:"column:cert_no" json:"cert_no" form:"cert_no"`
  461. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  462. }
  463. type OrderSchedule struct {
  464. ID int64 `gorm:"column:id" json:"id" form:"id"`
  465. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  466. PartitionId int64 `gorm:"column:partition_id" json:"partition_id" form:"partition_id"`
  467. BedId int64 `gorm:"column:bed_id" json:"bed_id" form:"bed_id"`
  468. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  469. ScheduleDate int64 `gorm:"column:schedule_date" json:"schedule_date" form:"schedule_date"`
  470. ScheduleType int64 `gorm:"column:schedule_type" json:"schedule_type" form:"schedule_type"`
  471. ScheduleWeek int64 `gorm:"column:schedule_week" json:"schedule_week" form:"schedule_week"`
  472. ModeId int64 `gorm:"column:mode_id" json:"mode_id" form:"mode_id"`
  473. Status int64 `gorm:"column:status" json:"status" form:"status"`
  474. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  475. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  476. IsExport int64 `gorm:"column:is_export" json:"is_export" form:"is_export"`
  477. Patient string `gorm:"-" json:"patient" form:"patient"`
  478. DialysisMachineName string `gorm:"column:dialysis_machine_name" json:"dialysis_machine_name" form:"dialysis_machine_name"`
  479. }
  480. func (OrderSchedule) TableName() string {
  481. return "xt_schedule"
  482. }