Another XIG fix

This commit is contained in:
Grahame Grieve 2023-09-08 10:22:13 +10:00
parent 84c28fd4f9
commit 71ff6a81db
1 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,10 @@ public class ExampleScenarioRenderer extends TerminologyRenderer {
public boolean render(XhtmlNode x, ExampleScenario scen) throws FHIRException {
try {
switch (context.getScenarioMode()) {
if (context.getScenarioMode() == null) {
return renderActors(x, scen);
} else {
switch (context.getScenarioMode()) {
case ACTORS:
return renderActors(x, scen);
case INSTANCES:
@ -41,6 +44,7 @@ public class ExampleScenarioRenderer extends TerminologyRenderer {
return renderProcesses(x, scen);
default:
throw new FHIRException("Unknown ExampleScenario Renderer Mode " + context.getScenarioMode());
}
}
} catch (Exception e) {
throw new FHIRException("Error rendering ExampleScenario " + scen.getUrl(), e);