Fix broken links + remove error about regex in core package
This commit is contained in:
parent
647d3efcee
commit
db19b0dd00
|
@ -813,7 +813,7 @@ public class SimpleWorkerContext extends BaseWorkerContext implements IWorkerCon
|
|||
pu.setDebug(false);
|
||||
for (String err : errors)
|
||||
msgs.add(new ValidationMessage(Source.ProfileValidator, IssueType.EXCEPTION, p.getUserString("path"), "Error sorting Differential: "+err, ValidationMessage.IssueSeverity.ERROR));
|
||||
pu.generateSnapshot(sd, p, p.getUrl(), Utilities.extractBaseUrl(sd.getUserString("path")), p.getName());
|
||||
pu.generateSnapshot(sd, p, p.getUrl(), sd.getUserString("webroot"), p.getName());
|
||||
for (ValidationMessage msg : msgs) {
|
||||
if ((!ignoreProfileErrors && msg.getLevel() == ValidationMessage.IssueSeverity.ERROR) || msg.getLevel() == ValidationMessage.IssueSeverity.FATAL)
|
||||
throw new DefinitionException(formatMessage(I18nConstants.PROFILE___ELEMENT__ERROR_GENERATING_SNAPSHOT_, p.getName(), p.getUrl(), msg.getLocation(), msg.getMessage()));
|
||||
|
|
|
@ -226,7 +226,9 @@ public class QuestionnaireRenderer extends TerminologyRenderer {
|
|||
boolean hasExt = false;
|
||||
|
||||
r.setIcon("icon-q-"+i.getType().toCode().toLowerCase()+".png", i.getType().getDisplay());
|
||||
r.getCells().add(gen.new Cell(null, context.getDefinitionsTarget() == null ? "" : context.getDefinitionsTarget()+"#item."+i.getLinkId(), i.getLinkId(), null, null));
|
||||
Cell c1 = gen.new Cell(null, context.getDefinitionsTarget() == null ? "" : context.getDefinitionsTarget()+"#item."+i.getLinkId(), i.getLinkId(), null, null);
|
||||
c1.setId("item."+i.getLinkId());
|
||||
r.getCells().add(c1);
|
||||
String txt = (i.hasPrefix() ? i.getPrefix() + ". " : "") + i.getText();
|
||||
r.getCells().add(gen.new Cell(null, null, txt, null, null));
|
||||
r.getCells().add(gen.new Cell(null, null, (i.getRequired() ? "1" : "0")+".."+(i.getRepeats() ? "*" : "1"), null, null));
|
||||
|
@ -282,7 +284,7 @@ public class QuestionnaireRenderer extends TerminologyRenderer {
|
|||
if (!defn.getPieces().isEmpty()) defn.addPiece(gen.new Piece("br"));
|
||||
Piece p = gen.new Piece(null, "Enable When: ", null);
|
||||
defn.getPieces().add(p);
|
||||
if (i.getEnableWhen().size() == 0) {
|
||||
if (i.getEnableWhen().size() == 1) {
|
||||
XhtmlNode x = new XhtmlNode(NodeType.Element, "span");
|
||||
p.getChildren().add(x);
|
||||
renderEnableWhen(x, i.getEnableWhenFirstRep());
|
||||
|
|
|
@ -221,6 +221,7 @@ public class HierarchicalTableGenerator extends TranslatingUtilities {
|
|||
private String cellStyle;
|
||||
protected int span = 1;
|
||||
private TextAlignment alignment = TextAlignment.LEFT;
|
||||
private String id;
|
||||
|
||||
public Cell() {
|
||||
|
||||
|
@ -241,6 +242,8 @@ public class HierarchicalTableGenerator extends TranslatingUtilities {
|
|||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public Cell addMarkdown(String md) {
|
||||
if (!Utilities.noString(md)) {
|
||||
try {
|
||||
|
@ -428,6 +431,12 @@ public class HierarchicalTableGenerator extends TranslatingUtilities {
|
|||
return this;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -725,6 +734,10 @@ public class HierarchicalTableGenerator extends TranslatingUtilities {
|
|||
if (c.span > 1) {
|
||||
tc.colspan(Integer.toString(c.span));
|
||||
}
|
||||
if (c.getId() != null) {
|
||||
tc.setAttribute("id", c.getId());
|
||||
}
|
||||
|
||||
if (indents != null) {
|
||||
tc.addTag("img").setAttribute("src", srcFor(imagePath, "tbl_spacer.png")).setAttribute("style", "background-color: inherit").setAttribute("class", "hierarchy").setAttribute("alt", ".");
|
||||
tc.setAttribute("style", "vertical-align: top; text-align : left; "+(c.cellStyle != null && c.cellStyle.contains("background-color") ? "" : "background-color: "+color+"; ")+"border: "+ border +"px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url("+imagePath+checkExists(indents, hasChildren, lineColor, outputTracker)+")"+(c.cellStyle != null ? ";"+c.cellStyle : ""));
|
||||
|
|
|
@ -1876,9 +1876,13 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
|
|||
}
|
||||
// the history of this is a mess - see https://jira.hl7.org/browse/FHIR-13328
|
||||
// we in practice we will support it in either place, but the specification says on ElementDefinition, not on ElementDefinition.type
|
||||
// if ("http://hl7.org/fhir/StructureDefinition/regex".equals(extUrl)) {
|
||||
// list.get(1).setExpression("ElementDefinition.type");
|
||||
// }
|
||||
// but this creates validation errors people can't fix all over the place if we don't do this.
|
||||
if ("http://hl7.org/fhir/StructureDefinition/regex".equals(extUrl)) {
|
||||
StructureDefinitionContextComponent e = new StructureDefinitionContextComponent();
|
||||
e.setExpression("ElementDefinition.type");
|
||||
e.setType(ExtensionContextType.ELEMENT);
|
||||
list.add(e);
|
||||
}
|
||||
if ("http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version".equals(extUrl)) {
|
||||
list.get(0).setExpression("Element"); // well, it can't be used anywhere but the list of places it can be used is quite long
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue