properly handle...
This commit is contained in:
parent
cba782fcb3
commit
fe474b1ad2
|
@ -385,5 +385,21 @@ public class ValueSetUtilities {
|
|||
return code;
|
||||
}
|
||||
|
||||
public static int countExpansion(ValueSet valueset) {
|
||||
int i = valueset.getExpansion().getContains().size();
|
||||
for (ValueSetExpansionContainsComponent t : valueset.getExpansion().getContains()) {
|
||||
i = i + countExpansion(t);
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
private static int countExpansion(ValueSetExpansionContainsComponent c) {
|
||||
int i = c.getContains().size();
|
||||
for (ValueSetExpansionContainsComponent t : c.getContains()) {
|
||||
i = i + countExpansion(t);
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -493,6 +493,7 @@ public class ValueSetValidator {
|
|||
res.getIssues().addAll(makeIssue(IssueSeverity.WARNING, IssueType.NOTFOUND, path, m));
|
||||
res.setUnknownSystems(unknownSystems);
|
||||
res.setSeverity(IssueSeverity.ERROR); // back patching for display logic issue
|
||||
res.setErrorClass(TerminologyServiceErrorClass.CODESYSTEM_UNSUPPORTED);
|
||||
} else if (!inExpansion && !inInclude) {
|
||||
// if (!info.getIssues().isEmpty()) {
|
||||
// res.setMessage("Not in value set "+valueset.getUrl()+": "+info.summary()).setSeverity(IssueSeverity.ERROR);
|
||||
|
|
Loading…
Reference in New Issue