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

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

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.15.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.08.16 at 09:36:55 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;


/**
 * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
 * 
 * 

Java class for Claim.Coverage complex type. * *

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

 * <complexType name="Claim.Coverage">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="sequence" type="{http://hl7.org/fhir}positiveInt"/>
 *         <element name="focal" type="{http://hl7.org/fhir}boolean"/>
 *         <choice>
 *           <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"/>
 *         <element name="preAuthRef" type="{http://hl7.org/fhir}string" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="claimResponse" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="originalRuleset" type="{http://hl7.org/fhir}Coding" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Claim.Coverage", propOrder = { "sequence", "focal", "coverageIdentifier", "coverageReference", "businessArrangement", "preAuthRef", "claimResponse", "originalRuleset" }) public class ClaimCoverage extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected PositiveInt sequence; @XmlElement(required = true) protected Boolean focal; protected Identifier coverageIdentifier; protected Reference coverageReference; protected org.hl7.fhir.String businessArrangement; protected List preAuthRef; protected Reference claimResponse; protected Coding originalRuleset; /** * 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 focal property. * * @return * possible object is * {@link Boolean } * */ public Boolean getFocal() { return focal; } /** * Sets the value of the focal property. * * @param value * allowed object is * {@link Boolean } * */ public void setFocal(Boolean value) { this.focal = 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 preAuthRef 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 preAuthRef property. * *

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

     *    getPreAuthRef().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link org.hl7.fhir.String } * * */ public List getPreAuthRef() { if (preAuthRef == null) { preAuthRef = new ArrayList(); } return this.preAuthRef; } /** * Gets the value of the claimResponse property. * * @return * possible object is * {@link Reference } * */ public Reference getClaimResponse() { return claimResponse; } /** * Sets the value of the claimResponse property. * * @param value * allowed object is * {@link Reference } * */ public void setClaimResponse(Reference value) { this.claimResponse = 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; } public ClaimCoverage withSequence(PositiveInt value) { setSequence(value); return this; } public ClaimCoverage withFocal(Boolean value) { setFocal(value); return this; } public ClaimCoverage withCoverageIdentifier(Identifier value) { setCoverageIdentifier(value); return this; } public ClaimCoverage withCoverageReference(Reference value) { setCoverageReference(value); return this; } public ClaimCoverage withBusinessArrangement(org.hl7.fhir.String value) { setBusinessArrangement(value); return this; } public ClaimCoverage withPreAuthRef(org.hl7.fhir.String... values) { if (values!= null) { for (org.hl7.fhir.String value: values) { getPreAuthRef().add(value); } } return this; } public ClaimCoverage withPreAuthRef(Collection values) { if (values!= null) { getPreAuthRef().addAll(values); } return this; } public ClaimCoverage withClaimResponse(Reference value) { setClaimResponse(value); return this; } public ClaimCoverage withOriginalRuleset(Coding value) { setOriginalRuleset(value); return this; } @Override public ClaimCoverage withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ClaimCoverage withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ClaimCoverage withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ClaimCoverage withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ClaimCoverage 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 ClaimCoverage that = ((ClaimCoverage) object); { 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; } } { Boolean lhsFocal; lhsFocal = this.getFocal(); Boolean rhsFocal; rhsFocal = that.getFocal(); if (!strategy.equals(LocatorUtils.property(thisLocator, "focal", lhsFocal), LocatorUtils.property(thatLocator, "focal", rhsFocal), lhsFocal, rhsFocal, (this.focal!= null), (that.focal!= null))) { 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, (this.coverageIdentifier!= null), (that.coverageIdentifier!= null))) { 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, (this.coverageReference!= null), (that.coverageReference!= null))) { 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, (this.businessArrangement!= null), (that.businessArrangement!= null))) { return false; } } { List lhsPreAuthRef; lhsPreAuthRef = (((this.preAuthRef!= null)&&(!this.preAuthRef.isEmpty()))?this.getPreAuthRef():null); List rhsPreAuthRef; rhsPreAuthRef = (((that.preAuthRef!= null)&&(!that.preAuthRef.isEmpty()))?that.getPreAuthRef():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "preAuthRef", lhsPreAuthRef), LocatorUtils.property(thatLocator, "preAuthRef", rhsPreAuthRef), lhsPreAuthRef, rhsPreAuthRef, ((this.preAuthRef!= null)&&(!this.preAuthRef.isEmpty())), ((that.preAuthRef!= null)&&(!that.preAuthRef.isEmpty())))) { return false; } } { Reference lhsClaimResponse; lhsClaimResponse = this.getClaimResponse(); Reference rhsClaimResponse; rhsClaimResponse = that.getClaimResponse(); if (!strategy.equals(LocatorUtils.property(thisLocator, "claimResponse", lhsClaimResponse), LocatorUtils.property(thatLocator, "claimResponse", rhsClaimResponse), lhsClaimResponse, rhsClaimResponse, (this.claimResponse!= null), (that.claimResponse!= null))) { 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, (this.originalRuleset!= null), (that.originalRuleset!= 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); { PositiveInt theSequence; theSequence = this.getSequence(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sequence", theSequence), currentHashCode, theSequence, (this.sequence!= null)); } { Boolean theFocal; theFocal = this.getFocal(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "focal", theFocal), currentHashCode, theFocal, (this.focal!= null)); } { Identifier theCoverageIdentifier; theCoverageIdentifier = this.getCoverageIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "coverageIdentifier", theCoverageIdentifier), currentHashCode, theCoverageIdentifier, (this.coverageIdentifier!= null)); } { Reference theCoverageReference; theCoverageReference = this.getCoverageReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "coverageReference", theCoverageReference), currentHashCode, theCoverageReference, (this.coverageReference!= null)); } { org.hl7.fhir.String theBusinessArrangement; theBusinessArrangement = this.getBusinessArrangement(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "businessArrangement", theBusinessArrangement), currentHashCode, theBusinessArrangement, (this.businessArrangement!= null)); } { List thePreAuthRef; thePreAuthRef = (((this.preAuthRef!= null)&&(!this.preAuthRef.isEmpty()))?this.getPreAuthRef():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "preAuthRef", thePreAuthRef), currentHashCode, thePreAuthRef, ((this.preAuthRef!= null)&&(!this.preAuthRef.isEmpty()))); } { Reference theClaimResponse; theClaimResponse = this.getClaimResponse(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "claimResponse", theClaimResponse), currentHashCode, theClaimResponse, (this.claimResponse!= null)); } { Coding theOriginalRuleset; theOriginalRuleset = this.getOriginalRuleset(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "originalRuleset", theOriginalRuleset), currentHashCode, theOriginalRuleset, (this.originalRuleset!= 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); { PositiveInt theSequence; theSequence = this.getSequence(); strategy.appendField(locator, this, "sequence", buffer, theSequence, (this.sequence!= null)); } { Boolean theFocal; theFocal = this.getFocal(); strategy.appendField(locator, this, "focal", buffer, theFocal, (this.focal!= null)); } { Identifier theCoverageIdentifier; theCoverageIdentifier = this.getCoverageIdentifier(); strategy.appendField(locator, this, "coverageIdentifier", buffer, theCoverageIdentifier, (this.coverageIdentifier!= null)); } { Reference theCoverageReference; theCoverageReference = this.getCoverageReference(); strategy.appendField(locator, this, "coverageReference", buffer, theCoverageReference, (this.coverageReference!= null)); } { org.hl7.fhir.String theBusinessArrangement; theBusinessArrangement = this.getBusinessArrangement(); strategy.appendField(locator, this, "businessArrangement", buffer, theBusinessArrangement, (this.businessArrangement!= null)); } { List thePreAuthRef; thePreAuthRef = (((this.preAuthRef!= null)&&(!this.preAuthRef.isEmpty()))?this.getPreAuthRef():null); strategy.appendField(locator, this, "preAuthRef", buffer, thePreAuthRef, ((this.preAuthRef!= null)&&(!this.preAuthRef.isEmpty()))); } { Reference theClaimResponse; theClaimResponse = this.getClaimResponse(); strategy.appendField(locator, this, "claimResponse", buffer, theClaimResponse, (this.claimResponse!= null)); } { Coding theOriginalRuleset; theOriginalRuleset = this.getOriginalRuleset(); strategy.appendField(locator, this, "originalRuleset", buffer, theOriginalRuleset, (this.originalRuleset!= null)); } return buffer; } public void setPreAuthRef(List value) { this.preAuthRef = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy