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 Extensions 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 - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for 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 - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).)
    • hasValue

      public boolean hasValue()
    • 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).)
    • listChildren

      protected void listChildren(List<Property> childrenList)
      Overrides:
      listChildren in class Element
    • setProperty

      public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty 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
    • 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