org.hl7.fhir.Device Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// 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.09.27 at 11:16:19 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 Device complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Device">
* <complexContent>
* <extension base="{http://hl7.org/fhir}DomainResource">
* <sequence>
* <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
* <element name="udiCarrier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
* <element name="status" type="{http://hl7.org/fhir}DeviceStatus" minOccurs="0"/>
* <element name="type" type="{http://hl7.org/fhir}CodeableConcept"/>
* <element name="lotNumber" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="manufacturer" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="manufactureDate" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
* <element name="expirationDate" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
* <element name="model" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="version" type="{http://hl7.org/fhir}string" minOccurs="0"/>
* <element name="patient" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="owner" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="contact" type="{http://hl7.org/fhir}ContactPoint" maxOccurs="unbounded" minOccurs="0"/>
* <element name="location" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
* <element name="url" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
* <element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Device", propOrder = {
"identifier",
"udiCarrier",
"status",
"type",
"lotNumber",
"manufacturer",
"manufactureDate",
"expirationDate",
"model",
"version",
"patient",
"owner",
"contact",
"location",
"url",
"note"
})
public class Device
extends DomainResource
implements Equals2, HashCode2, ToString2
{
protected List identifier;
protected Identifier udiCarrier;
protected DeviceStatus status;
@XmlElement(required = true)
protected CodeableConcept type;
protected org.hl7.fhir.String lotNumber;
protected org.hl7.fhir.String manufacturer;
protected DateTime manufactureDate;
protected DateTime expirationDate;
protected org.hl7.fhir.String model;
protected org.hl7.fhir.String version;
protected Reference patient;
protected Reference owner;
protected List contact;
protected Reference location;
protected Uri url;
protected List note;
/**
* 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 udiCarrier property.
*
* @return
* possible object is
* {@link Identifier }
*
*/
public Identifier getUdiCarrier() {
return udiCarrier;
}
/**
* Sets the value of the udiCarrier property.
*
* @param value
* allowed object is
* {@link Identifier }
*
*/
public void setUdiCarrier(Identifier value) {
this.udiCarrier = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link DeviceStatus }
*
*/
public DeviceStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link DeviceStatus }
*
*/
public void setStatus(DeviceStatus value) {
this.status = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link CodeableConcept }
*
*/
public CodeableConcept getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link CodeableConcept }
*
*/
public void setType(CodeableConcept value) {
this.type = value;
}
/**
* Gets the value of the lotNumber property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getLotNumber() {
return lotNumber;
}
/**
* Sets the value of the lotNumber property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setLotNumber(org.hl7.fhir.String value) {
this.lotNumber = value;
}
/**
* Gets the value of the manufacturer property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getManufacturer() {
return manufacturer;
}
/**
* Sets the value of the manufacturer property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setManufacturer(org.hl7.fhir.String value) {
this.manufacturer = value;
}
/**
* Gets the value of the manufactureDate property.
*
* @return
* possible object is
* {@link DateTime }
*
*/
public DateTime getManufactureDate() {
return manufactureDate;
}
/**
* Sets the value of the manufactureDate property.
*
* @param value
* allowed object is
* {@link DateTime }
*
*/
public void setManufactureDate(DateTime value) {
this.manufactureDate = value;
}
/**
* Gets the value of the expirationDate property.
*
* @return
* possible object is
* {@link DateTime }
*
*/
public DateTime getExpirationDate() {
return expirationDate;
}
/**
* Sets the value of the expirationDate property.
*
* @param value
* allowed object is
* {@link DateTime }
*
*/
public void setExpirationDate(DateTime value) {
this.expirationDate = value;
}
/**
* Gets the value of the model property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getModel() {
return model;
}
/**
* Sets the value of the model property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setModel(org.hl7.fhir.String value) {
this.model = value;
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setVersion(org.hl7.fhir.String value) {
this.version = value;
}
/**
* Gets the value of the patient property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getPatient() {
return patient;
}
/**
* Sets the value of the patient property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setPatient(Reference value) {
this.patient = value;
}
/**
* Gets the value of the owner property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getOwner() {
return owner;
}
/**
* Sets the value of the owner property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setOwner(Reference value) {
this.owner = value;
}
/**
* Gets the value of the contact 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 contact property.
*
*
* For example, to add a new item, do as follows:
*
* getContact().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ContactPoint }
*
*
*/
public List getContact() {
if (contact == null) {
contact = new ArrayList();
}
return this.contact;
}
/**
* 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 url property.
*
* @return
* possible object is
* {@link Uri }
*
*/
public Uri getUrl() {
return url;
}
/**
* Sets the value of the url property.
*
* @param value
* allowed object is
* {@link Uri }
*
*/
public void setUrl(Uri value) {
this.url = value;
}
/**
* Gets the value of the note 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 note property.
*
*
* For example, to add a new item, do as follows:
*
* getNote().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Annotation }
*
*
*/
public List getNote() {
if (note == null) {
note = new ArrayList();
}
return this.note;
}
public Device withIdentifier(Identifier... values) {
if (values!= null) {
for (Identifier value: values) {
getIdentifier().add(value);
}
}
return this;
}
public Device withIdentifier(Collection values) {
if (values!= null) {
getIdentifier().addAll(values);
}
return this;
}
public Device withUdiCarrier(Identifier value) {
setUdiCarrier(value);
return this;
}
public Device withStatus(DeviceStatus value) {
setStatus(value);
return this;
}
public Device withType(CodeableConcept value) {
setType(value);
return this;
}
public Device withLotNumber(org.hl7.fhir.String value) {
setLotNumber(value);
return this;
}
public Device withManufacturer(org.hl7.fhir.String value) {
setManufacturer(value);
return this;
}
public Device withManufactureDate(DateTime value) {
setManufactureDate(value);
return this;
}
public Device withExpirationDate(DateTime value) {
setExpirationDate(value);
return this;
}
public Device withModel(org.hl7.fhir.String value) {
setModel(value);
return this;
}
public Device withVersion(org.hl7.fhir.String value) {
setVersion(value);
return this;
}
public Device withPatient(Reference value) {
setPatient(value);
return this;
}
public Device withOwner(Reference value) {
setOwner(value);
return this;
}
public Device withContact(ContactPoint... values) {
if (values!= null) {
for (ContactPoint value: values) {
getContact().add(value);
}
}
return this;
}
public Device withContact(Collection values) {
if (values!= null) {
getContact().addAll(values);
}
return this;
}
public Device withLocation(Reference value) {
setLocation(value);
return this;
}
public Device withUrl(Uri value) {
setUrl(value);
return this;
}
public Device withNote(Annotation... values) {
if (values!= null) {
for (Annotation value: values) {
getNote().add(value);
}
}
return this;
}
public Device withNote(Collection values) {
if (values!= null) {
getNote().addAll(values);
}
return this;
}
@Override
public Device withText(Narrative value) {
setText(value);
return this;
}
@Override
public Device withContained(ResourceContainer... values) {
if (values!= null) {
for (ResourceContainer value: values) {
getContained().add(value);
}
}
return this;
}
@Override
public Device withContained(Collection values) {
if (values!= null) {
getContained().addAll(values);
}
return this;
}
@Override
public Device withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public Device withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public Device withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public Device withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public Device withId(Id value) {
setId(value);
return this;
}
@Override
public Device withMeta(Meta value) {
setMeta(value);
return this;
}
@Override
public Device withImplicitRules(Uri value) {
setImplicitRules(value);
return this;
}
@Override
public Device 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 Device that = ((Device) 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;
}
}
{
Identifier lhsUdiCarrier;
lhsUdiCarrier = this.getUdiCarrier();
Identifier rhsUdiCarrier;
rhsUdiCarrier = that.getUdiCarrier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "udiCarrier", lhsUdiCarrier), LocatorUtils.property(thatLocator, "udiCarrier", rhsUdiCarrier), lhsUdiCarrier, rhsUdiCarrier, (this.udiCarrier!= null), (that.udiCarrier!= null))) {
return false;
}
}
{
DeviceStatus lhsStatus;
lhsStatus = this.getStatus();
DeviceStatus 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 lhsType;
lhsType = this.getType();
CodeableConcept rhsType;
rhsType = that.getType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsLotNumber;
lhsLotNumber = this.getLotNumber();
org.hl7.fhir.String rhsLotNumber;
rhsLotNumber = that.getLotNumber();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lotNumber", lhsLotNumber), LocatorUtils.property(thatLocator, "lotNumber", rhsLotNumber), lhsLotNumber, rhsLotNumber, (this.lotNumber!= null), (that.lotNumber!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsManufacturer;
lhsManufacturer = this.getManufacturer();
org.hl7.fhir.String rhsManufacturer;
rhsManufacturer = that.getManufacturer();
if (!strategy.equals(LocatorUtils.property(thisLocator, "manufacturer", lhsManufacturer), LocatorUtils.property(thatLocator, "manufacturer", rhsManufacturer), lhsManufacturer, rhsManufacturer, (this.manufacturer!= null), (that.manufacturer!= null))) {
return false;
}
}
{
DateTime lhsManufactureDate;
lhsManufactureDate = this.getManufactureDate();
DateTime rhsManufactureDate;
rhsManufactureDate = that.getManufactureDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "manufactureDate", lhsManufactureDate), LocatorUtils.property(thatLocator, "manufactureDate", rhsManufactureDate), lhsManufactureDate, rhsManufactureDate, (this.manufactureDate!= null), (that.manufactureDate!= null))) {
return false;
}
}
{
DateTime lhsExpirationDate;
lhsExpirationDate = this.getExpirationDate();
DateTime rhsExpirationDate;
rhsExpirationDate = that.getExpirationDate();
if (!strategy.equals(LocatorUtils.property(thisLocator, "expirationDate", lhsExpirationDate), LocatorUtils.property(thatLocator, "expirationDate", rhsExpirationDate), lhsExpirationDate, rhsExpirationDate, (this.expirationDate!= null), (that.expirationDate!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsModel;
lhsModel = this.getModel();
org.hl7.fhir.String rhsModel;
rhsModel = that.getModel();
if (!strategy.equals(LocatorUtils.property(thisLocator, "model", lhsModel), LocatorUtils.property(thatLocator, "model", rhsModel), lhsModel, rhsModel, (this.model!= null), (that.model!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsVersion;
lhsVersion = this.getVersion();
org.hl7.fhir.String rhsVersion;
rhsVersion = that.getVersion();
if (!strategy.equals(LocatorUtils.property(thisLocator, "version", lhsVersion), LocatorUtils.property(thatLocator, "version", rhsVersion), lhsVersion, rhsVersion, (this.version!= null), (that.version!= null))) {
return false;
}
}
{
Reference lhsPatient;
lhsPatient = this.getPatient();
Reference rhsPatient;
rhsPatient = that.getPatient();
if (!strategy.equals(LocatorUtils.property(thisLocator, "patient", lhsPatient), LocatorUtils.property(thatLocator, "patient", rhsPatient), lhsPatient, rhsPatient, (this.patient!= null), (that.patient!= null))) {
return false;
}
}
{
Reference lhsOwner;
lhsOwner = this.getOwner();
Reference rhsOwner;
rhsOwner = that.getOwner();
if (!strategy.equals(LocatorUtils.property(thisLocator, "owner", lhsOwner), LocatorUtils.property(thatLocator, "owner", rhsOwner), lhsOwner, rhsOwner, (this.owner!= null), (that.owner!= null))) {
return false;
}
}
{
List lhsContact;
lhsContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null);
List rhsContact;
rhsContact = (((that.contact!= null)&&(!that.contact.isEmpty()))?that.getContact():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "contact", lhsContact), LocatorUtils.property(thatLocator, "contact", rhsContact), lhsContact, rhsContact, ((this.contact!= null)&&(!this.contact.isEmpty())), ((that.contact!= null)&&(!that.contact.isEmpty())))) {
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;
}
}
{
Uri lhsUrl;
lhsUrl = this.getUrl();
Uri rhsUrl;
rhsUrl = that.getUrl();
if (!strategy.equals(LocatorUtils.property(thisLocator, "url", lhsUrl), LocatorUtils.property(thatLocator, "url", rhsUrl), lhsUrl, rhsUrl, (this.url!= null), (that.url!= null))) {
return false;
}
}
{
List lhsNote;
lhsNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
List rhsNote;
rhsNote = (((that.note!= null)&&(!that.note.isEmpty()))?that.getNote():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "note", lhsNote), LocatorUtils.property(thatLocator, "note", rhsNote), lhsNote, rhsNote, ((this.note!= null)&&(!this.note.isEmpty())), ((that.note!= null)&&(!that.note.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())));
}
{
Identifier theUdiCarrier;
theUdiCarrier = this.getUdiCarrier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "udiCarrier", theUdiCarrier), currentHashCode, theUdiCarrier, (this.udiCarrier!= null));
}
{
DeviceStatus theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
}
{
CodeableConcept theType;
theType = this.getType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null));
}
{
org.hl7.fhir.String theLotNumber;
theLotNumber = this.getLotNumber();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lotNumber", theLotNumber), currentHashCode, theLotNumber, (this.lotNumber!= null));
}
{
org.hl7.fhir.String theManufacturer;
theManufacturer = this.getManufacturer();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "manufacturer", theManufacturer), currentHashCode, theManufacturer, (this.manufacturer!= null));
}
{
DateTime theManufactureDate;
theManufactureDate = this.getManufactureDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "manufactureDate", theManufactureDate), currentHashCode, theManufactureDate, (this.manufactureDate!= null));
}
{
DateTime theExpirationDate;
theExpirationDate = this.getExpirationDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "expirationDate", theExpirationDate), currentHashCode, theExpirationDate, (this.expirationDate!= null));
}
{
org.hl7.fhir.String theModel;
theModel = this.getModel();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "model", theModel), currentHashCode, theModel, (this.model!= null));
}
{
org.hl7.fhir.String theVersion;
theVersion = this.getVersion();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version", theVersion), currentHashCode, theVersion, (this.version!= null));
}
{
Reference thePatient;
thePatient = this.getPatient();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient, (this.patient!= null));
}
{
Reference theOwner;
theOwner = this.getOwner();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "owner", theOwner), currentHashCode, theOwner, (this.owner!= null));
}
{
List theContact;
theContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contact", theContact), currentHashCode, theContact, ((this.contact!= null)&&(!this.contact.isEmpty())));
}
{
Reference theLocation;
theLocation = this.getLocation();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "location", theLocation), currentHashCode, theLocation, (this.location!= null));
}
{
Uri theUrl;
theUrl = this.getUrl();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "url", theUrl), currentHashCode, theUrl, (this.url!= null));
}
{
List theNote;
theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "note", theNote), currentHashCode, theNote, ((this.note!= null)&&(!this.note.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())));
}
{
Identifier theUdiCarrier;
theUdiCarrier = this.getUdiCarrier();
strategy.appendField(locator, this, "udiCarrier", buffer, theUdiCarrier, (this.udiCarrier!= null));
}
{
DeviceStatus theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
}
{
CodeableConcept theType;
theType = this.getType();
strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null));
}
{
org.hl7.fhir.String theLotNumber;
theLotNumber = this.getLotNumber();
strategy.appendField(locator, this, "lotNumber", buffer, theLotNumber, (this.lotNumber!= null));
}
{
org.hl7.fhir.String theManufacturer;
theManufacturer = this.getManufacturer();
strategy.appendField(locator, this, "manufacturer", buffer, theManufacturer, (this.manufacturer!= null));
}
{
DateTime theManufactureDate;
theManufactureDate = this.getManufactureDate();
strategy.appendField(locator, this, "manufactureDate", buffer, theManufactureDate, (this.manufactureDate!= null));
}
{
DateTime theExpirationDate;
theExpirationDate = this.getExpirationDate();
strategy.appendField(locator, this, "expirationDate", buffer, theExpirationDate, (this.expirationDate!= null));
}
{
org.hl7.fhir.String theModel;
theModel = this.getModel();
strategy.appendField(locator, this, "model", buffer, theModel, (this.model!= null));
}
{
org.hl7.fhir.String theVersion;
theVersion = this.getVersion();
strategy.appendField(locator, this, "version", buffer, theVersion, (this.version!= null));
}
{
Reference thePatient;
thePatient = this.getPatient();
strategy.appendField(locator, this, "patient", buffer, thePatient, (this.patient!= null));
}
{
Reference theOwner;
theOwner = this.getOwner();
strategy.appendField(locator, this, "owner", buffer, theOwner, (this.owner!= null));
}
{
List theContact;
theContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null);
strategy.appendField(locator, this, "contact", buffer, theContact, ((this.contact!= null)&&(!this.contact.isEmpty())));
}
{
Reference theLocation;
theLocation = this.getLocation();
strategy.appendField(locator, this, "location", buffer, theLocation, (this.location!= null));
}
{
Uri theUrl;
theUrl = this.getUrl();
strategy.appendField(locator, this, "url", buffer, theUrl, (this.url!= null));
}
{
List theNote;
theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null);
strategy.appendField(locator, this, "note", buffer, theNote, ((this.note!= null)&&(!this.note.isEmpty())));
}
return buffer;
}
public void setIdentifier(List value) {
this.identifier = value;
}
public void setContact(List value) {
this.contact = value;
}
public void setNote(List value) {
this.note = value;
}
}