Class Extension

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseDatatype, org.hl7.fhir.instance.model.api.IBaseElement, org.hl7.fhir.instance.model.api.IBaseExtension<Extension,​Type>, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.ICompositeType

    public class Extension
    extends BaseExtension
    implements org.hl7.fhir.instance.model.api.IBaseExtension<Extension,​Type>, org.hl7.fhir.instance.model.api.IBaseHasExtensions
    Optional Extension Element - found in all resources.
    See Also:
    Serialized Form
    • Field Detail

      • url

        protected UriType url
        Source of the definition for the extension code - a logical name or a URL.
      • value

        protected Type value
        Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).
    • Method Detail

      • getUrlElement

        public UriType getUrlElement()
        Returns:
        url (Source of the definition for the extension code - a logical name or a URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
      • hasUrl

        public boolean hasUrl()
      • setUrlElement

        public Extension setUrlElement​(UriType value)
        Parameters:
        value - url (Source of the definition for the extension code - a logical name or a URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
      • getUrl

        public String getUrl()
        Specified by:
        getUrl in interface org.hl7.fhir.instance.model.api.IBaseExtension<Extension,​Type>
        Returns:
        Source of the definition for the extension code - a logical name or a URL.
      • setUrl

        public Extension setUrl​(String value)
        Specified by:
        setUrl in interface org.hl7.fhir.instance.model.api.IBaseExtension<Extension,​Type>
        Parameters:
        value - Source of the definition for the extension code - a logical name or a URL.
      • getValue

        public Type getValue()
        Specified by:
        getValue in interface org.hl7.fhir.instance.model.api.IBaseExtension<Extension,​Type>
        Returns:
        value (Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).)
      • setValue

        public Extension setValue​(Type value)
        Specified by:
        setValue in class BaseExtension
        Parameters:
        value - value (Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).)
      • getProperty

        public Base[] getProperty​(int hash,
                                  String name,
                                  boolean checkValid)
                           throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        getProperty in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • addChild

        public Base addChild​(String name)
                      throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        addChild in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • fhirType

        public String fhirType()
        Specified by:
        fhirType in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        fhirType in class Element
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        isEmpty in class Element