Kaynağa Gözat

[task-1853] 性能验证模块 开发 (二期) / 线性区间验证:WST 408

Li Yuan 1 yıl önce
ebeveyn
işleme
74baca63db

+ 10 - 0
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/verification/model/ConfigVO.java

@@ -24,6 +24,8 @@ public class ConfigVO {
     private double allowableR2;
 
     private double rangeValue;
+
+    private double uncertainty;
     public String[] getModel() {
         return model;
     }
@@ -159,4 +161,12 @@ public class ConfigVO {
     public void setSupportItems(boolean supportItems) {
         isSupportItems = supportItems;
     }
+
+    public double getUncertainty() {
+        return uncertainty;
+    }
+
+    public void setUncertainty(double uncertainty) {
+        this.uncertainty = uncertainty;
+    }
 }

+ 1 - 1
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/components/verification/model2/TruenessEP15Patient.java

@@ -44,7 +44,7 @@ public class TruenessEP15Patient extends PVModel {
         meanX = StatUtils.mean(x);
         meanY = StatUtils.mean(y);
         this.n = this.y.length;
-        this.sdClaim = configVO.getClaimValue()[0];
+        this.sdClaim = configVO.getUncertainty();
         this.rejectionRate = (double)configVO.getRejectionRate()/100;
         this.t = getTValue(this.y.length - 1, rejectionRate);
     }

+ 1 - 1
ibps-provider-root/modules/provider-business/src/test/java/com/lc/ibps/components/verification/model2/TruenessEP15PatientTest.java

@@ -30,7 +30,7 @@ public class TruenessEP15PatientTest {
         InspectionConfigVO config = new InspectionConfigVO("EP15-A2方法学比对", 1, 20,
                 null, 1, LocalDate.now(), true);
         config.setMethodNum(2);
-        config.setClaimValue(new double[]{0.022});
+        config.setUncertainty(0.022);
         config.setUnits("mmol/L");
         config.setDecimal(3);
         config.setRejectionRate(5);