Record Class EhrDto

java.lang.Object
java.lang.Record
org.ehrbase.api.dto.EhrDto

public record EhrDto(com.nedap.archie.rm.support.identification.HierObjectId systemId, com.nedap.archie.rm.support.identification.HierObjectId ehrId, EhrStatusDto ehrStatus, com.nedap.archie.rm.datavalues.quantity.datetime.DvDateTime timeCreated, List<org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionDto> compositions, List<org.ehrbase.openehr.sdk.response.dto.ehrscape.ContributionDto> contributions) extends Record
Basic set of response data regarding EHR_STATUS. operations. Used as default or when PREFER header requests minimal response.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EhrDto(com.nedap.archie.rm.support.identification.HierObjectId systemId, com.nedap.archie.rm.support.identification.HierObjectId ehrId, EhrStatusDto ehrStatus, com.nedap.archie.rm.datavalues.quantity.datetime.DvDateTime timeCreated, List<org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionDto> compositions, List<org.ehrbase.openehr.sdk.response.dto.ehrscape.ContributionDto> contributions)
    Creates an instance of a EhrDto record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionDto>
    Returns the value of the compositions record component.
    List<org.ehrbase.openehr.sdk.response.dto.ehrscape.ContributionDto>
    Returns the value of the contributions record component.
    com.nedap.archie.rm.support.identification.HierObjectId
    Returns the value of the ehrId record component.
    Returns the value of the ehrStatus record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    com.nedap.archie.rm.support.identification.HierObjectId
    Returns the value of the systemId record component.
    com.nedap.archie.rm.datavalues.quantity.datetime.DvDateTime
    Returns the value of the timeCreated record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EhrDto

      public EhrDto(com.nedap.archie.rm.support.identification.HierObjectId systemId, com.nedap.archie.rm.support.identification.HierObjectId ehrId, EhrStatusDto ehrStatus, com.nedap.archie.rm.datavalues.quantity.datetime.DvDateTime timeCreated, List<org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionDto> compositions, List<org.ehrbase.openehr.sdk.response.dto.ehrscape.ContributionDto> contributions)
      Creates an instance of a EhrDto record class.
      Parameters:
      systemId - the value for the systemId record component
      ehrId - the value for the ehrId record component
      ehrStatus - the value for the ehrStatus record component
      timeCreated - the value for the timeCreated record component
      compositions - the value for the compositions record component
      contributions - the value for the contributions record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • systemId

      public com.nedap.archie.rm.support.identification.HierObjectId systemId()
      Returns the value of the systemId record component.
      Returns:
      the value of the systemId record component
    • ehrId

      public com.nedap.archie.rm.support.identification.HierObjectId ehrId()
      Returns the value of the ehrId record component.
      Returns:
      the value of the ehrId record component
    • ehrStatus

      public EhrStatusDto ehrStatus()
      Returns the value of the ehrStatus record component.
      Returns:
      the value of the ehrStatus record component
    • timeCreated

      public com.nedap.archie.rm.datavalues.quantity.datetime.DvDateTime timeCreated()
      Returns the value of the timeCreated record component.
      Returns:
      the value of the timeCreated record component
    • compositions

      public List<org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionDto> compositions()
      Returns the value of the compositions record component.
      Returns:
      the value of the compositions record component
    • contributions

      public List<org.ehrbase.openehr.sdk.response.dto.ehrscape.ContributionDto> contributions()
      Returns the value of the contributions record component.
      Returns:
      the value of the contributions record component