Class PersonDTO

java.lang.Object
org.emau.icmvc.ttp.epix.common.model.PersonBaseDTO
org.emau.icmvc.ttp.epix.common.model.PersonDTO
All Implemented Interfaces:
Serializable

public class PersonDTO extends PersonBaseDTO
Author:
geidell
See Also:
  • Constructor Details

  • Method Details

    • getReferenceIdentity

      public IdentityOutDTO getReferenceIdentity()
    • setReferenceIdentity

      public void setReferenceIdentity(IdentityOutDTO referenceIdentity)
    • getOtherIdentities

      public List<IdentityOutDTO> getOtherIdentities()
    • setOtherIdentities

      public void setOtherIdentities(List<IdentityOutDTO> otherIdentities)
    • getVitalStatusType

      public VitalStatusType getVitalStatusType()
      Returns the vital status type of the person which is derived from the reference identity and the other identities as follows: If the reference identity or any of the other identities is DEAD, then the person's vital status type is DEAD, otherwise if the reference identity or any of the other identities is ALIVE, then the person's vital status type is ALIVE, otherwise the vital status type of the person is UNKNOWN.
      Returns:
      the vital status type of the person
    • getIdentitiesWithConflictingVitalStatus

      public org.apache.commons.collections4.SetValuedMap<VitalStatus.Descriptor,IdentityOutDTO> getIdentitiesWithConflictingVitalStatus(boolean includeUnknown)
      Returns a map with (distinct) conflicting vital status descriptors of other identities as keys and sets of corresponding identities as values. Conflicting vital statuses are those statuses of other identities having a different vital status than the reference identity (including date of death if dead).
      Parameters:
      includeUnknown - true to include identities with unknown vital status type
      Returns:
      a map with conflicting vital status descriptors as keys and the corresponding identities as values.
    • getConflictingVitalStatuses

      public List<VitalStatus.Descriptor> getConflictingVitalStatuses(boolean includeUnknown)
      Returns a sorted list with distinct vital status descriptors of other identities than the reference identity having a different vital status than the reference identity. The order guarantees to list DEAD statuses with a non-null date of death first, then the DEAD status without a date of death, followed by ALIVE and then UNKNOWN (if present).
      Parameters:
      includeUnknown - true to include identities with unknown vital status type
      Returns:
      a sorted list with distinct conflicting vital status descriptors of other identities
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class PersonBaseDTO
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class PersonBaseDTO
    • toString

      public String toString()
      Overrides:
      toString in class PersonBaseDTO