Record Class BundleResponseEntryParts

java.lang.Object
java.lang.Record
ca.uhn.fhir.util.bundle.BundleResponseEntryParts

public record BundleResponseEntryParts(String fullUrl, IBaseResource resource, String responseStatus, String responseLocation, String responseEtag, IPrimitiveType<Date> responseLastModified, IBaseResource responseOutcome) extends Record
Components of a transaction-respose bundle entry.
  • Constructor Details

    • BundleResponseEntryParts

      public BundleResponseEntryParts(String fullUrl, IBaseResource resource, String responseStatus, String responseLocation, String responseEtag, IPrimitiveType<Date> responseLastModified, IBaseResource responseOutcome)
      Creates an instance of a BundleResponseEntryParts record class.
      Parameters:
      fullUrl - the value for the fullUrl record component
      resource - the value for the resource record component
      responseStatus - the value for the responseStatus record component
      responseLocation - the value for the responseLocation record component
      responseEtag - the value for the responseEtag record component
      responseLastModified - the value for the responseLastModified record component
      responseOutcome - the value for the responseOutcome record component
  • Method Details

    • buildPartsExtractor

      Build an extractor function that can be used to extract the parts of a bundle entry.
      Parameters:
      theFhirContext - for the mappings
      Returns:
      an extractor function on IBase objects that returns a BundleResponseEntryParts object
    • getConverter

      @Nonnull public static PartsConverter<BundleResponseEntryParts> getConverter(FhirContext theFhirContext)
    • builder

      public static Function<BundleResponseEntryParts,IBase> builder(FhirContext theFhirContext)
    • 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.
    • fullUrl

      public String fullUrl()
      Returns the value of the fullUrl record component.
      Returns:
      the value of the fullUrl record component
    • resource

      Returns the value of the resource record component.
      Returns:
      the value of the resource record component
    • responseStatus

      Returns the value of the responseStatus record component.
      Returns:
      the value of the responseStatus record component
    • responseLocation

      Returns the value of the responseLocation record component.
      Returns:
      the value of the responseLocation record component
    • responseEtag

      public String responseEtag()
      Returns the value of the responseEtag record component.
      Returns:
      the value of the responseEtag record component
    • responseLastModified

      Returns the value of the responseLastModified record component.
      Returns:
      the value of the responseLastModified record component
    • responseOutcome

      Returns the value of the responseOutcome record component.
      Returns:
      the value of the responseOutcome record component