Skip to content

Commit

Permalink
Add support for vocabularyValidationConfigurationsErrorCount
Browse files Browse the repository at this point in the history
-For use with the C-CDA Scorecard | SITE-3040
Scorecard/CodeValidator/RefVal: Add tracking for ERRORS only in total
vocabulary validations run
  • Loading branch information
drbgfc committed Sep 6, 2019
1 parent c211419 commit f0b920b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<java.version>1.7</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<code.validator.version>1.0.22</code.validator.version>
<code.validator.version>1.0.22-SNAPSHOT</code.validator.version>
<content.validator.version>1.0.20</content.validator.version>
<!-- MDHT properties -->
<mdht.models.version>3.0.8.20180531</mdht.models.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class ValidationResultsMetaData {
private final Map<String, AtomicInteger> errorCounts = new LinkedHashMap<String, AtomicInteger>();
private List<ResultMetaData> resultMetaData;
private int vocabularyValidationConfigurationsCount;
private int vocabularyValidationConfigurationsErrorCount;
private String severityLevel;

public ValidationResultsMetaData() {
Expand Down Expand Up @@ -110,6 +111,14 @@ public void setVocabularyValidationConfigurationsCount(int vocabularyValidationC
this.vocabularyValidationConfigurationsCount = vocabularyValidationConfigurationsCount;
}

public int getVocabularyValidationConfigurationsErrorCount() {
return vocabularyValidationConfigurationsErrorCount;
}

public void setVocabularyValidationConfigurationsErrorCount(int vocabularyValidationConfigurationsErrorCount) {
this.vocabularyValidationConfigurationsErrorCount = vocabularyValidationConfigurationsErrorCount;
}

public String getSeverityLevel() {
return severityLevel;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ private ValidationResultsMetaData buildValidationMedata(List<RefCCDAValidationRe
GlobalCodeValidatorResults globalCodeValidatorResults = vocabularyCCDAValidator.getGlobalCodeValidatorResults();
resultsMetaData.setVocabularyValidationConfigurationsCount(
globalCodeValidatorResults.getVocabularyValidationConfigurationsCount());
resultsMetaData.setVocabularyValidationConfigurationsErrorCount(
globalCodeValidatorResults.getVocabularyValidationConfigurationsErrorCount());
return resultsMetaData;
}

Expand Down

0 comments on commit f0b920b

Please sign in to comment.