Record Class TransactionBuilder.DataAndProvenanceBundles
java.lang.Object
java.lang.Record
io.github.dizuker.tofhir.TransactionBuilder.DataAndProvenanceBundles
- Record Components:
dataBundle- the bundle containing data resources (e.g. Patient, Observation)provenanceBundle- the bundle containing Provenance and optionally Device resources
- Enclosing class:
TransactionBuilder
public static record TransactionBuilder.DataAndProvenanceBundles(org.hl7.fhir.r4.model.Bundle dataBundle, org.hl7.fhir.r4.model.Bundle provenanceBundle)
extends Record
A pair of FHIR Bundles: one containing data resources and one containing provenance resources.
-
Constructor Summary
ConstructorsConstructorDescriptionDataAndProvenanceBundles(org.hl7.fhir.r4.model.Bundle dataBundle, org.hl7.fhir.r4.model.Bundle provenanceBundle) Creates an instance of aDataAndProvenanceBundlesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.r4.model.BundleReturns the value of thedataBundlerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.hl7.fhir.r4.model.BundleReturns the value of theprovenanceBundlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataAndProvenanceBundles
public DataAndProvenanceBundles(org.hl7.fhir.r4.model.Bundle dataBundle, org.hl7.fhir.r4.model.Bundle provenanceBundle) Creates an instance of aDataAndProvenanceBundlesrecord class.- Parameters:
dataBundle- the value for thedataBundlerecord componentprovenanceBundle- the value for theprovenanceBundlerecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
dataBundle
public org.hl7.fhir.r4.model.Bundle dataBundle()Returns the value of thedataBundlerecord component.- Returns:
- the value of the
dataBundlerecord component
-
provenanceBundle
public org.hl7.fhir.r4.model.Bundle provenanceBundle()Returns the value of theprovenanceBundlerecord component.- Returns:
- the value of the
provenanceBundlerecord component
-