support for custom resources

This commit is contained in:
Grahame Grieve 2024-11-16 21:21:53 +11:00
parent 39bcaa05df
commit 65133a76f6
4 changed files with 10 additions and 2 deletions

View File

@ -66,6 +66,10 @@ public abstract class ResourceRenderer extends DataRenderer {
return this;
}
public boolean renderingUsesValidation() {
return false;
}
/**
* Just build the narrative that would go in the resource (per @renderResource()), but don't put it in the resource
* @param dr

View File

@ -75,7 +75,7 @@ import org.hl7.fhir.utilities.npm.ToolsVersion;
public class NPMPackageGenerator {
public enum Category {
RESOURCE, EXAMPLE, OPENAPI, SCHEMATRON, RDF, OTHER, TOOL, TEMPLATE, JEKYLL, TEST;
RESOURCE, EXAMPLE, OPENAPI, SCHEMATRON, RDF, OTHER, TOOL, TEMPLATE, JEKYLL, TEST, CUSTOM;
private String getDirectory() {
switch (this) {
@ -89,6 +89,7 @@ public class NPMPackageGenerator {
case JEKYLL: return "package/jekyll/";
case TEST: return "package/tests/";
case TOOL: return "package/bin/";
case CUSTOM: return "package/custom/";
}
return "/";
}

View File

@ -119,6 +119,10 @@ public abstract class XhtmlFluent {
return addTag("ul");
}
public XhtmlNode ol() {
return addTag("ol");
}
public XhtmlNode li() {
return addTag("li");
}

View File

@ -586,7 +586,6 @@ public class XhtmlParser {
if (t.length() > 0)
{
lastText = t;
// System.out.println(t);
node.addText(t).setLocation(markLocation());
s.setLength(0);
}