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

org.hl7.fhir.Slot 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;


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

Java class for Slot complex type. * *

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

 * <complexType name="Slot">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
 *         <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="schedule" type="{http://hl7.org/fhir}Reference"/>
 *         <element name="status" type="{http://hl7.org/fhir}SlotStatus"/>
 *         <element name="start" type="{http://hl7.org/fhir}instant"/>
 *         <element name="end" type="{http://hl7.org/fhir}instant"/>
 *         <element name="overbooked" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
 *         <element name="comment" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Slot", propOrder = { "identifier", "serviceCategory", "serviceType", "specialty", "appointmentType", "schedule", "status", "start", "end", "overbooked", "comment" }) public class Slot extends DomainResource implements Equals2, HashCode2, ToString2 { protected List identifier; protected CodeableConcept serviceCategory; protected List serviceType; protected List specialty; protected CodeableConcept appointmentType; @XmlElement(required = true) protected Reference schedule; @XmlElement(required = true) protected SlotStatus status; @XmlElement(required = true) protected Instant start; @XmlElement(required = true) protected Instant end; protected Boolean overbooked; 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 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 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 schedule property. * * @return * possible object is * {@link Reference } * */ public Reference getSchedule() { return schedule; } /** * Sets the value of the schedule property. * * @param value * allowed object is * {@link Reference } * */ public void setSchedule(Reference value) { this.schedule = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link SlotStatus } * */ public SlotStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link SlotStatus } * */ public void setStatus(SlotStatus value) { this.status = 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 overbooked property. * * @return * possible object is * {@link Boolean } * */ public Boolean getOverbooked() { return overbooked; } /** * Sets the value of the overbooked property. * * @param value * allowed object is * {@link Boolean } * */ public void setOverbooked(Boolean value) { this.overbooked = 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 Slot withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public Slot withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public Slot withServiceCategory(CodeableConcept value) { setServiceCategory(value); return this; } public Slot withServiceType(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getServiceType().add(value); } } return this; } public Slot withServiceType(Collection values) { if (values!= null) { getServiceType().addAll(values); } return this; } public Slot withSpecialty(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getSpecialty().add(value); } } return this; } public Slot withSpecialty(Collection values) { if (values!= null) { getSpecialty().addAll(values); } return this; } public Slot withAppointmentType(CodeableConcept value) { setAppointmentType(value); return this; } public Slot withSchedule(Reference value) { setSchedule(value); return this; } public Slot withStatus(SlotStatus value) { setStatus(value); return this; } public Slot withStart(Instant value) { setStart(value); return this; } public Slot withEnd(Instant value) { setEnd(value); return this; } public Slot withOverbooked(Boolean value) { setOverbooked(value); return this; } public Slot withComment(org.hl7.fhir.String value) { setComment(value); return this; } @Override public Slot withText(Narrative value) { setText(value); return this; } @Override public Slot withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public Slot withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public Slot withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public Slot withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public Slot withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public Slot withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public Slot withId(Id value) { setId(value); return this; } @Override public Slot withMeta(Meta value) { setMeta(value); return this; } @Override public Slot withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public Slot 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 Slot that = ((Slot) 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; } } { 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; } } { Reference lhsSchedule; lhsSchedule = this.getSchedule(); Reference rhsSchedule; rhsSchedule = that.getSchedule(); if (!strategy.equals(LocatorUtils.property(thisLocator, "schedule", lhsSchedule), LocatorUtils.property(thatLocator, "schedule", rhsSchedule), lhsSchedule, rhsSchedule, (this.schedule!= null), (that.schedule!= null))) { return false; } } { SlotStatus lhsStatus; lhsStatus = this.getStatus(); SlotStatus 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; } } { 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; } } { Boolean lhsOverbooked; lhsOverbooked = this.getOverbooked(); Boolean rhsOverbooked; rhsOverbooked = that.getOverbooked(); if (!strategy.equals(LocatorUtils.property(thisLocator, "overbooked", lhsOverbooked), LocatorUtils.property(thatLocator, "overbooked", rhsOverbooked), lhsOverbooked, rhsOverbooked, (this.overbooked!= null), (that.overbooked!= 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()))); } { 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)); } { Reference theSchedule; theSchedule = this.getSchedule(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "schedule", theSchedule), currentHashCode, theSchedule, (this.schedule!= null)); } { SlotStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= 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)); } { Boolean theOverbooked; theOverbooked = this.getOverbooked(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "overbooked", theOverbooked), currentHashCode, theOverbooked, (this.overbooked!= 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()))); } { 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)); } { Reference theSchedule; theSchedule = this.getSchedule(); strategy.appendField(locator, this, "schedule", buffer, theSchedule, (this.schedule!= null)); } { SlotStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= 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)); } { Boolean theOverbooked; theOverbooked = this.getOverbooked(); strategy.appendField(locator, this, "overbooked", buffer, theOverbooked, (this.overbooked!= null)); } { org.hl7.fhir.String theComment; theComment = this.getComment(); strategy.appendField(locator, this, "comment", buffer, theComment, (this.comment!= null)); } 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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy