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

org.hl7.fhir.FamilyMemberHistoryCondition Maven / Gradle / Ivy

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.05.02 at 09:57:28 AM MDT 
//


package org.hl7.fhir;

import java.util.Collection;
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;


/**
 * Significant health events and conditions for a person related to the patient relevant in the context of care for the patient.
 * 
 * 

Java class for FamilyMemberHistory.Condition complex type. * *

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

 * <complexType name="FamilyMemberHistory.Condition">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="code" type="{http://hl7.org/fhir}CodeableConcept"/>
 *         <element name="outcome" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="onsetQuantity" type="{http://hl7.org/fhir}Age"/>
 *           <element name="onsetRange" type="{http://hl7.org/fhir}Range"/>
 *           <element name="onsetPeriod" type="{http://hl7.org/fhir}Period"/>
 *           <element name="onsetString" type="{http://hl7.org/fhir}string"/>
 *         </choice>
 *         <element name="note" type="{http://hl7.org/fhir}Annotation" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "FamilyMemberHistory.Condition", propOrder = { "code", "outcome", "onsetQuantity", "onsetRange", "onsetPeriod", "onsetString", "note" }) public class FamilyMemberHistoryCondition extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected CodeableConcept code; protected CodeableConcept outcome; protected Age onsetQuantity; protected Range onsetRange; protected Period onsetPeriod; protected org.hl7.fhir.String onsetString; protected Annotation note; /** * Gets the value of the code property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getCode() { return code; } /** * Sets the value of the code property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setCode(CodeableConcept value) { this.code = value; } /** * Gets the value of the outcome property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getOutcome() { return outcome; } /** * Sets the value of the outcome property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setOutcome(CodeableConcept value) { this.outcome = value; } /** * Gets the value of the onsetQuantity property. * * @return * possible object is * {@link Age } * */ public Age getOnsetQuantity() { return onsetQuantity; } /** * Sets the value of the onsetQuantity property. * * @param value * allowed object is * {@link Age } * */ public void setOnsetQuantity(Age value) { this.onsetQuantity = value; } /** * Gets the value of the onsetRange property. * * @return * possible object is * {@link Range } * */ public Range getOnsetRange() { return onsetRange; } /** * Sets the value of the onsetRange property. * * @param value * allowed object is * {@link Range } * */ public void setOnsetRange(Range value) { this.onsetRange = value; } /** * Gets the value of the onsetPeriod property. * * @return * possible object is * {@link Period } * */ public Period getOnsetPeriod() { return onsetPeriod; } /** * Sets the value of the onsetPeriod property. * * @param value * allowed object is * {@link Period } * */ public void setOnsetPeriod(Period value) { this.onsetPeriod = value; } /** * Gets the value of the onsetString property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getOnsetString() { return onsetString; } /** * Sets the value of the onsetString property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setOnsetString(org.hl7.fhir.String value) { this.onsetString = value; } /** * Gets the value of the note property. * * @return * possible object is * {@link Annotation } * */ public Annotation getNote() { return note; } /** * Sets the value of the note property. * * @param value * allowed object is * {@link Annotation } * */ public void setNote(Annotation value) { this.note = value; } public FamilyMemberHistoryCondition withCode(CodeableConcept value) { setCode(value); return this; } public FamilyMemberHistoryCondition withOutcome(CodeableConcept value) { setOutcome(value); return this; } public FamilyMemberHistoryCondition withOnsetQuantity(Age value) { setOnsetQuantity(value); return this; } public FamilyMemberHistoryCondition withOnsetRange(Range value) { setOnsetRange(value); return this; } public FamilyMemberHistoryCondition withOnsetPeriod(Period value) { setOnsetPeriod(value); return this; } public FamilyMemberHistoryCondition withOnsetString(org.hl7.fhir.String value) { setOnsetString(value); return this; } public FamilyMemberHistoryCondition withNote(Annotation value) { setNote(value); return this; } @Override public FamilyMemberHistoryCondition withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public FamilyMemberHistoryCondition withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public FamilyMemberHistoryCondition withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public FamilyMemberHistoryCondition withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public FamilyMemberHistoryCondition withId(java.lang.String value) { setId(value); return this; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final FamilyMemberHistoryCondition that = ((FamilyMemberHistoryCondition) object); { CodeableConcept lhsCode; lhsCode = this.getCode(); CodeableConcept rhsCode; rhsCode = that.getCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "code", lhsCode), LocatorUtils.property(thatLocator, "code", rhsCode), lhsCode, rhsCode, (this.code!= null), (that.code!= null))) { return false; } } { CodeableConcept lhsOutcome; lhsOutcome = this.getOutcome(); CodeableConcept rhsOutcome; rhsOutcome = that.getOutcome(); if (!strategy.equals(LocatorUtils.property(thisLocator, "outcome", lhsOutcome), LocatorUtils.property(thatLocator, "outcome", rhsOutcome), lhsOutcome, rhsOutcome, (this.outcome!= null), (that.outcome!= null))) { return false; } } { Age lhsOnsetQuantity; lhsOnsetQuantity = this.getOnsetQuantity(); Age rhsOnsetQuantity; rhsOnsetQuantity = that.getOnsetQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "onsetQuantity", lhsOnsetQuantity), LocatorUtils.property(thatLocator, "onsetQuantity", rhsOnsetQuantity), lhsOnsetQuantity, rhsOnsetQuantity, (this.onsetQuantity!= null), (that.onsetQuantity!= null))) { return false; } } { Range lhsOnsetRange; lhsOnsetRange = this.getOnsetRange(); Range rhsOnsetRange; rhsOnsetRange = that.getOnsetRange(); if (!strategy.equals(LocatorUtils.property(thisLocator, "onsetRange", lhsOnsetRange), LocatorUtils.property(thatLocator, "onsetRange", rhsOnsetRange), lhsOnsetRange, rhsOnsetRange, (this.onsetRange!= null), (that.onsetRange!= null))) { return false; } } { Period lhsOnsetPeriod; lhsOnsetPeriod = this.getOnsetPeriod(); Period rhsOnsetPeriod; rhsOnsetPeriod = that.getOnsetPeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "onsetPeriod", lhsOnsetPeriod), LocatorUtils.property(thatLocator, "onsetPeriod", rhsOnsetPeriod), lhsOnsetPeriod, rhsOnsetPeriod, (this.onsetPeriod!= null), (that.onsetPeriod!= null))) { return false; } } { org.hl7.fhir.String lhsOnsetString; lhsOnsetString = this.getOnsetString(); org.hl7.fhir.String rhsOnsetString; rhsOnsetString = that.getOnsetString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "onsetString", lhsOnsetString), LocatorUtils.property(thatLocator, "onsetString", rhsOnsetString), lhsOnsetString, rhsOnsetString, (this.onsetString!= null), (that.onsetString!= null))) { return false; } } { Annotation lhsNote; lhsNote = this.getNote(); Annotation rhsNote; rhsNote = that.getNote(); if (!strategy.equals(LocatorUtils.property(thisLocator, "note", lhsNote), LocatorUtils.property(thatLocator, "note", rhsNote), lhsNote, rhsNote, (this.note!= null), (that.note!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = super.hashCode(locator, strategy); { CodeableConcept theCode; theCode = this.getCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode, (this.code!= null)); } { CodeableConcept theOutcome; theOutcome = this.getOutcome(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "outcome", theOutcome), currentHashCode, theOutcome, (this.outcome!= null)); } { Age theOnsetQuantity; theOnsetQuantity = this.getOnsetQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onsetQuantity", theOnsetQuantity), currentHashCode, theOnsetQuantity, (this.onsetQuantity!= null)); } { Range theOnsetRange; theOnsetRange = this.getOnsetRange(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onsetRange", theOnsetRange), currentHashCode, theOnsetRange, (this.onsetRange!= null)); } { Period theOnsetPeriod; theOnsetPeriod = this.getOnsetPeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onsetPeriod", theOnsetPeriod), currentHashCode, theOnsetPeriod, (this.onsetPeriod!= null)); } { org.hl7.fhir.String theOnsetString; theOnsetString = this.getOnsetString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onsetString", theOnsetString), currentHashCode, theOnsetString, (this.onsetString!= null)); } { Annotation theNote; theNote = this.getNote(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "note", theNote), currentHashCode, theNote, (this.note!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public java.lang.String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); { CodeableConcept theCode; theCode = this.getCode(); strategy.appendField(locator, this, "code", buffer, theCode, (this.code!= null)); } { CodeableConcept theOutcome; theOutcome = this.getOutcome(); strategy.appendField(locator, this, "outcome", buffer, theOutcome, (this.outcome!= null)); } { Age theOnsetQuantity; theOnsetQuantity = this.getOnsetQuantity(); strategy.appendField(locator, this, "onsetQuantity", buffer, theOnsetQuantity, (this.onsetQuantity!= null)); } { Range theOnsetRange; theOnsetRange = this.getOnsetRange(); strategy.appendField(locator, this, "onsetRange", buffer, theOnsetRange, (this.onsetRange!= null)); } { Period theOnsetPeriod; theOnsetPeriod = this.getOnsetPeriod(); strategy.appendField(locator, this, "onsetPeriod", buffer, theOnsetPeriod, (this.onsetPeriod!= null)); } { org.hl7.fhir.String theOnsetString; theOnsetString = this.getOnsetString(); strategy.appendField(locator, this, "onsetString", buffer, theOnsetString, (this.onsetString!= null)); } { Annotation theNote; theNote = this.getNote(); strategy.appendField(locator, this, "note", buffer, theNote, (this.note!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy