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

org.hl7.fhir.DeviceUseRequest 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.03.21 at 12:42:34 PM 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 DeviceUseRequest complex type. * *

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

 * <complexType name="DeviceUseRequest">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <choice minOccurs="0">
 *           <element name="bodySiteCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
 *           <element name="bodySiteReference" type="{http://hl7.org/fhir}Reference"/>
 *         </choice>
 *         <element name="status" type="{http://hl7.org/fhir}DeviceUseRequestStatus" minOccurs="0"/>
 *         <element name="device" type="{http://hl7.org/fhir}Reference"/>
 *         <element name="encounter" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="indication" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="notes" type="{http://hl7.org/fhir}string" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="prnReason" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="orderedOn" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="recordedOn" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="subject" type="{http://hl7.org/fhir}Reference"/>
 *         <choice minOccurs="0">
 *           <element name="timingTiming" type="{http://hl7.org/fhir}Timing"/>
 *           <element name="timingPeriod" type="{http://hl7.org/fhir}Period"/>
 *           <element name="timingDateTime" type="{http://hl7.org/fhir}dateTime"/>
 *         </choice>
 *         <element name="priority" type="{http://hl7.org/fhir}DeviceUseRequestPriority" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DeviceUseRequest", propOrder = { "bodySiteCodeableConcept", "bodySiteReference", "status", "device", "encounter", "identifier", "indication", "notes", "prnReason", "orderedOn", "recordedOn", "subject", "timingTiming", "timingPeriod", "timingDateTime", "priority" }) public class DeviceUseRequest extends DomainResource implements Equals2, HashCode2, ToString2 { protected CodeableConcept bodySiteCodeableConcept; protected Reference bodySiteReference; protected DeviceUseRequestStatus status; @XmlElement(required = true) protected Reference device; protected Reference encounter; protected List identifier; protected List indication; protected List notes; protected List prnReason; protected DateTime orderedOn; protected DateTime recordedOn; @XmlElement(required = true) protected Reference subject; protected Timing timingTiming; protected Period timingPeriod; protected DateTime timingDateTime; protected DeviceUseRequestPriority priority; /** * Gets the value of the bodySiteCodeableConcept property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getBodySiteCodeableConcept() { return bodySiteCodeableConcept; } /** * Sets the value of the bodySiteCodeableConcept property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setBodySiteCodeableConcept(CodeableConcept value) { this.bodySiteCodeableConcept = value; } /** * Gets the value of the bodySiteReference property. * * @return * possible object is * {@link Reference } * */ public Reference getBodySiteReference() { return bodySiteReference; } /** * Sets the value of the bodySiteReference property. * * @param value * allowed object is * {@link Reference } * */ public void setBodySiteReference(Reference value) { this.bodySiteReference = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link DeviceUseRequestStatus } * */ public DeviceUseRequestStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link DeviceUseRequestStatus } * */ public void setStatus(DeviceUseRequestStatus value) { this.status = value; } /** * Gets the value of the device property. * * @return * possible object is * {@link Reference } * */ public Reference getDevice() { return device; } /** * Sets the value of the device property. * * @param value * allowed object is * {@link Reference } * */ public void setDevice(Reference value) { this.device = value; } /** * Gets the value of the encounter property. * * @return * possible object is * {@link Reference } * */ public Reference getEncounter() { return encounter; } /** * Sets the value of the encounter property. * * @param value * allowed object is * {@link Reference } * */ public void setEncounter(Reference value) { this.encounter = value; } /** * 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 indication 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 indication property. * *

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

     *    getIndication().add(newItem);
     * 
