IG comparison + value set performance

This commit is contained in:
Grahame Grieve 2019-09-06 10:13:28 +10:00
parent 49b87d0a56
commit e31b2b07c7
2 changed files with 55 additions and 37 deletions

View File

@ -188,5 +188,9 @@ public class DefinitionNavigator {
return typeChildren; return typeChildren;
} }
public StructureDefinition getStructure() {
return structure;
}
} }

View File

@ -1001,6 +1001,7 @@ public class NarrativeGenerator implements INarrativeGenerator {
private boolean pretty; private boolean pretty;
private boolean canonicalUrlsAsLinks; private boolean canonicalUrlsAsLinks;
private TerminologyServiceOptions terminologyServiceOptions = new TerminologyServiceOptions(); private TerminologyServiceOptions terminologyServiceOptions = new TerminologyServiceOptions();
private boolean noSlowLookup;
public NarrativeGenerator(String prefix, String basePath, IWorkerContext context) { public NarrativeGenerator(String prefix, String basePath, IWorkerContext context) {
super(); super();
@ -3747,6 +3748,7 @@ public class NarrativeGenerator implements INarrativeGenerator {
} }
} }
} }
if (inc.getFilter().size() > 0) {
li.addText(type+" codes from "); li.addText(type+" codes from ");
addCsRef(inc, li, e); addCsRef(inc, li, e);
li.tx(" where "); li.tx(" where ");
@ -3789,6 +3791,7 @@ public class NarrativeGenerator implements INarrativeGenerator {
} }
} }
} }
}
if (inc.hasValueSet()) { if (inc.hasValueSet()) {
li.tx(", where the codes are contained in "); li.tx(", where the codes are contained in ");
boolean first = true; boolean first = true;
@ -3840,6 +3843,9 @@ public class NarrativeGenerator implements INarrativeGenerator {
return v; return v;
} }
if (noSlowLookup)
return null;
if (!context.hasCache()) { if (!context.hasCache()) {
ValueSetExpansionComponent vse; ValueSetExpansionComponent vse;
try { try {
@ -4784,5 +4790,13 @@ public class NarrativeGenerator implements INarrativeGenerator {
this.terminologyServiceOptions = terminologyServiceOptions; this.terminologyServiceOptions = terminologyServiceOptions;
} }
public boolean isNoSlowLookup() {
return noSlowLookup;
}
public void setNoSlowLookup(boolean noSlowLookup) {
this.noSlowLookup = noSlowLookup;
}
} }