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

org.hl7.fhir.ProtocolDetail 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.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.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 definition of behaviors to be taken in particular circumstances, often including conditions, options and other decision points.
 * 
 * 

Java class for Protocol.Detail complex type. * *

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

 * <complexType name="Protocol.Detail">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="category" type="{http://hl7.org/fhir}ActivityDefinitionCategory" minOccurs="0"/>
 *         <element name="code" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="timingCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
 *           <element name="timingTiming" type="{http://hl7.org/fhir}Timing"/>
 *         </choice>
 *         <element name="location" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="performer" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="product" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="quantity" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
 *         <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Protocol.Detail", propOrder = { "category", "code", "timingCodeableConcept", "timingTiming", "location", "performer", "product", "quantity", "description" }) public class ProtocolDetail extends BackboneElement implements Equals2, HashCode2, ToString2 { protected ActivityDefinitionCategory category; protected CodeableConcept code; protected CodeableConcept timingCodeableConcept; protected Timing timingTiming; protected Reference location; protected List performer; protected Reference product; protected SimpleQuantity quantity; protected org.hl7.fhir.String description; /** * Gets the value of the category property. * * @return * possible object is * {@link ActivityDefinitionCategory } * */ public ActivityDefinitionCategory getCategory() { return category; } /** * Sets the value of the category property. * * @param value * allowed object is * {@link ActivityDefinitionCategory } * */ public void setCategory(ActivityDefinitionCategory value) { this.category = value; } /** * Gets the value of the code property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getCode() { return code; } /** * Sets the value of the code property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setCode(CodeableConcept value) { this.code = value; } /** * Gets the value of the timingCodeableConcept property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getTimingCodeableConcept() { return timingCodeableConcept; } /** * Sets the value of the timingCodeableConcept property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setTimingCodeableConcept(CodeableConcept value) { this.timingCodeableConcept = value; } /** * Gets the value of the timingTiming property. * * @return * possible object is * {@link Timing } * */ public Timing getTimingTiming() { return timingTiming; } /** * Sets the value of the timingTiming property. * * @param value * allowed object is * {@link Timing } * */ public void setTimingTiming(Timing value) { this.timingTiming = value; } /** * Gets the value of the location property. * * @return * possible object is * {@link Reference } * */ public Reference getLocation() { return location; } /** * Sets the value of the location property. * * @param value * allowed object is * {@link Reference } * */ public void setLocation(Reference value) { this.location = value; } /** * Gets the value of the performer 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 performer property. * *

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

     *    getPerformer().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getPerformer() { if (performer == null) { performer = new ArrayList(); } return this.performer; } /** * Gets the value of the product property. * * @return * possible object is * {@link Reference } * */ public Reference getProduct() { return product; } /** * Sets the value of the product property. * * @param value * allowed object is * {@link Reference } * */ public void setProduct(Reference value) { this.product = value; } /** * Gets the value of the quantity property. * * @return * possible object is * {@link SimpleQuantity } * */ public SimpleQuantity getQuantity() { return quantity; } /** * Sets the value of the quantity property. * * @param value * allowed object is * {@link SimpleQuantity } * */ public void setQuantity(SimpleQuantity value) { this.quantity = 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; } public ProtocolDetail withCategory(ActivityDefinitionCategory value) { setCategory(value); return this; } public ProtocolDetail withCode(CodeableConcept value) { setCode(value); return this; } public ProtocolDetail withTimingCodeableConcept(CodeableConcept value) { setTimingCodeableConcept(value); return this; } public ProtocolDetail withTimingTiming(Timing value) { setTimingTiming(value); return this; } public ProtocolDetail withLocation(Reference value) { setLocation(value); return this; } public ProtocolDetail withPerformer(Reference... values) { if (values!= null) { for (Reference value: values) { getPerformer().add(value); } } return this; } public ProtocolDetail withPerformer(Collection values) { if (values!= null) { getPerformer().addAll(values); } return this; } public ProtocolDetail withProduct(Reference value) { setProduct(value); return this; } public ProtocolDetail withQuantity(SimpleQuantity value) { setQuantity(value); return this; } public ProtocolDetail withDescription(org.hl7.fhir.String value) { setDescription(value); return this; } @Override public ProtocolDetail withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ProtocolDetail withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ProtocolDetail withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ProtocolDetail withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ProtocolDetail 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 ProtocolDetail that = ((ProtocolDetail) object); { ActivityDefinitionCategory lhsCategory; lhsCategory = this.getCategory(); ActivityDefinitionCategory rhsCategory; rhsCategory = that.getCategory(); if (!strategy.equals(LocatorUtils.property(thisLocator, "category", lhsCategory), LocatorUtils.property(thatLocator, "category", rhsCategory), lhsCategory, rhsCategory, (this.category!= null), (that.category!= null))) { return false; } } { CodeableConcept lhsCode; lhsCode = this.getCode(); CodeableConcept rhsCode; rhsCode = that.getCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "code", lhsCode), LocatorUtils.property(thatLocator, "code", rhsCode), lhsCode, rhsCode, (this.code!= null), (that.code!= null))) { return false; } } { CodeableConcept lhsTimingCodeableConcept; lhsTimingCodeableConcept = this.getTimingCodeableConcept(); CodeableConcept rhsTimingCodeableConcept; rhsTimingCodeableConcept = that.getTimingCodeableConcept(); if (!strategy.equals(LocatorUtils.property(thisLocator, "timingCodeableConcept", lhsTimingCodeableConcept), LocatorUtils.property(thatLocator, "timingCodeableConcept", rhsTimingCodeableConcept), lhsTimingCodeableConcept, rhsTimingCodeableConcept, (this.timingCodeableConcept!= null), (that.timingCodeableConcept!= null))) { return false; } } { Timing lhsTimingTiming; lhsTimingTiming = this.getTimingTiming(); Timing rhsTimingTiming; rhsTimingTiming = that.getTimingTiming(); if (!strategy.equals(LocatorUtils.property(thisLocator, "timingTiming", lhsTimingTiming), LocatorUtils.property(thatLocator, "timingTiming", rhsTimingTiming), lhsTimingTiming, rhsTimingTiming, (this.timingTiming!= null), (that.timingTiming!= null))) { return false; } } { Reference lhsLocation; lhsLocation = this.getLocation(); Reference rhsLocation; rhsLocation = that.getLocation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "location", lhsLocation), LocatorUtils.property(thatLocator, "location", rhsLocation), lhsLocation, rhsLocation, (this.location!= null), (that.location!= null))) { return false; } } { List lhsPerformer; lhsPerformer = (((this.performer!= null)&&(!this.performer.isEmpty()))?this.getPerformer():null); List rhsPerformer; rhsPerformer = (((that.performer!= null)&&(!that.performer.isEmpty()))?that.getPerformer():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "performer", lhsPerformer), LocatorUtils.property(thatLocator, "performer", rhsPerformer), lhsPerformer, rhsPerformer, ((this.performer!= null)&&(!this.performer.isEmpty())), ((that.performer!= null)&&(!that.performer.isEmpty())))) { return false; } } { Reference lhsProduct; lhsProduct = this.getProduct(); Reference rhsProduct; rhsProduct = that.getProduct(); if (!strategy.equals(LocatorUtils.property(thisLocator, "product", lhsProduct), LocatorUtils.property(thatLocator, "product", rhsProduct), lhsProduct, rhsProduct, (this.product!= null), (that.product!= null))) { return false; } } { SimpleQuantity lhsQuantity; lhsQuantity = this.getQuantity(); SimpleQuantity rhsQuantity; rhsQuantity = that.getQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "quantity", lhsQuantity), LocatorUtils.property(thatLocator, "quantity", rhsQuantity), lhsQuantity, rhsQuantity, (this.quantity!= null), (that.quantity!= 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; } } 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); { ActivityDefinitionCategory theCategory; theCategory = this.getCategory(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "category", theCategory), currentHashCode, theCategory, (this.category!= null)); } { CodeableConcept theCode; theCode = this.getCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode, (this.code!= null)); } { CodeableConcept theTimingCodeableConcept; theTimingCodeableConcept = this.getTimingCodeableConcept(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "timingCodeableConcept", theTimingCodeableConcept), currentHashCode, theTimingCodeableConcept, (this.timingCodeableConcept!= null)); } { Timing theTimingTiming; theTimingTiming = this.getTimingTiming(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "timingTiming", theTimingTiming), currentHashCode, theTimingTiming, (this.timingTiming!= null)); } { Reference theLocation; theLocation = this.getLocation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "location", theLocation), currentHashCode, theLocation, (this.location!= null)); } { List thePerformer; thePerformer = (((this.performer!= null)&&(!this.performer.isEmpty()))?this.getPerformer():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "performer", thePerformer), currentHashCode, thePerformer, ((this.performer!= null)&&(!this.performer.isEmpty()))); } { Reference theProduct; theProduct = this.getProduct(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "product", theProduct), currentHashCode, theProduct, (this.product!= null)); } { SimpleQuantity theQuantity; theQuantity = this.getQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "quantity", theQuantity), currentHashCode, theQuantity, (this.quantity!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= 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); { ActivityDefinitionCategory theCategory; theCategory = this.getCategory(); strategy.appendField(locator, this, "category", buffer, theCategory, (this.category!= null)); } { CodeableConcept theCode; theCode = this.getCode(); strategy.appendField(locator, this, "code", buffer, theCode, (this.code!= null)); } { CodeableConcept theTimingCodeableConcept; theTimingCodeableConcept = this.getTimingCodeableConcept(); strategy.appendField(locator, this, "timingCodeableConcept", buffer, theTimingCodeableConcept, (this.timingCodeableConcept!= null)); } { Timing theTimingTiming; theTimingTiming = this.getTimingTiming(); strategy.appendField(locator, this, "timingTiming", buffer, theTimingTiming, (this.timingTiming!= null)); } { Reference theLocation; theLocation = this.getLocation(); strategy.appendField(locator, this, "location", buffer, theLocation, (this.location!= null)); } { List thePerformer; thePerformer = (((this.performer!= null)&&(!this.performer.isEmpty()))?this.getPerformer():null); strategy.appendField(locator, this, "performer", buffer, thePerformer, ((this.performer!= null)&&(!this.performer.isEmpty()))); } { Reference theProduct; theProduct = this.getProduct(); strategy.appendField(locator, this, "product", buffer, theProduct, (this.product!= null)); } { SimpleQuantity theQuantity; theQuantity = this.getQuantity(); strategy.appendField(locator, this, "quantity", buffer, theQuantity, (this.quantity!= null)); } { org.hl7.fhir.String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null)); } return buffer; } public void setPerformer(List value) { this.performer = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy