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

org.hl7.fhir.Coverage 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.03.21 at 12:42:34 PM 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;


/**
 * If the element is present, it must have either a @value, an @id, or extensions
 * 
 * 

Java class for Coverage complex type. * *

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

 * <complexType name="Coverage">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <choice>
 *           <element name="issuerIdentifier" type="{http://hl7.org/fhir}Identifier"/>
 *           <element name="issuerReference" type="{http://hl7.org/fhir}Reference"/>
 *         </choice>
 *         <element name="bin" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="period" type="{http://hl7.org/fhir}Period" minOccurs="0"/>
 *         <element name="type" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
 *         <choice>
 *           <element name="planholderIdentifier" type="{http://hl7.org/fhir}Identifier"/>
 *           <element name="planholderReference" type="{http://hl7.org/fhir}Reference"/>
 *         </choice>
 *         <choice>
 *           <element name="beneficiaryIdentifier" type="{http://hl7.org/fhir}Identifier"/>
 *           <element name="beneficiaryReference" type="{http://hl7.org/fhir}Reference"/>
 *         </choice>
 *         <element name="relationship" type="{http://hl7.org/fhir}Coding"/>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="group" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="plan" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="subPlan" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="dependent" type="{http://hl7.org/fhir}positiveInt" minOccurs="0"/>
 *         <element name="sequence" type="{http://hl7.org/fhir}positiveInt" minOccurs="0"/>
 *         <element name="exception" type="{http://hl7.org/fhir}Coding" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="school" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="network" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="contract" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Coverage", propOrder = { "issuerIdentifier", "issuerReference", "bin", "period", "type", "planholderIdentifier", "planholderReference", "beneficiaryIdentifier", "beneficiaryReference", "relationship", "identifier", "group", "plan", "subPlan", "dependent", "sequence", "exception", "school", "network", "contract" }) public class Coverage extends DomainResource implements Equals2, HashCode2, ToString2 { protected Identifier issuerIdentifier; protected Reference issuerReference; protected org.hl7.fhir.String bin; protected Period period; protected Coding type; protected Identifier planholderIdentifier; protected Reference planholderReference; protected Identifier beneficiaryIdentifier; protected Reference beneficiaryReference; @XmlElement(required = true) protected Coding relationship; protected List identifier; protected org.hl7.fhir.String group; protected org.hl7.fhir.String plan; protected org.hl7.fhir.String subPlan; protected PositiveInt dependent; protected PositiveInt sequence; protected List exception; protected org.hl7.fhir.String school; protected org.hl7.fhir.String network; protected List contract; /** * Gets the value of the issuerIdentifier property. * * @return * possible object is * {@link Identifier } * */ public Identifier getIssuerIdentifier() { return issuerIdentifier; } /** * Sets the value of the issuerIdentifier property. * * @param value * allowed object is * {@link Identifier } * */ public void setIssuerIdentifier(Identifier value) { this.issuerIdentifier = value; } /** * Gets the value of the issuerReference property. * * @return * possible object is * {@link Reference } * */ public Reference getIssuerReference() { return issuerReference; } /** * Sets the value of the issuerReference property. * * @param value * allowed object is * {@link Reference } * */ public void setIssuerReference(Reference value) { this.issuerReference = value; } /** * Gets the value of the bin property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getBin() { return bin; } /** * Sets the value of the bin property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setBin(org.hl7.fhir.String value) { this.bin = value; } /** * Gets the value of the period property. * * @return * possible object is * {@link Period } * */ public Period getPeriod() { return period; } /** * Sets the value of the period property. * * @param value * allowed object is * {@link Period } * */ public void setPeriod(Period value) { this.period = value; } /** * 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 planholderIdentifier property. * * @return * possible object is * {@link Identifier } * */ public Identifier getPlanholderIdentifier() { return planholderIdentifier; } /** * Sets the value of the planholderIdentifier property. * * @param value * allowed object is * {@link Identifier } * */ public void setPlanholderIdentifier(Identifier value) { this.planholderIdentifier = value; } /** * Gets the value of the planholderReference property. * * @return * possible object is * {@link Reference } * */ public Reference getPlanholderReference() { return planholderReference; } /** * Sets the value of the planholderReference property. * * @param value * allowed object is * {@link Reference } * */ public void setPlanholderReference(Reference value) { this.planholderReference = value; } /** * Gets the value of the beneficiaryIdentifier property. * * @return * possible object is * {@link Identifier } * */ public Identifier getBeneficiaryIdentifier() { return beneficiaryIdentifier; } /** * Sets the value of the beneficiaryIdentifier property. * * @param value * allowed object is * {@link Identifier } * */ public void setBeneficiaryIdentifier(Identifier value) { this.beneficiaryIdentifier = value; } /** * Gets the value of the beneficiaryReference property. * * @return * possible object is * {@link Reference } * */ public Reference getBeneficiaryReference() { return beneficiaryReference; } /** * Sets the value of the beneficiaryReference property. * * @param value * allowed object is * {@link Reference } * */ public void setBeneficiaryReference(Reference value) { this.beneficiaryReference = value; } /** * Gets the value of the relationship property. * * @return * possible object is * {@link Coding } * */ public Coding getRelationship() { return relationship; } /** * Sets the value of the relationship property. * * @param value * allowed object is * {@link Coding } * */ public void setRelationship(Coding value) { this.relationship = value; } /** * Gets the value of the identifier 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 identifier property. * *

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

     *    getIdentifier().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Identifier } * * */ public List getIdentifier() { if (identifier == null) { identifier = new ArrayList(); } return this.identifier; } /** * Gets the value of the group property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getGroup() { return group; } /** * Sets the value of the group property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setGroup(org.hl7.fhir.String value) { this.group = value; } /** * Gets the value of the plan property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getPlan() { return plan; } /** * Sets the value of the plan property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setPlan(org.hl7.fhir.String value) { this.plan = value; } /** * Gets the value of the subPlan property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getSubPlan() { return subPlan; } /** * Sets the value of the subPlan property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setSubPlan(org.hl7.fhir.String value) { this.subPlan = value; } /** * Gets the value of the dependent property. * * @return * possible object is * {@link PositiveInt } * */ public PositiveInt getDependent() { return dependent; } /** * Sets the value of the dependent property. * * @param value * allowed object is * {@link PositiveInt } * */ public void setDependent(PositiveInt value) { this.dependent = value; } /** * Gets the value of the sequence property. * * @return * possible object is * {@link PositiveInt } * */ public PositiveInt getSequence() { return sequence; } /** * Sets the value of the sequence property. * * @param value * allowed object is * {@link PositiveInt } * */ public void setSequence(PositiveInt value) { this.sequence = value; } /** * Gets the value of the exception 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 exception property. * *

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

     *    getException().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Coding } * * */ public List getException() { if (exception == null) { exception = new ArrayList(); } return this.exception; } /** * Gets the value of the school property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getSchool() { return school; } /** * Sets the value of the school property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setSchool(org.hl7.fhir.String value) { this.school = value; } /** * Gets the value of the network property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getNetwork() { return network; } /** * Sets the value of the network property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setNetwork(org.hl7.fhir.String value) { this.network = value; } /** * Gets the value of the contract 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 contract property. * *

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

     *    getContract().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getContract() { if (contract == null) { contract = new ArrayList(); } return this.contract; } public Coverage withIssuerIdentifier(Identifier value) { setIssuerIdentifier(value); return this; } public Coverage withIssuerReference(Reference value) { setIssuerReference(value); return this; } public Coverage withBin(org.hl7.fhir.String value) { setBin(value); return this; } public Coverage withPeriod(Period value) { setPeriod(value); return this; } public Coverage withType(Coding value) { setType(value); return this; } public Coverage withPlanholderIdentifier(Identifier value) { setPlanholderIdentifier(value); return this; } public Coverage withPlanholderReference(Reference value) { setPlanholderReference(value); return this; } public Coverage withBeneficiaryIdentifier(Identifier value) { setBeneficiaryIdentifier(value); return this; } public Coverage withBeneficiaryReference(Reference value) { setBeneficiaryReference(value); return this; } public Coverage withRelationship(Coding value) { setRelationship(value); return this; } public Coverage withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public Coverage withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public Coverage withGroup(org.hl7.fhir.String value) { setGroup(value); return this; } public Coverage withPlan(org.hl7.fhir.String value) { setPlan(value); return this; } public Coverage withSubPlan(org.hl7.fhir.String value) { setSubPlan(value); return this; } public Coverage withDependent(PositiveInt value) { setDependent(value); return this; } public Coverage withSequence(PositiveInt value) { setSequence(value); return this; } public Coverage withException(Coding... values) { if (values!= null) { for (Coding value: values) { getException().add(value); } } return this; } public Coverage withException(Collection values) { if (values!= null) { getException().addAll(values); } return this; } public Coverage withSchool(org.hl7.fhir.String value) { setSchool(value); return this; } public Coverage withNetwork(org.hl7.fhir.String value) { setNetwork(value); return this; } public Coverage withContract(Reference... values) { if (values!= null) { for (Reference value: values) { getContract().add(value); } } return this; } public Coverage withContract(Collection values) { if (values!= null) { getContract().addAll(values); } return this; } @Override public Coverage withText(Narrative value) { setText(value); return this; } @Override public Coverage withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public Coverage withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public Coverage withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public Coverage withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public Coverage withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public Coverage withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public Coverage withId(Id value) { setId(value); return this; } @Override public Coverage withMeta(Meta value) { setMeta(value); return this; } @Override public Coverage withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public Coverage withLanguage(Code value) { setLanguage(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 Coverage that = ((Coverage) object); { Identifier lhsIssuerIdentifier; lhsIssuerIdentifier = this.getIssuerIdentifier(); Identifier rhsIssuerIdentifier; rhsIssuerIdentifier = that.getIssuerIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "issuerIdentifier", lhsIssuerIdentifier), LocatorUtils.property(thatLocator, "issuerIdentifier", rhsIssuerIdentifier), lhsIssuerIdentifier, rhsIssuerIdentifier, (this.issuerIdentifier!= null), (that.issuerIdentifier!= null))) { return false; } } { Reference lhsIssuerReference; lhsIssuerReference = this.getIssuerReference(); Reference rhsIssuerReference; rhsIssuerReference = that.getIssuerReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "issuerReference", lhsIssuerReference), LocatorUtils.property(thatLocator, "issuerReference", rhsIssuerReference), lhsIssuerReference, rhsIssuerReference, (this.issuerReference!= null), (that.issuerReference!= null))) { return false; } } { org.hl7.fhir.String lhsBin; lhsBin = this.getBin(); org.hl7.fhir.String rhsBin; rhsBin = that.getBin(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bin", lhsBin), LocatorUtils.property(thatLocator, "bin", rhsBin), lhsBin, rhsBin, (this.bin!= null), (that.bin!= null))) { return false; } } { Period lhsPeriod; lhsPeriod = this.getPeriod(); Period rhsPeriod; rhsPeriod = that.getPeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "period", lhsPeriod), LocatorUtils.property(thatLocator, "period", rhsPeriod), lhsPeriod, rhsPeriod, (this.period!= null), (that.period!= null))) { return false; } } { 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 lhsPlanholderIdentifier; lhsPlanholderIdentifier = this.getPlanholderIdentifier(); Identifier rhsPlanholderIdentifier; rhsPlanholderIdentifier = that.getPlanholderIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "planholderIdentifier", lhsPlanholderIdentifier), LocatorUtils.property(thatLocator, "planholderIdentifier", rhsPlanholderIdentifier), lhsPlanholderIdentifier, rhsPlanholderIdentifier, (this.planholderIdentifier!= null), (that.planholderIdentifier!= null))) { return false; } } { Reference lhsPlanholderReference; lhsPlanholderReference = this.getPlanholderReference(); Reference rhsPlanholderReference; rhsPlanholderReference = that.getPlanholderReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "planholderReference", lhsPlanholderReference), LocatorUtils.property(thatLocator, "planholderReference", rhsPlanholderReference), lhsPlanholderReference, rhsPlanholderReference, (this.planholderReference!= null), (that.planholderReference!= null))) { return false; } } { Identifier lhsBeneficiaryIdentifier; lhsBeneficiaryIdentifier = this.getBeneficiaryIdentifier(); Identifier rhsBeneficiaryIdentifier; rhsBeneficiaryIdentifier = that.getBeneficiaryIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "beneficiaryIdentifier", lhsBeneficiaryIdentifier), LocatorUtils.property(thatLocator, "beneficiaryIdentifier", rhsBeneficiaryIdentifier), lhsBeneficiaryIdentifier, rhsBeneficiaryIdentifier, (this.beneficiaryIdentifier!= null), (that.beneficiaryIdentifier!= null))) { return false; } } { Reference lhsBeneficiaryReference; lhsBeneficiaryReference = this.getBeneficiaryReference(); Reference rhsBeneficiaryReference; rhsBeneficiaryReference = that.getBeneficiaryReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "beneficiaryReference", lhsBeneficiaryReference), LocatorUtils.property(thatLocator, "beneficiaryReference", rhsBeneficiaryReference), lhsBeneficiaryReference, rhsBeneficiaryReference, (this.beneficiaryReference!= null), (that.beneficiaryReference!= null))) { return false; } } { Coding lhsRelationship; lhsRelationship = this.getRelationship(); Coding rhsRelationship; rhsRelationship = that.getRelationship(); if (!strategy.equals(LocatorUtils.property(thisLocator, "relationship", lhsRelationship), LocatorUtils.property(thatLocator, "relationship", rhsRelationship), lhsRelationship, rhsRelationship, (this.relationship!= null), (that.relationship!= null))) { return false; } } { List lhsIdentifier; lhsIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); List rhsIdentifier; rhsIdentifier = (((that.identifier!= null)&&(!that.identifier.isEmpty()))?that.getIdentifier():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty())), ((that.identifier!= null)&&(!that.identifier.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsGroup; lhsGroup = this.getGroup(); org.hl7.fhir.String rhsGroup; rhsGroup = that.getGroup(); if (!strategy.equals(LocatorUtils.property(thisLocator, "group", lhsGroup), LocatorUtils.property(thatLocator, "group", rhsGroup), lhsGroup, rhsGroup, (this.group!= null), (that.group!= null))) { return false; } } { org.hl7.fhir.String lhsPlan; lhsPlan = this.getPlan(); org.hl7.fhir.String rhsPlan; rhsPlan = that.getPlan(); if (!strategy.equals(LocatorUtils.property(thisLocator, "plan", lhsPlan), LocatorUtils.property(thatLocator, "plan", rhsPlan), lhsPlan, rhsPlan, (this.plan!= null), (that.plan!= null))) { return false; } } { org.hl7.fhir.String lhsSubPlan; lhsSubPlan = this.getSubPlan(); org.hl7.fhir.String rhsSubPlan; rhsSubPlan = that.getSubPlan(); if (!strategy.equals(LocatorUtils.property(thisLocator, "subPlan", lhsSubPlan), LocatorUtils.property(thatLocator, "subPlan", rhsSubPlan), lhsSubPlan, rhsSubPlan, (this.subPlan!= null), (that.subPlan!= null))) { return false; } } { PositiveInt lhsDependent; lhsDependent = this.getDependent(); PositiveInt rhsDependent; rhsDependent = that.getDependent(); if (!strategy.equals(LocatorUtils.property(thisLocator, "dependent", lhsDependent), LocatorUtils.property(thatLocator, "dependent", rhsDependent), lhsDependent, rhsDependent, (this.dependent!= null), (that.dependent!= null))) { return false; } } { PositiveInt lhsSequence; lhsSequence = this.getSequence(); PositiveInt rhsSequence; rhsSequence = that.getSequence(); if (!strategy.equals(LocatorUtils.property(thisLocator, "sequence", lhsSequence), LocatorUtils.property(thatLocator, "sequence", rhsSequence), lhsSequence, rhsSequence, (this.sequence!= null), (that.sequence!= null))) { return false; } } { List lhsException; lhsException = (((this.exception!= null)&&(!this.exception.isEmpty()))?this.getException():null); List rhsException; rhsException = (((that.exception!= null)&&(!that.exception.isEmpty()))?that.getException():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "exception", lhsException), LocatorUtils.property(thatLocator, "exception", rhsException), lhsException, rhsException, ((this.exception!= null)&&(!this.exception.isEmpty())), ((that.exception!= null)&&(!that.exception.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsSchool; lhsSchool = this.getSchool(); org.hl7.fhir.String rhsSchool; rhsSchool = that.getSchool(); if (!strategy.equals(LocatorUtils.property(thisLocator, "school", lhsSchool), LocatorUtils.property(thatLocator, "school", rhsSchool), lhsSchool, rhsSchool, (this.school!= null), (that.school!= null))) { return false; } } { org.hl7.fhir.String lhsNetwork; lhsNetwork = this.getNetwork(); org.hl7.fhir.String 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; } } { List lhsContract; lhsContract = (((this.contract!= null)&&(!this.contract.isEmpty()))?this.getContract():null); List rhsContract; rhsContract = (((that.contract!= null)&&(!that.contract.isEmpty()))?that.getContract():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "contract", lhsContract), LocatorUtils.property(thatLocator, "contract", rhsContract), lhsContract, rhsContract, ((this.contract!= null)&&(!this.contract.isEmpty())), ((that.contract!= null)&&(!that.contract.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); { Identifier theIssuerIdentifier; theIssuerIdentifier = this.getIssuerIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "issuerIdentifier", theIssuerIdentifier), currentHashCode, theIssuerIdentifier, (this.issuerIdentifier!= null)); } { Reference theIssuerReference; theIssuerReference = this.getIssuerReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "issuerReference", theIssuerReference), currentHashCode, theIssuerReference, (this.issuerReference!= null)); } { org.hl7.fhir.String theBin; theBin = this.getBin(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bin", theBin), currentHashCode, theBin, (this.bin!= null)); } { Period thePeriod; thePeriod = this.getPeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "period", thePeriod), currentHashCode, thePeriod, (this.period!= null)); } { Coding theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { Identifier thePlanholderIdentifier; thePlanholderIdentifier = this.getPlanholderIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "planholderIdentifier", thePlanholderIdentifier), currentHashCode, thePlanholderIdentifier, (this.planholderIdentifier!= null)); } { Reference thePlanholderReference; thePlanholderReference = this.getPlanholderReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "planholderReference", thePlanholderReference), currentHashCode, thePlanholderReference, (this.planholderReference!= null)); } { Identifier theBeneficiaryIdentifier; theBeneficiaryIdentifier = this.getBeneficiaryIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "beneficiaryIdentifier", theBeneficiaryIdentifier), currentHashCode, theBeneficiaryIdentifier, (this.beneficiaryIdentifier!= null)); } { Reference theBeneficiaryReference; theBeneficiaryReference = this.getBeneficiaryReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "beneficiaryReference", theBeneficiaryReference), currentHashCode, theBeneficiaryReference, (this.beneficiaryReference!= null)); } { Coding theRelationship; theRelationship = this.getRelationship(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "relationship", theRelationship), currentHashCode, theRelationship, (this.relationship!= null)); } { List theIdentifier; theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty()))); } { org.hl7.fhir.String theGroup; theGroup = this.getGroup(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "group", theGroup), currentHashCode, theGroup, (this.group!= null)); } { org.hl7.fhir.String thePlan; thePlan = this.getPlan(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "plan", thePlan), currentHashCode, thePlan, (this.plan!= null)); } { org.hl7.fhir.String theSubPlan; theSubPlan = this.getSubPlan(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subPlan", theSubPlan), currentHashCode, theSubPlan, (this.subPlan!= null)); } { PositiveInt theDependent; theDependent = this.getDependent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dependent", theDependent), currentHashCode, theDependent, (this.dependent!= null)); } { PositiveInt theSequence; theSequence = this.getSequence(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sequence", theSequence), currentHashCode, theSequence, (this.sequence!= null)); } { List theException; theException = (((this.exception!= null)&&(!this.exception.isEmpty()))?this.getException():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "exception", theException), currentHashCode, theException, ((this.exception!= null)&&(!this.exception.isEmpty()))); } { org.hl7.fhir.String theSchool; theSchool = this.getSchool(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "school", theSchool), currentHashCode, theSchool, (this.school!= null)); } { org.hl7.fhir.String theNetwork; theNetwork = this.getNetwork(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "network", theNetwork), currentHashCode, theNetwork, (this.network!= null)); } { List theContract; theContract = (((this.contract!= null)&&(!this.contract.isEmpty()))?this.getContract():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contract", theContract), currentHashCode, theContract, ((this.contract!= null)&&(!this.contract.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); { Identifier theIssuerIdentifier; theIssuerIdentifier = this.getIssuerIdentifier(); strategy.appendField(locator, this, "issuerIdentifier", buffer, theIssuerIdentifier, (this.issuerIdentifier!= null)); } { Reference theIssuerReference; theIssuerReference = this.getIssuerReference(); strategy.appendField(locator, this, "issuerReference", buffer, theIssuerReference, (this.issuerReference!= null)); } { org.hl7.fhir.String theBin; theBin = this.getBin(); strategy.appendField(locator, this, "bin", buffer, theBin, (this.bin!= null)); } { Period thePeriod; thePeriod = this.getPeriod(); strategy.appendField(locator, this, "period", buffer, thePeriod, (this.period!= null)); } { Coding theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { Identifier thePlanholderIdentifier; thePlanholderIdentifier = this.getPlanholderIdentifier(); strategy.appendField(locator, this, "planholderIdentifier", buffer, thePlanholderIdentifier, (this.planholderIdentifier!= null)); } { Reference thePlanholderReference; thePlanholderReference = this.getPlanholderReference(); strategy.appendField(locator, this, "planholderReference", buffer, thePlanholderReference, (this.planholderReference!= null)); } { Identifier theBeneficiaryIdentifier; theBeneficiaryIdentifier = this.getBeneficiaryIdentifier(); strategy.appendField(locator, this, "beneficiaryIdentifier", buffer, theBeneficiaryIdentifier, (this.beneficiaryIdentifier!= null)); } { Reference theBeneficiaryReference; theBeneficiaryReference = this.getBeneficiaryReference(); strategy.appendField(locator, this, "beneficiaryReference", buffer, theBeneficiaryReference, (this.beneficiaryReference!= null)); } { Coding theRelationship; theRelationship = this.getRelationship(); strategy.appendField(locator, this, "relationship", buffer, theRelationship, (this.relationship!= null)); } { List theIdentifier; theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null); strategy.appendField(locator, this, "identifier", buffer, theIdentifier, ((this.identifier!= null)&&(!this.identifier.isEmpty()))); } { org.hl7.fhir.String theGroup; theGroup = this.getGroup(); strategy.appendField(locator, this, "group", buffer, theGroup, (this.group!= null)); } { org.hl7.fhir.String thePlan; thePlan = this.getPlan(); strategy.appendField(locator, this, "plan", buffer, thePlan, (this.plan!= null)); } { org.hl7.fhir.String theSubPlan; theSubPlan = this.getSubPlan(); strategy.appendField(locator, this, "subPlan", buffer, theSubPlan, (this.subPlan!= null)); } { PositiveInt theDependent; theDependent = this.getDependent(); strategy.appendField(locator, this, "dependent", buffer, theDependent, (this.dependent!= null)); } { PositiveInt theSequence; theSequence = this.getSequence(); strategy.appendField(locator, this, "sequence", buffer, theSequence, (this.sequence!= null)); } { List theException; theException = (((this.exception!= null)&&(!this.exception.isEmpty()))?this.getException():null); strategy.appendField(locator, this, "exception", buffer, theException, ((this.exception!= null)&&(!this.exception.isEmpty()))); } { org.hl7.fhir.String theSchool; theSchool = this.getSchool(); strategy.appendField(locator, this, "school", buffer, theSchool, (this.school!= null)); } { org.hl7.fhir.String theNetwork; theNetwork = this.getNetwork(); strategy.appendField(locator, this, "network", buffer, theNetwork, (this.network!= null)); } { List theContract; theContract = (((this.contract!= null)&&(!this.contract.isEmpty()))?this.getContract():null); strategy.appendField(locator, this, "contract", buffer, theContract, ((this.contract!= null)&&(!this.contract.isEmpty()))); } return buffer; } public void setIdentifier(List value) { this.identifier = value; } public void setException(List value) { this.exception = value; } public void setContract(List value) { this.contract = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy