fix rendering of exclusions

This commit is contained in:
Grahame Grieve 2020-05-18 06:18:49 +10:00
parent 38849214fc
commit e4292f6830
1 changed files with 7 additions and 2 deletions

View File

@ -687,8 +687,13 @@ public class ValueSetRenderer extends TerminologyRenderer {
for (ConceptSetComponent inc : vs.getCompose().getInclude()) {
hasExtensions = genInclude(ul, inc, "Include", langs, maps) || hasExtensions;
}
for (ConceptSetComponent exc : vs.getCompose().getExclude()) {
hasExtensions = genInclude(ul, exc, "Exclude", langs, maps) || hasExtensions;
if (vs.getCompose().hasExclude()) {
p = x.para();
p.tx("This value set excludes codes based on the following rules:");
ul = x.ul();
for (ConceptSetComponent exc : vs.getCompose().getExclude()) {
hasExtensions = genInclude(ul, exc, "Exclude", langs, maps) || hasExtensions;
}
}
}