/** * Returns the URL for this extension. * <p> * Note that before HAPI 0.9 this method returned a {@link StringDt} but as of * HAPI 0.9 this method returns a plain string. This was changed because it does not make sense to use a StringDt here * since the URL itself can not contain extensions and it was therefore misleading. * </p> */ @Override public String getUrl() { return myUrl != null ? myUrl.getValue() : null; }
/** * Returns the value of this string, or <code>null</code> */ @Override public String toString() { return getValue(); }
/** * {@inheritDoc} */ @Override public String getValueAsQueryToken(FhirContext theContext) { return getValue(); }
/** * Returns <code>true</code> if this datatype has no extensions, and has either a <code>null</code> value or an empty ("") value. */ @Override public boolean isEmpty() { boolean retVal = super.isBaseEmpty() && StringUtils.isBlank(getValue()); return retVal; }
/** * Gets the value(s) for <b>name</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element * </p> */ public String getName() { return getNameElement().getValue(); }
/** * Gets the value(s) for <b>description</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated * </p> */ public String getDescription() { return getDescriptionElement().getValue(); }
/** * Gets the value(s) for <b>max</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * Maximum cardinality of the base element identified by the path * </p> */ public String getMax() { return getMaxElement().getValue(); }
/** * Gets the value(s) for <b>version</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged * </p> */ public String getVersion() { return getVersionElement().getValue(); }
/** * Gets the value(s) for <b>value</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). * </p> */ public String getValue() { return getValueElement().getValue(); }
/** * Gets the value(s) for <b>district</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The name of the administrative area (county) * </p> */ public String getDistrict() { return getDistrictElement().getValue(); }
/** * Gets the value(s) for <b>title</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * A label for the list assigned by the author * </p> */ public String getTitle() { return getTitleElement().getValue(); }
/** * Gets the value(s) for <b>model</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The \"model\" is an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type. * </p> */ public String getModel() { return getModelElement().getValue(); }
/** * Gets the value(s) for <b>version</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware. * </p> */ public String getVersion() { return getVersionElement().getValue(); }
/** * Gets the value(s) for <b>name</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * A name associated with the organization * </p> */ public String getName() { return getNameElement().getValue(); }
/** * Gets the value(s) for <b>map</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * Expresses what part of the target specification corresponds to this element * </p> */ public String getMap() { return getMapElement().getValue(); }
/** * Gets the value(s) for <b>definition</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The formal definition of the concept. The value set resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept * </p> */ public String getDefinition() { return getDefinitionElement().getValue(); }
/** * Gets the value(s) for <b>version</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The version of the code system that the codes are selected from * </p> */ public String getVersion() { return getVersionElement().getValue(); }
/** * Gets the value(s) for <b>name</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The name of the parameter * </p> */ public String getName() { return getNameElement().getValue(); }
/** * Constructor which copies the {@link BaseIdentifierDt#getSystemElement() system} and * {@link BaseIdentifierDt#getValueElement() value} from a {@link BaseIdentifierDt} instance and adds it as a * parameter * * @param theIdentifierDt The identifier */ public TokenParam(BaseIdentifierDt theIdentifierDt) { this(toSystemValue(theIdentifierDt.getSystemElement()), theIdentifierDt.getValueElement().getValue()); }