Class Resource

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseResource
Direct Known Subclasses:
BaseBinary, Bundle, DomainResource, Parameters

public abstract class Resource extends BaseResource implements org.hl7.fhir.instance.model.api.IAnyResource
This is the base resource type for everything.
See Also:
  • Field Details

    • id

      protected IdType id
      The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
    • meta

      protected Meta meta
      The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.
    • implicitRules

      A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.
    • language

      protected CodeType language
      The base language in which the resource is written.
  • Constructor Details

  • Method Details

    • getIdElement

      public IdType getIdElement()
      Specified by:
      getIdElement in interface org.hl7.fhir.instance.model.api.IAnyResource
      Specified by:
      getIdElement in interface org.hl7.fhir.instance.model.api.IBaseResource
      Returns:
      id (The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the value
    • hasIdElement

      public boolean hasIdElement()
    • hasId

      public boolean hasId()
    • setIdElement

      public Resource setIdElement(IdType value)
      Specified by:
      setIdElement in class BaseResource
      Parameters:
      value - id (The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the value
    • getId

      public String getId()
      Specified by:
      getId in interface org.hl7.fhir.instance.model.api.IAnyResource
      Returns:
      The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
    • setId

      public Resource setId(String value)
      Specified by:
      setId in interface org.hl7.fhir.instance.model.api.IAnyResource
      Specified by:
      setId in interface org.hl7.fhir.instance.model.api.IBaseResource
      Parameters:
      value - The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
    • getMeta

      public Meta getMeta()
      Specified by:
      getMeta in interface org.hl7.fhir.instance.model.api.IBaseResource
      Returns:
      meta (The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.)
    • hasMeta

      public boolean hasMeta()
    • setMeta

      public Resource setMeta(Meta value)
      Parameters:
      value - meta (The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.)
    • getImplicitRulesElement

      Returns:
      implicitRules (A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.). This is the underlying object with id, value and extensions. The accessor "getImplicitRules" gives direct access to the value
    • hasImplicitRulesElement

      public boolean hasImplicitRulesElement()
    • hasImplicitRules

      public boolean hasImplicitRules()
    • setImplicitRulesElement

      Parameters:
      value - implicitRules (A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.). This is the underlying object with id, value and extensions. The accessor "getImplicitRules" gives direct access to the value
    • getImplicitRules

      Returns:
      A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.
    • setImplicitRules

      Parameters:
      value - A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.
    • getLanguageElement

      Specified by:
      getLanguageElement in interface org.hl7.fhir.instance.model.api.IAnyResource
      Returns:
      language (The base language in which the resource is written.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value
    • hasLanguageElement

      public boolean hasLanguageElement()
    • hasLanguage

      public boolean hasLanguage()
    • setLanguageElement

      Parameters:
      value - language (The base language in which the resource is written.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value
    • getLanguage

      public String getLanguage()
      Returns:
      The base language in which the resource is written.
    • setLanguage

      public Resource setLanguage(String value)
      Parameters:
      value - The base language in which the resource is written.
    • listChildren

      protected void listChildren(List<Property> childrenList)
      Specified by:
      listChildren in class Base
    • setProperty

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

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

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

      public abstract Resource copy()
    • copyValues

      public void copyValues(Resource dst)
    • equalsDeep

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

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

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

      public abstract ResourceType getResourceType()