/** * @return A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question. */ public String getAnswerValueSet() { return this.answerValueSet == null ? null : this.answerValueSet.getValue(); }
private boolean isProfiledType(List<CanonicalType> theProfile) { for (CanonicalType next : theProfile){ if (StringUtils.defaultString(next.getValueAsString()).contains(":")) { return true; } } return false; }
/** * Constructor */ @Override public CanonicalType copy() { CanonicalType ret = new CanonicalType(getValue()); copyValues(ret); return ret; }
/** * @param value {@link #compartment} (An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL .) */ public CapabilityStatementRestComponent addCompartment(String value) { //1 CanonicalType t = new CanonicalType(); t.setValue(value); if (this.compartment == null) this.compartment = new ArrayList<CanonicalType>(); this.compartment.add(t); return this; }
String id = p.hasExtension(ToolingExtensions.EXT_PROFILE_ELEMENT) ? p.getExtensionString(ToolingExtensions.EXT_PROFILE_ELEMENT) : null; StructureDefinition sd = context.fetchResource(StructureDefinition.class, p.getValue()); if (sd == null) throw new DefinitionException("Unable to resolve profile "+p);
/** * @return {@link #library} (A reference to a Library resource containing the formal logic used by the ResearchDefinition.) */ public CanonicalType addLibraryElement() {//2 CanonicalType t = new CanonicalType(); if (this.library == null) this.library = new ArrayList<CanonicalType>(); this.library.add(t); return t; }
public TypeRefComponent copy() { TypeRefComponent dst = new TypeRefComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); if (profile != null) { dst.profile = new ArrayList<CanonicalType>(); for (CanonicalType i : profile) dst.profile.add(i.copy()); }; if (targetProfile != null) { dst.targetProfile = new ArrayList<CanonicalType>(); for (CanonicalType i : targetProfile) dst.targetProfile.add(i.copy()); }; if (aggregation != null) { dst.aggregation = new ArrayList<Enumeration<AggregationMode>>(); for (Enumeration<AggregationMode> i : aggregation) dst.aggregation.add(i.copy()); }; dst.versioning = versioning == null ? null : versioning.copy(); return dst; }
boolean matchingResource = false; for (CanonicalType target: containerType.getTargetProfile()) { StructureDefinition sd = (StructureDefinition)context.fetchResource(StructureDefinition.class, target.asStringValue()); if (("http://hl7.org/fhir/StructureDefinition/" + sd.getType()).equals(tu)) { matchingResource = true;
profiles.add(ei.definition.getType().get(0).getProfile().get(0).getValue()); profiles.add(ei.definition.getType().get(0).getProfile().get(0).getValue()); } else if (ei.definition.getType().size() > 1) { profiles.add(t.getProfile().get(0).getValue()); if (ei.definition.getType().get(0).hasProfile()) { CanonicalType pu = ei.definition.getType().get(0).getProfile().get(0); if (pu.hasExtension(ToolingExtensions.EXT_PROFILE_ELEMENT)) profiles.add(pu.getValue()+"#"+pu.getExtensionString(ToolingExtensions.EXT_PROFILE_ELEMENT)); else profiles.add(pu.getValue());
/** * @return {@link #instantiates} (Reference to a canonical URL of another CapabilityStatement that this software implements. This capability statement is a published API description that corresponds to a business service. The server may actually implement a subset of the capability statement it claims to implement, so the capability statement must specify the full capability details.) */ public CanonicalType addInstantiatesElement() {//2 CanonicalType t = new CanonicalType(); if (this.instantiates == null) this.instantiates = new ArrayList<CanonicalType>(); this.instantiates.add(t); return t; }
/** * @param value {@link #imports} (Reference to a canonical URL of another CapabilityStatement that this software adds to. The capability statement automatically includes everything in the other statement, and it is not duplicated, though the server may repeat the same resources, interactions and operations to add additional details to them.) */ public CapabilityStatement addImports(String value) { //1 CanonicalType t = new CanonicalType(); t.setValue(value); if (this.imports == null) this.imports = new ArrayList<CanonicalType>(); this.imports.add(t); return this; }
public TerminologyCapabilitiesCodeSystemComponent copy() { TerminologyCapabilitiesCodeSystemComponent dst = new TerminologyCapabilitiesCodeSystemComponent(); copyValues(dst); dst.uri = uri == null ? null : uri.copy(); if (version != null) { dst.version = new ArrayList<TerminologyCapabilitiesCodeSystemVersionComponent>(); for (TerminologyCapabilitiesCodeSystemVersionComponent i : version) dst.version.add(i.copy()); }; dst.subsumption = subsumption == null ? null : subsumption.copy(); return dst; }
boolean matchingResource = false; for (CanonicalType target: containerType.getTargetProfile()) { StructureDefinition sd = (StructureDefinition)context.fetchResource(StructureDefinition.class, target.asStringValue()); if (("http://hl7.org/fhir/StructureDefinition/" + sd.getType()).equals(tu)) { matchingResource = true;
/** * @return The canonical URL of the code system that this code system supplement is adding designations and properties to. */ public String getSupplements() { return this.supplements == null ? null : this.supplements.getValue(); }
if (diffMatches.get(0).hasType() && diffMatches.get(0).getType().size() == 1 && diffMatches.get(0).getType().get(0).hasProfile() && !"Reference".equals(diffMatches.get(0).getType().get(0).getCode())) { CanonicalType p = diffMatches.get(0).getType().get(0).getProfile().get(0); StructureDefinition sd = context.fetchResource(StructureDefinition.class, p.getValue()); if (sd != null) { if (!sd.hasSnapshot()) { if (p.hasExtension(ToolingExtensions.EXT_PROFILE_ELEMENT)) { src = null; String eid = p.getExtensionString(ToolingExtensions.EXT_PROFILE_ELEMENT); for (ElementDefinition t : sd.getSnapshot().getElement()) { if (eid.equals(t.getId())) throw new DefinitionException("Unable to find element "+eid+" in "+p.getValue()); } else src = sd.getSnapshot().getElement().get(0);
/** * @return {@link #library} (A reference to a Library resource containing any formal logic used by the plan definition.) */ public CanonicalType addLibraryElement() {//2 CanonicalType t = new CanonicalType(); if (this.library == null) this.library = new ArrayList<CanonicalType>(); this.library.add(t); return t; }
/** * @param value {@link #library} (A reference to a Library resource containing any formal logic used by the plan definition.) */ public PlanDefinition addLibrary(String value) { //1 CanonicalType t = new CanonicalType(); t.setValue(value); if (this.library == null) this.library = new ArrayList<CanonicalType>(); this.library.add(t); return this; }
nextObject = new Reference(((CanonicalType) nextObject).getValueAsString());
public ImplementationGuideGlobalComponent copy() { ImplementationGuideGlobalComponent dst = new ImplementationGuideGlobalComponent(); copyValues(dst); dst.type = type == null ? null : type.copy(); dst.profile = profile == null ? null : profile.copy(); return dst; }
/** * @return A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses). */ public String getProfile() { return this.profile == null ? null : this.profile.getValue(); }