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

org.hl7.fhir.EligibilityResponseBenefitBalance 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.10.07 at 09:31:25 AM MDT 
//


package org.hl7.fhir;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
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 eligibility and plan details from the processing of an Eligibility resource.
 * 
 * 

Java class for EligibilityResponse.BenefitBalance complex type. * *

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

 * <complexType name="EligibilityResponse.BenefitBalance">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="category" type="{http://hl7.org/fhir}Coding"/>
 *         <element name="subCategory" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
 *         <element name="network" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
 *         <element name="unit" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
 *         <element name="term" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
 *         <element name="financial" type="{http://hl7.org/fhir}EligibilityResponse.Financial" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "EligibilityResponse.BenefitBalance", propOrder = { "category", "subCategory", "network", "unit", "term", "financial" }) public class EligibilityResponseBenefitBalance extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected Coding category; protected Coding subCategory; protected Coding network; protected Coding unit; protected Coding term; protected List financial; /** * Gets the value of the category property. * * @return * possible object is * {@link Coding } * */ public Coding getCategory() { return category; } /** * Sets the value of the category property. * * @param value * allowed object is * {@link Coding } * */ public void setCategory(Coding value) { this.category = value; } /** * Gets the value of the subCategory property. * * @return * possible object is * {@link Coding } * */ public Coding getSubCategory() { return subCategory; } /** * Sets the value of the subCategory property. * * @param value * allowed object is * {@link Coding } * */ public void setSubCategory(Coding value) { this.subCategory = value; } /** * Gets the value of the network property. * * @return * possible object is * {@link Coding } * */ public Coding getNetwork() { return network; } /** * Sets the value of the network property. * * @param value * allowed object is * {@link Coding } * */ public void setNetwork(Coding value) { this.network = value; } /** * Gets the value of the unit property. * * @return * possible object is * {@link Coding } * */ public Coding getUnit() { return unit; } /** * Sets the value of the unit property. * * @param value * allowed object is * {@link Coding } * */ public void setUnit(Coding value) { this.unit = value; } /** * Gets the value of the term property. * * @return * possible object is * {@link Coding } * */ public Coding getTerm() { return term; } /** * Sets the value of the term property. * * @param value * allowed object is * {@link Coding } * */ public void setTerm(Coding value) { this.term = value; } /** * Gets the value of the financial property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the financial property. * *

* For example, to add a new item, do as follows: *

     *    getFinancial().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link EligibilityResponseFinancial } * * */ public List getFinancial() { if (financial == null) { financial = new ArrayList(); } return this.financial; } public EligibilityResponseBenefitBalance withCategory(Coding value) { setCategory(value); return this; } public EligibilityResponseBenefitBalance withSubCategory(Coding value) { setSubCategory(value); return this; } public EligibilityResponseBenefitBalance withNetwork(Coding value) { setNetwork(value); return this; } public EligibilityResponseBenefitBalance withUnit(Coding value) { setUnit(value); return this; } public EligibilityResponseBenefitBalance withTerm(Coding value) { setTerm(value); return this; } public EligibilityResponseBenefitBalance withFinancial(EligibilityResponseFinancial... values) { if (values!= null) { for (EligibilityResponseFinancial value: values) { getFinancial().add(value); } } return this; } public EligibilityResponseBenefitBalance withFinancial(Collection values) { if (values!= null) { getFinancial().addAll(values); } return this; } @Override public EligibilityResponseBenefitBalance withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public EligibilityResponseBenefitBalance withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public EligibilityResponseBenefitBalance withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public EligibilityResponseBenefitBalance withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public EligibilityResponseBenefitBalance 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 EligibilityResponseBenefitBalance that = ((EligibilityResponseBenefitBalance) object); { Coding lhsCategory; lhsCategory = this.getCategory(); Coding rhsCategory; rhsCategory = that.getCategory(); if (!strategy.equals(LocatorUtils.property(thisLocator, "category", lhsCategory), LocatorUtils.property(thatLocator, "category", rhsCategory), lhsCategory, rhsCategory, (this.category!= null), (that.category!= null))) { return false; } } { Coding lhsSubCategory; lhsSubCategory = this.getSubCategory(); Coding rhsSubCategory; rhsSubCategory = that.getSubCategory(); if (!strategy.equals(LocatorUtils.property(thisLocator, "subCategory", lhsSubCategory), LocatorUtils.property(thatLocator, "subCategory", rhsSubCategory), lhsSubCategory, rhsSubCategory, (this.subCategory!= null), (that.subCategory!= null))) { return false; } } { Coding lhsNetwork; lhsNetwork = this.getNetwork(); Coding rhsNetwork; rhsNetwork = that.getNetwork(); if (!strategy.equals(LocatorUtils.property(thisLocator, "network", lhsNetwork), LocatorUtils.property(thatLocator, "network", rhsNetwork), lhsNetwork, rhsNetwork, (this.network!= null), (that.network!= null))) { return false; } } { Coding lhsUnit; lhsUnit = this.getUnit(); Coding rhsUnit; rhsUnit = that.getUnit(); if (!strategy.equals(LocatorUtils.property(thisLocator, "unit", lhsUnit), LocatorUtils.property(thatLocator, "unit", rhsUnit), lhsUnit, rhsUnit, (this.unit!= null), (that.unit!= null))) { return false; } } { Coding lhsTerm; lhsTerm = this.getTerm(); Coding rhsTerm; rhsTerm = that.getTerm(); if (!strategy.equals(LocatorUtils.property(thisLocator, "term", lhsTerm), LocatorUtils.property(thatLocator, "term", rhsTerm), lhsTerm, rhsTerm, (this.term!= null), (that.term!= null))) { return false; } } { List lhsFinancial; lhsFinancial = (((this.financial!= null)&&(!this.financial.isEmpty()))?this.getFinancial():null); List rhsFinancial; rhsFinancial = (((that.financial!= null)&&(!that.financial.isEmpty()))?that.getFinancial():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "financial", lhsFinancial), LocatorUtils.property(thatLocator, "financial", rhsFinancial), lhsFinancial, rhsFinancial, ((this.financial!= null)&&(!this.financial.isEmpty())), ((that.financial!= null)&&(!that.financial.isEmpty())))) { 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 theCategory; theCategory = this.getCategory(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "category", theCategory), currentHashCode, theCategory, (this.category!= null)); } { Coding theSubCategory; theSubCategory = this.getSubCategory(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subCategory", theSubCategory), currentHashCode, theSubCategory, (this.subCategory!= null)); } { Coding theNetwork; theNetwork = this.getNetwork(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "network", theNetwork), currentHashCode, theNetwork, (this.network!= null)); } { Coding theUnit; theUnit = this.getUnit(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "unit", theUnit), currentHashCode, theUnit, (this.unit!= null)); } { Coding theTerm; theTerm = this.getTerm(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "term", theTerm), currentHashCode, theTerm, (this.term!= null)); } { List theFinancial; theFinancial = (((this.financial!= null)&&(!this.financial.isEmpty()))?this.getFinancial():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "financial", theFinancial), currentHashCode, theFinancial, ((this.financial!= null)&&(!this.financial.isEmpty()))); } 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 theCategory; theCategory = this.getCategory(); strategy.appendField(locator, this, "category", buffer, theCategory, (this.category!= null)); } { Coding theSubCategory; theSubCategory = this.getSubCategory(); strategy.appendField(locator, this, "subCategory", buffer, theSubCategory, (this.subCategory!= null)); } { Coding theNetwork; theNetwork = this.getNetwork(); strategy.appendField(locator, this, "network", buffer, theNetwork, (this.network!= null)); } { Coding theUnit; theUnit = this.getUnit(); strategy.appendField(locator, this, "unit", buffer, theUnit, (this.unit!= null)); } { Coding theTerm; theTerm = this.getTerm(); strategy.appendField(locator, this, "term", buffer, theTerm, (this.term!= null)); } { List theFinancial; theFinancial = (((this.financial!= null)&&(!this.financial.isEmpty()))?this.getFinancial():null); strategy.appendField(locator, this, "financial", buffer, theFinancial, ((this.financial!= null)&&(!this.financial.isEmpty()))); } return buffer; } public void setFinancial(List value) { this.financial = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy