for (String lp : stack.getLogicalPaths()) p.append(lp); if (definition.getContextType() == ExtensionContext.DATATYPE) { boolean ok = false; CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder(); } else if (definition.getContextType() == ExtensionContext.EXTENSION) { boolean ok = false; for (StringType ct : definition.getContext()) return rule(errors, IssueType.STRUCTURE, element.line(), element.col(), stack.getLiteralPath(), ok, "The extension " + extUrl + " is not allowed to be used with the extension '" + extensionParent + "'"); } else if (definition.getContextType() == ExtensionContext.RESOURCE) { boolean ok = false;
tgt.setKind(convertStructureDefinitionKind(src.getKind())); tgt.setAbstract(src.getAbstract()); tgt.setContextType(convertExtensionContext(src.getContextType())); for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue());
public static String describeExtensionContext(StructureDefinition ext) { CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder(); for (StringType t : ext.getContext()) b.append(t.getValue()); if (!ext.hasContextType()) throw new Error("no context type on "+ext.getUrl()); switch (ext.getContextType()) { case DATATYPE: return "Use on data type: "+b.toString(); case EXTENSION: return "Use on extension: "+b.toString(); case RESOURCE: return "Use on element: "+b.toString(); default: return "??"; } }
for (String lp : stack.getLogicalPaths()) p.append(lp); if (definition.getContextType() == ExtensionContext.DATATYPE) { boolean ok = false; CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder(); } else if (definition.getContextType() == ExtensionContext.EXTENSION) { boolean ok = false; for (StringType ct : definition.getContext()) return rule(errors, IssueType.STRUCTURE, element.line(), element.col(), stack.getLiteralPath(), ok, "The extension " + extUrl + " is not allowed to be used with the extension '" + extensionParent + "'"); } else if (definition.getContextType() == ExtensionContext.RESOURCE) { boolean ok = false;
tgt.setKind(convertStructureDefinitionKind(src.getKind())); tgt.setAbstract(src.getAbstract()); tgt.setContextType(convertExtensionContext(src.getContextType())); for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue());
tgt.setKind(convertStructureDefinitionKind(src.getKind())); tgt.setAbstract(src.getAbstract()); tgt.setContextType(convertExtensionContext(src.getContextType())); for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue());
tgt.setKind(convertStructureDefinitionKind(src.getKind())); tgt.setAbstract(src.getAbstract()); tgt.setContextType(convertExtensionContext(src.getContextType())); for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue());