
org.hl7.fhir.EligibilityRequest Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.01.12 at 11:04:27 AM MST
//
package org.hl7.fhir;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 EligibilityRequest complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="EligibilityRequest">
* <complexContent>
* <extension base="{http://hl7.org/fhir}DomainResource">
* <sequence>
* <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
* <element name="ruleset" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
* <element name="originalRuleset" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
* <element name="created" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
* <choice minOccurs="0">
* <element name="targetIdentifier" type="{http://hl7.org/fhir}Identifier"/>
* <element name="targetReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <choice minOccurs="0">
* <element name="providerIdentifier" type="{http://hl7.org/fhir}Identifier"/>
* <element name="providerReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <choice minOccurs="0">
* <element name="organizationIdentifier" type="{http://hl7.org/fhir}Identifier"/>
* <element name="organizationReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <element name="priority" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
* <choice minOccurs="0">
* <element name="entererIdentifier" type="{http://hl7.org/fhir}Identifier"/>
* <element name="entererReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <choice minOccurs="0">
* <element name="facilityIdentifier" type="{http://hl7.org/fhir}Identifier"/>
* <element name="facilityReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <choice minOccurs="0">
* <element name="patientIdentifier" type="{http://hl7.org/fhir}Identifier"/>
* <element name="patientReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <choice minOccurs="0">
* <element name="coverageIdentifier" type="{http://hl7.org/fhir}Identifier"/>
* <element name="coverageReference" type="{http://hl7.org/fhir}Reference"/>
* </choice>
* <element name="businessArrangement" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <choice minOccurs="0">
* <element name="servicedDate" type="{http://hl7.org/fhir}date"/>
* <element name="servicedPeriod" type="{http://hl7.org/fhir}Period"/>
* </choice>
* <element name="benefitCategory" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
* <element name="benefitSubCategory" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EligibilityRequest", propOrder = {
"identifier",
"ruleset",
"originalRuleset",
"created",
"targetIdentifier",
"targetReference",
"providerIdentifier",
"providerReference",
"organizationIdentifier",
"organizationReference",
"priority",
"entererIdentifier",
"entererReference",
"facilityIdentifier",
"facilityReference",
"patientIdentifier",
"patientReference",
"coverageIdentifier",
"coverageReference",
"businessArrangement",
"servicedDate",
"servicedPeriod",
"benefitCategory",
"benefitSubCategory"
})
public class EligibilityRequest
extends DomainResource
implements Equals, HashCode, ToString
{
protected List identifier;
protected Coding ruleset;
protected Coding originalRuleset;
protected DateTime created;
protected Identifier targetIdentifier;
protected Reference targetReference;
protected Identifier providerIdentifier;
protected Reference providerReference;
protected Identifier organizationIdentifier;
protected Reference organizationReference;
protected Coding priority;
protected Identifier entererIdentifier;
protected Reference entererReference;
protected Identifier facilityIdentifier;
protected Reference facilityReference;
protected Identifier patientIdentifier;
protected Reference patientReference;
protected Identifier coverageIdentifier;
protected Reference coverageReference;
protected org.hl7.fhir.String businessArrangement;
protected Date servicedDate;
protected Period servicedPeriod;
protected Coding benefitCategory;
protected Coding benefitSubCategory;
/**
* 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 JAXB 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 ruleset property.
*
* @return
* possible object is
* {@link Coding }
*
*/
public Coding getRuleset() {
return ruleset;
}
/**
* Sets the value of the ruleset property.
*
* @param value
* allowed object is
* {@link Coding }
*
*/
public void setRuleset(Coding value) {
this.ruleset = value;
}
/**
* Gets the value of the originalRuleset property.
*
* @return
* possible object is
* {@link Coding }
*
*/
public Coding getOriginalRuleset() {
return originalRuleset;
}
/**
* Sets the value of the originalRuleset property.
*
* @param value
* allowed object is
* {@link Coding }
*
*/
public void setOriginalRuleset(Coding value) {
this.originalRuleset = value;
}
/**
* Gets the value of the created property.
*
* @return
* possible object is
* {@link DateTime }
*
*/
public DateTime getCreated() {
return created;
}
/**
* Sets the value of the created property.
*
* @param value
* allowed object is
* {@link DateTime }
*
*/
public void setCreated(DateTime value) {
this.created = value;
}
/**
* Gets the value of the targetIdentifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getTargetIdentifier() {
return targetIdentifier;
}
/**
* Sets the value of the targetIdentifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setTargetIdentifier(Identifier value) {
this.targetIdentifier = value;
}
/**
* Gets the value of the targetReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getTargetReference() {
return targetReference;
}
/**
* Sets the value of the targetReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setTargetReference(Reference value) {
this.targetReference = value;
}
/**
* Gets the value of the providerIdentifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getProviderIdentifier() {
return providerIdentifier;
}
/**
* Sets the value of the providerIdentifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setProviderIdentifier(Identifier value) {
this.providerIdentifier = value;
}
/**
* Gets the value of the providerReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getProviderReference() {
return providerReference;
}
/**
* Sets the value of the providerReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setProviderReference(Reference value) {
this.providerReference = value;
}
/**
* Gets the value of the organizationIdentifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getOrganizationIdentifier() {
return organizationIdentifier;
}
/**
* Sets the value of the organizationIdentifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setOrganizationIdentifier(Identifier value) {
this.organizationIdentifier = value;
}
/**
* Gets the value of the organizationReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getOrganizationReference() {
return organizationReference;
}
/**
* Sets the value of the organizationReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setOrganizationReference(Reference value) {
this.organizationReference = value;
}
/**
* Gets the value of the priority property.
*
* @return
* possible object is
* {@link Coding }
*
*/
public Coding getPriority() {
return priority;
}
/**
* Sets the value of the priority property.
*
* @param value
* allowed object is
* {@link Coding }
*
*/
public void setPriority(Coding value) {
this.priority = value;
}
/**
* Gets the value of the entererIdentifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getEntererIdentifier() {
return entererIdentifier;
}
/**
* Sets the value of the entererIdentifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setEntererIdentifier(Identifier value) {
this.entererIdentifier = value;
}
/**
* Gets the value of the entererReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getEntererReference() {
return entererReference;
}
/**
* Sets the value of the entererReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setEntererReference(Reference value) {
this.entererReference = value;
}
/**
* Gets the value of the facilityIdentifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getFacilityIdentifier() {
return facilityIdentifier;
}
/**
* Sets the value of the facilityIdentifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setFacilityIdentifier(Identifier value) {
this.facilityIdentifier = value;
}
/**
* Gets the value of the facilityReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getFacilityReference() {
return facilityReference;
}
/**
* Sets the value of the facilityReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setFacilityReference(Reference value) {
this.facilityReference = value;
}
/**
* Gets the value of the patientIdentifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getPatientIdentifier() {
return patientIdentifier;
}
/**
* Sets the value of the patientIdentifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setPatientIdentifier(Identifier value) {
this.patientIdentifier = value;
}
/**
* Gets the value of the patientReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getPatientReference() {
return patientReference;
}
/**
* Sets the value of the patientReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setPatientReference(Reference value) {
this.patientReference = value;
}
/**
* Gets the value of the coverageIdentifier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getCoverageIdentifier() {
return coverageIdentifier;
}
/**
* Sets the value of the coverageIdentifier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setCoverageIdentifier(Identifier value) {
this.coverageIdentifier = value;
}
/**
* Gets the value of the coverageReference property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getCoverageReference() {
return coverageReference;
}
/**
* Sets the value of the coverageReference property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setCoverageReference(Reference value) {
this.coverageReference = value;
}
/**
* Gets the value of the businessArrangement property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getBusinessArrangement() {
return businessArrangement;
}
/**
* Sets the value of the businessArrangement property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setBusinessArrangement(org.hl7.fhir.String value) {
this.businessArrangement = value;
}
/**
* Gets the value of the servicedDate property.
*
* @return
* possible object is
* {@link Date }
*
*/
public Date getServicedDate() {
return servicedDate;
}
/**
* Sets the value of the servicedDate property.
*
* @param value
* allowed object is
* {@link Date }
*
*/
public void setServicedDate(Date value) {
this.servicedDate = value;
}
/**
* Gets the value of the servicedPeriod property.
*
* @return
* possible object is
* {@link Period }
*
*/
public Period getServicedPeriod() {
return servicedPeriod;
}
/**
* Sets the value of the servicedPeriod property.
*
* @param value
* allowed object is
* {@link Period }
*
*/
public void setServicedPeriod(Period value) {
this.servicedPeriod = value;
}
/**
* Gets the value of the benefitCategory property.
*
* @return
* possible object is
* {@link Coding }
*
*/
public Coding getBenefitCategory() {
return benefitCategory;
}
/**
* Sets the value of the benefitCategory property.
*
* @param value
* allowed object is
* {@link Coding }
*
*/
public void setBenefitCategory(Coding value) {
this.benefitCategory = value;
}
/**
* Gets the value of the benefitSubCategory property.
*
* @return
* possible object is
* {@link Coding }
*
*/
public Coding getBenefitSubCategory() {
return benefitSubCategory;
}
/**
* Sets the value of the benefitSubCategory property.
*
* @param value
* allowed object is
* {@link Coding }
*
*/
public void setBenefitSubCategory(Coding value) {
this.benefitSubCategory = value;
}
public EligibilityRequest withIdentifier(Identifier... values) {
if (values!= null) {
for (Identifier value: values) {
getIdentifier().add(value);
}
}
return this;
}
public EligibilityRequest withIdentifier(Collection values) {
if (values!= null) {
getIdentifier().addAll(values);
}
return this;
}
public EligibilityRequest withRuleset(Coding value) {
setRuleset(value);
return this;
}
public EligibilityRequest withOriginalRuleset(Coding value) {
setOriginalRuleset(value);
return this;
}
public EligibilityRequest withCreated(DateTime value) {
setCreated(value);
return this;
}
public EligibilityRequest withTargetIdentifier(Identifier value) {
setTargetIdentifier(value);
return this;
}
public EligibilityRequest withTargetReference(Reference value) {
setTargetReference(value);
return this;
}
public EligibilityRequest withProviderIdentifier(Identifier value) {
setProviderIdentifier(value);
return this;
}
public EligibilityRequest withProviderReference(Reference value) {
setProviderReference(value);
return this;
}
public EligibilityRequest withOrganizationIdentifier(Identifier value) {
setOrganizationIdentifier(value);
return this;
}
public EligibilityRequest withOrganizationReference(Reference value) {
setOrganizationReference(value);
return this;
}
public EligibilityRequest withPriority(Coding value) {
setPriority(value);
return this;
}
public EligibilityRequest withEntererIdentifier(Identifier value) {
setEntererIdentifier(value);
return this;
}
public EligibilityRequest withEntererReference(Reference value) {
setEntererReference(value);
return this;
}
public EligibilityRequest withFacilityIdentifier(Identifier value) {
setFacilityIdentifier(value);
return this;
}
public EligibilityRequest withFacilityReference(Reference value) {
setFacilityReference(value);
return this;
}
public EligibilityRequest withPatientIdentifier(Identifier value) {
setPatientIdentifier(value);
return this;
}
public EligibilityRequest withPatientReference(Reference value) {
setPatientReference(value);
return this;
}
public EligibilityRequest withCoverageIdentifier(Identifier value) {
setCoverageIdentifier(value);
return this;
}
public EligibilityRequest withCoverageReference(Reference value) {
setCoverageReference(value);
return this;
}
public EligibilityRequest withBusinessArrangement(org.hl7.fhir.String value) {
setBusinessArrangement(value);
return this;
}
public EligibilityRequest withServicedDate(Date value) {
setServicedDate(value);
return this;
}
public EligibilityRequest withServicedPeriod(Period value) {
setServicedPeriod(value);
return this;
}
public EligibilityRequest withBenefitCategory(Coding value) {
setBenefitCategory(value);
return this;
}
public EligibilityRequest withBenefitSubCategory(Coding value) {
setBenefitSubCategory(value);
return this;
}
@Override
public EligibilityRequest withText(Narrative value) {
setText(value);
return this;
}
@Override
public EligibilityRequest withContained(ResourceContainer... values) {
if (values!= null) {
for (ResourceContainer value: values) {
getContained().add(value);
}
}
return this;
}
@Override
public EligibilityRequest withContained(Collection values) {
if (values!= null) {
getContained().addAll(values);
}
return this;
}
@Override
public EligibilityRequest withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public EligibilityRequest withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public EligibilityRequest withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public EligibilityRequest withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public EligibilityRequest withId(Id value) {
setId(value);
return this;
}
@Override
public EligibilityRequest withMeta(Meta value) {
setMeta(value);
return this;
}
@Override
public EligibilityRequest withImplicitRules(Uri value) {
setImplicitRules(value);
return this;
}
@Override
public EligibilityRequest withLanguage(Code value) {
setLanguage(value);
return this;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof EligibilityRequest)) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final EligibilityRequest that = ((EligibilityRequest) object);
{
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)) {
return false;
}
}
{
Coding lhsRuleset;
lhsRuleset = this.getRuleset();
Coding rhsRuleset;
rhsRuleset = that.getRuleset();
if (!strategy.equals(LocatorUtils.property(thisLocator, "ruleset", lhsRuleset), LocatorUtils.property(thatLocator, "ruleset", rhsRuleset), lhsRuleset, rhsRuleset)) {
return false;
}
}
{
Coding lhsOriginalRuleset;
lhsOriginalRuleset = this.getOriginalRuleset();
Coding rhsOriginalRuleset;
rhsOriginalRuleset = that.getOriginalRuleset();
if (!strategy.equals(LocatorUtils.property(thisLocator, "originalRuleset", lhsOriginalRuleset), LocatorUtils.property(thatLocator, "originalRuleset", rhsOriginalRuleset), lhsOriginalRuleset, rhsOriginalRuleset)) {
return false;
}
}
{
DateTime lhsCreated;
lhsCreated = this.getCreated();
DateTime rhsCreated;
rhsCreated = that.getCreated();
if (!strategy.equals(LocatorUtils.property(thisLocator, "created", lhsCreated), LocatorUtils.property(thatLocator, "created", rhsCreated), lhsCreated, rhsCreated)) {
return false;
}
}
{
Identifier lhsTargetIdentifier;
lhsTargetIdentifier = this.getTargetIdentifier();
Identifier rhsTargetIdentifier;
rhsTargetIdentifier = that.getTargetIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "targetIdentifier", lhsTargetIdentifier), LocatorUtils.property(thatLocator, "targetIdentifier", rhsTargetIdentifier), lhsTargetIdentifier, rhsTargetIdentifier)) {
return false;
}
}
{
Reference lhsTargetReference;
lhsTargetReference = this.getTargetReference();
Reference rhsTargetReference;
rhsTargetReference = that.getTargetReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "targetReference", lhsTargetReference), LocatorUtils.property(thatLocator, "targetReference", rhsTargetReference), lhsTargetReference, rhsTargetReference)) {
return false;
}
}
{
Identifier lhsProviderIdentifier;
lhsProviderIdentifier = this.getProviderIdentifier();
Identifier rhsProviderIdentifier;
rhsProviderIdentifier = that.getProviderIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "providerIdentifier", lhsProviderIdentifier), LocatorUtils.property(thatLocator, "providerIdentifier", rhsProviderIdentifier), lhsProviderIdentifier, rhsProviderIdentifier)) {
return false;
}
}
{
Reference lhsProviderReference;
lhsProviderReference = this.getProviderReference();
Reference rhsProviderReference;
rhsProviderReference = that.getProviderReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "providerReference", lhsProviderReference), LocatorUtils.property(thatLocator, "providerReference", rhsProviderReference), lhsProviderReference, rhsProviderReference)) {
return false;
}
}
{
Identifier lhsOrganizationIdentifier;
lhsOrganizationIdentifier = this.getOrganizationIdentifier();
Identifier rhsOrganizationIdentifier;
rhsOrganizationIdentifier = that.getOrganizationIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "organizationIdentifier", lhsOrganizationIdentifier), LocatorUtils.property(thatLocator, "organizationIdentifier", rhsOrganizationIdentifier), lhsOrganizationIdentifier, rhsOrganizationIdentifier)) {
return false;
}
}
{
Reference lhsOrganizationReference;
lhsOrganizationReference = this.getOrganizationReference();
Reference rhsOrganizationReference;
rhsOrganizationReference = that.getOrganizationReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "organizationReference", lhsOrganizationReference), LocatorUtils.property(thatLocator, "organizationReference", rhsOrganizationReference), lhsOrganizationReference, rhsOrganizationReference)) {
return false;
}
}
{
Coding lhsPriority;
lhsPriority = this.getPriority();
Coding rhsPriority;
rhsPriority = that.getPriority();
if (!strategy.equals(LocatorUtils.property(thisLocator, "priority", lhsPriority), LocatorUtils.property(thatLocator, "priority", rhsPriority), lhsPriority, rhsPriority)) {
return false;
}
}
{
Identifier lhsEntererIdentifier;
lhsEntererIdentifier = this.getEntererIdentifier();
Identifier rhsEntererIdentifier;
rhsEntererIdentifier = that.getEntererIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "entererIdentifier", lhsEntererIdentifier), LocatorUtils.property(thatLocator, "entererIdentifier", rhsEntererIdentifier), lhsEntererIdentifier, rhsEntererIdentifier)) {
return false;
}
}
{
Reference lhsEntererReference;
lhsEntererReference = this.getEntererReference();
Reference rhsEntererReference;
rhsEntererReference = that.getEntererReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "entererReference", lhsEntererReference), LocatorUtils.property(thatLocator, "entererReference", rhsEntererReference), lhsEntererReference, rhsEntererReference)) {
return false;
}
}
{
Identifier lhsFacilityIdentifier;
lhsFacilityIdentifier = this.getFacilityIdentifier();
Identifier rhsFacilityIdentifier;
rhsFacilityIdentifier = that.getFacilityIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "facilityIdentifier", lhsFacilityIdentifier), LocatorUtils.property(thatLocator, "facilityIdentifier", rhsFacilityIdentifier), lhsFacilityIdentifier, rhsFacilityIdentifier)) {
return false;
}
}
{
Reference lhsFacilityReference;
lhsFacilityReference = this.getFacilityReference();
Reference rhsFacilityReference;
rhsFacilityReference = that.getFacilityReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "facilityReference", lhsFacilityReference), LocatorUtils.property(thatLocator, "facilityReference", rhsFacilityReference), lhsFacilityReference, rhsFacilityReference)) {
return false;
}
}
{
Identifier lhsPatientIdentifier;
lhsPatientIdentifier = this.getPatientIdentifier();
Identifier rhsPatientIdentifier;
rhsPatientIdentifier = that.getPatientIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "patientIdentifier", lhsPatientIdentifier), LocatorUtils.property(thatLocator, "patientIdentifier", rhsPatientIdentifier), lhsPatientIdentifier, rhsPatientIdentifier)) {
return false;
}
}
{
Reference lhsPatientReference;
lhsPatientReference = this.getPatientReference();
Reference rhsPatientReference;
rhsPatientReference = that.getPatientReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "patientReference", lhsPatientReference), LocatorUtils.property(thatLocator, "patientReference", rhsPatientReference), lhsPatientReference, rhsPatientReference)) {
return false;
}
}
{
Identifier lhsCoverageIdentifier;
lhsCoverageIdentifier = this.getCoverageIdentifier();
Identifier rhsCoverageIdentifier;
rhsCoverageIdentifier = that.getCoverageIdentifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "coverageIdentifier", lhsCoverageIdentifier), LocatorUtils.property(thatLocator, "coverageIdentifier", rhsCoverageIdentifier), lhsCoverageIdentifier, rhsCoverageIdentifier)) {
return false;
}
}
{
Reference lhsCoverageReference;
lhsCoverageReference = this.getCoverageReference();
Reference rhsCoverageReference;
rhsCoverageReference = that.getCoverageReference();
if (!strategy.equals(LocatorUtils.property(thisLocator, "coverageReference", lhsCoverageReference), LocatorUtils.property(thatLocator, "coverageReference", rhsCoverageReference), lhsCoverageReference, rhsCoverageReference)) {
return false;
}
}
{
org.hl7.fhir.String lhsBusinessArrangement;
lhsBusinessArrangement = this.getBusinessArrangement();
org.hl7.fhir.String rhsBusinessArrangement;
rhsBusinessArrangement = that.getBusinessArrangement();
if (!strategy.equals(LocatorUtils.property(thisLocator, "businessArrangement", lhsBusinessArrangement), LocatorUtils.property(thatLocator, "businessArrangement", rhsBusinessArrangement), lhsBusinessArrangement, rhsBusinessArrangement)) {
return false;
}
}
{
Date lhsServicedDate;
lhsServicedDate = this.getServicedDate();
Date rhsServicedDate;
rhsServicedDate = that.getServicedDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "servicedDate", lhsServicedDate), LocatorUtils.property(thatLocator, "servicedDate", rhsServicedDate), lhsServicedDate, rhsServicedDate)) {
return false;
}
}
{
Period lhsServicedPeriod;
lhsServicedPeriod = this.getServicedPeriod();
Period rhsServicedPeriod;
rhsServicedPeriod = that.getServicedPeriod();
if (!strategy.equals(LocatorUtils.property(thisLocator, "servicedPeriod", lhsServicedPeriod), LocatorUtils.property(thatLocator, "servicedPeriod", rhsServicedPeriod), lhsServicedPeriod, rhsServicedPeriod)) {
return false;
}
}
{
Coding lhsBenefitCategory;
lhsBenefitCategory = this.getBenefitCategory();
Coding rhsBenefitCategory;
rhsBenefitCategory = that.getBenefitCategory();
if (!strategy.equals(LocatorUtils.property(thisLocator, "benefitCategory", lhsBenefitCategory), LocatorUtils.property(thatLocator, "benefitCategory", rhsBenefitCategory), lhsBenefitCategory, rhsBenefitCategory)) {
return false;
}
}
{
Coding lhsBenefitSubCategory;
lhsBenefitSubCategory = this.getBenefitSubCategory();
Coding rhsBenefitSubCategory;
rhsBenefitSubCategory = that.getBenefitSubCategory();
if (!strategy.equals(LocatorUtils.property(thisLocator, "benefitSubCategory", lhsBenefitSubCategory), LocatorUtils.property(thatLocator, "benefitSubCategory", rhsBenefitSubCategory), lhsBenefitSubCategory, rhsBenefitSubCategory)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = super.hashCode(locator, strategy);
{
List theIdentifier;
theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier);
}
{
Coding theRuleset;
theRuleset = this.getRuleset();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ruleset", theRuleset), currentHashCode, theRuleset);
}
{
Coding theOriginalRuleset;
theOriginalRuleset = this.getOriginalRuleset();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "originalRuleset", theOriginalRuleset), currentHashCode, theOriginalRuleset);
}
{
DateTime theCreated;
theCreated = this.getCreated();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "created", theCreated), currentHashCode, theCreated);
}
{
Identifier theTargetIdentifier;
theTargetIdentifier = this.getTargetIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetIdentifier", theTargetIdentifier), currentHashCode, theTargetIdentifier);
}
{
Reference theTargetReference;
theTargetReference = this.getTargetReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetReference", theTargetReference), currentHashCode, theTargetReference);
}
{
Identifier theProviderIdentifier;
theProviderIdentifier = this.getProviderIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "providerIdentifier", theProviderIdentifier), currentHashCode, theProviderIdentifier);
}
{
Reference theProviderReference;
theProviderReference = this.getProviderReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "providerReference", theProviderReference), currentHashCode, theProviderReference);
}
{
Identifier theOrganizationIdentifier;
theOrganizationIdentifier = this.getOrganizationIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "organizationIdentifier", theOrganizationIdentifier), currentHashCode, theOrganizationIdentifier);
}
{
Reference theOrganizationReference;
theOrganizationReference = this.getOrganizationReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "organizationReference", theOrganizationReference), currentHashCode, theOrganizationReference);
}
{
Coding thePriority;
thePriority = this.getPriority();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "priority", thePriority), currentHashCode, thePriority);
}
{
Identifier theEntererIdentifier;
theEntererIdentifier = this.getEntererIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "entererIdentifier", theEntererIdentifier), currentHashCode, theEntererIdentifier);
}
{
Reference theEntererReference;
theEntererReference = this.getEntererReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "entererReference", theEntererReference), currentHashCode, theEntererReference);
}
{
Identifier theFacilityIdentifier;
theFacilityIdentifier = this.getFacilityIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "facilityIdentifier", theFacilityIdentifier), currentHashCode, theFacilityIdentifier);
}
{
Reference theFacilityReference;
theFacilityReference = this.getFacilityReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "facilityReference", theFacilityReference), currentHashCode, theFacilityReference);
}
{
Identifier thePatientIdentifier;
thePatientIdentifier = this.getPatientIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patientIdentifier", thePatientIdentifier), currentHashCode, thePatientIdentifier);
}
{
Reference thePatientReference;
thePatientReference = this.getPatientReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patientReference", thePatientReference), currentHashCode, thePatientReference);
}
{
Identifier theCoverageIdentifier;
theCoverageIdentifier = this.getCoverageIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "coverageIdentifier", theCoverageIdentifier), currentHashCode, theCoverageIdentifier);
}
{
Reference theCoverageReference;
theCoverageReference = this.getCoverageReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "coverageReference", theCoverageReference), currentHashCode, theCoverageReference);
}
{
org.hl7.fhir.String theBusinessArrangement;
theBusinessArrangement = this.getBusinessArrangement();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "businessArrangement", theBusinessArrangement), currentHashCode, theBusinessArrangement);
}
{
Date theServicedDate;
theServicedDate = this.getServicedDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "servicedDate", theServicedDate), currentHashCode, theServicedDate);
}
{
Period theServicedPeriod;
theServicedPeriod = this.getServicedPeriod();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "servicedPeriod", theServicedPeriod), currentHashCode, theServicedPeriod);
}
{
Coding theBenefitCategory;
theBenefitCategory = this.getBenefitCategory();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "benefitCategory", theBenefitCategory), currentHashCode, theBenefitCategory);
}
{
Coding theBenefitSubCategory;
theBenefitSubCategory = this.getBenefitSubCategory();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "benefitSubCategory", theBenefitSubCategory), currentHashCode, theBenefitSubCategory);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public java.lang.String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
super.appendFields(locator, buffer, strategy);
{
List theIdentifier;
theIdentifier = (((this.identifier!= null)&&(!this.identifier.isEmpty()))?this.getIdentifier():null);
strategy.appendField(locator, this, "identifier", buffer, theIdentifier);
}
{
Coding theRuleset;
theRuleset = this.getRuleset();
strategy.appendField(locator, this, "ruleset", buffer, theRuleset);
}
{
Coding theOriginalRuleset;
theOriginalRuleset = this.getOriginalRuleset();
strategy.appendField(locator, this, "originalRuleset", buffer, theOriginalRuleset);
}
{
DateTime theCreated;
theCreated = this.getCreated();
strategy.appendField(locator, this, "created", buffer, theCreated);
}
{
Identifier theTargetIdentifier;
theTargetIdentifier = this.getTargetIdentifier();
strategy.appendField(locator, this, "targetIdentifier", buffer, theTargetIdentifier);
}
{
Reference theTargetReference;
theTargetReference = this.getTargetReference();
strategy.appendField(locator, this, "targetReference", buffer, theTargetReference);
}
{
Identifier theProviderIdentifier;
theProviderIdentifier = this.getProviderIdentifier();
strategy.appendField(locator, this, "providerIdentifier", buffer, theProviderIdentifier);
}
{
Reference theProviderReference;
theProviderReference = this.getProviderReference();
strategy.appendField(locator, this, "providerReference", buffer, theProviderReference);
}
{
Identifier theOrganizationIdentifier;
theOrganizationIdentifier = this.getOrganizationIdentifier();
strategy.appendField(locator, this, "organizationIdentifier", buffer, theOrganizationIdentifier);
}
{
Reference theOrganizationReference;
theOrganizationReference = this.getOrganizationReference();
strategy.appendField(locator, this, "organizationReference", buffer, theOrganizationReference);
}
{
Coding thePriority;
thePriority = this.getPriority();
strategy.appendField(locator, this, "priority", buffer, thePriority);
}
{
Identifier theEntererIdentifier;
theEntererIdentifier = this.getEntererIdentifier();
strategy.appendField(locator, this, "entererIdentifier", buffer, theEntererIdentifier);
}
{
Reference theEntererReference;
theEntererReference = this.getEntererReference();
strategy.appendField(locator, this, "entererReference", buffer, theEntererReference);
}
{
Identifier theFacilityIdentifier;
theFacilityIdentifier = this.getFacilityIdentifier();
strategy.appendField(locator, this, "facilityIdentifier", buffer, theFacilityIdentifier);
}
{
Reference theFacilityReference;
theFacilityReference = this.getFacilityReference();
strategy.appendField(locator, this, "facilityReference", buffer, theFacilityReference);
}
{
Identifier thePatientIdentifier;
thePatientIdentifier = this.getPatientIdentifier();
strategy.appendField(locator, this, "patientIdentifier", buffer, thePatientIdentifier);
}
{
Reference thePatientReference;
thePatientReference = this.getPatientReference();
strategy.appendField(locator, this, "patientReference", buffer, thePatientReference);
}
{
Identifier theCoverageIdentifier;
theCoverageIdentifier = this.getCoverageIdentifier();
strategy.appendField(locator, this, "coverageIdentifier", buffer, theCoverageIdentifier);
}
{
Reference theCoverageReference;
theCoverageReference = this.getCoverageReference();
strategy.appendField(locator, this, "coverageReference", buffer, theCoverageReference);
}
{
org.hl7.fhir.String theBusinessArrangement;
theBusinessArrangement = this.getBusinessArrangement();
strategy.appendField(locator, this, "businessArrangement", buffer, theBusinessArrangement);
}
{
Date theServicedDate;
theServicedDate = this.getServicedDate();
strategy.appendField(locator, this, "servicedDate", buffer, theServicedDate);
}
{
Period theServicedPeriod;
theServicedPeriod = this.getServicedPeriod();
strategy.appendField(locator, this, "servicedPeriod", buffer, theServicedPeriod);
}
{
Coding theBenefitCategory;
theBenefitCategory = this.getBenefitCategory();
strategy.appendField(locator, this, "benefitCategory", buffer, theBenefitCategory);
}
{
Coding theBenefitSubCategory;
theBenefitSubCategory = this.getBenefitSubCategory();
strategy.appendField(locator, this, "benefitSubCategory", buffer, theBenefitSubCategory);
}
return buffer;
}
}