org.hl7.fhir.PaymentReconciliationDetail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quick Show documentation
Show all versions of quick Show documentation
The quick library for the Clinical Quality Language Java reference implementation
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.05.02 at 09:57:28 AM MDT
//
package org.hl7.fhir;
import java.util.Collection;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* This resource provides payment details and claim references supporting a bulk payment.
*
* Java class for PaymentReconciliation.Detail complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PaymentReconciliation.Detail">
* <complexContent>
* <extension base="{http://hl7.org/fhir}BackboneElement">
* <sequence>
* <element name="type" type="{http://hl7.org/fhir}Coding"/>
* <choice minOccurs="0">
* <element name="requestIdentifier" type="{http://hl7.org/fhir}Identifier"/>
* <element name="requestReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <choice minOccurs="0">
* <element name="responceIdentifier" type="{http://hl7.org/fhir}Identifier"/>
* <element name="responceReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <choice minOccurs="0">
* <element name="submitterIdentifier" type="{http://hl7.org/fhir}Identifier"/>
* <element name="submitterReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <choice minOccurs="0">
* <element name="payeeIdentifier" type="{http://hl7.org/fhir}Identifier"/>
* <element name="payeeReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <element name="date" type="{http://hl7.org/fhir}date" minOccurs="0"/>
* <element name="amount" type="{http://hl7.org/fhir}Money" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PaymentReconciliation.Detail", propOrder = {
"type",
"requestIdentifier",
"requestReference",
"responceIdentifier",
"responceReference",
"submitterIdentifier",
"submitterReference",
"payeeIdentifier",
"payeeReference",
"date",
"amount"
})
public class PaymentReconciliationDetail
extends BackboneElement
implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected Coding type;
protected Identifier requestIdentifier;
protected Reference requestReference;
protected Identifier responceIdentifier;
protected Reference responceReference;
protected Identifier submitterIdentifier;
protected Reference submitterReference;
protected Identifier payeeIdentifier;
protected Reference payeeReference;
protected Date date;
protected Money amount;
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link Coding }
*
*/
public Coding getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link Coding }
*
*/
public void setType(Coding value) {
this.type = value;
}
/**
* Gets the value of the requestIdentifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getRequestIdentifier() {
return requestIdentifier;
}
/**
* Sets the value of the requestIdentifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setRequestIdentifier(Identifier value) {
this.requestIdentifier = value;
}
/**
* Gets the value of the requestReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getRequestReference() {
return requestReference;
}
/**
* Sets the value of the requestReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setRequestReference(Reference value) {
this.requestReference = value;
}
/**
* Gets the value of the responceIdentifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getResponceIdentifier() {
return responceIdentifier;
}
/**
* Sets the value of the responceIdentifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setResponceIdentifier(Identifier value) {
this.responceIdentifier = value;
}
/**
* Gets the value of the responceReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getResponceReference() {
return responceReference;
}
/**
* Sets the value of the responceReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setResponceReference(Reference value) {
this.responceReference = value;
}
/**
* Gets the value of the submitterIdentifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getSubmitterIdentifier() {
return submitterIdentifier;
}
/**
* Sets the value of the submitterIdentifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setSubmitterIdentifier(Identifier value) {
this.submitterIdentifier = value;
}
/**
* Gets the value of the submitterReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getSubmitterReference() {
return submitterReference;
}
/**
* Sets the value of the submitterReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setSubmitterReference(Reference value) {
this.submitterReference = value;
}
/**
* Gets the value of the payeeIdentifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getPayeeIdentifier() {
return payeeIdentifier;
}
/**
* Sets the value of the payeeIdentifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setPayeeIdentifier(Identifier value) {
this.payeeIdentifier = value;
}
/**
* Gets the value of the payeeReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getPayeeReference() {
return payeeReference;
}
/**
* Sets the value of the payeeReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setPayeeReference(Reference value) {
this.payeeReference = value;
}
/**
* Gets the value of the date property.
*
* @return
* possible object is
* {@link Date }
*
*/
public Date getDate() {
return date;
}
/**
* Sets the value of the date property.
*
* @param value
* allowed object is
* {@link Date }
*
*/
public void setDate(Date value) {
this.date = value;
}
/**
* Gets the value of the amount property.
*
* @return
* possible object is
* {@link Money }
*
*/
public Money getAmount() {
return amount;
}
/**
* Sets the value of the amount property.
*
* @param value
* allowed object is
* {@link Money }
*
*/
public void setAmount(Money value) {
this.amount = value;
}
public PaymentReconciliationDetail withType(Coding value) {
setType(value);
return this;
}
public PaymentReconciliationDetail withRequestIdentifier(Identifier value) {
setRequestIdentifier(value);
return this;
}
public PaymentReconciliationDetail withRequestReference(Reference value) {
setRequestReference(value);
return this;
}
public PaymentReconciliationDetail withResponceIdentifier(Identifier value) {
setResponceIdentifier(value);
return this;
}
public PaymentReconciliationDetail withResponceReference(Reference value) {
setResponceReference(value);
return this;
}
public PaymentReconciliationDetail withSubmitterIdentifier(Identifier value) {
setSubmitterIdentifier(value);
return this;
}
public PaymentReconciliationDetail withSubmitterReference(Reference value) {
setSubmitterReference(value);
return this;
}
public PaymentReconciliationDetail withPayeeIdentifier(Identifier value) {
setPayeeIdentifier(value);
return this;
}
public PaymentReconciliationDetail withPayeeReference(Reference value) {
setPayeeReference(value);
return this;
}
public PaymentReconciliationDetail withDate(Date value) {
setDate(value);
return this;
}
public PaymentReconciliationDetail withAmount(Money value) {
setAmount(value);
return this;
}
@Override
public PaymentReconciliationDetail withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public PaymentReconciliationDetail withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public PaymentReconciliationDetail withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public PaymentReconciliationDetail withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public PaymentReconciliationDetail withId(java.lang.String value) {
setId(value);
return this;
}
@Override
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final PaymentReconciliationDetail that = ((PaymentReconciliationDetail) object);
{
Coding lhsType;
lhsType = this.getType();
Coding rhsType;
rhsType = that.getType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) {
return false;
}
}
{
Identifier lhsRequestIdentifier;
lhsRequestIdentifier = this.getRequestIdentifier();
Identifier rhsRequestIdentifier;
rhsRequestIdentifier = that.getRequestIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "requestIdentifier", lhsRequestIdentifier), LocatorUtils.property(thatLocator, "requestIdentifier", rhsRequestIdentifier), lhsRequestIdentifier, rhsRequestIdentifier, (this.requestIdentifier!= null), (that.requestIdentifier!= null))) {
return false;
}
}
{
Reference lhsRequestReference;
lhsRequestReference = this.getRequestReference();
Reference rhsRequestReference;
rhsRequestReference = that.getRequestReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "requestReference", lhsRequestReference), LocatorUtils.property(thatLocator, "requestReference", rhsRequestReference), lhsRequestReference, rhsRequestReference, (this.requestReference!= null), (that.requestReference!= null))) {
return false;
}
}
{
Identifier lhsResponceIdentifier;
lhsResponceIdentifier = this.getResponceIdentifier();
Identifier rhsResponceIdentifier;
rhsResponceIdentifier = that.getResponceIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "responceIdentifier", lhsResponceIdentifier), LocatorUtils.property(thatLocator, "responceIdentifier", rhsResponceIdentifier), lhsResponceIdentifier, rhsResponceIdentifier, (this.responceIdentifier!= null), (that.responceIdentifier!= null))) {
return false;
}
}
{
Reference lhsResponceReference;
lhsResponceReference = this.getResponceReference();
Reference rhsResponceReference;
rhsResponceReference = that.getResponceReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "responceReference", lhsResponceReference), LocatorUtils.property(thatLocator, "responceReference", rhsResponceReference), lhsResponceReference, rhsResponceReference, (this.responceReference!= null), (that.responceReference!= null))) {
return false;
}
}
{
Identifier lhsSubmitterIdentifier;
lhsSubmitterIdentifier = this.getSubmitterIdentifier();
Identifier rhsSubmitterIdentifier;
rhsSubmitterIdentifier = that.getSubmitterIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "submitterIdentifier", lhsSubmitterIdentifier), LocatorUtils.property(thatLocator, "submitterIdentifier", rhsSubmitterIdentifier), lhsSubmitterIdentifier, rhsSubmitterIdentifier, (this.submitterIdentifier!= null), (that.submitterIdentifier!= null))) {
return false;
}
}
{
Reference lhsSubmitterReference;
lhsSubmitterReference = this.getSubmitterReference();
Reference rhsSubmitterReference;
rhsSubmitterReference = that.getSubmitterReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "submitterReference", lhsSubmitterReference), LocatorUtils.property(thatLocator, "submitterReference", rhsSubmitterReference), lhsSubmitterReference, rhsSubmitterReference, (this.submitterReference!= null), (that.submitterReference!= null))) {
return false;
}
}
{
Identifier lhsPayeeIdentifier;
lhsPayeeIdentifier = this.getPayeeIdentifier();
Identifier rhsPayeeIdentifier;
rhsPayeeIdentifier = that.getPayeeIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "payeeIdentifier", lhsPayeeIdentifier), LocatorUtils.property(thatLocator, "payeeIdentifier", rhsPayeeIdentifier), lhsPayeeIdentifier, rhsPayeeIdentifier, (this.payeeIdentifier!= null), (that.payeeIdentifier!= null))) {
return false;
}
}
{
Reference lhsPayeeReference;
lhsPayeeReference = this.getPayeeReference();
Reference rhsPayeeReference;
rhsPayeeReference = that.getPayeeReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "payeeReference", lhsPayeeReference), LocatorUtils.property(thatLocator, "payeeReference", rhsPayeeReference), lhsPayeeReference, rhsPayeeReference, (this.payeeReference!= null), (that.payeeReference!= null))) {
return false;
}
}
{
Date lhsDate;
lhsDate = this.getDate();
Date rhsDate;
rhsDate = that.getDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "date", lhsDate), LocatorUtils.property(thatLocator, "date", rhsDate), lhsDate, rhsDate, (this.date!= null), (that.date!= null))) {
return false;
}
}
{
Money lhsAmount;
lhsAmount = this.getAmount();
Money rhsAmount;
rhsAmount = that.getAmount();
if (!strategy.equals(LocatorUtils.property(thisLocator, "amount", lhsAmount), LocatorUtils.property(thatLocator, "amount", rhsAmount), lhsAmount, rhsAmount, (this.amount!= null), (that.amount!= null))) {
return false;
}
}
return true;
}
@Override
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance();
return equals(null, null, object, strategy);
}
@Override
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = super.hashCode(locator, strategy);
{
Coding theType;
theType = this.getType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null));
}
{
Identifier theRequestIdentifier;
theRequestIdentifier = this.getRequestIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "requestIdentifier", theRequestIdentifier), currentHashCode, theRequestIdentifier, (this.requestIdentifier!= null));
}
{
Reference theRequestReference;
theRequestReference = this.getRequestReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "requestReference", theRequestReference), currentHashCode, theRequestReference, (this.requestReference!= null));
}
{
Identifier theResponceIdentifier;
theResponceIdentifier = this.getResponceIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "responceIdentifier", theResponceIdentifier), currentHashCode, theResponceIdentifier, (this.responceIdentifier!= null));
}
{
Reference theResponceReference;
theResponceReference = this.getResponceReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "responceReference", theResponceReference), currentHashCode, theResponceReference, (this.responceReference!= null));
}
{
Identifier theSubmitterIdentifier;
theSubmitterIdentifier = this.getSubmitterIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "submitterIdentifier", theSubmitterIdentifier), currentHashCode, theSubmitterIdentifier, (this.submitterIdentifier!= null));
}
{
Reference theSubmitterReference;
theSubmitterReference = this.getSubmitterReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "submitterReference", theSubmitterReference), currentHashCode, theSubmitterReference, (this.submitterReference!= null));
}
{
Identifier thePayeeIdentifier;
thePayeeIdentifier = this.getPayeeIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "payeeIdentifier", thePayeeIdentifier), currentHashCode, thePayeeIdentifier, (this.payeeIdentifier!= null));
}
{
Reference thePayeeReference;
thePayeeReference = this.getPayeeReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "payeeReference", thePayeeReference), currentHashCode, thePayeeReference, (this.payeeReference!= null));
}
{
Date theDate;
theDate = this.getDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate, (this.date!= null));
}
{
Money theAmount;
theAmount = this.getAmount();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "amount", theAmount), currentHashCode, theAmount, (this.amount!= null));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
@Override
public java.lang.String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance();
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
@Override
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
@Override
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
super.appendFields(locator, buffer, strategy);
{
Coding theType;
theType = this.getType();
strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null));
}
{
Identifier theRequestIdentifier;
theRequestIdentifier = this.getRequestIdentifier();
strategy.appendField(locator, this, "requestIdentifier", buffer, theRequestIdentifier, (this.requestIdentifier!= null));
}
{
Reference theRequestReference;
theRequestReference = this.getRequestReference();
strategy.appendField(locator, this, "requestReference", buffer, theRequestReference, (this.requestReference!= null));
}
{
Identifier theResponceIdentifier;
theResponceIdentifier = this.getResponceIdentifier();
strategy.appendField(locator, this, "responceIdentifier", buffer, theResponceIdentifier, (this.responceIdentifier!= null));
}
{
Reference theResponceReference;
theResponceReference = this.getResponceReference();
strategy.appendField(locator, this, "responceReference", buffer, theResponceReference, (this.responceReference!= null));
}
{
Identifier theSubmitterIdentifier;
theSubmitterIdentifier = this.getSubmitterIdentifier();
strategy.appendField(locator, this, "submitterIdentifier", buffer, theSubmitterIdentifier, (this.submitterIdentifier!= null));
}
{
Reference theSubmitterReference;
theSubmitterReference = this.getSubmitterReference();
strategy.appendField(locator, this, "submitterReference", buffer, theSubmitterReference, (this.submitterReference!= null));
}
{
Identifier thePayeeIdentifier;
thePayeeIdentifier = this.getPayeeIdentifier();
strategy.appendField(locator, this, "payeeIdentifier", buffer, thePayeeIdentifier, (this.payeeIdentifier!= null));
}
{
Reference thePayeeReference;
thePayeeReference = this.getPayeeReference();
strategy.appendField(locator, this, "payeeReference", buffer, thePayeeReference, (this.payeeReference!= null));
}
{
Date theDate;
theDate = this.getDate();
strategy.appendField(locator, this, "date", buffer, theDate, (this.date!= null));
}
{
Money theAmount;
theAmount = this.getAmount();
strategy.appendField(locator, this, "amount", buffer, theAmount, (this.amount!= null));
}
return buffer;
}
}