public ReferenceParam setValue(String theValue) { myId.setValue(theValue); return this; }
/** * Set the value * <p> * <p> * <b>Description</b>: A whole number in the range 0 to 2^64-1 (optionally represented in hex), a uuid, an oid, or any other combination of lowercase letters, numerals, "-" and ".", with a length * limit of 36 characters. * </p> * <p> * regex: [a-z0-9\-\.]{1,36} * </p> */ @Override public void setValueAsString(String theValue) throws DataFormatException { setValue(theValue); }
/** * Create a new ID using a long */ public IdDt(long theId) { setValue(Long.toString(theId)); }
/** * Creates an ID based on a given URL */ public IdDt(UriDt theUrl) { setValue(theUrl.getValueAsString()); }
/** * Copies the value from the given IdDt to <code>this</code> IdDt. It is generally not neccesary to use this method but it is provided for consistency with the rest of the API. * * @deprecated */ @Deprecated //override deprecated method @Override public void setId(IdDt theId) { setValue(theId.getValue()); }
@Override public IIdType setParts(String theBaseUrl, String theResourceType, String theIdPart, String theVersionIdPart) { if (isNotBlank(theVersionIdPart)) { Validate.notBlank(theResourceType, "If theVersionIdPart is populated, theResourceType and theIdPart must be populated"); Validate.notBlank(theIdPart, "If theVersionIdPart is populated, theResourceType and theIdPart must be populated"); } if (isNotBlank(theBaseUrl) && isNotBlank(theIdPart)) { Validate.notBlank(theResourceType, "If theBaseUrl is populated and theIdPart is populated, theResourceType must be populated"); } setValue(null); myBaseUrl = theBaseUrl; myResourceType = theResourceType; myUnqualifiedId = theIdPart; myUnqualifiedVersionId = StringUtils.defaultIfBlank(theVersionIdPart, null); myHaveComponentParts = true; return this; }
/** * Create a new ID using a string. This String may contain a simple ID (e.g. "1234") or it may contain a complete URL (http://example.com/fhir/Patient/1234). * <p> * <p> * <b>Description</b>: A whole number in the range 0 to 2^64-1 (optionally represented in hex), a uuid, an oid, or any other combination of lowercase letters, numerals, "-" and ".", with a length * limit of 36 characters. * </p> * <p> * regex: [a-z0-9\-\.]{1,36} * </p> */ @SimpleSetter public IdDt(@SimpleSetter.Parameter(name = "theId") String theValue) { setValue(theValue); }
public ReferenceParam setValue(String theValue) { myId.setValue(theValue); return this; }
/** * Set the value * <p> * <p> * <b>Description</b>: A whole number in the range 0 to 2^64-1 (optionally represented in hex), a uuid, an oid, or any other combination of lowercase letters, numerals, "-" and ".", with a length * limit of 36 characters. * </p> * <p> * regex: [a-z0-9\-\.]{1,36} * </p> */ @Override public void setValueAsString(String theValue) throws DataFormatException { setValue(theValue); }
public void setId(String id) { this.id.setValue(id); } }
public void setId(String id) { this.id.setValue(id); } }
/** * Create a new ID using a long */ public IdDt(long theId) { setValue(Long.toString(theId)); }
@Override public IIdType setParts(String theBaseUrl, String theResourceType, String theIdPart, String theVersionIdPart) { if (isNotBlank(theVersionIdPart)) { Validate.notBlank(theResourceType, "If theVersionIdPart is populated, theResourceType and theIdPart must be populated"); Validate.notBlank(theIdPart, "If theVersionIdPart is populated, theResourceType and theIdPart must be populated"); } if (isNotBlank(theBaseUrl) && isNotBlank(theIdPart)) { Validate.notBlank(theResourceType, "If theBaseUrl is populated and theIdPart is populated, theResourceType must be populated"); } setValue(null); myBaseUrl = theBaseUrl; myResourceType = theResourceType; myUnqualifiedId = theIdPart; myUnqualifiedVersionId = StringUtils.defaultIfBlank(theVersionIdPart, null); myHaveComponentParts = true; return this; }
/** * Creates an ID based on a given URL */ public IdDt(UriDt theUrl) { setValue(theUrl.getValueAsString()); }
/** * Copies the value from the given IdDt to <code>this</code> IdDt. It is generally not neccesary to use this method but it is provided for consistency with the rest of the API. * * @deprecated */ @Deprecated //override deprecated method @Override public void setId(IdDt theId) { setValue(theId.getValue()); }
/** * Create a new ID using a string. This String may contain a simple ID (e.g. "1234") or it may contain a complete URL (http://example.com/fhir/Patient/1234). * <p> * <p> * <b>Description</b>: A whole number in the range 0 to 2^64-1 (optionally represented in hex), a uuid, an oid, or any other combination of lowercase letters, numerals, "-" and ".", with a length * limit of 36 characters. * </p> * <p> * regex: [a-z0-9\-\.]{1,36} * </p> */ @SimpleSetter public IdDt(@SimpleSetter.Parameter(name = "theId") String theValue) { setValue(theValue); }
extSlice.setName(elementName); extSlice.setPath(join(path, '.') + '.' + elementName); extSlice.getSlicing().getDiscriminator().setValue("url"); extSlice.getSlicing().setOrdered(false); extSlice.getSlicing().setRules(SlicingRulesEnum.OPEN);