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

org.hl7.fhir.Appointment 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.05.02 at 09:57:28 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;


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

Java class for Appointment complex type. * *

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

 * <complexType name="Appointment">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="status" type="{http://hl7.org/fhir}AppointmentStatus"/>
 *         <element name="serviceCategory" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="serviceType" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="specialty" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="appointmentType" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="reason" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="priority" type="{http://hl7.org/fhir}unsignedInt" minOccurs="0"/>
 *         <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="start" type="{http://hl7.org/fhir}instant" minOccurs="0"/>
 *         <element name="end" type="{http://hl7.org/fhir}instant" minOccurs="0"/>
 *         <element name="minutesDuration" type="{http://hl7.org/fhir}positiveInt" minOccurs="0"/>
 *         <element name="slot" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="created" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="comment" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="participant" type="{http://hl7.org/fhir}Appointment.Participant" maxOccurs="unbounded"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Appointment", propOrder = { "identifier", "status", "serviceCategory", "serviceType", "specialty", "appointmentType", "reason", "priority", "description", "start", "end", "minutesDuration", "slot", "created", "comment", "participant" }) public class Appointment extends DomainResource implements Equals2, HashCode2, ToString2 { protected List identifier; @XmlElement(required = true) protected AppointmentStatus status; protected CodeableConcept serviceCategory; protected List serviceType; protected List specialty; protected CodeableConcept appointmentType; protected CodeableConcept reason; protected UnsignedInt priority; protected org.hl7.fhir.String description; protected Instant start; protected Instant end; protected PositiveInt minutesDuration; protected List slot; protected DateTime created; protected org.hl7.fhir.String comment; @XmlElement(required = true) protected List participant; /** * 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 status property. * * @return * possible object is * {@link AppointmentStatus } * */ public AppointmentStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link AppointmentStatus } * */ public void setStatus(AppointmentStatus value) { this.status = value; } /** * Gets the value of the serviceCategory property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getServiceCategory() { return serviceCategory; } /** * Sets the value of the serviceCategory property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setServiceCategory(CodeableConcept value) { this.serviceCategory = value; } /** * Gets the value of the serviceType 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 serviceType property. * *

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

     *    getServiceType().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getServiceType() { if (serviceType == null) { serviceType = new ArrayList(); } return this.serviceType; } /** * Gets the value of the specialty 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 specialty property. * *

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

     *    getSpecialty().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getSpecialty() { if (specialty == null) { specialty = new ArrayList(); } return this.specialty; } /** * Gets the value of the appointmentType property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getAppointmentType() { return appointmentType; } /** * Sets the value of the appointmentType property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setAppointmentType(CodeableConcept value) { this.appointmentType = value; } /** * Gets the value of the reason property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getReason() { return reason; } /** * Sets the value of the reason property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setReason(CodeableConcept value) { this.reason = value; } /** * Gets the value of the priority property. * * @return * possible object is * {@link UnsignedInt } * */ public UnsignedInt getPriority() { return priority; } /** * Sets the value of the priority property. * * @param value * allowed object is * {@link UnsignedInt } * */ public void setPriority(UnsignedInt value) { this.priority = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setDescription(org.hl7.fhir.String value) { this.description = 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 minutesDuration property. * * @return * possible object is * {@link PositiveInt } * */ public PositiveInt getMinutesDuration() { return minutesDuration; } /** * Sets the value of the minutesDuration property. * * @param value * allowed object is * {@link PositiveInt } * */ public void setMinutesDuration(PositiveInt value) { this.minutesDuration = value; } /** * Gets the value of the slot 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 slot property. * *

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

     *    getSlot().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getSlot() { if (slot == null) { slot = new ArrayList(); } return this.slot; } /** * 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 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; } /** * Gets the value of the participant 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 participant property. * *

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

     *    getParticipant().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link AppointmentParticipant } * * */ public List getParticipant() { if (participant == null) { participant = new ArrayList(); } return this.participant; } public Appointment withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public Appointment withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public Appointment withStatus(AppointmentStatus value) { setStatus(value); return this; } public Appointment withServiceCategory(CodeableConcept value) { setServiceCategory(value); return this; } public Appointment withServiceType(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getServiceType().add(value); } } return this; } public Appointment withServiceType(Collection values) { if (values!= null) { getServiceType().addAll(values); } return this; } public Appointment withSpecialty(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getSpecialty().add(value); } } return this; } public Appointment withSpecialty(Collection values) { if (values!= null) { getSpecialty().addAll(values); } return this; } public Appointment withAppointmentType(CodeableConcept value) { setAppointmentType(value); return this; } public Appointment withReason(CodeableConcept value) { setReason(value); return this; } public Appointment withPriority(UnsignedInt value) { setPriority(value); return this; } public Appointment withDescription(org.hl7.fhir.String value) { setDescription(value); return this; } public Appointment withStart(Instant value) { setStart(value); return this; } public Appointment withEnd(Instant value) { setEnd(value); return this; } public Appointment withMinutesDuration(PositiveInt value) { setMinutesDuration(value); return this; } public Appointment withSlot(Reference... values) { if (values!= null) { for (Reference value: values) { getSlot().add(value); } } return this; } public Appointment withSlot(Collection values) { if (values!= null) { getSlot().addAll(values); } return this; } public Appointment withCreated(DateTime value) { setCreated(value); return this; } public Appointment withComment(org.hl7.fhir.String value) { setComment(value); return this; } public Appointment withParticipant(AppointmentParticipant... values) { if (values!= null) { for (AppointmentParticipant value: values) { getParticipant().add(value); } } return this; } public Appointment withParticipant(Collection values) { if (values!= null) { getParticipant().addAll(values); } return this; } @Override public Appointment withText(Narrative value) { setText(value); return this; } @Override public Appointment withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public Appointment withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public Appointment withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public Appointment withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public Appointment withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public Appointment withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public Appointment withId(Id value) { setId(value); return this; } @Override public Appointment withMeta(Meta value) { setMeta(value); return this; } @Override public Appointment withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public Appointment 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 Appointment that = ((Appointment) 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; } } { AppointmentStatus lhsStatus; lhsStatus = this.getStatus(); AppointmentStatus rhsStatus; rhsStatus = that.getStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus, (this.status!= null), (that.status!= null))) { return false; } } { CodeableConcept lhsServiceCategory; lhsServiceCategory = this.getServiceCategory(); CodeableConcept rhsServiceCategory; rhsServiceCategory = that.getServiceCategory(); if (!strategy.equals(LocatorUtils.property(thisLocator, "serviceCategory", lhsServiceCategory), LocatorUtils.property(thatLocator, "serviceCategory", rhsServiceCategory), lhsServiceCategory, rhsServiceCategory, (this.serviceCategory!= null), (that.serviceCategory!= null))) { return false; } } { List lhsServiceType; lhsServiceType = (((this.serviceType!= null)&&(!this.serviceType.isEmpty()))?this.getServiceType():null); List rhsServiceType; rhsServiceType = (((that.serviceType!= null)&&(!that.serviceType.isEmpty()))?that.getServiceType():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "serviceType", lhsServiceType), LocatorUtils.property(thatLocator, "serviceType", rhsServiceType), lhsServiceType, rhsServiceType, ((this.serviceType!= null)&&(!this.serviceType.isEmpty())), ((that.serviceType!= null)&&(!that.serviceType.isEmpty())))) { return false; } } { List lhsSpecialty; lhsSpecialty = (((this.specialty!= null)&&(!this.specialty.isEmpty()))?this.getSpecialty():null); List rhsSpecialty; rhsSpecialty = (((that.specialty!= null)&&(!that.specialty.isEmpty()))?that.getSpecialty():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "specialty", lhsSpecialty), LocatorUtils.property(thatLocator, "specialty", rhsSpecialty), lhsSpecialty, rhsSpecialty, ((this.specialty!= null)&&(!this.specialty.isEmpty())), ((that.specialty!= null)&&(!that.specialty.isEmpty())))) { return false; } } { CodeableConcept lhsAppointmentType; lhsAppointmentType = this.getAppointmentType(); CodeableConcept rhsAppointmentType; rhsAppointmentType = that.getAppointmentType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "appointmentType", lhsAppointmentType), LocatorUtils.property(thatLocator, "appointmentType", rhsAppointmentType), lhsAppointmentType, rhsAppointmentType, (this.appointmentType!= null), (that.appointmentType!= null))) { return false; } } { CodeableConcept lhsReason; lhsReason = this.getReason(); CodeableConcept rhsReason; rhsReason = that.getReason(); if (!strategy.equals(LocatorUtils.property(thisLocator, "reason", lhsReason), LocatorUtils.property(thatLocator, "reason", rhsReason), lhsReason, rhsReason, (this.reason!= null), (that.reason!= null))) { return false; } } { UnsignedInt lhsPriority; lhsPriority = this.getPriority(); UnsignedInt rhsPriority; rhsPriority = that.getPriority(); if (!strategy.equals(LocatorUtils.property(thisLocator, "priority", lhsPriority), LocatorUtils.property(thatLocator, "priority", rhsPriority), lhsPriority, rhsPriority, (this.priority!= null), (that.priority!= null))) { return false; } } { org.hl7.fhir.String lhsDescription; lhsDescription = this.getDescription(); org.hl7.fhir.String rhsDescription; rhsDescription = that.getDescription(); if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription, (this.description!= null), (that.description!= 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; } } { PositiveInt lhsMinutesDuration; lhsMinutesDuration = this.getMinutesDuration(); PositiveInt rhsMinutesDuration; rhsMinutesDuration = that.getMinutesDuration(); if (!strategy.equals(LocatorUtils.property(thisLocator, "minutesDuration", lhsMinutesDuration), LocatorUtils.property(thatLocator, "minutesDuration", rhsMinutesDuration), lhsMinutesDuration, rhsMinutesDuration, (this.minutesDuration!= null), (that.minutesDuration!= null))) { return false; } } { List lhsSlot; lhsSlot = (((this.slot!= null)&&(!this.slot.isEmpty()))?this.getSlot():null); List rhsSlot; rhsSlot = (((that.slot!= null)&&(!that.slot.isEmpty()))?that.getSlot():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "slot", lhsSlot), LocatorUtils.property(thatLocator, "slot", rhsSlot), lhsSlot, rhsSlot, ((this.slot!= null)&&(!this.slot.isEmpty())), ((that.slot!= null)&&(!that.slot.isEmpty())))) { 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, (this.created!= null), (that.created!= 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; } } { List lhsParticipant; lhsParticipant = (((this.participant!= null)&&(!this.participant.isEmpty()))?this.getParticipant():null); List rhsParticipant; rhsParticipant = (((that.participant!= null)&&(!that.participant.isEmpty()))?that.getParticipant():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "participant", lhsParticipant), LocatorUtils.property(thatLocator, "participant", rhsParticipant), lhsParticipant, rhsParticipant, ((this.participant!= null)&&(!this.participant.isEmpty())), ((that.participant!= null)&&(!that.participant.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); { 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()))); } { AppointmentStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null)); } { CodeableConcept theServiceCategory; theServiceCategory = this.getServiceCategory(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "serviceCategory", theServiceCategory), currentHashCode, theServiceCategory, (this.serviceCategory!= null)); } { List theServiceType; theServiceType = (((this.serviceType!= null)&&(!this.serviceType.isEmpty()))?this.getServiceType():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "serviceType", theServiceType), currentHashCode, theServiceType, ((this.serviceType!= null)&&(!this.serviceType.isEmpty()))); } { List theSpecialty; theSpecialty = (((this.specialty!= null)&&(!this.specialty.isEmpty()))?this.getSpecialty():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "specialty", theSpecialty), currentHashCode, theSpecialty, ((this.specialty!= null)&&(!this.specialty.isEmpty()))); } { CodeableConcept theAppointmentType; theAppointmentType = this.getAppointmentType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "appointmentType", theAppointmentType), currentHashCode, theAppointmentType, (this.appointmentType!= null)); } { CodeableConcept theReason; theReason = this.getReason(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reason", theReason), currentHashCode, theReason, (this.reason!= null)); } { UnsignedInt thePriority; thePriority = this.getPriority(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "priority", thePriority), currentHashCode, thePriority, (this.priority!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= 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)); } { PositiveInt theMinutesDuration; theMinutesDuration = this.getMinutesDuration(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "minutesDuration", theMinutesDuration), currentHashCode, theMinutesDuration, (this.minutesDuration!= null)); } { List theSlot; theSlot = (((this.slot!= null)&&(!this.slot.isEmpty()))?this.getSlot():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "slot", theSlot), currentHashCode, theSlot, ((this.slot!= null)&&(!this.slot.isEmpty()))); } { DateTime theCreated; theCreated = this.getCreated(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "created", theCreated), currentHashCode, theCreated, (this.created!= null)); } { org.hl7.fhir.String theComment; theComment = this.getComment(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "comment", theComment), currentHashCode, theComment, (this.comment!= null)); } { List theParticipant; theParticipant = (((this.participant!= null)&&(!this.participant.isEmpty()))?this.getParticipant():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "participant", theParticipant), currentHashCode, theParticipant, ((this.participant!= null)&&(!this.participant.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); { 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()))); } { AppointmentStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null)); } { CodeableConcept theServiceCategory; theServiceCategory = this.getServiceCategory(); strategy.appendField(locator, this, "serviceCategory", buffer, theServiceCategory, (this.serviceCategory!= null)); } { List theServiceType; theServiceType = (((this.serviceType!= null)&&(!this.serviceType.isEmpty()))?this.getServiceType():null); strategy.appendField(locator, this, "serviceType", buffer, theServiceType, ((this.serviceType!= null)&&(!this.serviceType.isEmpty()))); } { List theSpecialty; theSpecialty = (((this.specialty!= null)&&(!this.specialty.isEmpty()))?this.getSpecialty():null); strategy.appendField(locator, this, "specialty", buffer, theSpecialty, ((this.specialty!= null)&&(!this.specialty.isEmpty()))); } { CodeableConcept theAppointmentType; theAppointmentType = this.getAppointmentType(); strategy.appendField(locator, this, "appointmentType", buffer, theAppointmentType, (this.appointmentType!= null)); } { CodeableConcept theReason; theReason = this.getReason(); strategy.appendField(locator, this, "reason", buffer, theReason, (this.reason!= null)); } { UnsignedInt thePriority; thePriority = this.getPriority(); strategy.appendField(locator, this, "priority", buffer, thePriority, (this.priority!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= 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)); } { PositiveInt theMinutesDuration; theMinutesDuration = this.getMinutesDuration(); strategy.appendField(locator, this, "minutesDuration", buffer, theMinutesDuration, (this.minutesDuration!= null)); } { List theSlot; theSlot = (((this.slot!= null)&&(!this.slot.isEmpty()))?this.getSlot():null); strategy.appendField(locator, this, "slot", buffer, theSlot, ((this.slot!= null)&&(!this.slot.isEmpty()))); } { DateTime theCreated; theCreated = this.getCreated(); strategy.appendField(locator, this, "created", buffer, theCreated, (this.created!= null)); } { org.hl7.fhir.String theComment; theComment = this.getComment(); strategy.appendField(locator, this, "comment", buffer, theComment, (this.comment!= null)); } { List theParticipant; theParticipant = (((this.participant!= null)&&(!this.participant.isEmpty()))?this.getParticipant():null); strategy.appendField(locator, this, "participant", buffer, theParticipant, ((this.participant!= null)&&(!this.participant.isEmpty()))); } return buffer; } public void setIdentifier(List value) { this.identifier = value; } public void setServiceType(List value) { this.serviceType = value; } public void setSpecialty(List value) { this.specialty = value; } public void setSlot(List value) { this.slot = value; } public void setParticipant(List value) { this.participant = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy