Class Base

java.lang.Object
org.hl7.fhir.r5.model.Base
All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase
Direct Known Subclasses:
BaseResource, Element, Element, GraphQLEngine.SearchEdge, GraphQLEngine.SearchWrapper, Tuple

public abstract class Base extends Object implements Serializable, org.hl7.fhir.instance.model.api.IBase, ca.uhn.fhir.model.api.IElement
See Also:
  • Constructor Details

    • Base

      public Base()
  • Method Details

    • getUserData

      public Object getUserData(String name)
      Specified by:
      getUserData in interface org.hl7.fhir.instance.model.api.IBase
    • setUserData

      public void setUserData(String name, Object value)
      Specified by:
      setUserData in interface org.hl7.fhir.instance.model.api.IBase
    • clearUserData

      public void clearUserData(String name)
    • setUserDataINN

      public void setUserDataINN(String name, Object value)
    • hasUserData

      public boolean hasUserData(String name)
    • getUserString

      public String getUserString(String name)
    • getUserInt

      public int getUserInt(String name)
    • copyUserData

      public void copyUserData(Base other)
    • hasFormatComment

      public boolean hasFormatComment()
      Specified by:
      hasFormatComment in interface org.hl7.fhir.instance.model.api.IBase
    • getFormatCommentsPre

      Specified by:
      getFormatCommentsPre in interface org.hl7.fhir.instance.model.api.IBase
    • getFormatCommentsPost

      Specified by:
      getFormatCommentsPost in interface org.hl7.fhir.instance.model.api.IBase
    • isPrimitive

      public boolean isPrimitive()
    • isBooleanPrimitive

      public boolean isBooleanPrimitive()
    • hasPrimitiveValue

      public boolean hasPrimitiveValue()
    • primitiveValue

    • isDateTime

      public boolean isDateTime()
    • dateTimeValue

    • fhirType

      public abstract String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
    • hasType

      public boolean hasType(String... name)
    • listChildren

      protected void listChildren(List<Property> result)
    • setProperty

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

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • children

      public List<Property> children()
      Supports iterating the children elements in some generic processor or browser All defined children will be listed, even if they have no value on this instance Note that the actual content of primitive or xhtml elements is not iterated explicitly. To find these, the processing code must recognise the element as a primitive, typecast the value to a DataType, and examine the value
      Returns:
      a list of all the children defined for this element
    • getChildByName

    • listChildrenByName

      public List<Base> listChildrenByName(String name) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • listChildrenByName

      public Base[] listChildrenByName(String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
    • equalsDeep

      public boolean equalsDeep(Base other)
    • equalsShallow

      public boolean equalsShallow(Base other)
    • compareDeep

      public static boolean compareDeep(String s1, String s2, boolean allowNull)
    • compareDeep

      public static boolean compareDeep(List<? extends Base> e1, List<? extends Base> e2, boolean allowNull)
    • compareDeep

      public static boolean compareDeep(Base e1, Base e2, boolean allowNull)
    • compareDeep

      public static boolean compareDeep(org.hl7.fhir.utilities.xhtml.XhtmlNode div1, org.hl7.fhir.utilities.xhtml.XhtmlNode div2, boolean allowNull)
    • compareValues

      public static boolean compareValues(List<? extends PrimitiveType> e1, List<? extends PrimitiveType> e2, boolean allowNull)
    • compareValues

      public static boolean compareValues(PrimitiveType e1, PrimitiveType e2, boolean allowNull)
    • isMetadataBased

      protected boolean isMetadataBased()
    • getProperty

      public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

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

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

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • equals

      public static boolean equals(String v1, String v2)
    • isResource

      public boolean isResource()
    • getIdBase

      public abstract String getIdBase()
    • setIdBase

      public abstract void setIdBase(String value)
    • getNamedProperty

      public Property getNamedProperty(String _name) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • copyValues

      public void copyValues(Base dst)
    • getXhtml

      public org.hl7.fhir.utilities.xhtml.XhtmlNode getXhtml()
      return XHTML if this is an XHTML node, else null
      Returns: