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:
  • Field Details

    • 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 - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).
  • Constructor Details

  • Method Details

    • 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
    • hasUrlElement

      public boolean hasUrlElement()
    • hasUrl

      public boolean hasUrl()
    • setUrlElement

      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 - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)
    • hasValue

      public boolean hasValue()
    • setValue

      public Extension setValue(Type value)
      Specified by:
      setValue in class BaseExtension
      Parameters:
      value - value (Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)
    • listChildren

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class Element
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • 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
    • setProperty

      public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty 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
    • copy

      public Extension copy()
      Overrides:
      copy in class Type
    • copyValues

      public void copyValues(Extension dst)
    • typedCopy

      protected Extension typedCopy()
      Specified by:
      typedCopy in class Type
    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class Element
    • equalsShallow

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class Element
    • isEmpty

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