|
@@ -2087,18 +2087,19 @@ func afterTypeCondition(query *gorm.DB, afterType int64) {
|
2087
|
2087
|
}
|
2088
|
2088
|
|
2089
|
2089
|
type DialysisDataThree struct {
|
2090
|
|
- DialysisNo string `json:"dialysis_no"`
|
2091
|
|
- PatientName string `json:"patient_name"`
|
2092
|
|
- Gender string `json:"gender"`
|
2093
|
|
- Age int `json:"age"`
|
2094
|
|
- AssessmentDate string `json:"assessment_date"`
|
2095
|
|
- DryWeight float64 `json:"dry_weight"`
|
2096
|
|
- PreDialysisBP string `json:"pre_dialysis_bp"`
|
2097
|
|
- PostDialysisBP string `json:"post_dialysis_bp"`
|
2098
|
|
- MonitoringBP string `json:"monitoring_bp"`
|
2099
|
|
- UltrafiltrationRate float64 `json:"ultrafiltration_rate"`
|
2100
|
|
- UltrafiltrationVol float64 `json:"ultrafiltration_vol"`
|
2101
|
|
- BPStatus string `json:"bp_status"`
|
|
2090
|
+ DialysisNo string `json:"dialysis_no"`
|
|
2091
|
+ PatientName string `json:"patient_name"`
|
|
2092
|
+ Gender string `json:"gender"`
|
|
2093
|
+ Age int `json:"age"`
|
|
2094
|
+ AssessmentDate string `json:"assessment_date"`
|
|
2095
|
+ DryWeight float64 `json:"dry_weight"`
|
|
2096
|
+ PreDialysisBP string `json:"pre_dialysis_bp"`
|
|
2097
|
+ PostDialysisBP string `json:"post_dialysis_bp"`
|
|
2098
|
+ MonitoringBP string `json:"monitoring_bp"`
|
|
2099
|
+ UltrafiltrationRate float64 `json:"ultrafiltration_rate"`
|
|
2100
|
+ UltrafiltrationVol float64 `json:"ultrafiltration_vol"`
|
|
2101
|
+ BPStatus string `json:"bp_status"`
|
|
2102
|
+ ActualUltrafiltration float64 `json:"actual_ultrafiltration"`
|
2102
|
2103
|
}
|
2103
|
2104
|
|
2104
|
2105
|
// func GetNewDialysisBPDetailTableTen(user_org_id int64, start_time int64, end_time int64, addType, page, limit int64) ([]DialysisDataThree, int64, error) {
|
|
@@ -2224,6 +2225,7 @@ func GetNewDialysisBPDetailTableTen(
|
2224
|
2225
|
query := readDb.Table("xt_assessment_before_dislysis b").
|
2225
|
2226
|
Select(`
|
2226
|
2227
|
p.dialysis_no AS dialysis_no,
|
|
2228
|
+ a.actual_ultrafiltration as actual_ultrafiltration,
|
2227
|
2229
|
p.name AS patient_name,
|
2228
|
2230
|
p.gender AS gender,
|
2229
|
2231
|
FLOOR((YEAR(CURDATE()) - SUBSTRING(p.id_card_no, 7, 4))) AS age,
|