Package com.framed.interop.hl7.hl7v2
Record Class OruBuilder.Observation
java.lang.Object
java.lang.Record
com.framed.interop.hl7.hl7v2.OruBuilder.Observation
- Record Components:
concept- the coded concept (OBX-3 / OBX-6)value- the observation value, already formatted (OBX-5)timestamp- the observation time (OBX-14)
- Enclosing class:
OruBuilder
public static record OruBuilder.Observation(CodedConcept concept, String value, Instant timestamp)
extends Record
A single observation to encode as an OBX segment.
-
Constructor Summary
ConstructorsConstructorDescriptionObservation(CodedConcept concept, String value, Instant timestamp) Creates an instance of aObservationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconcept()Returns the value of theconceptrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
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). -
concept
Returns the value of theconceptrecord component.- Returns:
- the value of the
conceptrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
