Another XIG fix
This commit is contained in:
parent
84c28fd4f9
commit
71ff6a81db
|
@ -29,10 +29,13 @@ public class ExampleScenarioRenderer extends TerminologyRenderer {
|
||||||
public boolean render(XhtmlNode x, Resource scen) throws IOException {
|
public boolean render(XhtmlNode x, Resource scen) throws IOException {
|
||||||
return render(x, (ExampleScenario) scen);
|
return render(x, (ExampleScenario) scen);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean render(XhtmlNode x, ExampleScenario scen) throws FHIRException {
|
public boolean render(XhtmlNode x, ExampleScenario scen) throws FHIRException {
|
||||||
try {
|
try {
|
||||||
switch (context.getScenarioMode()) {
|
if (context.getScenarioMode() == null) {
|
||||||
|
return renderActors(x, scen);
|
||||||
|
} else {
|
||||||
|
switch (context.getScenarioMode()) {
|
||||||
case ACTORS:
|
case ACTORS:
|
||||||
return renderActors(x, scen);
|
return renderActors(x, scen);
|
||||||
case INSTANCES:
|
case INSTANCES:
|
||||||
|
@ -41,6 +44,7 @@ public class ExampleScenarioRenderer extends TerminologyRenderer {
|
||||||
return renderProcesses(x, scen);
|
return renderProcesses(x, scen);
|
||||||
default:
|
default:
|
||||||
throw new FHIRException("Unknown ExampleScenario Renderer Mode " + context.getScenarioMode());
|
throw new FHIRException("Unknown ExampleScenario Renderer Mode " + context.getScenarioMode());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new FHIRException("Error rendering ExampleScenario " + scen.getUrl(), e);
|
throw new FHIRException("Error rendering ExampleScenario " + scen.getUrl(), e);
|
||||||
|
|
Loading…
Reference in New Issue