|
@@ -0,0 +1,246 @@
|
|
|
|
|
+package com.etotem.cfc.dto;
|
|
|
|
|
+
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 两阶段入库共享载荷 — parse-preview 与 confirm 共用的非实体字段结构。
|
|
|
|
|
+ * 在 draft 表中以 JSON 形式存储,前端 confirm 时可整体回传或改写。
|
|
|
|
|
+ */
|
|
|
|
|
+public class ParsedReportPayload {
|
|
|
|
|
+
|
|
|
|
|
+ public static class Summary {
|
|
|
|
|
+ private Integer overallScore;
|
|
|
|
|
+ private Integer gutHealthScore;
|
|
|
|
|
+ private Integer chronicDiseaseScore;
|
|
|
|
|
+ private Integer nutritionScore;
|
|
|
|
|
+ private Integer balanceScore;
|
|
|
|
|
+ private Integer diversityScore;
|
|
|
|
|
+ private Integer beneficialScore;
|
|
|
|
|
+ private Integer harmfulScore;
|
|
|
|
|
+ private Integer coreGenusScore;
|
|
|
|
|
+ private String gutAge;
|
|
|
|
|
+ private String gutType;
|
|
|
|
|
+ /** 肠道菌群状态,如"0度"(0度~4度) */
|
|
|
|
|
+ private String gutStatusLevel;
|
|
|
|
|
+ private String shannonIndex;
|
|
|
|
|
+ private String reportNumber;
|
|
|
|
|
+ private String reportDate;
|
|
|
|
|
+ private String personName;
|
|
|
|
|
+ private String gender;
|
|
|
|
|
+ private Integer age;
|
|
|
|
|
+ private String birthday;
|
|
|
|
|
+
|
|
|
|
|
+ public Integer getOverallScore() { return overallScore; }
|
|
|
|
|
+ public void setOverallScore(Integer overallScore) { this.overallScore = overallScore; }
|
|
|
|
|
+ public Integer getGutHealthScore() { return gutHealthScore; }
|
|
|
|
|
+ public void setGutHealthScore(Integer gutHealthScore) { this.gutHealthScore = gutHealthScore; }
|
|
|
|
|
+ public Integer getChronicDiseaseScore() { return chronicDiseaseScore; }
|
|
|
|
|
+ public void setChronicDiseaseScore(Integer chronicDiseaseScore) { this.chronicDiseaseScore = chronicDiseaseScore; }
|
|
|
|
|
+ public Integer getNutritionScore() { return nutritionScore; }
|
|
|
|
|
+ public void setNutritionScore(Integer nutritionScore) { this.nutritionScore = nutritionScore; }
|
|
|
|
|
+ public Integer getBalanceScore() { return balanceScore; }
|
|
|
|
|
+ public void setBalanceScore(Integer balanceScore) { this.balanceScore = balanceScore; }
|
|
|
|
|
+ public Integer getDiversityScore() { return diversityScore; }
|
|
|
|
|
+ public void setDiversityScore(Integer diversityScore) { this.diversityScore = diversityScore; }
|
|
|
|
|
+ public Integer getBeneficialScore() { return beneficialScore; }
|
|
|
|
|
+ public void setBeneficialScore(Integer beneficialScore) { this.beneficialScore = beneficialScore; }
|
|
|
|
|
+ public Integer getHarmfulScore() { return harmfulScore; }
|
|
|
|
|
+ public void setHarmfulScore(Integer harmfulScore) { this.harmfulScore = harmfulScore; }
|
|
|
|
|
+ public Integer getCoreGenusScore() { return coreGenusScore; }
|
|
|
|
|
+ public void setCoreGenusScore(Integer coreGenusScore) { this.coreGenusScore = coreGenusScore; }
|
|
|
|
|
+ public String getGutAge() { return gutAge; }
|
|
|
|
|
+ public void setGutAge(String gutAge) { this.gutAge = gutAge; }
|
|
|
|
|
+ public String getGutType() { return gutType; }
|
|
|
|
|
+ public void setGutType(String gutType) { this.gutType = gutType; }
|
|
|
|
|
+ public String getGutStatusLevel() { return gutStatusLevel; }
|
|
|
|
|
+ public void setGutStatusLevel(String gutStatusLevel) { this.gutStatusLevel = gutStatusLevel; }
|
|
|
|
|
+ public String getShannonIndex() { return shannonIndex; }
|
|
|
|
|
+ public void setShannonIndex(String shannonIndex) { this.shannonIndex = shannonIndex; }
|
|
|
|
|
+ public String getReportNumber() { return reportNumber; }
|
|
|
|
|
+ public void setReportNumber(String reportNumber) { this.reportNumber = reportNumber; }
|
|
|
|
|
+ public String getReportDate() { return reportDate; }
|
|
|
|
|
+ public void setReportDate(String reportDate) { this.reportDate = reportDate; }
|
|
|
|
|
+ public String getPersonName() { return personName; }
|
|
|
|
|
+ public void setPersonName(String personName) { this.personName = personName; }
|
|
|
|
|
+ public String getGender() { return gender; }
|
|
|
|
|
+ public void setGender(String gender) { this.gender = gender; }
|
|
|
|
|
+ public Integer getAge() { return age; }
|
|
|
|
|
+ public void setAge(Integer age) { this.age = age; }
|
|
|
|
|
+ public String getBirthday() { return birthday; }
|
|
|
|
|
+ public void setBirthday(String birthday) { this.birthday = birthday; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public static class Indicator {
|
|
|
|
|
+ private String category;
|
|
|
|
|
+ private String indicatorName;
|
|
|
|
|
+ private String indicatorValue;
|
|
|
|
|
+ private String unit;
|
|
|
|
|
+ private String refRange;
|
|
|
|
|
+ private String status;
|
|
|
|
|
+ private String symptoms;
|
|
|
|
|
+ private String collectionDate;
|
|
|
|
|
+
|
|
|
|
|
+ public String getCategory() { return category; }
|
|
|
|
|
+ public void setCategory(String category) { this.category = category; }
|
|
|
|
|
+ public String getIndicatorName() { return indicatorName; }
|
|
|
|
|
+ public void setIndicatorName(String indicatorName) { this.indicatorName = indicatorName; }
|
|
|
|
|
+ public String getIndicatorValue() { return indicatorValue; }
|
|
|
|
|
+ public void setIndicatorValue(String indicatorValue) { this.indicatorValue = indicatorValue; }
|
|
|
|
|
+ public String getUnit() { return unit; }
|
|
|
|
|
+ public void setUnit(String unit) { this.unit = unit; }
|
|
|
|
|
+ public String getRefRange() { return refRange; }
|
|
|
|
|
+ public void setRefRange(String refRange) { this.refRange = refRange; }
|
|
|
|
|
+ public String getStatus() { return status; }
|
|
|
|
|
+ public void setStatus(String status) { this.status = status; }
|
|
|
|
|
+ public String getSymptoms() { return symptoms; }
|
|
|
|
|
+ public void setSymptoms(String symptoms) { this.symptoms = symptoms; }
|
|
|
|
|
+ public String getCollectionDate() { return collectionDate; }
|
|
|
|
|
+ public void setCollectionDate(String collectionDate) { this.collectionDate = collectionDate; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public static class Flora {
|
|
|
|
|
+ private String bacteriaName;
|
|
|
|
|
+ private String bacteriaValue;
|
|
|
|
|
+ private String normalRange;
|
|
|
|
|
+ private String populationLevel;
|
|
|
|
|
+ private String detectionRate;
|
|
|
|
|
+ private String description;
|
|
|
|
|
+ private String category;
|
|
|
|
|
+ private String level;
|
|
|
|
|
+ private String status;
|
|
|
|
|
+
|
|
|
|
|
+ public String getBacteriaName() { return bacteriaName; }
|
|
|
|
|
+ public void setBacteriaName(String bacteriaName) { this.bacteriaName = bacteriaName; }
|
|
|
|
|
+ public String getBacteriaValue() { return bacteriaValue; }
|
|
|
|
|
+ public void setBacteriaValue(String bacteriaValue) { this.bacteriaValue = bacteriaValue; }
|
|
|
|
|
+ public String getNormalRange() { return normalRange; }
|
|
|
|
|
+ public void setNormalRange(String normalRange) { this.normalRange = normalRange; }
|
|
|
|
|
+ public String getPopulationLevel() { return populationLevel; }
|
|
|
|
|
+ public void setPopulationLevel(String populationLevel) { this.populationLevel = populationLevel; }
|
|
|
|
|
+ public String getDetectionRate() { return detectionRate; }
|
|
|
|
|
+ public void setDetectionRate(String detectionRate) { this.detectionRate = detectionRate; }
|
|
|
|
|
+ public String getDescription() { return description; }
|
|
|
|
|
+ public void setDescription(String description) { this.description = description; }
|
|
|
|
|
+ public String getCategory() { return category; }
|
|
|
|
|
+ public void setCategory(String category) { this.category = category; }
|
|
|
|
|
+ public String getLevel() { return level; }
|
|
|
|
|
+ public void setLevel(String level) { this.level = level; }
|
|
|
|
|
+ public String getStatus() { return status; }
|
|
|
|
|
+ public void setStatus(String status) { this.status = status; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public static class FoodItem {
|
|
|
|
|
+ private String name;
|
|
|
|
|
+ private String category;
|
|
|
|
|
+ private Integer score;
|
|
|
|
|
+ private BigDecimal energyKj;
|
|
|
|
|
+ private BigDecimal protein;
|
|
|
|
|
+ private BigDecimal fat;
|
|
|
|
|
+ private BigDecimal carbs;
|
|
|
|
|
+ private BigDecimal starch;
|
|
|
|
|
+ private BigDecimal fiber;
|
|
|
|
|
+ private BigDecimal cholesterol;
|
|
|
|
|
+
|
|
|
|
|
+ public String getName() { return name; }
|
|
|
|
|
+ public void setName(String name) { this.name = name; }
|
|
|
|
|
+ public String getCategory() { return category; }
|
|
|
|
|
+ public void setCategory(String category) { this.category = category; }
|
|
|
|
|
+ public Integer getScore() { return score; }
|
|
|
|
|
+ public void setScore(Integer score) { this.score = score; }
|
|
|
|
|
+ public BigDecimal getEnergyKj() { return energyKj; }
|
|
|
|
|
+ public void setEnergyKj(BigDecimal energyKj) { this.energyKj = energyKj; }
|
|
|
|
|
+ public BigDecimal getProtein() { return protein; }
|
|
|
|
|
+ public void setProtein(BigDecimal protein) { this.protein = protein; }
|
|
|
|
|
+ public BigDecimal getFat() { return fat; }
|
|
|
|
|
+ public void setFat(BigDecimal fat) { this.fat = fat; }
|
|
|
|
|
+ public BigDecimal getCarbs() { return carbs; }
|
|
|
|
|
+ public void setCarbs(BigDecimal carbs) { this.carbs = carbs; }
|
|
|
|
|
+ public BigDecimal getStarch() { return starch; }
|
|
|
|
|
+ public void setStarch(BigDecimal starch) { this.starch = starch; }
|
|
|
|
|
+ public BigDecimal getFiber() { return fiber; }
|
|
|
|
|
+ public void setFiber(BigDecimal fiber) { this.fiber = fiber; }
|
|
|
|
|
+ public BigDecimal getCholesterol() { return cholesterol; }
|
|
|
|
|
+ public void setCholesterol(BigDecimal cholesterol) { this.cholesterol = cholesterol; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public static class DiseaseRisk {
|
|
|
|
|
+ private String diseaseName;
|
|
|
|
|
+ private String riskValue;
|
|
|
|
|
+ private String riskLevel;
|
|
|
|
|
+ /** 关联菌(异常菌)列表 — 北京菌群报告"疾病肠菌评估(异常项)" */
|
|
|
|
|
+ private List<RelatedBacterium> relatedBacteria;
|
|
|
|
|
+
|
|
|
|
|
+ public String getDiseaseName() { return diseaseName; }
|
|
|
|
|
+ public void setDiseaseName(String diseaseName) { this.diseaseName = diseaseName; }
|
|
|
|
|
+ public String getRiskValue() { return riskValue; }
|
|
|
|
|
+ public void setRiskValue(String riskValue) { this.riskValue = riskValue; }
|
|
|
|
|
+ public String getRiskLevel() { return riskLevel; }
|
|
|
|
|
+ public void setRiskLevel(String riskLevel) { this.riskLevel = riskLevel; }
|
|
|
|
|
+ public List<RelatedBacterium> getRelatedBacteria() { return relatedBacteria; }
|
|
|
|
|
+ public void setRelatedBacteria(List<RelatedBacterium> relatedBacteria) { this.relatedBacteria = relatedBacteria; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /** 疾病关联菌明细 */
|
|
|
|
|
+ public static class RelatedBacterium {
|
|
|
|
|
+ private String bacteria; // 菌名
|
|
|
|
|
+ private String correlation; // 相关性(超标/缺乏)
|
|
|
|
|
+ private String value; // 检测值
|
|
|
|
|
+ private String status; // 状态
|
|
|
|
|
+
|
|
|
|
|
+ public String getBacteria() { return bacteria; }
|
|
|
|
|
+ public void setBacteria(String bacteria) { this.bacteria = bacteria; }
|
|
|
|
|
+ public String getCorrelation() { return correlation; }
|
|
|
|
|
+ public void setCorrelation(String correlation) { this.correlation = correlation; }
|
|
|
|
|
+ public String getValue() { return value; }
|
|
|
|
|
+ public void setValue(String value) { this.value = value; }
|
|
|
|
|
+ public String getStatus() { return status; }
|
|
|
|
|
+ public void setStatus(String status) { this.status = status; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public static class Payload {
|
|
|
|
|
+ private Summary summary;
|
|
|
|
|
+ private List<Indicator> indicators;
|
|
|
|
|
+ private List<Flora> gutFlora;
|
|
|
|
|
+ private List<Flora> probioticSpecies;
|
|
|
|
|
+ private List<Flora> taxonomyClass; // 菌纲构成
|
|
|
|
|
+ private List<Flora> taxonomyOrder; // 菌目构成
|
|
|
|
|
+ private List<Flora> taxonomyFamily; // 菌科构成
|
|
|
|
|
+ private List<Flora> taxonomyGenus; // 菌属构成
|
|
|
|
|
+ private List<Flora> taxonomySpecies; // 菌种构成
|
|
|
|
|
+ private List<Flora> pathogenGenus; // 病原菌属
|
|
|
|
|
+ private List<Flora> pathogenDetection; // 病原菌检出
|
|
|
|
|
+ private List<FoodItem> foods;
|
|
|
|
|
+ private List<DiseaseRisk> diseaseRisks;
|
|
|
|
|
+ private String reportFormat;
|
|
|
|
|
+
|
|
|
|
|
+ public Summary getSummary() { return summary; }
|
|
|
|
|
+ public void setSummary(Summary summary) { this.summary = summary; }
|
|
|
|
|
+ public List<Indicator> getIndicators() { return indicators; }
|
|
|
|
|
+ public void setIndicators(List<Indicator> indicators) { this.indicators = indicators; }
|
|
|
|
|
+ public List<Flora> getGutFlora() { return gutFlora; }
|
|
|
|
|
+ public void setGutFlora(List<Flora> gutFlora) { this.gutFlora = gutFlora; }
|
|
|
|
|
+ public List<Flora> getProbioticSpecies() { return probioticSpecies; }
|
|
|
|
|
+ public void setProbioticSpecies(List<Flora> probioticSpecies) { this.probioticSpecies = probioticSpecies; }
|
|
|
|
|
+ public List<Flora> getTaxonomyClass() { return taxonomyClass; }
|
|
|
|
|
+ public void setTaxonomyClass(List<Flora> taxonomyClass) { this.taxonomyClass = taxonomyClass; }
|
|
|
|
|
+ public List<Flora> getTaxonomyOrder() { return taxonomyOrder; }
|
|
|
|
|
+ public void setTaxonomyOrder(List<Flora> taxonomyOrder) { this.taxonomyOrder = taxonomyOrder; }
|
|
|
|
|
+ public List<Flora> getTaxonomyFamily() { return taxonomyFamily; }
|
|
|
|
|
+ public void setTaxonomyFamily(List<Flora> taxonomyFamily) { this.taxonomyFamily = taxonomyFamily; }
|
|
|
|
|
+ public List<Flora> getTaxonomyGenus() { return taxonomyGenus; }
|
|
|
|
|
+ public void setTaxonomyGenus(List<Flora> taxonomyGenus) { this.taxonomyGenus = taxonomyGenus; }
|
|
|
|
|
+ public List<Flora> getTaxonomySpecies() { return taxonomySpecies; }
|
|
|
|
|
+ public void setTaxonomySpecies(List<Flora> taxonomySpecies) { this.taxonomySpecies = taxonomySpecies; }
|
|
|
|
|
+ public List<Flora> getPathogenGenus() { return pathogenGenus; }
|
|
|
|
|
+ public void setPathogenGenus(List<Flora> pathogenGenus) { this.pathogenGenus = pathogenGenus; }
|
|
|
|
|
+ public List<Flora> getPathogenDetection() { return pathogenDetection; }
|
|
|
|
|
+ public void setPathogenDetection(List<Flora> pathogenDetection) { this.pathogenDetection = pathogenDetection; }
|
|
|
|
|
+ public List<FoodItem> getFoods() { return foods; }
|
|
|
|
|
+ public void setFoods(List<FoodItem> foods) { this.foods = foods; }
|
|
|
|
|
+ public List<DiseaseRisk> getDiseaseRisks() { return diseaseRisks; }
|
|
|
|
|
+ public void setDiseaseRisks(List<DiseaseRisk> diseaseRisks) { this.diseaseRisks = diseaseRisks; }
|
|
|
|
|
+ public String getReportFormat() { return reportFormat; }
|
|
|
|
|
+ public void setReportFormat(String reportFormat) { this.reportFormat = reportFormat; }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|