Package org.ehrbase.api.dto
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
ConstructorsConstructorDescriptionEhrDto(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 aEhrDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<org.ehrbase.openehr.sdk.response.dto.ehrscape.CompositionDto> Returns the value of thecompositionsrecord component.List<org.ehrbase.openehr.sdk.response.dto.ehrscape.ContributionDto> Returns the value of thecontributionsrecord component.com.nedap.archie.rm.support.identification.HierObjectIdehrId()Returns the value of theehrIdrecord component.Returns the value of theehrStatusrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.nedap.archie.rm.support.identification.HierObjectIdsystemId()Returns the value of thesystemIdrecord component.com.nedap.archie.rm.datavalues.quantity.datetime.DvDateTimeReturns the value of thetimeCreatedrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aEhrDtorecord class.- Parameters:
systemId- the value for thesystemIdrecord componentehrId- the value for theehrIdrecord componentehrStatus- the value for theehrStatusrecord componenttimeCreated- the value for thetimeCreatedrecord componentcompositions- the value for thecompositionsrecord componentcontributions- the value for thecontributionsrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
systemId
public com.nedap.archie.rm.support.identification.HierObjectId systemId()Returns the value of thesystemIdrecord component.- Returns:
- the value of the
systemIdrecord component
-
ehrId
public com.nedap.archie.rm.support.identification.HierObjectId ehrId()Returns the value of theehrIdrecord component.- Returns:
- the value of the
ehrIdrecord component
-
ehrStatus
Returns the value of theehrStatusrecord component.- Returns:
- the value of the
ehrStatusrecord component
-
timeCreated
public com.nedap.archie.rm.datavalues.quantity.datetime.DvDateTime timeCreated()Returns the value of thetimeCreatedrecord component.- Returns:
- the value of the
timeCreatedrecord component
-
compositions
Returns the value of thecompositionsrecord component.- Returns:
- the value of the
compositionsrecord component
-
contributions
Returns the value of thecontributionsrecord component.- Returns:
- the value of the
contributionsrecord component
-