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

org.hl7.fhir.MedicationStatement 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: 2023.12.06 at 03:09:41 PM MST 
//


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 MedicationStatement complex type. * *

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

 * <complexType name="MedicationStatement">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="status" type="{http://hl7.org/fhir}MedicationStatementStatus"/>
 *         <choice>
 *           <element name="medicationCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
 *           <element name="medicationReference" type="{http://hl7.org/fhir}Reference"/>
 *         </choice>
 *         <element name="patient" type="{http://hl7.org/fhir}Reference"/>
 *         <choice minOccurs="0">
 *           <element name="effectiveDateTime" type="{http://hl7.org/fhir}dateTime"/>
 *           <element name="effectivePeriod" type="{http://hl7.org/fhir}Period"/>
 *         </choice>
 *         <element name="informationSource" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="supportingInformation" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="dateAsserted" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="wasNotTaken" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
 *         <element name="reasonNotTaken" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="reasonForUseCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
 *           <element name="reasonForUseReference" type="{http://hl7.org/fhir}Reference"/>
 *         </choice>
 *         <element name="note" type="{http://hl7.org/fhir}Annotation" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="dosage" type="{http://hl7.org/fhir}MedicationStatement.Dosage" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "MedicationStatement", propOrder = { "identifier", "status", "medicationCodeableConcept", "medicationReference", "patient", "effectiveDateTime", "effectivePeriod", "informationSource", "supportingInformation", "dateAsserted", "wasNotTaken", "reasonNotTaken", "reasonForUseCodeableConcept", "reasonForUseReference", "note", "dosage" }) public class MedicationStatement extends DomainResource implements Equals2, HashCode2, ToString2 { protected List identifier; @XmlElement(required = true) protected MedicationStatementStatus status; protected CodeableConcept medicationCodeableConcept; protected Reference medicationReference; @XmlElement(required = true) protected Reference patient; protected DateTime effectiveDateTime; protected Period effectivePeriod; protected Reference informationSource; protected List supportingInformation; protected DateTime dateAsserted; protected Boolean wasNotTaken; protected List reasonNotTaken; protected CodeableConcept reasonForUseCodeableConcept; protected Reference reasonForUseReference; protected List note; protected List dosage; /** * Gets the value of the identifier property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the identifier property. * *

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

     *    getIdentifier().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Identifier } * * */ public List getIdentifier() { if (identifier == null) { identifier = new ArrayList(); } return this.identifier; } /** * Gets the value of the status property. * * @return * possible object is * {@link MedicationStatementStatus } * */ public MedicationStatementStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link MedicationStatementStatus } * */ public void setStatus(MedicationStatementStatus value) { this.status = value; } /** * Gets the value of the medicationCodeableConcept property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getMedicationCodeableConcept() { return medicationCodeableConcept; } /** * Sets the value of the medicationCodeableConcept property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setMedicationCodeableConcept(CodeableConcept value) { this.medicationCodeableConcept = value; } /** * Gets the value of the medicationReference property. * * @return * possible object is * {@link Reference } * */ public Reference getMedicationReference() { return medicationReference; } /** * Sets the value of the medicationReference property. * * @param value * allowed object is * {@link Reference } * */ public void setMedicationReference(Reference value) { this.medicationReference = 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 effectiveDateTime property. * * @return * possible object is * {@link DateTime } * */ public DateTime getEffectiveDateTime() { return effectiveDateTime; } /** * Sets the value of the effectiveDateTime property. * * @param value * allowed object is * {@link DateTime } * */ public void setEffectiveDateTime(DateTime value) { this.effectiveDateTime = value; } /** * Gets the value of the effectivePeriod property. * * @return * possible object is * {@link Period } * */ public Period getEffectivePeriod() { return effectivePeriod; } /** * Sets the value of the effectivePeriod property. * * @param value * allowed object is * {@link Period } * */ public void setEffectivePeriod(Period value) { this.effectivePeriod = value; } /** * Gets the value of the informationSource property. * * @return * possible object is * {@link Reference } * */ public Reference getInformationSource() { return informationSource; } /** * Sets the value of the informationSource property. * * @param value * allowed object is * {@link Reference } * */ public void setInformationSource(Reference value) { this.informationSource = value; } /** * Gets the value of the supportingInformation 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 supportingInformation property. * *

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

     *    getSupportingInformation().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getSupportingInformation() { if (supportingInformation == null) { supportingInformation = new ArrayList(); } return this.supportingInformation; } /** * Gets the value of the dateAsserted property. * * @return * possible object is * {@link DateTime } * */ public DateTime getDateAsserted() { return dateAsserted; } /** * Sets the value of the dateAsserted property. * * @param value * allowed object is * {@link DateTime } * */ public void setDateAsserted(DateTime value) { this.dateAsserted = value; } /** * Gets the value of the wasNotTaken property. * * @return * possible object is * {@link Boolean } * */ public Boolean getWasNotTaken() { return wasNotTaken; } /** * Sets the value of the wasNotTaken property. * * @param value * allowed object is * {@link Boolean } * */ public void setWasNotTaken(Boolean value) { this.wasNotTaken = value; } /** * Gets the value of the reasonNotTaken 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 reasonNotTaken property. * *

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

     *    getReasonNotTaken().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link CodeableConcept } * * */ public List getReasonNotTaken() { if (reasonNotTaken == null) { reasonNotTaken = new ArrayList(); } return this.reasonNotTaken; } /** * Gets the value of the reasonForUseCodeableConcept property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getReasonForUseCodeableConcept() { return reasonForUseCodeableConcept; } /** * Sets the value of the reasonForUseCodeableConcept property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setReasonForUseCodeableConcept(CodeableConcept value) { this.reasonForUseCodeableConcept = value; } /** * Gets the value of the reasonForUseReference property. * * @return * possible object is * {@link Reference } * */ public Reference getReasonForUseReference() { return reasonForUseReference; } /** * Sets the value of the reasonForUseReference property. * * @param value * allowed object is * {@link Reference } * */ public void setReasonForUseReference(Reference value) { this.reasonForUseReference = 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; } /** * Gets the value of the dosage 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 dosage property. * *

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

     *    getDosage().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MedicationStatementDosage } * * */ public List getDosage() { if (dosage == null) { dosage = new ArrayList(); } return this.dosage; } public MedicationStatement withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public MedicationStatement withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public MedicationStatement withStatus(MedicationStatementStatus value) { setStatus(value); return this; } public MedicationStatement withMedicationCodeableConcept(CodeableConcept value) { setMedicationCodeableConcept(value); return this; } public MedicationStatement withMedicationReference(Reference value) { setMedicationReference(value); return this; } public MedicationStatement withPatient(Reference value) { setPatient(value); return this; } public MedicationStatement withEffectiveDateTime(DateTime value) { setEffectiveDateTime(value); return this; } public MedicationStatement withEffectivePeriod(Period value) { setEffectivePeriod(value); return this; } public MedicationStatement withInformationSource(Reference value) { setInformationSource(value); return this; } public MedicationStatement withSupportingInformation(Reference... values) { if (values!= null) { for (Reference value: values) { getSupportingInformation().add(value); } } return this; } public MedicationStatement withSupportingInformation(Collection values) { if (values!= null) { getSupportingInformation().addAll(values); } return this; } public MedicationStatement withDateAsserted(DateTime value) { setDateAsserted(value); return this; } public MedicationStatement withWasNotTaken(Boolean value) { setWasNotTaken(value); return this; } public MedicationStatement withReasonNotTaken(CodeableConcept... values) { if (values!= null) { for (CodeableConcept value: values) { getReasonNotTaken().add(value); } } return this; } public MedicationStatement withReasonNotTaken(Collection values) { if (values!= null) { getReasonNotTaken().addAll(values); } return this; } public MedicationStatement withReasonForUseCodeableConcept(CodeableConcept value) { setReasonForUseCodeableConcept(value); return this; } public MedicationStatement withReasonForUseReference(Reference value) { setReasonForUseReference(value); return this; } public MedicationStatement withNote(Annotation... values) { if (values!= null) { for (Annotation value: values) { getNote().add(value); } } return this; } public MedicationStatement withNote(Collection values) { if (values!= null) { getNote().addAll(values); } return this; } public MedicationStatement withDosage(MedicationStatementDosage... values) { if (values!= null) { for (MedicationStatementDosage value: values) { getDosage().add(value); } } return this; } public MedicationStatement withDosage(Collection values) { if (values!= null) { getDosage().addAll(values); } return this; } @Override public MedicationStatement withText(Narrative value) { setText(value); return this; } @Override public MedicationStatement withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public MedicationStatement withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public MedicationStatement withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public MedicationStatement withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public MedicationStatement withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public MedicationStatement withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public MedicationStatement withId(Id value) { setId(value); return this; } @Override public MedicationStatement withMeta(Meta value) { setMeta(value); return this; } @Override public MedicationStatement withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public MedicationStatement 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 MedicationStatement that = ((MedicationStatement) 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; } } { MedicationStatementStatus lhsStatus; lhsStatus = this.getStatus(); MedicationStatementStatus 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 lhsMedicationCodeableConcept; lhsMedicationCodeableConcept = this.getMedicationCodeableConcept(); CodeableConcept rhsMedicationCodeableConcept; rhsMedicationCodeableConcept = that.getMedicationCodeableConcept(); if (!strategy.equals(LocatorUtils.property(thisLocator, "medicationCodeableConcept", lhsMedicationCodeableConcept), LocatorUtils.property(thatLocator, "medicationCodeableConcept", rhsMedicationCodeableConcept), lhsMedicationCodeableConcept, rhsMedicationCodeableConcept, (this.medicationCodeableConcept!= null), (that.medicationCodeableConcept!= null))) { return false; } } { Reference lhsMedicationReference; lhsMedicationReference = this.getMedicationReference(); Reference rhsMedicationReference; rhsMedicationReference = that.getMedicationReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "medicationReference", lhsMedicationReference), LocatorUtils.property(thatLocator, "medicationReference", rhsMedicationReference), lhsMedicationReference, rhsMedicationReference, (this.medicationReference!= null), (that.medicationReference!= 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; } } { DateTime lhsEffectiveDateTime; lhsEffectiveDateTime = this.getEffectiveDateTime(); DateTime rhsEffectiveDateTime; rhsEffectiveDateTime = that.getEffectiveDateTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "effectiveDateTime", lhsEffectiveDateTime), LocatorUtils.property(thatLocator, "effectiveDateTime", rhsEffectiveDateTime), lhsEffectiveDateTime, rhsEffectiveDateTime, (this.effectiveDateTime!= null), (that.effectiveDateTime!= null))) { return false; } } { Period lhsEffectivePeriod; lhsEffectivePeriod = this.getEffectivePeriod(); Period rhsEffectivePeriod; rhsEffectivePeriod = that.getEffectivePeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "effectivePeriod", lhsEffectivePeriod), LocatorUtils.property(thatLocator, "effectivePeriod", rhsEffectivePeriod), lhsEffectivePeriod, rhsEffectivePeriod, (this.effectivePeriod!= null), (that.effectivePeriod!= null))) { return false; } } { Reference lhsInformationSource; lhsInformationSource = this.getInformationSource(); Reference rhsInformationSource; rhsInformationSource = that.getInformationSource(); if (!strategy.equals(LocatorUtils.property(thisLocator, "informationSource", lhsInformationSource), LocatorUtils.property(thatLocator, "informationSource", rhsInformationSource), lhsInformationSource, rhsInformationSource, (this.informationSource!= null), (that.informationSource!= null))) { return false; } } { List lhsSupportingInformation; lhsSupportingInformation = (((this.supportingInformation!= null)&&(!this.supportingInformation.isEmpty()))?this.getSupportingInformation():null); List rhsSupportingInformation; rhsSupportingInformation = (((that.supportingInformation!= null)&&(!that.supportingInformation.isEmpty()))?that.getSupportingInformation():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "supportingInformation", lhsSupportingInformation), LocatorUtils.property(thatLocator, "supportingInformation", rhsSupportingInformation), lhsSupportingInformation, rhsSupportingInformation, ((this.supportingInformation!= null)&&(!this.supportingInformation.isEmpty())), ((that.supportingInformation!= null)&&(!that.supportingInformation.isEmpty())))) { return false; } } { DateTime lhsDateAsserted; lhsDateAsserted = this.getDateAsserted(); DateTime rhsDateAsserted; rhsDateAsserted = that.getDateAsserted(); if (!strategy.equals(LocatorUtils.property(thisLocator, "dateAsserted", lhsDateAsserted), LocatorUtils.property(thatLocator, "dateAsserted", rhsDateAsserted), lhsDateAsserted, rhsDateAsserted, (this.dateAsserted!= null), (that.dateAsserted!= null))) { return false; } } { Boolean lhsWasNotTaken; lhsWasNotTaken = this.getWasNotTaken(); Boolean rhsWasNotTaken; rhsWasNotTaken = that.getWasNotTaken(); if (!strategy.equals(LocatorUtils.property(thisLocator, "wasNotTaken", lhsWasNotTaken), LocatorUtils.property(thatLocator, "wasNotTaken", rhsWasNotTaken), lhsWasNotTaken, rhsWasNotTaken, (this.wasNotTaken!= null), (that.wasNotTaken!= null))) { return false; } } { List lhsReasonNotTaken; lhsReasonNotTaken = (((this.reasonNotTaken!= null)&&(!this.reasonNotTaken.isEmpty()))?this.getReasonNotTaken():null); List rhsReasonNotTaken; rhsReasonNotTaken = (((that.reasonNotTaken!= null)&&(!that.reasonNotTaken.isEmpty()))?that.getReasonNotTaken():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "reasonNotTaken", lhsReasonNotTaken), LocatorUtils.property(thatLocator, "reasonNotTaken", rhsReasonNotTaken), lhsReasonNotTaken, rhsReasonNotTaken, ((this.reasonNotTaken!= null)&&(!this.reasonNotTaken.isEmpty())), ((that.reasonNotTaken!= null)&&(!that.reasonNotTaken.isEmpty())))) { return false; } } { CodeableConcept lhsReasonForUseCodeableConcept; lhsReasonForUseCodeableConcept = this.getReasonForUseCodeableConcept(); CodeableConcept rhsReasonForUseCodeableConcept; rhsReasonForUseCodeableConcept = that.getReasonForUseCodeableConcept(); if (!strategy.equals(LocatorUtils.property(thisLocator, "reasonForUseCodeableConcept", lhsReasonForUseCodeableConcept), LocatorUtils.property(thatLocator, "reasonForUseCodeableConcept", rhsReasonForUseCodeableConcept), lhsReasonForUseCodeableConcept, rhsReasonForUseCodeableConcept, (this.reasonForUseCodeableConcept!= null), (that.reasonForUseCodeableConcept!= null))) { return false; } } { Reference lhsReasonForUseReference; lhsReasonForUseReference = this.getReasonForUseReference(); Reference rhsReasonForUseReference; rhsReasonForUseReference = that.getReasonForUseReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "reasonForUseReference", lhsReasonForUseReference), LocatorUtils.property(thatLocator, "reasonForUseReference", rhsReasonForUseReference), lhsReasonForUseReference, rhsReasonForUseReference, (this.reasonForUseReference!= null), (that.reasonForUseReference!= 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; } } { List lhsDosage; lhsDosage = (((this.dosage!= null)&&(!this.dosage.isEmpty()))?this.getDosage():null); List rhsDosage; rhsDosage = (((that.dosage!= null)&&(!that.dosage.isEmpty()))?that.getDosage():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "dosage", lhsDosage), LocatorUtils.property(thatLocator, "dosage", rhsDosage), lhsDosage, rhsDosage, ((this.dosage!= null)&&(!this.dosage.isEmpty())), ((that.dosage!= null)&&(!that.dosage.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()))); } { MedicationStatementStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null)); } { CodeableConcept theMedicationCodeableConcept; theMedicationCodeableConcept = this.getMedicationCodeableConcept(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "medicationCodeableConcept", theMedicationCodeableConcept), currentHashCode, theMedicationCodeableConcept, (this.medicationCodeableConcept!= null)); } { Reference theMedicationReference; theMedicationReference = this.getMedicationReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "medicationReference", theMedicationReference), currentHashCode, theMedicationReference, (this.medicationReference!= null)); } { Reference thePatient; thePatient = this.getPatient(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient, (this.patient!= null)); } { DateTime theEffectiveDateTime; theEffectiveDateTime = this.getEffectiveDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "effectiveDateTime", theEffectiveDateTime), currentHashCode, theEffectiveDateTime, (this.effectiveDateTime!= null)); } { Period theEffectivePeriod; theEffectivePeriod = this.getEffectivePeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "effectivePeriod", theEffectivePeriod), currentHashCode, theEffectivePeriod, (this.effectivePeriod!= null)); } { Reference theInformationSource; theInformationSource = this.getInformationSource(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "informationSource", theInformationSource), currentHashCode, theInformationSource, (this.informationSource!= null)); } { List theSupportingInformation; theSupportingInformation = (((this.supportingInformation!= null)&&(!this.supportingInformation.isEmpty()))?this.getSupportingInformation():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "supportingInformation", theSupportingInformation), currentHashCode, theSupportingInformation, ((this.supportingInformation!= null)&&(!this.supportingInformation.isEmpty()))); } { DateTime theDateAsserted; theDateAsserted = this.getDateAsserted(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dateAsserted", theDateAsserted), currentHashCode, theDateAsserted, (this.dateAsserted!= null)); } { Boolean theWasNotTaken; theWasNotTaken = this.getWasNotTaken(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "wasNotTaken", theWasNotTaken), currentHashCode, theWasNotTaken, (this.wasNotTaken!= null)); } { List theReasonNotTaken; theReasonNotTaken = (((this.reasonNotTaken!= null)&&(!this.reasonNotTaken.isEmpty()))?this.getReasonNotTaken():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reasonNotTaken", theReasonNotTaken), currentHashCode, theReasonNotTaken, ((this.reasonNotTaken!= null)&&(!this.reasonNotTaken.isEmpty()))); } { CodeableConcept theReasonForUseCodeableConcept; theReasonForUseCodeableConcept = this.getReasonForUseCodeableConcept(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reasonForUseCodeableConcept", theReasonForUseCodeableConcept), currentHashCode, theReasonForUseCodeableConcept, (this.reasonForUseCodeableConcept!= null)); } { Reference theReasonForUseReference; theReasonForUseReference = this.getReasonForUseReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reasonForUseReference", theReasonForUseReference), currentHashCode, theReasonForUseReference, (this.reasonForUseReference!= 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()))); } { List theDosage; theDosage = (((this.dosage!= null)&&(!this.dosage.isEmpty()))?this.getDosage():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dosage", theDosage), currentHashCode, theDosage, ((this.dosage!= null)&&(!this.dosage.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()))); } { MedicationStatementStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null)); } { CodeableConcept theMedicationCodeableConcept; theMedicationCodeableConcept = this.getMedicationCodeableConcept(); strategy.appendField(locator, this, "medicationCodeableConcept", buffer, theMedicationCodeableConcept, (this.medicationCodeableConcept!= null)); } { Reference theMedicationReference; theMedicationReference = this.getMedicationReference(); strategy.appendField(locator, this, "medicationReference", buffer, theMedicationReference, (this.medicationReference!= null)); } { Reference thePatient; thePatient = this.getPatient(); strategy.appendField(locator, this, "patient", buffer, thePatient, (this.patient!= null)); } { DateTime theEffectiveDateTime; theEffectiveDateTime = this.getEffectiveDateTime(); strategy.appendField(locator, this, "effectiveDateTime", buffer, theEffectiveDateTime, (this.effectiveDateTime!= null)); } { Period theEffectivePeriod; theEffectivePeriod = this.getEffectivePeriod(); strategy.appendField(locator, this, "effectivePeriod", buffer, theEffectivePeriod, (this.effectivePeriod!= null)); } { Reference theInformationSource; theInformationSource = this.getInformationSource(); strategy.appendField(locator, this, "informationSource", buffer, theInformationSource, (this.informationSource!= null)); } { List theSupportingInformation; theSupportingInformation = (((this.supportingInformation!= null)&&(!this.supportingInformation.isEmpty()))?this.getSupportingInformation():null); strategy.appendField(locator, this, "supportingInformation", buffer, theSupportingInformation, ((this.supportingInformation!= null)&&(!this.supportingInformation.isEmpty()))); } { DateTime theDateAsserted; theDateAsserted = this.getDateAsserted(); strategy.appendField(locator, this, "dateAsserted", buffer, theDateAsserted, (this.dateAsserted!= null)); } { Boolean theWasNotTaken; theWasNotTaken = this.getWasNotTaken(); strategy.appendField(locator, this, "wasNotTaken", buffer, theWasNotTaken, (this.wasNotTaken!= null)); } { List theReasonNotTaken; theReasonNotTaken = (((this.reasonNotTaken!= null)&&(!this.reasonNotTaken.isEmpty()))?this.getReasonNotTaken():null); strategy.appendField(locator, this, "reasonNotTaken", buffer, theReasonNotTaken, ((this.reasonNotTaken!= null)&&(!this.reasonNotTaken.isEmpty()))); } { CodeableConcept theReasonForUseCodeableConcept; theReasonForUseCodeableConcept = this.getReasonForUseCodeableConcept(); strategy.appendField(locator, this, "reasonForUseCodeableConcept", buffer, theReasonForUseCodeableConcept, (this.reasonForUseCodeableConcept!= null)); } { Reference theReasonForUseReference; theReasonForUseReference = this.getReasonForUseReference(); strategy.appendField(locator, this, "reasonForUseReference", buffer, theReasonForUseReference, (this.reasonForUseReference!= 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()))); } { List theDosage; theDosage = (((this.dosage!= null)&&(!this.dosage.isEmpty()))?this.getDosage():null); strategy.appendField(locator, this, "dosage", buffer, theDosage, ((this.dosage!= null)&&(!this.dosage.isEmpty()))); } return buffer; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy