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

org.hl7.fhir.AppointmentResponse 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 JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.4.0-b180830.0438 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2023.10.25 at 10:12:25 AM MDT 
//


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.XmlElement;
import javax.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 AppointmentResponse complex type. * *

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

 * <complexType name="AppointmentResponse">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="appointment" type="{http://hl7.org/fhir}Reference"/>
 *         <element name="start" type="{http://hl7.org/fhir}instant" minOccurs="0"/>
 *         <element name="end" type="{http://hl7.org/fhir}instant" minOccurs="0"/>
 *         <element name="participantType" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="actor" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="participantStatus" type="{http://hl7.org/fhir}code"/>
 *         <element name="comment" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AppointmentResponse", propOrder = { "identifier", "appointment", "start", "end", "participantType", "actor", "participantStatus", "comment" }) public class AppointmentResponse extends DomainResource implements Equals2, HashCode2, ToString2 { protected List identifier; @XmlElement(required = true) protected Reference appointment; protected Instant start; protected Instant end; protected List participantType; protected Reference actor; @XmlElement(required = true) protected Code participantStatus; protected org.hl7.fhir.String comment; /** * 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 appointment property. * * @return * possible object is * {@link Reference } * */ public Reference getAppointment() { return appointment; } /** * Sets the value of the appointment property. * * @param value * allowed object is * {@link Reference } * */ public void setAppointment(Reference value) { this.appointment = value; } /** * Gets the value of the start property. * * @return * possible object is * {@link Instant } * */ public Instant getStart() { return start; } /** * Sets the value of the start property. * * @param value * allowed object is * {@link Instant } * */ public void setStart(Instant value) { this.start = value; } /** * Gets the value of the end property. * * @return * possible object is * {@link Instant } * */ public Instant getEnd() { return end; } /** * Sets the value of the end property. * * @param value * allowed object is * {@link Instant } * */ public void setEnd(Instant value) { this.end = value; } /** * Gets the value of the participantType 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 participantType property. * *

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

     *    getParticipantType().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getParticipantType() { if (participantType == null) { participantType = new ArrayList(); } return this.participantType; } /** * Gets the value of the actor property. * * @return * possible object is * {@link Reference } * */ public Reference getActor() { return actor; } /** * Sets the value of the actor property. * * @param value * allowed object is * {@link Reference } * */ public void setActor(Reference value) { this.actor = value; } /** * Gets the value of the participantStatus property. * * @return * possible object is * {@link Code } * */ public Code getParticipantStatus() { return participantStatus; } /** * Sets the value of the participantStatus property. * * @param value * allowed object is * {@link Code } * */ public void setParticipantStatus(Code value) { this.participantStatus = value; } /** * Gets the value of the comment property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getComment() { return comment; } /** * Sets the value of the comment property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setComment(org.hl7.fhir.String value) { this.comment = value; } public AppointmentResponse withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public AppointmentResponse withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public AppointmentResponse withAppointment(Reference value) { setAppointment(value); return this; } public AppointmentResponse withStart(Instant value) { setStart(value); return this; } public AppointmentResponse withEnd(Instant value) { setEnd(value); return this; } public AppointmentResponse withParticipantType(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getParticipantType().add(value); } } return this; } public AppointmentResponse withParticipantType(Collection values) { if (values!= null) { getParticipantType().addAll(values); } return this; } public AppointmentResponse withActor(Reference value) { setActor(value); return this; } public AppointmentResponse withParticipantStatus(Code value) { setParticipantStatus(value); return this; } public AppointmentResponse withComment(org.hl7.fhir.String value) { setComment(value); return this; } @Override public AppointmentResponse withText(Narrative value) { setText(value); return this; } @Override public AppointmentResponse withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public AppointmentResponse withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public AppointmentResponse withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public AppointmentResponse withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public AppointmentResponse withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public AppointmentResponse withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public AppointmentResponse withId(Id value) { setId(value); return this; } @Override public AppointmentResponse withMeta(Meta value) { setMeta(value); return this; } @Override public AppointmentResponse withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public AppointmentResponse 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 AppointmentResponse that = ((AppointmentResponse) 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, ((this.identifier!= null)&&(!this.identifier.isEmpty())), ((that.identifier!= null)&&(!that.identifier.isEmpty())))) { return false; } } { Reference lhsAppointment; lhsAppointment = this.getAppointment(); Reference rhsAppointment; rhsAppointment = that.getAppointment(); if (!strategy.equals(LocatorUtils.property(thisLocator, "appointment", lhsAppointment), LocatorUtils.property(thatLocator, "appointment", rhsAppointment), lhsAppointment, rhsAppointment, (this.appointment!= null), (that.appointment!= null))) { return false; } } { Instant lhsStart; lhsStart = this.getStart(); Instant rhsStart; rhsStart = that.getStart(); if (!strategy.equals(LocatorUtils.property(thisLocator, "start", lhsStart), LocatorUtils.property(thatLocator, "start", rhsStart), lhsStart, rhsStart, (this.start!= null), (that.start!= null))) { return false; } } { Instant lhsEnd; lhsEnd = this.getEnd(); Instant rhsEnd; rhsEnd = that.getEnd(); if (!strategy.equals(LocatorUtils.property(thisLocator, "end", lhsEnd), LocatorUtils.property(thatLocator, "end", rhsEnd), lhsEnd, rhsEnd, (this.end!= null), (that.end!= null))) { return false; } } { List lhsParticipantType; lhsParticipantType = (((this.participantType!= null)&&(!this.participantType.isEmpty()))?this.getParticipantType():null); List rhsParticipantType; rhsParticipantType = (((that.participantType!= null)&&(!that.participantType.isEmpty()))?that.getParticipantType():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "participantType", lhsParticipantType), LocatorUtils.property(thatLocator, "participantType", rhsParticipantType), lhsParticipantType, rhsParticipantType, ((this.participantType!= null)&&(!this.participantType.isEmpty())), ((that.participantType!= null)&&(!that.participantType.isEmpty())))) { return false; } } { Reference lhsActor; lhsActor = this.getActor(); Reference rhsActor; rhsActor = that.getActor(); if (!strategy.equals(LocatorUtils.property(thisLocator, "actor", lhsActor), LocatorUtils.property(thatLocator, "actor", rhsActor), lhsActor, rhsActor, (this.actor!= null), (that.actor!= null))) { return false; } } { Code lhsParticipantStatus; lhsParticipantStatus = this.getParticipantStatus(); Code rhsParticipantStatus; rhsParticipantStatus = that.getParticipantStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "participantStatus", lhsParticipantStatus), LocatorUtils.property(thatLocator, "participantStatus", rhsParticipantStatus), lhsParticipantStatus, rhsParticipantStatus, (this.participantStatus!= null), (that.participantStatus!= null))) { return false; } } { org.hl7.fhir.String lhsComment; lhsComment = this.getComment(); org.hl7.fhir.String rhsComment; rhsComment = that.getComment(); if (!strategy.equals(LocatorUtils.property(thisLocator, "comment", lhsComment), LocatorUtils.property(thatLocator, "comment", rhsComment), lhsComment, rhsComment, (this.comment!= null), (that.comment!= 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); { 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()))); } { Reference theAppointment; theAppointment = this.getAppointment(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "appointment", theAppointment), currentHashCode, theAppointment, (this.appointment!= null)); } { Instant theStart; theStart = this.getStart(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "start", theStart), currentHashCode, theStart, (this.start!= null)); } { Instant theEnd; theEnd = this.getEnd(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "end", theEnd), currentHashCode, theEnd, (this.end!= null)); } { List theParticipantType; theParticipantType = (((this.participantType!= null)&&(!this.participantType.isEmpty()))?this.getParticipantType():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "participantType", theParticipantType), currentHashCode, theParticipantType, ((this.participantType!= null)&&(!this.participantType.isEmpty()))); } { Reference theActor; theActor = this.getActor(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "actor", theActor), currentHashCode, theActor, (this.actor!= null)); } { Code theParticipantStatus; theParticipantStatus = this.getParticipantStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "participantStatus", theParticipantStatus), currentHashCode, theParticipantStatus, (this.participantStatus!= null)); } { org.hl7.fhir.String theComment; theComment = this.getComment(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "comment", theComment), currentHashCode, theComment, (this.comment!= 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); { 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()))); } { Reference theAppointment; theAppointment = this.getAppointment(); strategy.appendField(locator, this, "appointment", buffer, theAppointment, (this.appointment!= null)); } { Instant theStart; theStart = this.getStart(); strategy.appendField(locator, this, "start", buffer, theStart, (this.start!= null)); } { Instant theEnd; theEnd = this.getEnd(); strategy.appendField(locator, this, "end", buffer, theEnd, (this.end!= null)); } { List theParticipantType; theParticipantType = (((this.participantType!= null)&&(!this.participantType.isEmpty()))?this.getParticipantType():null); strategy.appendField(locator, this, "participantType", buffer, theParticipantType, ((this.participantType!= null)&&(!this.participantType.isEmpty()))); } { Reference theActor; theActor = this.getActor(); strategy.appendField(locator, this, "actor", buffer, theActor, (this.actor!= null)); } { Code theParticipantStatus; theParticipantStatus = this.getParticipantStatus(); strategy.appendField(locator, this, "participantStatus", buffer, theParticipantStatus, (this.participantStatus!= null)); } { org.hl7.fhir.String theComment; theComment = this.getComment(); strategy.appendField(locator, this, "comment", buffer, theComment, (this.comment!= null)); } return buffer; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy