/** * Construct a new ID with with form "urn:uuid:[UUID]" where [UUID] is a new, * randomly created UUID generated by {@link UUID#randomUUID()} */ public static IdType newRandomUuid() { return new IdType("urn:uuid:" + UUID.randomUUID().toString()); }
/** * @param value The id of the message that this message is a response to. */ public MessageHeaderResponseComponent setIdentifier(String value) { if (this.identifier == null) this.identifier = new IdType(); this.identifier.setValue(value); return this; }
/** * @param value An internal reference to the definition of a mapping. */ public ElementDefinitionMappingComponent setIdentity(String value) { if (this.identity == null) this.identity = new IdType(); this.identity.setValue(value); return this; }
/** * @param value An Internal id that is used to identify this mapping set when specific mappings are made. */ public StructureDefinitionMappingComponent setIdentity(String value) { if (this.identity == null) this.identity = new IdType(); this.identity.setValue(value); return this; }
public static IdType newId(String value) { if (value == null) return null; IdType res = new IdType(); res.setValue(value); return res; }
/** * @param value {@link #condition} (A reference to an invariant that may make additional statements about the cardinality or value in the instance.) */ public ElementDefinition addCondition(String value) { //1 IdType t = new IdType(); t.setValue(value); if (this.condition == null) this.condition = new ArrayList<IdType>(); this.condition.add(t); return this; }
/** * @param value An internal id that is used to identify this mapping set when specific mappings are made on a per-element basis. */ public DataElementMappingComponent setIdentity(String value) { if (this.identity == null) this.identity = new IdType(); this.identity.setValue(value); return this; }
/** * @return {@link #id} (The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the value */ public IdType getIdElement() { if (this.id == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Resource.id"); else if (Configuration.doAutoCreate()) this.id = new IdType(); // bb return this.id; }
/** * @return {@link #id} (unique id for the element within a resource (for internal references).). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the value */ public IdType getIdElement() { if (this.id == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Element.id"); else if (Configuration.doAutoCreate()) this.id = new IdType(); // bb return this.id; }
/** * @return {@link #responseId} (The fixture id (maybe new) to map to the response.). This is the underlying object with id, value and extensions. The accessor "getResponseId" gives direct access to the value */ public IdType getResponseIdElement() { if (this.responseId == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TestScriptSetupActionOperationComponent.responseId"); else if (Configuration.doAutoCreate()) this.responseId = new IdType(); // bb return this.responseId; }
/** * @return {@link #key} (Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.). This is the underlying object with id, value and extensions. The accessor "getKey" gives direct access to the value */ public IdType getKeyElement() { if (this.key == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ElementDefinitionConstraintComponent.key"); else if (Configuration.doAutoCreate()) this.key = new IdType(); // bb return this.key; }
/** * @return {@link #sourceId} (Fixture to evaluate the XPath/JSONPath expression or the headerField against.). This is the underlying object with id, value and extensions. The accessor "getSourceId" gives direct access to the value */ public IdType getSourceIdElement() { if (this.sourceId == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TestScriptSetupActionAssertComponent.sourceId"); else if (Configuration.doAutoCreate()) this.sourceId = new IdType(); // bb return this.sourceId; }
/** * @return {@link #identifier} (The id of the message that this message is a response to.). This is the underlying object with id, value and extensions. The accessor "getIdentifier" gives direct access to the value */ public IdType getIdentifierElement() { if (this.identifier == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MessageHeaderResponseComponent.identifier"); else if (Configuration.doAutoCreate()) this.identifier = new IdType(); // bb return this.identifier; }
/** * @return {@link #identity} (An internal id that is used to identify this mapping set when specific mappings are made on a per-element basis.). This is the underlying object with id, value and extensions. The accessor "getIdentity" gives direct access to the value */ public IdType getIdentityElement() { if (this.identity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DataElementMappingComponent.identity"); else if (Configuration.doAutoCreate()) this.identity = new IdType(); // bb return this.identity; }
/** * @return {@link #fhirVersion} (The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.0.2 for this version.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value */ public IdType getFhirVersionElement() { if (this.fhirVersion == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ImplementationGuide.fhirVersion"); else if (Configuration.doAutoCreate()) this.fhirVersion = new IdType(); // bb return this.fhirVersion; }
/** * @return {@link #sourceId} (The id of the fixture used as the body of a PUT or POST request.). This is the underlying object with id, value and extensions. The accessor "getSourceId" gives direct access to the value */ public IdType getSourceIdElement() { if (this.sourceId == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TestScriptSetupActionOperationComponent.sourceId"); else if (Configuration.doAutoCreate()) this.sourceId = new IdType(); // bb return this.sourceId; }
/** * @return {@link #targetId} (Id of fixture used for extracting the [id], [type], and [vid] for GET requests.). This is the underlying object with id, value and extensions. The accessor "getTargetId" gives direct access to the value */ public IdType getTargetIdElement() { if (this.targetId == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TestScriptSetupActionOperationComponent.targetId"); else if (Configuration.doAutoCreate()) this.targetId = new IdType(); // bb return this.targetId; }
public void applyTo(IBaseResource theResouce) { if (theResouce == null) { throw new NullPointerException("theResource can not be null"); } else { theResouce.setId(new IdType(getValue())); } }
/** * @return {@link #fhirVersion} (The version of the FHIR specification on which this conformance statement is based.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value */ public IdType getFhirVersionElement() { if (this.fhirVersion == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Conformance.fhirVersion"); else if (Configuration.doAutoCreate()) this.fhirVersion = new IdType(); // bb return this.fhirVersion; }
/** * Returns a new IdType containing this IdType's values but with no server * base URL if one is present in this IdType. For example, if this IdType * contains the ID "http://foo/Patient/1", this method will return a new * IdType containing ID "Patient/1". */ @Override public IdType toUnqualified() { return new IdType(getResourceType(), getIdPart(), getVersionIdPart()); }