* * *

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

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

     *    getNotes().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link org.hl7.fhir.String } * * */ public List getNotes() { if (notes == null) { notes = new ArrayList(); } return this.notes; } /** * Gets the value of the prnReason 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 prnReason property. * *

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

     *    getPrnReason().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getPrnReason() { if (prnReason == null) { prnReason = new ArrayList(); } return this.prnReason; } /** * Gets the value of the orderedOn property. * * @return * possible object is * {@link DateTime } * */ public DateTime getOrderedOn() { return orderedOn; } /** * Sets the value of the orderedOn property. * * @param value * allowed object is * {@link DateTime } * */ public void setOrderedOn(DateTime value) { this.orderedOn = value; } /** * Gets the value of the recordedOn property. * * @return * possible object is * {@link DateTime } * */ public DateTime getRecordedOn() { return recordedOn; } /** * Sets the value of the recordedOn property. * * @param value * allowed object is * {@link DateTime } * */ public void setRecordedOn(DateTime value) { this.recordedOn = value; } /** * Gets the value of the subject property. * * @return * possible object is * {@link Reference } * */ public Reference getSubject() { return subject; } /** * Sets the value of the subject property. * * @param value * allowed object is * {@link Reference } * */ public void setSubject(Reference value) { this.subject = 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 timingPeriod property. * * @return * possible object is * {@link Period } * */ public Period getTimingPeriod() { return timingPeriod; } /** * Sets the value of the timingPeriod property. * * @param value * allowed object is * {@link Period } * */ public void setTimingPeriod(Period value) { this.timingPeriod = value; } /** * Gets the value of the timingDateTime property. * * @return * possible object is * {@link DateTime } * */ public DateTime getTimingDateTime() { return timingDateTime; } /** * Sets the value of the timingDateTime property. * * @param value * allowed object is * {@link DateTime } * */ public void setTimingDateTime(DateTime value) { this.timingDateTime = value; } /** * Gets the value of the priority property. * * @return * possible object is * {@link DeviceUseRequestPriority } * */ public DeviceUseRequestPriority getPriority() { return priority; } /** * Sets the value of the priority property. * * @param value * allowed object is * {@link DeviceUseRequestPriority } * */ public void setPriority(DeviceUseRequestPriority value) { this.priority = value; } public DeviceUseRequest withBodySiteCodeableConcept(CodeableConcept value) { setBodySiteCodeableConcept(value); return this; } public DeviceUseRequest withBodySiteReference(Reference value) { setBodySiteReference(value); return this; } public DeviceUseRequest withStatus(DeviceUseRequestStatus value) { setStatus(value); return this; } public DeviceUseRequest withDevice(Reference value) { setDevice(value); return this; } public DeviceUseRequest withEncounter(Reference value) { setEncounter(value); return this; } public DeviceUseRequest withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public DeviceUseRequest withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public DeviceUseRequest withIndication(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getIndication().add(value); } } return this; } public DeviceUseRequest withIndication(Collection values) { if (values!= null) { getIndication().addAll(values); } return this; } public DeviceUseRequest withNotes(org.hl7.fhir.String... values) { if (values!= null) { for (org.hl7.fhir.String value: values) { getNotes().add(value); } } return this; } public DeviceUseRequest withNotes(Collection values) { if (values!= null) { getNotes().addAll(values); } return this; } public DeviceUseRequest withPrnReason(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getPrnReason().add(value); } } return this; } public DeviceUseRequest withPrnReason(Collection values) { if (values!= null) { getPrnReason().addAll(values); } return this; } public DeviceUseRequest withOrderedOn(DateTime value) { setOrderedOn(value); return this; } public DeviceUseRequest withRecordedOn(DateTime value) { setRecordedOn(value); return this; } public DeviceUseRequest withSubject(Reference value) { setSubject(value); return this; } public DeviceUseRequest withTimingTiming(Timing value) { setTimingTiming(value); return this; } public DeviceUseRequest withTimingPeriod(Period value) { setTimingPeriod(value); return this; } public DeviceUseRequest withTimingDateTime(DateTime value) { setTimingDateTime(value); return this; } public DeviceUseRequest withPriority(DeviceUseRequestPriority value) { setPriority(value); return this; } @Override public DeviceUseRequest withText(Narrative value) { setText(value); return this; } @Override public DeviceUseRequest withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public DeviceUseRequest withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public DeviceUseRequest withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public DeviceUseRequest withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public DeviceUseRequest withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public DeviceUseRequest withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public DeviceUseRequest withId(Id value) { setId(value); return this; } @Override public DeviceUseRequest withMeta(Meta value) { setMeta(value); return this; } @Override public DeviceUseRequest withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public DeviceUseRequest 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 DeviceUseRequest that = ((DeviceUseRequest) object); { CodeableConcept lhsBodySiteCodeableConcept; lhsBodySiteCodeableConcept = this.getBodySiteCodeableConcept(); CodeableConcept rhsBodySiteCodeableConcept; rhsBodySiteCodeableConcept = that.getBodySiteCodeableConcept(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bodySiteCodeableConcept", lhsBodySiteCodeableConcept), LocatorUtils.property(thatLocator, "bodySiteCodeableConcept", rhsBodySiteCodeableConcept), lhsBodySiteCodeableConcept, rhsBodySiteCodeableConcept, (this.bodySiteCodeableConcept!= null), (that.bodySiteCodeableConcept!= null))) { return false; } } { Reference lhsBodySiteReference; lhsBodySiteReference = this.getBodySiteReference(); Reference rhsBodySiteReference; rhsBodySiteReference = that.getBodySiteReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bodySiteReference", lhsBodySiteReference), LocatorUtils.property(thatLocator, "bodySiteReference", rhsBodySiteReference), lhsBodySiteReference, rhsBodySiteReference, (this.bodySiteReference!= null), (that.bodySiteReference!= null))) { return false; } } { DeviceUseRequestStatus lhsStatus; lhsStatus = this.getStatus(); DeviceUseRequestStatus 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; } } { Reference lhsDevice; lhsDevice = this.getDevice(); Reference rhsDevice; rhsDevice = that.getDevice(); if (!strategy.equals(LocatorUtils.property(thisLocator, "device", lhsDevice), LocatorUtils.property(thatLocator, "device", rhsDevice), lhsDevice, rhsDevice, (this.device!= null), (that.device!= null))) { return false; } } { Reference lhsEncounter; lhsEncounter = this.getEncounter(); Reference rhsEncounter; rhsEncounter = that.getEncounter(); if (!strategy.equals(LocatorUtils.property(thisLocator, "encounter", lhsEncounter), LocatorUtils.property(thatLocator, "encounter", rhsEncounter), lhsEncounter, rhsEncounter, (this.encounter!= null), (that.encounter!= null))) { return false; } } { 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; } } { List lhsIndication; lhsIndication = (((this.indication!= null)&&(!this.indication.isEmpty()))?this.getIndication():null); List rhsIndication; rhsIndication = (((that.indication!= null)&&(!that.indication.isEmpty()))?that.getIndication():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "indication", lhsIndication), LocatorUtils.property(thatLocator, "indication", rhsIndication), lhsIndication, rhsIndication, ((this.indication!= null)&&(!this.indication.isEmpty())), ((that.indication!= null)&&(!that.indication.isEmpty())))) { return false; } } { List lhsNotes; lhsNotes = (((this.notes!= null)&&(!this.notes.isEmpty()))?this.getNotes():null); List rhsNotes; rhsNotes = (((that.notes!= null)&&(!that.notes.isEmpty()))?that.getNotes():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "notes", lhsNotes), LocatorUtils.property(thatLocator, "notes", rhsNotes), lhsNotes, rhsNotes, ((this.notes!= null)&&(!this.notes.isEmpty())), ((that.notes!= null)&&(!that.notes.isEmpty())))) { return false; } } { List lhsPrnReason; lhsPrnReason = (((this.prnReason!= null)&&(!this.prnReason.isEmpty()))?this.getPrnReason():null); List rhsPrnReason; rhsPrnReason = (((that.prnReason!= null)&&(!that.prnReason.isEmpty()))?that.getPrnReason():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "prnReason", lhsPrnReason), LocatorUtils.property(thatLocator, "prnReason", rhsPrnReason), lhsPrnReason, rhsPrnReason, ((this.prnReason!= null)&&(!this.prnReason.isEmpty())), ((that.prnReason!= null)&&(!that.prnReason.isEmpty())))) { return false; } } { DateTime lhsOrderedOn; lhsOrderedOn = this.getOrderedOn(); DateTime rhsOrderedOn; rhsOrderedOn = that.getOrderedOn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "orderedOn", lhsOrderedOn), LocatorUtils.property(thatLocator, "orderedOn", rhsOrderedOn), lhsOrderedOn, rhsOrderedOn, (this.orderedOn!= null), (that.orderedOn!= null))) { return false; } } { DateTime lhsRecordedOn; lhsRecordedOn = this.getRecordedOn(); DateTime rhsRecordedOn; rhsRecordedOn = that.getRecordedOn(); if (!strategy.equals(LocatorUtils.property(thisLocator, "recordedOn", lhsRecordedOn), LocatorUtils.property(thatLocator, "recordedOn", rhsRecordedOn), lhsRecordedOn, rhsRecordedOn, (this.recordedOn!= null), (that.recordedOn!= null))) { return false; } } { Reference lhsSubject; lhsSubject = this.getSubject(); Reference rhsSubject; rhsSubject = that.getSubject(); if (!strategy.equals(LocatorUtils.property(thisLocator, "subject", lhsSubject), LocatorUtils.property(thatLocator, "subject", rhsSubject), lhsSubject, rhsSubject, (this.subject!= null), (that.subject!= 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; } } { Period lhsTimingPeriod; lhsTimingPeriod = this.getTimingPeriod(); Period rhsTimingPeriod; rhsTimingPeriod = that.getTimingPeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "timingPeriod", lhsTimingPeriod), LocatorUtils.property(thatLocator, "timingPeriod", rhsTimingPeriod), lhsTimingPeriod, rhsTimingPeriod, (this.timingPeriod!= null), (that.timingPeriod!= null))) { return false; } } { DateTime lhsTimingDateTime; lhsTimingDateTime = this.getTimingDateTime(); DateTime rhsTimingDateTime; rhsTimingDateTime = that.getTimingDateTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "timingDateTime", lhsTimingDateTime), LocatorUtils.property(thatLocator, "timingDateTime", rhsTimingDateTime), lhsTimingDateTime, rhsTimingDateTime, (this.timingDateTime!= null), (that.timingDateTime!= null))) { return false; } } { DeviceUseRequestPriority lhsPriority; lhsPriority = this.getPriority(); DeviceUseRequestPriority 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; } } 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); { CodeableConcept theBodySiteCodeableConcept; theBodySiteCodeableConcept = this.getBodySiteCodeableConcept(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bodySiteCodeableConcept", theBodySiteCodeableConcept), currentHashCode, theBodySiteCodeableConcept, (this.bodySiteCodeableConcept!= null)); } { Reference theBodySiteReference; theBodySiteReference = this.getBodySiteReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bodySiteReference", theBodySiteReference), currentHashCode, theBodySiteReference, (this.bodySiteReference!= null)); } { DeviceUseRequestStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null)); } { Reference theDevice; theDevice = this.getDevice(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "device", theDevice), currentHashCode, theDevice, (this.device!= null)); } { Reference theEncounter; theEncounter = this.getEncounter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encounter", theEncounter), currentHashCode, theEncounter, (this.encounter!= null)); } { 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()))); } { List theIndication; theIndication = (((this.indication!= null)&&(!this.indication.isEmpty()))?this.getIndication():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "indication", theIndication), currentHashCode, theIndication, ((this.indication!= null)&&(!this.indication.isEmpty()))); } { List theNotes; theNotes = (((this.notes!= null)&&(!this.notes.isEmpty()))?this.getNotes():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "notes", theNotes), currentHashCode, theNotes, ((this.notes!= null)&&(!this.notes.isEmpty()))); } { List thePrnReason; thePrnReason = (((this.prnReason!= null)&&(!this.prnReason.isEmpty()))?this.getPrnReason():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "prnReason", thePrnReason), currentHashCode, thePrnReason, ((this.prnReason!= null)&&(!this.prnReason.isEmpty()))); } { DateTime theOrderedOn; theOrderedOn = this.getOrderedOn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "orderedOn", theOrderedOn), currentHashCode, theOrderedOn, (this.orderedOn!= null)); } { DateTime theRecordedOn; theRecordedOn = this.getRecordedOn(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "recordedOn", theRecordedOn), currentHashCode, theRecordedOn, (this.recordedOn!= null)); } { Reference theSubject; theSubject = this.getSubject(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "subject", theSubject), currentHashCode, theSubject, (this.subject!= null)); } { Timing theTimingTiming; theTimingTiming = this.getTimingTiming(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "timingTiming", theTimingTiming), currentHashCode, theTimingTiming, (this.timingTiming!= null)); } { Period theTimingPeriod; theTimingPeriod = this.getTimingPeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "timingPeriod", theTimingPeriod), currentHashCode, theTimingPeriod, (this.timingPeriod!= null)); } { DateTime theTimingDateTime; theTimingDateTime = this.getTimingDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "timingDateTime", theTimingDateTime), currentHashCode, theTimingDateTime, (this.timingDateTime!= null)); } { DeviceUseRequestPriority thePriority; thePriority = this.getPriority(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "priority", thePriority), currentHashCode, thePriority, (this.priority!= 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); { CodeableConcept theBodySiteCodeableConcept; theBodySiteCodeableConcept = this.getBodySiteCodeableConcept(); strategy.appendField(locator, this, "bodySiteCodeableConcept", buffer, theBodySiteCodeableConcept, (this.bodySiteCodeableConcept!= null)); } { Reference theBodySiteReference; theBodySiteReference = this.getBodySiteReference(); strategy.appendField(locator, this, "bodySiteReference", buffer, theBodySiteReference, (this.bodySiteReference!= null)); } { DeviceUseRequestStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null)); } { Reference theDevice; theDevice = this.getDevice(); strategy.appendField(locator, this, "device", buffer, theDevice, (this.device!= null)); } { Reference theEncounter; theEncounter = this.getEncounter(); strategy.appendField(locator, this, "encounter", buffer, theEncounter, (this.encounter!= null)); } { 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()))); } { List theIndication; theIndication = (((this.indication!= null)&&(!this.indication.isEmpty()))?this.getIndication():null); strategy.appendField(locator, this, "indication", buffer, theIndication, ((this.indication!= null)&&(!this.indication.isEmpty()))); } { List theNotes; theNotes = (((this.notes!= null)&&(!this.notes.isEmpty()))?this.getNotes():null); strategy.appendField(locator, this, "notes", buffer, theNotes, ((this.notes!= null)&&(!this.notes.isEmpty()))); } { List thePrnReason; thePrnReason = (((this.prnReason!= null)&&(!this.prnReason.isEmpty()))?this.getPrnReason():null); strategy.appendField(locator, this, "prnReason", buffer, thePrnReason, ((this.prnReason!= null)&&(!this.prnReason.isEmpty()))); } { DateTime theOrderedOn; theOrderedOn = this.getOrderedOn(); strategy.appendField(locator, this, "orderedOn", buffer, theOrderedOn, (this.orderedOn!= null)); } { DateTime theRecordedOn; theRecordedOn = this.getRecordedOn(); strategy.appendField(locator, this, "recordedOn", buffer, theRecordedOn, (this.recordedOn!= null)); } { Reference theSubject; theSubject = this.getSubject(); strategy.appendField(locator, this, "subject", buffer, theSubject, (this.subject!= null)); } { Timing theTimingTiming; theTimingTiming = this.getTimingTiming(); strategy.appendField(locator, this, "timingTiming", buffer, theTimingTiming, (this.timingTiming!= null)); } { Period theTimingPeriod; theTimingPeriod = this.getTimingPeriod(); strategy.appendField(locator, this, "timingPeriod", buffer, theTimingPeriod, (this.timingPeriod!= null)); } { DateTime theTimingDateTime; theTimingDateTime = this.getTimingDateTime(); strategy.appendField(locator, this, "timingDateTime", buffer, theTimingDateTime, (this.timingDateTime!= null)); } { DeviceUseRequestPriority thePriority; thePriority = this.getPriority(); strategy.appendField(locator, this, "priority", buffer, thePriority, (this.priority!= null)); } return buffer; } public void setIdentifier(List value) { this.identifier = value; } public void setIndication(List value) { this.indication = value; } public void setNotes(List value) { this.notes = value; } public void setPrnReason(List value) { this.prnReason = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy