Class OrganizationBaseType

java.lang.Object
org.projecthusky.common.basetypes.OrganizationBaseType
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Organization

public class OrganizationBaseType extends Object implements Serializable
A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc.
See Also:
  • Constructor Details

    • OrganizationBaseType

      public OrganizationBaseType()
      Instantiates a new OrganizationBaseType. Default constructor.
  • Method Details

    • builder

      @Generated("SparkTools") public static OrganizationBaseType.Builder builder()
      Creates builder to build OrganizationBaseType.
      Returns:
      created builder
    • addAddress

      public void addAddress(AddressBaseType value)
      Adds an address. The first one becomes the primary address by default.
      Parameters:
      value - the value
    • addIdentificator

      public void addIdentificator(IdentificatorBaseType value)
      Adds an identificator. The first one becomes the primary identificator by default.
      Parameters:
      value - the value
    • addName

      public void addName(NameBaseType value)
      Adds a name. The first one becomes the primary name by default.
      Parameters:
      value - the value
    • addTelecom

      public void addTelecom(TelecomBaseType value)
      Adds a telecom Element. The first one becomes the primary telecom by default.
      Parameters:
      value - the value
    • clearAddressList

      public void clearAddressList()
      Clears the address list.
    • clearIdentificatorList

      public void clearIdentificatorList()
      Clears the identificator list.
    • clearNameList

      public void clearNameList()
      Clears the name list.
    • clearTelecomList

      public void clearTelecomList()
      Clears the telecom list.
    • contains

      public boolean contains(AddressBaseType value)
      Checks whether the list member contains the given value.
      Parameters:
      value - the value
      Returns:
      true, if successful
    • contains

      public boolean contains(IdentificatorBaseType value)
      Checks whether the list member contains the given value.
      Parameters:
      value - the value
      Returns:
      true, if successful
    • contains

      public boolean contains(NameBaseType value)
      Checks whether the list member contains the given value.
      Parameters:
      value - the value
      Returns:
      true, if successful
    • contains

      public boolean contains(TelecomBaseType value)
      Checks whether the list member contains the given value.
      Parameters:
      value - the value
      Returns:
      true, if successful
    • equals

      public boolean equals(Object obj)
      Checks whether the two objects are equal (based on their content).
      Overrides:
      equals in class Object
      Parameters:
      obj - the OrganizationBaseType to compare
      Returns:
      true, if equal; false otherwise.
    • getAddressList

      public List<AddressBaseType> getAddressList()
      Gets the address list.
      Returns:
      the address list
    • setAddressList

      public void setAddressList(List<AddressBaseType> addressList)
      Sets the address list.
      Parameters:
      addressList - the new address list
    • getIdentificatorList

      public List<IdentificatorBaseType> getIdentificatorList()
      Gets the identificator list.
      Returns:
      the identificator list
    • setIdentificatorList

      public void setIdentificatorList(List<IdentificatorBaseType> identificatorList)
      Sets the identificator list.
      Parameters:
      identificatorList - the new identificator list
    • getNameList

      public List<NameBaseType> getNameList()
      Gets the name list.
      Returns:
      the name list
    • setNameList

      public void setNameList(List<NameBaseType> nameList)
      Sets the name list.
      Parameters:
      nameList - the new name list
    • getNullFlavor

      public NullFlavor getNullFlavor()
      Gets the null flavor.
      Returns:
      the null flavor
    • getPrimaryAddress

      public AddressBaseType getPrimaryAddress()
      Gets the primary address.
      Returns:
      the primary address
    • setPrimaryAddress

      public void setPrimaryAddress(AddressBaseType primaryAddress)
      Sets the primary address. See getter getPrimaryAddress() for more details.
      Parameters:
      primaryAddress - the new primary address
    • getPrimaryIdentificator

      public IdentificatorBaseType getPrimaryIdentificator()
      Gets the primary identificator.
      Returns:
      the primary identificator
    • setPrimaryIdentificator

      public void setPrimaryIdentificator(IdentificatorBaseType primaryIdentificator)
      Sets the primary identificator. See getter getPrimaryIdentificator() for more details.
      Parameters:
      primaryIdentificator - the new primary identificator
    • getPrimaryName

      public NameBaseType getPrimaryName()
      Gets the primary name.
      Returns:
      the primary name
    • setPrimaryName

      public void setPrimaryName(NameBaseType primaryName)
      Sets the primary name. It will not automatically be added to the list of names. See getter getPrimaryName() for more details.
      Parameters:
      primaryName - the new primary name
    • getPrimaryTelecom

      public TelecomBaseType getPrimaryTelecom()
      Gets the primary telecom.
      Returns:
      the primary telecom
    • setPrimaryTelecom

      public void setPrimaryTelecom(TelecomBaseType primaryTelecom)
      Sets the primary telecom. It will not automatically be added to the list of telecoms. See getter getPrimaryTelecom() for more details.
      Parameters:
      primaryTelecom - the new primary telecom
    • getTelecomList

      public List<TelecomBaseType> getTelecomList()
      Gets the telecom list.
      Returns:
      the telecom list
    • setTelecomList

      public void setTelecomList(List<TelecomBaseType> telecomList)
      Sets the telecom list.
      Parameters:
      telecomList - the new telecom list
    • hashCode

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
      Returns:
      the int
    • isNullFlavor

      public boolean isNullFlavor()
      Checks if the current instance is null flavored.
      Returns:
      true, if is null flavor
    • setNullFlavor

      public void setNullFlavor(NullFlavor nullFlavor)
      Sets the null flavor.
      Parameters:
      nullFlavor - the new null flavor
    • toString

      public String toString()
      Builds a string of the organization (primaryName and primaryAddress, only).
      Overrides:
      toString in class Object
      Returns:
      the string