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

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

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.22.0
Show newest version
//
// 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.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
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;


/**
 * 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.Procedure complex type. * *

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

 * <complexType name="Claim.Procedure">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="sequence" type="{http://hl7.org/fhir}positiveInt"/>
 *         <element name="date" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <choice>
 *           <element name="procedureCoding" type="{http://hl7.org/fhir}Coding"/>
 *           <element name="procedureReference" type="{http://hl7.org/fhir}Reference"/>
 *         </choice>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Claim.Procedure", propOrder = { "sequence", "date", "procedureCoding", "procedureReference" }) public class ClaimProcedure extends BackboneElement implements Equals, HashCode, ToString { @XmlElement(required = true) protected PositiveInt sequence; protected DateTime date; protected Coding procedureCoding; protected Reference procedureReference; /** * 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 date property. * * @return * possible object is * {@link DateTime } * */ public DateTime getDate() { return date; } /** * Sets the value of the date property. * * @param value * allowed object is * {@link DateTime } * */ public void setDate(DateTime value) { this.date = value; } /** * Gets the value of the procedureCoding property. * * @return * possible object is * {@link Coding } * */ public Coding getProcedureCoding() { return procedureCoding; } /** * Sets the value of the procedureCoding property. * * @param value * allowed object is * {@link Coding } * */ public void setProcedureCoding(Coding value) { this.procedureCoding = value; } /** * Gets the value of the procedureReference property. * * @return * possible object is * {@link Reference } * */ public Reference getProcedureReference() { return procedureReference; } /** * Sets the value of the procedureReference property. * * @param value * allowed object is * {@link Reference } * */ public void setProcedureReference(Reference value) { this.procedureReference = value; } public ClaimProcedure withSequence(PositiveInt value) { setSequence(value); return this; } public ClaimProcedure withDate(DateTime value) { setDate(value); return this; } public ClaimProcedure withProcedureCoding(Coding value) { setProcedureCoding(value); return this; } public ClaimProcedure withProcedureReference(Reference value) { setProcedureReference(value); return this; } @Override public ClaimProcedure withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ClaimProcedure withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ClaimProcedure withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ClaimProcedure withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ClaimProcedure withId(java.lang.String value) { setId(value); return this; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ClaimProcedure)) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final ClaimProcedure that = ((ClaimProcedure) 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)) { return false; } } { DateTime lhsDate; lhsDate = this.getDate(); DateTime rhsDate; rhsDate = that.getDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "date", lhsDate), LocatorUtils.property(thatLocator, "date", rhsDate), lhsDate, rhsDate)) { return false; } } { Coding lhsProcedureCoding; lhsProcedureCoding = this.getProcedureCoding(); Coding rhsProcedureCoding; rhsProcedureCoding = that.getProcedureCoding(); if (!strategy.equals(LocatorUtils.property(thisLocator, "procedureCoding", lhsProcedureCoding), LocatorUtils.property(thatLocator, "procedureCoding", rhsProcedureCoding), lhsProcedureCoding, rhsProcedureCoding)) { return false; } } { Reference lhsProcedureReference; lhsProcedureReference = this.getProcedureReference(); Reference rhsProcedureReference; rhsProcedureReference = that.getProcedureReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "procedureReference", lhsProcedureReference), LocatorUtils.property(thatLocator, "procedureReference", rhsProcedureReference), lhsProcedureReference, rhsProcedureReference)) { 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); { PositiveInt theSequence; theSequence = this.getSequence(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sequence", theSequence), currentHashCode, theSequence); } { DateTime theDate; theDate = this.getDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate); } { Coding theProcedureCoding; theProcedureCoding = this.getProcedureCoding(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "procedureCoding", theProcedureCoding), currentHashCode, theProcedureCoding); } { Reference theProcedureReference; theProcedureReference = this.getProcedureReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "procedureReference", theProcedureReference), currentHashCode, theProcedureReference); } 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); { PositiveInt theSequence; theSequence = this.getSequence(); strategy.appendField(locator, this, "sequence", buffer, theSequence); } { DateTime theDate; theDate = this.getDate(); strategy.appendField(locator, this, "date", buffer, theDate); } { Coding theProcedureCoding; theProcedureCoding = this.getProcedureCoding(); strategy.appendField(locator, this, "procedureCoding", buffer, theProcedureCoding); } { Reference theProcedureReference; theProcedureReference = this.getProcedureReference(); strategy.appendField(locator, this, "procedureReference", buffer, theProcedureReference); } return buffer; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy