|
@@ -1,5 +1,7 @@
|
1
|
1
|
package models
|
2
|
2
|
|
|
3
|
+import "time"
|
|
4
|
+
|
3
|
5
|
type XtHisProject struct {
|
4
|
6
|
ID int64 `gorm:"column:id" json:"id" form:"id"`
|
5
|
7
|
ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"`
|
|
@@ -83,7 +85,7 @@ type HisPatient struct {
|
83
|
85
|
IdType int64 `gorm:"column:id_type" json:"id_type" form:"id_type"`
|
84
|
86
|
Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
|
85
|
87
|
RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
86
|
|
- Age int64 `gorm:"column:age" json:"age" form:"age"`
|
|
88
|
+ Age float64 `gorm:"column:age" json:"age" form:"age"`
|
87
|
89
|
PhoneNumber string `gorm:"column:phone_number" json:"phone_number" form:"phone_number"`
|
88
|
90
|
IdNumber string `gorm:"column:id_number" json:"id_number" form:"id_number"`
|
89
|
91
|
RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
|
|
@@ -239,21 +241,22 @@ func (HisPatientCaseHistory) TableName() string {
|
239
|
241
|
}
|
240
|
242
|
|
241
|
243
|
type HisPrescriptionInfo struct {
|
242
|
|
- ID int64 `gorm:"column:id" json:"id" form:"id"`
|
243
|
|
- UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
244
|
|
- RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
245
|
|
- PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
246
|
|
- HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
247
|
|
- Status int64 `gorm:"column:status" json:"status" form:"status"`
|
248
|
|
- Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
249
|
|
- Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
250
|
|
- Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
251
|
|
- Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
252
|
|
- Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
|
253
|
|
- RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
|
254
|
|
- Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
|
255
|
|
- Departments string `gorm:"column:departments" json:"departments" form:"departments"`
|
256
|
|
- SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
|
|
244
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
245
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
246
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
247
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
248
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
249
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
250
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
251
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
252
|
+ Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
|
|
253
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
|
|
254
|
+ Diagnosis string `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
|
|
255
|
+ RegisterType int64 `gorm:"column:register_type" json:"register_type" form:"register_type"`
|
|
256
|
+ Doctor string `gorm:"column:doctor" json:"doctor" form:"doctor"`
|
|
257
|
+ Departments string `gorm:"column:departments" json:"departments" form:"departments"`
|
|
258
|
+ SickHistory string `gorm:"column:sick_history" json:"sick_history" form:"sick_history"`
|
|
259
|
+ PrescriptionNumber string `gorm:"column:prescription_number" json:"prescription_number" form:"prescription_number"`
|
257
|
260
|
}
|
258
|
261
|
|
259
|
262
|
func (HisPrescriptionInfo) TableName() string {
|
|
@@ -408,21 +411,25 @@ func (HisDoctorAdviceTemplate) TableName() string {
|
408
|
411
|
}
|
409
|
412
|
|
410
|
413
|
type HisPrescriptionProject struct {
|
411
|
|
- ID int64 `gorm:"column:id" json:"id" form:"id"`
|
412
|
|
- ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
|
413
|
|
- Price float64 `gorm:"column:price" json:"price" form:"price"`
|
414
|
|
- UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
415
|
|
- Status int64 `gorm:"column:status" json:"status" form:"status"`
|
416
|
|
- Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
417
|
|
- Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
418
|
|
- PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
419
|
|
- HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
420
|
|
- RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
421
|
|
- PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
|
422
|
|
- Count int64 `gorm:"column:count" json:"count" form:"count"`
|
423
|
|
- HisProject *HisProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
|
424
|
|
- FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
|
425
|
|
- MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
|
|
414
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
415
|
+ ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
|
|
416
|
+ Price float64 `gorm:"column:price" json:"price" form:"price"`
|
|
417
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
418
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
419
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
420
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
421
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
422
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
423
|
+ RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
|
|
424
|
+ PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
|
|
425
|
+ Count int64 `gorm:"column:count" json:"count" form:"count"`
|
|
426
|
+ FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
|
|
427
|
+ MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
|
|
428
|
+ SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
|
|
429
|
+ DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
|
|
430
|
+ ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
|
|
431
|
+ Day string `gorm:"column:day" json:"day" form:"day"`
|
|
432
|
+ HisProject HisProject `gorm:"ForeignKey:ID;AssociationForeignKey:ProjectId" json:"project"`
|
426
|
433
|
}
|
427
|
434
|
|
428
|
435
|
func (HisPrescriptionProject) TableName() string {
|
|
@@ -508,22 +515,73 @@ func (XtHisPatient) TableName() string {
|
508
|
515
|
}
|
509
|
516
|
|
510
|
517
|
type HisOrder struct {
|
511
|
|
- ID int64 `gorm:"column:id" json:"id" form:"id"`
|
512
|
|
- UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
513
|
|
- HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
514
|
|
- SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
|
515
|
|
- Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
516
|
|
- Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
517
|
|
- Status int64 `gorm:"column:status" json:"status" form:"status"`
|
518
|
|
- Number string `gorm:"column:number" json:"number" form:"number"`
|
519
|
|
- PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
520
|
|
- Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
|
521
|
|
- WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
|
522
|
|
- Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
|
523
|
|
- ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
|
524
|
|
- RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
|
525
|
|
- InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
|
526
|
|
- OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
|
|
518
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
519
|
+ UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
|
|
520
|
+ HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
|
|
521
|
+ SettleAccountsDate int64 `gorm:"column:settle_accounts_date" json:"settle_accounts_date" form:"settle_accounts_date"`
|
|
522
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
523
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
524
|
+ Status int64 `gorm:"column:status" json:"status" form:"status"`
|
|
525
|
+ Number string `gorm:"column:number" json:"number" form:"number"`
|
|
526
|
+ PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
|
|
527
|
+ Infcode int64 `gorm:"column:infcode" json:"infcode" form:"infcode"`
|
|
528
|
+ WarnMsg string `gorm:"column:warn_msg" json:"warn_msg" form:"warn_msg"`
|
|
529
|
+ Cainfo string `gorm:"column:cainfo" json:"cainfo" form:"cainfo"`
|
|
530
|
+ ErrMsg string `gorm:"column:err_msg" json:"err_msg" form:"err_msg"`
|
|
531
|
+ RespondTime string `gorm:"column:respond_time" json:"respond_time" form:"respond_time"`
|
|
532
|
+ InfRefmsgid string `gorm:"column:inf_refmsgid" json:"inf_refmsgid" form:"inf_refmsgid"`
|
|
533
|
+ OrderStatus int64 `gorm:"column:order_status" json:"order_status" form:"order_status"`
|
|
534
|
+ MdtrtId string `gorm:"column:mdtrt_id" json:"mdtrt_id" form:"mdtrt_id"`
|
|
535
|
+ SetlId string `gorm:"column:setl_id" json:"setl_id" form:"setl_id"`
|
|
536
|
+ PsnNo string `gorm:"column:psn_no" json:"psn_no" form:"psn_no"`
|
|
537
|
+ PsnName string `gorm:"column:psn_name" json:"psn_name" form:"psn_name"`
|
|
538
|
+ PsnCertType string `gorm:"column:psn_cert_type" json:"psn_cert_type" form:"psn_cert_type"`
|
|
539
|
+ Certno string `gorm:"column:certno" json:"certno" form:"certno"`
|
|
540
|
+ Gend string `gorm:"column:gend" json:"gend" form:"gend"`
|
|
541
|
+ Naty string `gorm:"column:naty" json:"naty" form:"naty"`
|
|
542
|
+ Brdy time.Time `gorm:"column:brdy" json:"brdy" form:"brdy"`
|
|
543
|
+ Age float64 `gorm:"column:age" json:"age" form:"age"`
|
|
544
|
+ Insutype string `gorm:"column:insutype" json:"insutype" form:"insutype"`
|
|
545
|
+ PsnType string `gorm:"column:psn_type" json:"psn_type" form:"psn_type"`
|
|
546
|
+ CvlservFlag string `gorm:"column:cvlserv_flag" json:"cvlserv_flag" form:"cvlserv_flag"`
|
|
547
|
+ SetlTime time.Time `gorm:"column:setl_time" json:"setl_time" form:"setl_time"`
|
|
548
|
+ MdtrtCertType string `gorm:"column:mdtrt_cert_type" json:"mdtrt_cert_type" form:"mdtrt_cert_type"`
|
|
549
|
+ MedType string `gorm:"column:med_type" json:"med_type" form:"med_type"`
|
|
550
|
+ MedfeeSumamt float64 `gorm:"column:medfee_sumamt" json:"medfee_sumamt" form:"medfee_sumamt"`
|
|
551
|
+ FulamtOwnpayAmt float64 `gorm:"column:fulamt_ownpay_amt" json:"fulamt_ownpay_amt" form:"fulamt_ownpay_amt"`
|
|
552
|
+ OverlmtSelfPay float64 `gorm:"column:overlmt_self_pay" json:"overlmt_self_pay" form:"overlmt_self_pay"`
|
|
553
|
+ PreselfpayAmt float64 `gorm:"column:preselfpay_amt" json:"preselfpay_amt" form:"preselfpay_amt"`
|
|
554
|
+ InscpScpAmt float64 `gorm:"column:inscp_scp_amt" json:"inscp_scp_amt" form:"inscp_scp_amt"`
|
|
555
|
+ ActPayDedc float64 `gorm:"column:act_pay_dedc" json:"act_pay_dedc" form:"act_pay_dedc"`
|
|
556
|
+ HifpPay float64 `gorm:"column:hifp_pay" json:"hifp_pay" form:"hifp_pay"`
|
|
557
|
+ CvlservPay float64 `gorm:"column:cvlserv_pay" json:"cvlserv_pay" form:"cvlserv_pay"`
|
|
558
|
+ PoolPropSelfpay float64 `gorm:"column:pool_prop_selfpay" json:"pool_prop_selfpay" form:"pool_prop_selfpay"`
|
|
559
|
+ HifesPay float64 `gorm:"column:hifes_pay" json:"hifes_pay" form:"hifes_pay"`
|
|
560
|
+ HifmiPay float64 `gorm:"column:hifmi_pay" json:"hifmi_pay" form:"hifmi_pay"`
|
|
561
|
+ HifobPay float64 `gorm:"column:hifob_pay" json:"hifob_pay" form:"hifob_pay"`
|
|
562
|
+ MafPay float64 `gorm:"column:maf_pay" json:"maf_pay" form:"maf_pay"`
|
|
563
|
+ OthPay float64 `gorm:"column:oth_pay" json:"oth_pay" form:"oth_pay"`
|
|
564
|
+ FundPaySumamt float64 `gorm:"column:fund_pay_sumamt" json:"fund_pay_sumamt" form:"fund_pay_sumamt"`
|
|
565
|
+ PsnPartAmt float64 `gorm:"column:psn_part_amt" json:"psn_part_amt" form:"psn_part_amt"`
|
|
566
|
+ AcctPay float64 `gorm:"column:acct_pay" json:"acct_pay" form:"acct_pay"`
|
|
567
|
+ PsnCashPay float64 `gorm:"column:psn_cash_pay" json:"psn_cash_pay" form:"psn_cash_pay"`
|
|
568
|
+ HospPartAmt float64 `gorm:"column:hosp_part_amt" json:"hosp_part_amt" form:"hosp_part_amt"`
|
|
569
|
+ Balc float64 `gorm:"column:balc" json:"balc" form:"balc"`
|
|
570
|
+ AcctMulaidPay float64 `gorm:"column:acct_mulaid_pay" json:"acct_mulaid_pay" form:"acct_mulaid_pay"`
|
|
571
|
+ MedinsSetlId string `gorm:"column:medins_setl_id" json:"medins_setl_id" form:"medins_setl_id"`
|
|
572
|
+ ClrOptins string `gorm:"column:clr_optins" json:"clr_optins" form:"clr_optins"`
|
|
573
|
+ ClrWay string `gorm:"column:clr_way" json:"clr_way" form:"clr_way"`
|
|
574
|
+ ClrType string `gorm:"column:clr_type" json:"clr_type" form:"clr_type"`
|
|
575
|
+ FundPayType string `gorm:"column:fund_pay_type" json:"fund_pay_type" form:"fund_pay_type"`
|
|
576
|
+ CrtPaybLmtAmt float64 `gorm:"column:crt_payb_lmt_amt" json:"crt_payb_lmt_amt" form:"crt_payb_lmt_amt"`
|
|
577
|
+ FundPayamt float64 `gorm:"column:fund_payamt" json:"fund_payamt" form:"fund_payamt"`
|
|
578
|
+ FundPayTypeName string `gorm:"column:fund_pay_type_name" json:"fund_pay_type_name" form:"fund_pay_type_name"`
|
|
579
|
+ SetlProcInfo string `gorm:"column:setl_proc_info" json:"setl_proc_info" form:"setl_proc_info"`
|
|
580
|
+
|
|
581
|
+ HisOrderInfo HisOrderInfo `gorm:"ForeignKey:ID;AssociationForeignKey:OrderId" json:"order_info"`
|
|
582
|
+ Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"patient"`
|
|
583
|
+ HisPatient HisPatient `gorm:"ForeignKey:HisPatientId;AssociationForeignKey:ID" json:"his_patient"`
|
|
584
|
+ HisPrescriptionInfo HisPrescriptionInfo `gorm:"ForeignKey:PatientId,SettleAccountsDate;AssociationForeignKey:PatientId,RecordDate" json:"p_info"`
|
527
|
585
|
}
|
528
|
586
|
|
529
|
587
|
func (HisOrder) TableName() string {
|