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.22.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2018.01.12 at 11:04:27 AM MST 
//


package org.hl7.fhir;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 Equals, HashCode, ToString { 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 JAXB 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 JAXB 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 JAXB 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 JAXB 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 JAXB 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; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof MedicationStatement)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy 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); } { MedicationStatementStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus); } { CodeableConcept theMedicationCodeableConcept; theMedicationCodeableConcept = this.getMedicationCodeableConcept(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "medicationCodeableConcept", theMedicationCodeableConcept), currentHashCode, theMedicationCodeableConcept); } { Reference theMedicationReference; theMedicationReference = this.getMedicationReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "medicationReference", theMedicationReference), currentHashCode, theMedicationReference); } { Reference thePatient; thePatient = this.getPatient(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient); } { DateTime theEffectiveDateTime; theEffectiveDateTime = this.getEffectiveDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "effectiveDateTime", theEffectiveDateTime), currentHashCode, theEffectiveDateTime); } { Period theEffectivePeriod; theEffectivePeriod = this.getEffectivePeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "effectivePeriod", theEffectivePeriod), currentHashCode, theEffectivePeriod); } { Reference theInformationSource; theInformationSource = this.getInformationSource(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "informationSource", theInformationSource), currentHashCode, theInformationSource); } { List theSupportingInformation; theSupportingInformation = (((this.supportingInformation!= null)&&(!this.supportingInformation.isEmpty()))?this.getSupportingInformation():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "supportingInformation", theSupportingInformation), currentHashCode, theSupportingInformation); } { DateTime theDateAsserted; theDateAsserted = this.getDateAsserted(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dateAsserted", theDateAsserted), currentHashCode, theDateAsserted); } { Boolean theWasNotTaken; theWasNotTaken = this.getWasNotTaken(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "wasNotTaken", theWasNotTaken), currentHashCode, theWasNotTaken); } { List theReasonNotTaken; theReasonNotTaken = (((this.reasonNotTaken!= null)&&(!this.reasonNotTaken.isEmpty()))?this.getReasonNotTaken():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reasonNotTaken", theReasonNotTaken), currentHashCode, theReasonNotTaken); } { CodeableConcept theReasonForUseCodeableConcept; theReasonForUseCodeableConcept = this.getReasonForUseCodeableConcept(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reasonForUseCodeableConcept", theReasonForUseCodeableConcept), currentHashCode, theReasonForUseCodeableConcept); } { Reference theReasonForUseReference; theReasonForUseReference = this.getReasonForUseReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reasonForUseReference", theReasonForUseReference), currentHashCode, theReasonForUseReference); } { List theNote; theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "note", theNote), currentHashCode, theNote); } { List theDosage; theDosage = (((this.dosage!= null)&&(!this.dosage.isEmpty()))?this.getDosage():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dosage", theDosage), currentHashCode, theDosage); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public java.lang.String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy 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); } { MedicationStatementStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus); } { CodeableConcept theMedicationCodeableConcept; theMedicationCodeableConcept = this.getMedicationCodeableConcept(); strategy.appendField(locator, this, "medicationCodeableConcept", buffer, theMedicationCodeableConcept); } { Reference theMedicationReference; theMedicationReference = this.getMedicationReference(); strategy.appendField(locator, this, "medicationReference", buffer, theMedicationReference); } { Reference thePatient; thePatient = this.getPatient(); strategy.appendField(locator, this, "patient", buffer, thePatient); } { DateTime theEffectiveDateTime; theEffectiveDateTime = this.getEffectiveDateTime(); strategy.appendField(locator, this, "effectiveDateTime", buffer, theEffectiveDateTime); } { Period theEffectivePeriod; theEffectivePeriod = this.getEffectivePeriod(); strategy.appendField(locator, this, "effectivePeriod", buffer, theEffectivePeriod); } { Reference theInformationSource; theInformationSource = this.getInformationSource(); strategy.appendField(locator, this, "informationSource", buffer, theInformationSource); } { List theSupportingInformation; theSupportingInformation = (((this.supportingInformation!= null)&&(!this.supportingInformation.isEmpty()))?this.getSupportingInformation():null); strategy.appendField(locator, this, "supportingInformation", buffer, theSupportingInformation); } { DateTime theDateAsserted; theDateAsserted = this.getDateAsserted(); strategy.appendField(locator, this, "dateAsserted", buffer, theDateAsserted); } { Boolean theWasNotTaken; theWasNotTaken = this.getWasNotTaken(); strategy.appendField(locator, this, "wasNotTaken", buffer, theWasNotTaken); } { List theReasonNotTaken; theReasonNotTaken = (((this.reasonNotTaken!= null)&&(!this.reasonNotTaken.isEmpty()))?this.getReasonNotTaken():null); strategy.appendField(locator, this, "reasonNotTaken", buffer, theReasonNotTaken); } { CodeableConcept theReasonForUseCodeableConcept; theReasonForUseCodeableConcept = this.getReasonForUseCodeableConcept(); strategy.appendField(locator, this, "reasonForUseCodeableConcept", buffer, theReasonForUseCodeableConcept); } { Reference theReasonForUseReference; theReasonForUseReference = this.getReasonForUseReference(); strategy.appendField(locator, this, "reasonForUseReference", buffer, theReasonForUseReference); } { List theNote; theNote = (((this.note!= null)&&(!this.note.isEmpty()))?this.getNote():null); strategy.appendField(locator, this, "note", buffer, theNote); } { List theDosage; theDosage = (((this.dosage!= null)&&(!this.dosage.isEmpty()))?this.getDosage():null); strategy.appendField(locator, this, "dosage", buffer, theDosage); } return buffer; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy