boolean ok = false; CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder(); for (StringType ct : definition.getContext()) { b.append(ct.getValue()); if (ct.getValue().equals("*") || stack.getLogicalPaths().contains(ct.getValue() + ".extension")) } else if (definition.getContextType() == ExtensionContext.EXTENSION) { boolean ok = false; for (StringType ct : definition.getContext()) if (ct.getValue().equals("*") || ct.getValue().equals(extensionParent)) ok = true; for (StringType ct : definition.getContext()) { String c = ct.getValue(); b.append(c);
this.contextType = (Enumeration) value; // Enumeration<ExtensionContext> } else if (name.equals("context")) { this.getContext().add(castToString(value)); } else if (name.equals("contextInvariant")) { this.getContextInvariant().add(castToString(value));
tgt.setAbstract(src.getAbstract()); tgt.setContextType(convertExtensionContext(src.getContextType())); for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue()); tgt.setConstrainedType(src.getType());
return value; case 951530927: // context this.getContext().add(castToString(value)); // StringType return value; case -802505007: // contextInvariant
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 "??"; } }
boolean ok = false; CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder(); for (StringType ct : definition.getContext()) { b.append(ct.getValue()); if (ct.getValue().equals("*") || stack.getLogicalPaths().contains(ct.getValue() + ".extension")) } else if (definition.getContextType() == ExtensionContext.EXTENSION) { boolean ok = false; for (StringType ct : definition.getContext()) if (ct.getValue().equals("*") || ct.getValue().equals(extensionParent)) ok = true; for (StringType ct : definition.getContext()) { String c = ct.getValue(); b.append(c);
tgt.setAbstract(src.getAbstract()); tgt.setContextType(convertExtensionContext(src.getContextType())); for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue()); if (src.hasBaseDefinition())
tgt.setAbstract(src.getAbstract()); tgt.setContextType(convertExtensionContext(src.getContextType())); for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue()); tgt.setConstrainedType(src.getType());
tgt.setAbstract(src.getAbstract()); tgt.setContextType(convertExtensionContext(src.getContextType())); for (org.hl7.fhir.dstu3.model.StringType t : src.getContext()) tgt.addContext(t.getValue()); if (src.hasBaseDefinition())