All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hl7.fhir.ExplanationOfBenefitFinancial Maven / Gradle / Ivy

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
//
// 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: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided.
 * 
 * 

Java class for ExplanationOfBenefit.Financial complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="ExplanationOfBenefit.Financial">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="type" type="{http://hl7.org/fhir}Coding"/>
 *         <choice minOccurs="0">
 *           <element name="benefitUnsignedInt" type="{http://hl7.org/fhir}unsignedInt"/>
 *           <element name="benefitQuantity" type="{http://hl7.org/fhir}Money"/>
 *         </choice>
 *         <choice minOccurs="0">
 *           <element name="benefitUsedUnsignedInt" type="{http://hl7.org/fhir}unsignedInt"/>
 *           <element name="benefitUsedQuantity" type="{http://hl7.org/fhir}Money"/>
 *         </choice>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ExplanationOfBenefit.Financial", propOrder = { "type", "benefitUnsignedInt", "benefitQuantity", "benefitUsedUnsignedInt", "benefitUsedQuantity" }) public class ExplanationOfBenefitFinancial extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected Coding type; protected UnsignedInt benefitUnsignedInt; protected Money benefitQuantity; protected UnsignedInt benefitUsedUnsignedInt; protected Money benefitUsedQuantity; /** * 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 benefitUnsignedInt property. * * @return * possible object is * {@link UnsignedInt } * */ public UnsignedInt getBenefitUnsignedInt() { return benefitUnsignedInt; } /** * Sets the value of the benefitUnsignedInt property. * * @param value * allowed object is * {@link UnsignedInt } * */ public void setBenefitUnsignedInt(UnsignedInt value) { this.benefitUnsignedInt = value; } /** * Gets the value of the benefitQuantity property. * * @return * possible object is * {@link Money } * */ public Money getBenefitQuantity() { return benefitQuantity; } /** * Sets the value of the benefitQuantity property. * * @param value * allowed object is * {@link Money } * */ public void setBenefitQuantity(Money value) { this.benefitQuantity = value; } /** * Gets the value of the benefitUsedUnsignedInt property. * * @return * possible object is * {@link UnsignedInt } * */ public UnsignedInt getBenefitUsedUnsignedInt() { return benefitUsedUnsignedInt; } /** * Sets the value of the benefitUsedUnsignedInt property. * * @param value * allowed object is * {@link UnsignedInt } * */ public void setBenefitUsedUnsignedInt(UnsignedInt value) { this.benefitUsedUnsignedInt = value; } /** * Gets the value of the benefitUsedQuantity property. * * @return * possible object is * {@link Money } * */ public Money getBenefitUsedQuantity() { return benefitUsedQuantity; } /** * Sets the value of the benefitUsedQuantity property. * * @param value * allowed object is * {@link Money } * */ public void setBenefitUsedQuantity(Money value) { this.benefitUsedQuantity = value; } public ExplanationOfBenefitFinancial withType(Coding value) { setType(value); return this; } public ExplanationOfBenefitFinancial withBenefitUnsignedInt(UnsignedInt value) { setBenefitUnsignedInt(value); return this; } public ExplanationOfBenefitFinancial withBenefitQuantity(Money value) { setBenefitQuantity(value); return this; } public ExplanationOfBenefitFinancial withBenefitUsedUnsignedInt(UnsignedInt value) { setBenefitUsedUnsignedInt(value); return this; } public ExplanationOfBenefitFinancial withBenefitUsedQuantity(Money value) { setBenefitUsedQuantity(value); return this; } @Override public ExplanationOfBenefitFinancial withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ExplanationOfBenefitFinancial withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ExplanationOfBenefitFinancial withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ExplanationOfBenefitFinancial withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ExplanationOfBenefitFinancial 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 ExplanationOfBenefitFinancial that = ((ExplanationOfBenefitFinancial) 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; } } { UnsignedInt lhsBenefitUnsignedInt; lhsBenefitUnsignedInt = this.getBenefitUnsignedInt(); UnsignedInt rhsBenefitUnsignedInt; rhsBenefitUnsignedInt = that.getBenefitUnsignedInt(); if (!strategy.equals(LocatorUtils.property(thisLocator, "benefitUnsignedInt", lhsBenefitUnsignedInt), LocatorUtils.property(thatLocator, "benefitUnsignedInt", rhsBenefitUnsignedInt), lhsBenefitUnsignedInt, rhsBenefitUnsignedInt, (this.benefitUnsignedInt!= null), (that.benefitUnsignedInt!= null))) { return false; } } { Money lhsBenefitQuantity; lhsBenefitQuantity = this.getBenefitQuantity(); Money rhsBenefitQuantity; rhsBenefitQuantity = that.getBenefitQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "benefitQuantity", lhsBenefitQuantity), LocatorUtils.property(thatLocator, "benefitQuantity", rhsBenefitQuantity), lhsBenefitQuantity, rhsBenefitQuantity, (this.benefitQuantity!= null), (that.benefitQuantity!= null))) { return false; } } { UnsignedInt lhsBenefitUsedUnsignedInt; lhsBenefitUsedUnsignedInt = this.getBenefitUsedUnsignedInt(); UnsignedInt rhsBenefitUsedUnsignedInt; rhsBenefitUsedUnsignedInt = that.getBenefitUsedUnsignedInt(); if (!strategy.equals(LocatorUtils.property(thisLocator, "benefitUsedUnsignedInt", lhsBenefitUsedUnsignedInt), LocatorUtils.property(thatLocator, "benefitUsedUnsignedInt", rhsBenefitUsedUnsignedInt), lhsBenefitUsedUnsignedInt, rhsBenefitUsedUnsignedInt, (this.benefitUsedUnsignedInt!= null), (that.benefitUsedUnsignedInt!= null))) { return false; } } { Money lhsBenefitUsedQuantity; lhsBenefitUsedQuantity = this.getBenefitUsedQuantity(); Money rhsBenefitUsedQuantity; rhsBenefitUsedQuantity = that.getBenefitUsedQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "benefitUsedQuantity", lhsBenefitUsedQuantity), LocatorUtils.property(thatLocator, "benefitUsedQuantity", rhsBenefitUsedQuantity), lhsBenefitUsedQuantity, rhsBenefitUsedQuantity, (this.benefitUsedQuantity!= null), (that.benefitUsedQuantity!= 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)); } { UnsignedInt theBenefitUnsignedInt; theBenefitUnsignedInt = this.getBenefitUnsignedInt(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "benefitUnsignedInt", theBenefitUnsignedInt), currentHashCode, theBenefitUnsignedInt, (this.benefitUnsignedInt!= null)); } { Money theBenefitQuantity; theBenefitQuantity = this.getBenefitQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "benefitQuantity", theBenefitQuantity), currentHashCode, theBenefitQuantity, (this.benefitQuantity!= null)); } { UnsignedInt theBenefitUsedUnsignedInt; theBenefitUsedUnsignedInt = this.getBenefitUsedUnsignedInt(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "benefitUsedUnsignedInt", theBenefitUsedUnsignedInt), currentHashCode, theBenefitUsedUnsignedInt, (this.benefitUsedUnsignedInt!= null)); } { Money theBenefitUsedQuantity; theBenefitUsedQuantity = this.getBenefitUsedQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "benefitUsedQuantity", theBenefitUsedQuantity), currentHashCode, theBenefitUsedQuantity, (this.benefitUsedQuantity!= 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)); } { UnsignedInt theBenefitUnsignedInt; theBenefitUnsignedInt = this.getBenefitUnsignedInt(); strategy.appendField(locator, this, "benefitUnsignedInt", buffer, theBenefitUnsignedInt, (this.benefitUnsignedInt!= null)); } { Money theBenefitQuantity; theBenefitQuantity = this.getBenefitQuantity(); strategy.appendField(locator, this, "benefitQuantity", buffer, theBenefitQuantity, (this.benefitQuantity!= null)); } { UnsignedInt theBenefitUsedUnsignedInt; theBenefitUsedUnsignedInt = this.getBenefitUsedUnsignedInt(); strategy.appendField(locator, this, "benefitUsedUnsignedInt", buffer, theBenefitUsedUnsignedInt, (this.benefitUsedUnsignedInt!= null)); } { Money theBenefitUsedQuantity; theBenefitUsedQuantity = this.getBenefitUsedQuantity(); strategy.appendField(locator, this, "benefitUsedQuantity", buffer, theBenefitUsedQuantity, (this.benefitUsedQuantity!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy