|
@@ -1572,6 +1572,7 @@ func (c *ZHHisApiController) GetUploadInfo() {
|
1572
|
1572
|
var customs []*models.NewCustom
|
1573
|
1573
|
|
1574
|
1574
|
for _, item := range prescriptions {
|
|
1575
|
+ tm := time.Unix(item.PreTime, 0)
|
1575
|
1576
|
if item.Type == 1 { //药品
|
1576
|
1577
|
for _, subItem := range item.HisDoctorAdviceInfo {
|
1577
|
1578
|
if len(subItem.BaseDrugLib.MedicalInsuranceNumber) > 0 && subItem.BaseDrugLib.IsUser != 1 {
|
|
@@ -1584,6 +1585,7 @@ func (c *ZHHisApiController) GetUploadInfo() {
|
1584
|
1585
|
Price: fmt.Sprintf("%.4f", subItem.Price),
|
1585
|
1586
|
MedListCodg: subItem.BaseDrugLib.MedicalInsuranceNumber,
|
1586
|
1587
|
HospApprFlag: subItem.BaseDrugLib.HospApprFlag,
|
|
1588
|
+ FeeOcurTime: tm.Format("2006-01-02 15:04:05"),
|
1587
|
1589
|
}
|
1588
|
1590
|
|
1589
|
1591
|
customs = append(customs, cus)
|
|
@@ -1605,6 +1607,7 @@ func (c *ZHHisApiController) GetUploadInfo() {
|
1605
|
1607
|
Price: fmt.Sprintf("%.4f", float64(subItem.Price)),
|
1606
|
1608
|
MedListCodg: subItem.HisProject.MedicalCode,
|
1607
|
1609
|
HospApprFlag: -1,
|
|
1610
|
+ FeeOcurTime: tm.Format("2006-01-02 15:04:05"),
|
1608
|
1611
|
}
|
1609
|
1612
|
customs = append(customs, cus)
|
1610
|
1613
|
}
|
|
@@ -1619,6 +1622,7 @@ func (c *ZHHisApiController) GetUploadInfo() {
|
1619
|
1622
|
Price: fmt.Sprintf("%.4f", float64(subItem.Price)),
|
1620
|
1623
|
MedListCodg: subItem.GoodInfo.MedicalInsuranceNumber,
|
1621
|
1624
|
HospApprFlag: -1,
|
|
1625
|
+ FeeOcurTime: tm.Format("2006-01-02 15:04:05"),
|
1622
|
1626
|
}
|
1623
|
1627
|
customs = append(customs, cus)
|
1624
|
1628
|
}
|
|
@@ -1626,19 +1630,20 @@ func (c *ZHHisApiController) GetUploadInfo() {
|
1626
|
1630
|
}
|
1627
|
1631
|
}
|
1628
|
1632
|
|
1629
|
|
- for _, subItem := range item.HisAdditionalCharge {
|
1630
|
|
- if len(subItem.XtHisAddtionConfig.Code) > 0 {
|
1631
|
|
- cus := &models.NewCustom{
|
1632
|
|
- DetItemFeeSumamt: fmt.Sprintf("%.4f", subItem.Price*float64(subItem.Count)),
|
1633
|
|
- Cut: fmt.Sprintf("%.4f", float64(subItem.Count)),
|
1634
|
|
- FeedetlSn: subItem.FeedetlSn,
|
1635
|
|
- Price: fmt.Sprintf("%.4f", float64(subItem.Price)),
|
1636
|
|
- MedListCodg: subItem.XtHisAddtionConfig.Code,
|
1637
|
|
- HospApprFlag: -1,
|
1638
|
|
- }
|
1639
|
|
- customs = append(customs, cus)
|
1640
|
|
- }
|
1641
|
|
- }
|
|
1633
|
+ //for _, subItem := range item.HisAdditionalCharge {
|
|
1634
|
+ // if len(subItem.XtHisAddtionConfig.Code) > 0 {
|
|
1635
|
+ // cus := &models.NewCustom{
|
|
1636
|
+ // DetItemFeeSumamt: fmt.Sprintf("%.4f", subItem.Price*float64(subItem.Count)),
|
|
1637
|
+ // Cut: fmt.Sprintf("%.4f", float64(subItem.Count)),
|
|
1638
|
+ // FeedetlSn: subItem.FeedetlSn,
|
|
1639
|
+ // Price: fmt.Sprintf("%.4f", float64(subItem.Price)),
|
|
1640
|
+ // MedListCodg: subItem.XtHisAddtionConfig.Code,
|
|
1641
|
+ // HospApprFlag: -1,
|
|
1642
|
+ //
|
|
1643
|
+ // }
|
|
1644
|
+ // customs = append(customs, cus)
|
|
1645
|
+ // }
|
|
1646
|
+ //}
|
1642
|
1647
|
}
|
1643
|
1648
|
|
1644
|
1649
|
//总页数,向上取整,注意除之前要先转换类型为float64
|