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

org.hl7.fhir.FamilyMemberHistory 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.08.16 at 09:36:55 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 FamilyMemberHistory complex type. * *

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

 * <complexType name="FamilyMemberHistory">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="patient" type="{http://hl7.org/fhir}Reference"/>
 *         <element name="date" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="status" type="{http://hl7.org/fhir}FamilyHistoryStatus"/>
 *         <element name="name" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="relationship" type="{http://hl7.org/fhir}CodeableConcept"/>
 *         <element name="gender" type="{http://hl7.org/fhir}AdministrativeGender" minOccurs="0"/>
 *         <choice minOccurs="0">
 *           <element name="bornPeriod" type="{http://hl7.org/fhir}Period"/>
 *           <element name="bornDate" type="{http://hl7.org/fhir}date"/>
 *           <element name="bornString" type="{http://hl7.org/fhir}string"/>
 *         </choice>
 *         <choice minOccurs="0">
 *           <element name="ageQuantity" type="{http://hl7.org/fhir}Age"/>
 *           <element name="ageRange" type="{http://hl7.org/fhir}Range"/>
 *           <element name="ageString" type="{http://hl7.org/fhir}string"/>
 *         </choice>
 *         <choice minOccurs="0">
 *           <element name="deceasedBoolean" type="{http://hl7.org/fhir}boolean"/>
 *           <element name="deceasedQuantity" type="{http://hl7.org/fhir}Age"/>
 *           <element name="deceasedRange" type="{http://hl7.org/fhir}Range"/>
 *           <element name="deceasedDate" type="{http://hl7.org/fhir}date"/>
 *           <element name="deceasedString" type="{http://hl7.org/fhir}string"/>
 *         </choice>
 *         <element name="note" type="{http://hl7.org/fhir}Annotation" minOccurs="0"/>
 *         <element name="condition" type="{http://hl7.org/fhir}FamilyMemberHistory.Condition" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "FamilyMemberHistory", propOrder = { "identifier", "patient", "date", "status", "name", "relationship", "gender", "bornPeriod", "bornDate", "bornString", "ageQuantity", "ageRange", "ageString", "deceasedBoolean", "deceasedQuantity", "deceasedRange", "deceasedDate", "deceasedString", "note", "condition" }) public class FamilyMemberHistory extends DomainResource implements Equals2, HashCode2, ToString2 { protected List identifier; @XmlElement(required = true) protected Reference patient; protected DateTime date; @XmlElement(required = true) protected FamilyHistoryStatus status; protected org.hl7.fhir.String name; @XmlElement(required = true) protected CodeableConcept relationship; protected AdministrativeGender gender; protected Period bornPeriod; protected Date bornDate; protected org.hl7.fhir.String bornString; protected Age ageQuantity; protected Range ageRange; protected org.hl7.fhir.String ageString; protected Boolean deceasedBoolean; protected Age deceasedQuantity; protected Range deceasedRange; protected Date deceasedDate; protected org.hl7.fhir.String deceasedString; protected Annotation note; protected List condition; /** * 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 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 date property. * * @return * possible object is * {@link DateTime } * */ public DateTime getDate() { return date; } /** * Sets the value of the date property. * * @param value * allowed object is * {@link DateTime } * */ public void setDate(DateTime value) { this.date = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link FamilyHistoryStatus } * */ public FamilyHistoryStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link FamilyHistoryStatus } * */ public void setStatus(FamilyHistoryStatus value) { this.status = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setName(org.hl7.fhir.String value) { this.name = value; } /** * Gets the value of the relationship property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getRelationship() { return relationship; } /** * Sets the value of the relationship property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setRelationship(CodeableConcept value) { this.relationship = value; } /** * Gets the value of the gender property. * * @return * possible object is * {@link AdministrativeGender } * */ public AdministrativeGender getGender() { return gender; } /** * Sets the value of the gender property. * * @param value * allowed object is * {@link AdministrativeGender } * */ public void setGender(AdministrativeGender value) { this.gender = value; } /** * Gets the value of the bornPeriod property. * * @return * possible object is * {@link Period } * */ public Period getBornPeriod() { return bornPeriod; } /** * Sets the value of the bornPeriod property. * * @param value * allowed object is * {@link Period } * */ public void setBornPeriod(Period value) { this.bornPeriod = value; } /** * Gets the value of the bornDate property. * * @return * possible object is * {@link Date } * */ public Date getBornDate() { return bornDate; } /** * Sets the value of the bornDate property. * * @param value * allowed object is * {@link Date } * */ public void setBornDate(Date value) { this.bornDate = value; } /** * Gets the value of the bornString property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getBornString() { return bornString; } /** * Sets the value of the bornString property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setBornString(org.hl7.fhir.String value) { this.bornString = value; } /** * Gets the value of the ageQuantity property. * * @return * possible object is * {@link Age } * */ public Age getAgeQuantity() { return ageQuantity; } /** * Sets the value of the ageQuantity property. * * @param value * allowed object is * {@link Age } * */ public void setAgeQuantity(Age value) { this.ageQuantity = value; } /** * Gets the value of the ageRange property. * * @return * possible object is * {@link Range } * */ public Range getAgeRange() { return ageRange; } /** * Sets the value of the ageRange property. * * @param value * allowed object is * {@link Range } * */ public void setAgeRange(Range value) { this.ageRange = value; } /** * Gets the value of the ageString property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getAgeString() { return ageString; } /** * Sets the value of the ageString property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setAgeString(org.hl7.fhir.String value) { this.ageString = value; } /** * Gets the value of the deceasedBoolean property. * * @return * possible object is * {@link Boolean } * */ public Boolean getDeceasedBoolean() { return deceasedBoolean; } /** * Sets the value of the deceasedBoolean property. * * @param value * allowed object is * {@link Boolean } * */ public void setDeceasedBoolean(Boolean value) { this.deceasedBoolean = value; } /** * Gets the value of the deceasedQuantity property. * * @return * possible object is * {@link Age } * */ public Age getDeceasedQuantity() { return deceasedQuantity; } /** * Sets the value of the deceasedQuantity property. * * @param value * allowed object is * {@link Age } * */ public void setDeceasedQuantity(Age value) { this.deceasedQuantity = value; } /** * Gets the value of the deceasedRange property. * * @return * possible object is * {@link Range } * */ public Range getDeceasedRange() { return deceasedRange; } /** * Sets the value of the deceasedRange property. * * @param value * allowed object is * {@link Range } * */ public void setDeceasedRange(Range value) { this.deceasedRange = value; } /** * Gets the value of the deceasedDate property. * * @return * possible object is * {@link Date } * */ public Date getDeceasedDate() { return deceasedDate; } /** * Sets the value of the deceasedDate property. * * @param value * allowed object is * {@link Date } * */ public void setDeceasedDate(Date value) { this.deceasedDate = value; } /** * Gets the value of the deceasedString property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getDeceasedString() { return deceasedString; } /** * Sets the value of the deceasedString property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setDeceasedString(org.hl7.fhir.String value) { this.deceasedString = 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; } /** * Gets the value of the condition 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 condition property. * *

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

     *    getCondition().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FamilyMemberHistoryCondition } * * */ public List getCondition() { if (condition == null) { condition = new ArrayList(); } return this.condition; } public FamilyMemberHistory withIdentifier(Identifier... values) { if (values!= null) { for (Identifier value: values) { getIdentifier().add(value); } } return this; } public FamilyMemberHistory withIdentifier(Collection values) { if (values!= null) { getIdentifier().addAll(values); } return this; } public FamilyMemberHistory withPatient(Reference value) { setPatient(value); return this; } public FamilyMemberHistory withDate(DateTime value) { setDate(value); return this; } public FamilyMemberHistory withStatus(FamilyHistoryStatus value) { setStatus(value); return this; } public FamilyMemberHistory withName(org.hl7.fhir.String value) { setName(value); return this; } public FamilyMemberHistory withRelationship(CodeableConcept value) { setRelationship(value); return this; } public FamilyMemberHistory withGender(AdministrativeGender value) { setGender(value); return this; } public FamilyMemberHistory withBornPeriod(Period value) { setBornPeriod(value); return this; } public FamilyMemberHistory withBornDate(Date value) { setBornDate(value); return this; } public FamilyMemberHistory withBornString(org.hl7.fhir.String value) { setBornString(value); return this; } public FamilyMemberHistory withAgeQuantity(Age value) { setAgeQuantity(value); return this; } public FamilyMemberHistory withAgeRange(Range value) { setAgeRange(value); return this; } public FamilyMemberHistory withAgeString(org.hl7.fhir.String value) { setAgeString(value); return this; } public FamilyMemberHistory withDeceasedBoolean(Boolean value) { setDeceasedBoolean(value); return this; } public FamilyMemberHistory withDeceasedQuantity(Age value) { setDeceasedQuantity(value); return this; } public FamilyMemberHistory withDeceasedRange(Range value) { setDeceasedRange(value); return this; } public FamilyMemberHistory withDeceasedDate(Date value) { setDeceasedDate(value); return this; } public FamilyMemberHistory withDeceasedString(org.hl7.fhir.String value) { setDeceasedString(value); return this; } public FamilyMemberHistory withNote(Annotation value) { setNote(value); return this; } public FamilyMemberHistory withCondition(FamilyMemberHistoryCondition... values) { if (values!= null) { for (FamilyMemberHistoryCondition value: values) { getCondition().add(value); } } return this; } public FamilyMemberHistory withCondition(Collection values) { if (values!= null) { getCondition().addAll(values); } return this; } @Override public FamilyMemberHistory withText(Narrative value) { setText(value); return this; } @Override public FamilyMemberHistory withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public FamilyMemberHistory withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public FamilyMemberHistory withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public FamilyMemberHistory withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public FamilyMemberHistory withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public FamilyMemberHistory withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public FamilyMemberHistory withId(Id value) { setId(value); return this; } @Override public FamilyMemberHistory withMeta(Meta value) { setMeta(value); return this; } @Override public FamilyMemberHistory withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public FamilyMemberHistory 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 FamilyMemberHistory that = ((FamilyMemberHistory) 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; } } { 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 lhsDate; lhsDate = this.getDate(); DateTime rhsDate; rhsDate = that.getDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "date", lhsDate), LocatorUtils.property(thatLocator, "date", rhsDate), lhsDate, rhsDate, (this.date!= null), (that.date!= null))) { return false; } } { FamilyHistoryStatus lhsStatus; lhsStatus = this.getStatus(); FamilyHistoryStatus 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; } } { org.hl7.fhir.String lhsName; lhsName = this.getName(); org.hl7.fhir.String rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName, (this.name!= null), (that.name!= null))) { return false; } } { CodeableConcept lhsRelationship; lhsRelationship = this.getRelationship(); CodeableConcept rhsRelationship; rhsRelationship = that.getRelationship(); if (!strategy.equals(LocatorUtils.property(thisLocator, "relationship", lhsRelationship), LocatorUtils.property(thatLocator, "relationship", rhsRelationship), lhsRelationship, rhsRelationship, (this.relationship!= null), (that.relationship!= null))) { return false; } } { AdministrativeGender lhsGender; lhsGender = this.getGender(); AdministrativeGender rhsGender; rhsGender = that.getGender(); if (!strategy.equals(LocatorUtils.property(thisLocator, "gender", lhsGender), LocatorUtils.property(thatLocator, "gender", rhsGender), lhsGender, rhsGender, (this.gender!= null), (that.gender!= null))) { return false; } } { Period lhsBornPeriod; lhsBornPeriod = this.getBornPeriod(); Period rhsBornPeriod; rhsBornPeriod = that.getBornPeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bornPeriod", lhsBornPeriod), LocatorUtils.property(thatLocator, "bornPeriod", rhsBornPeriod), lhsBornPeriod, rhsBornPeriod, (this.bornPeriod!= null), (that.bornPeriod!= null))) { return false; } } { Date lhsBornDate; lhsBornDate = this.getBornDate(); Date rhsBornDate; rhsBornDate = that.getBornDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bornDate", lhsBornDate), LocatorUtils.property(thatLocator, "bornDate", rhsBornDate), lhsBornDate, rhsBornDate, (this.bornDate!= null), (that.bornDate!= null))) { return false; } } { org.hl7.fhir.String lhsBornString; lhsBornString = this.getBornString(); org.hl7.fhir.String rhsBornString; rhsBornString = that.getBornString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bornString", lhsBornString), LocatorUtils.property(thatLocator, "bornString", rhsBornString), lhsBornString, rhsBornString, (this.bornString!= null), (that.bornString!= null))) { return false; } } { Age lhsAgeQuantity; lhsAgeQuantity = this.getAgeQuantity(); Age rhsAgeQuantity; rhsAgeQuantity = that.getAgeQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "ageQuantity", lhsAgeQuantity), LocatorUtils.property(thatLocator, "ageQuantity", rhsAgeQuantity), lhsAgeQuantity, rhsAgeQuantity, (this.ageQuantity!= null), (that.ageQuantity!= null))) { return false; } } { Range lhsAgeRange; lhsAgeRange = this.getAgeRange(); Range rhsAgeRange; rhsAgeRange = that.getAgeRange(); if (!strategy.equals(LocatorUtils.property(thisLocator, "ageRange", lhsAgeRange), LocatorUtils.property(thatLocator, "ageRange", rhsAgeRange), lhsAgeRange, rhsAgeRange, (this.ageRange!= null), (that.ageRange!= null))) { return false; } } { org.hl7.fhir.String lhsAgeString; lhsAgeString = this.getAgeString(); org.hl7.fhir.String rhsAgeString; rhsAgeString = that.getAgeString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "ageString", lhsAgeString), LocatorUtils.property(thatLocator, "ageString", rhsAgeString), lhsAgeString, rhsAgeString, (this.ageString!= null), (that.ageString!= null))) { return false; } } { Boolean lhsDeceasedBoolean; lhsDeceasedBoolean = this.getDeceasedBoolean(); Boolean rhsDeceasedBoolean; rhsDeceasedBoolean = that.getDeceasedBoolean(); if (!strategy.equals(LocatorUtils.property(thisLocator, "deceasedBoolean", lhsDeceasedBoolean), LocatorUtils.property(thatLocator, "deceasedBoolean", rhsDeceasedBoolean), lhsDeceasedBoolean, rhsDeceasedBoolean, (this.deceasedBoolean!= null), (that.deceasedBoolean!= null))) { return false; } } { Age lhsDeceasedQuantity; lhsDeceasedQuantity = this.getDeceasedQuantity(); Age rhsDeceasedQuantity; rhsDeceasedQuantity = that.getDeceasedQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "deceasedQuantity", lhsDeceasedQuantity), LocatorUtils.property(thatLocator, "deceasedQuantity", rhsDeceasedQuantity), lhsDeceasedQuantity, rhsDeceasedQuantity, (this.deceasedQuantity!= null), (that.deceasedQuantity!= null))) { return false; } } { Range lhsDeceasedRange; lhsDeceasedRange = this.getDeceasedRange(); Range rhsDeceasedRange; rhsDeceasedRange = that.getDeceasedRange(); if (!strategy.equals(LocatorUtils.property(thisLocator, "deceasedRange", lhsDeceasedRange), LocatorUtils.property(thatLocator, "deceasedRange", rhsDeceasedRange), lhsDeceasedRange, rhsDeceasedRange, (this.deceasedRange!= null), (that.deceasedRange!= null))) { return false; } } { Date lhsDeceasedDate; lhsDeceasedDate = this.getDeceasedDate(); Date rhsDeceasedDate; rhsDeceasedDate = that.getDeceasedDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "deceasedDate", lhsDeceasedDate), LocatorUtils.property(thatLocator, "deceasedDate", rhsDeceasedDate), lhsDeceasedDate, rhsDeceasedDate, (this.deceasedDate!= null), (that.deceasedDate!= null))) { return false; } } { org.hl7.fhir.String lhsDeceasedString; lhsDeceasedString = this.getDeceasedString(); org.hl7.fhir.String rhsDeceasedString; rhsDeceasedString = that.getDeceasedString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "deceasedString", lhsDeceasedString), LocatorUtils.property(thatLocator, "deceasedString", rhsDeceasedString), lhsDeceasedString, rhsDeceasedString, (this.deceasedString!= null), (that.deceasedString!= 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; } } { List lhsCondition; lhsCondition = (((this.condition!= null)&&(!this.condition.isEmpty()))?this.getCondition():null); List rhsCondition; rhsCondition = (((that.condition!= null)&&(!that.condition.isEmpty()))?that.getCondition():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "condition", lhsCondition), LocatorUtils.property(thatLocator, "condition", rhsCondition), lhsCondition, rhsCondition, ((this.condition!= null)&&(!this.condition.isEmpty())), ((that.condition!= null)&&(!that.condition.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()))); } { Reference thePatient; thePatient = this.getPatient(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient, (this.patient!= null)); } { DateTime theDate; theDate = this.getDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate, (this.date!= null)); } { FamilyHistoryStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null)); } { org.hl7.fhir.String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { CodeableConcept theRelationship; theRelationship = this.getRelationship(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "relationship", theRelationship), currentHashCode, theRelationship, (this.relationship!= null)); } { AdministrativeGender theGender; theGender = this.getGender(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "gender", theGender), currentHashCode, theGender, (this.gender!= null)); } { Period theBornPeriod; theBornPeriod = this.getBornPeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bornPeriod", theBornPeriod), currentHashCode, theBornPeriod, (this.bornPeriod!= null)); } { Date theBornDate; theBornDate = this.getBornDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bornDate", theBornDate), currentHashCode, theBornDate, (this.bornDate!= null)); } { org.hl7.fhir.String theBornString; theBornString = this.getBornString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bornString", theBornString), currentHashCode, theBornString, (this.bornString!= null)); } { Age theAgeQuantity; theAgeQuantity = this.getAgeQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ageQuantity", theAgeQuantity), currentHashCode, theAgeQuantity, (this.ageQuantity!= null)); } { Range theAgeRange; theAgeRange = this.getAgeRange(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ageRange", theAgeRange), currentHashCode, theAgeRange, (this.ageRange!= null)); } { org.hl7.fhir.String theAgeString; theAgeString = this.getAgeString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ageString", theAgeString), currentHashCode, theAgeString, (this.ageString!= null)); } { Boolean theDeceasedBoolean; theDeceasedBoolean = this.getDeceasedBoolean(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deceasedBoolean", theDeceasedBoolean), currentHashCode, theDeceasedBoolean, (this.deceasedBoolean!= null)); } { Age theDeceasedQuantity; theDeceasedQuantity = this.getDeceasedQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deceasedQuantity", theDeceasedQuantity), currentHashCode, theDeceasedQuantity, (this.deceasedQuantity!= null)); } { Range theDeceasedRange; theDeceasedRange = this.getDeceasedRange(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deceasedRange", theDeceasedRange), currentHashCode, theDeceasedRange, (this.deceasedRange!= null)); } { Date theDeceasedDate; theDeceasedDate = this.getDeceasedDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deceasedDate", theDeceasedDate), currentHashCode, theDeceasedDate, (this.deceasedDate!= null)); } { org.hl7.fhir.String theDeceasedString; theDeceasedString = this.getDeceasedString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deceasedString", theDeceasedString), currentHashCode, theDeceasedString, (this.deceasedString!= null)); } { Annotation theNote; theNote = this.getNote(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "note", theNote), currentHashCode, theNote, (this.note!= null)); } { List theCondition; theCondition = (((this.condition!= null)&&(!this.condition.isEmpty()))?this.getCondition():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "condition", theCondition), currentHashCode, theCondition, ((this.condition!= null)&&(!this.condition.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()))); } { Reference thePatient; thePatient = this.getPatient(); strategy.appendField(locator, this, "patient", buffer, thePatient, (this.patient!= null)); } { DateTime theDate; theDate = this.getDate(); strategy.appendField(locator, this, "date", buffer, theDate, (this.date!= null)); } { FamilyHistoryStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null)); } { org.hl7.fhir.String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null)); } { CodeableConcept theRelationship; theRelationship = this.getRelationship(); strategy.appendField(locator, this, "relationship", buffer, theRelationship, (this.relationship!= null)); } { AdministrativeGender theGender; theGender = this.getGender(); strategy.appendField(locator, this, "gender", buffer, theGender, (this.gender!= null)); } { Period theBornPeriod; theBornPeriod = this.getBornPeriod(); strategy.appendField(locator, this, "bornPeriod", buffer, theBornPeriod, (this.bornPeriod!= null)); } { Date theBornDate; theBornDate = this.getBornDate(); strategy.appendField(locator, this, "bornDate", buffer, theBornDate, (this.bornDate!= null)); } { org.hl7.fhir.String theBornString; theBornString = this.getBornString(); strategy.appendField(locator, this, "bornString", buffer, theBornString, (this.bornString!= null)); } { Age theAgeQuantity; theAgeQuantity = this.getAgeQuantity(); strategy.appendField(locator, this, "ageQuantity", buffer, theAgeQuantity, (this.ageQuantity!= null)); } { Range theAgeRange; theAgeRange = this.getAgeRange(); strategy.appendField(locator, this, "ageRange", buffer, theAgeRange, (this.ageRange!= null)); } { org.hl7.fhir.String theAgeString; theAgeString = this.getAgeString(); strategy.appendField(locator, this, "ageString", buffer, theAgeString, (this.ageString!= null)); } { Boolean theDeceasedBoolean; theDeceasedBoolean = this.getDeceasedBoolean(); strategy.appendField(locator, this, "deceasedBoolean", buffer, theDeceasedBoolean, (this.deceasedBoolean!= null)); } { Age theDeceasedQuantity; theDeceasedQuantity = this.getDeceasedQuantity(); strategy.appendField(locator, this, "deceasedQuantity", buffer, theDeceasedQuantity, (this.deceasedQuantity!= null)); } { Range theDeceasedRange; theDeceasedRange = this.getDeceasedRange(); strategy.appendField(locator, this, "deceasedRange", buffer, theDeceasedRange, (this.deceasedRange!= null)); } { Date theDeceasedDate; theDeceasedDate = this.getDeceasedDate(); strategy.appendField(locator, this, "deceasedDate", buffer, theDeceasedDate, (this.deceasedDate!= null)); } { org.hl7.fhir.String theDeceasedString; theDeceasedString = this.getDeceasedString(); strategy.appendField(locator, this, "deceasedString", buffer, theDeceasedString, (this.deceasedString!= null)); } { Annotation theNote; theNote = this.getNote(); strategy.appendField(locator, this, "note", buffer, theNote, (this.note!= null)); } { List theCondition; theCondition = (((this.condition!= null)&&(!this.condition.isEmpty()))?this.getCondition():null); strategy.appendField(locator, this, "condition", buffer, theCondition, ((this.condition!= null)&&(!this.condition.isEmpty()))); } return buffer; } public void setIdentifier(List value) { this.identifier = value; } public void setCondition(List value) { this.condition = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy