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

org.hl7.fhir.GuidanceResponse 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 GuidanceResponse complex type. * *

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

 * <complexType name="GuidanceResponse">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="requestId" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="module" type="{http://hl7.org/fhir}Reference"/>
 *         <element name="status" type="{http://hl7.org/fhir}GuidanceResponseStatus"/>
 *         <element name="evaluationMessage" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="outputParameters" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="action" type="{http://hl7.org/fhir}GuidanceResponse.Action" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="dataRequirement" type="{http://hl7.org/fhir}DataRequirement" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "GuidanceResponse", propOrder = { "requestId", "module", "status", "evaluationMessage", "outputParameters", "action", "dataRequirement" }) public class GuidanceResponse extends DomainResource implements Equals2, HashCode2, ToString2 { protected org.hl7.fhir.String requestId; @XmlElement(required = true) protected Reference module; @XmlElement(required = true) protected GuidanceResponseStatus status; protected List evaluationMessage; protected Reference outputParameters; protected List action; protected List dataRequirement; /** * Gets the value of the requestId property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getRequestId() { return requestId; } /** * Sets the value of the requestId property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setRequestId(org.hl7.fhir.String value) { this.requestId = value; } /** * Gets the value of the module property. * * @return * possible object is * {@link Reference } * */ public Reference getModule() { return module; } /** * Sets the value of the module property. * * @param value * allowed object is * {@link Reference } * */ public void setModule(Reference value) { this.module = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link GuidanceResponseStatus } * */ public GuidanceResponseStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link GuidanceResponseStatus } * */ public void setStatus(GuidanceResponseStatus value) { this.status = value; } /** * Gets the value of the evaluationMessage 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 evaluationMessage property. * *

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

     *    getEvaluationMessage().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getEvaluationMessage() { if (evaluationMessage == null) { evaluationMessage = new ArrayList(); } return this.evaluationMessage; } /** * Gets the value of the outputParameters property. * * @return * possible object is * {@link Reference } * */ public Reference getOutputParameters() { return outputParameters; } /** * Sets the value of the outputParameters property. * * @param value * allowed object is * {@link Reference } * */ public void setOutputParameters(Reference value) { this.outputParameters = value; } /** * Gets the value of the action 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 action property. * *

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

     *    getAction().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link GuidanceResponseAction } * * */ public List getAction() { if (action == null) { action = new ArrayList(); } return this.action; } /** * Gets the value of the dataRequirement 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 dataRequirement property. * *

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

     *    getDataRequirement().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DataRequirement } * * */ public List getDataRequirement() { if (dataRequirement == null) { dataRequirement = new ArrayList(); } return this.dataRequirement; } public GuidanceResponse withRequestId(org.hl7.fhir.String value) { setRequestId(value); return this; } public GuidanceResponse withModule(Reference value) { setModule(value); return this; } public GuidanceResponse withStatus(GuidanceResponseStatus value) { setStatus(value); return this; } public GuidanceResponse withEvaluationMessage(Reference... values) { if (values!= null) { for (Reference value: values) { getEvaluationMessage().add(value); } } return this; } public GuidanceResponse withEvaluationMessage(Collection values) { if (values!= null) { getEvaluationMessage().addAll(values); } return this; } public GuidanceResponse withOutputParameters(Reference value) { setOutputParameters(value); return this; } public GuidanceResponse withAction(GuidanceResponseAction... values) { if (values!= null) { for (GuidanceResponseAction value: values) { getAction().add(value); } } return this; } public GuidanceResponse withAction(Collection values) { if (values!= null) { getAction().addAll(values); } return this; } public GuidanceResponse withDataRequirement(DataRequirement... values) { if (values!= null) { for (DataRequirement value: values) { getDataRequirement().add(value); } } return this; } public GuidanceResponse withDataRequirement(Collection values) { if (values!= null) { getDataRequirement().addAll(values); } return this; } @Override public GuidanceResponse withText(Narrative value) { setText(value); return this; } @Override public GuidanceResponse withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public GuidanceResponse withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public GuidanceResponse withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public GuidanceResponse withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public GuidanceResponse withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public GuidanceResponse withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public GuidanceResponse withId(Id value) { setId(value); return this; } @Override public GuidanceResponse withMeta(Meta value) { setMeta(value); return this; } @Override public GuidanceResponse withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public GuidanceResponse 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 GuidanceResponse that = ((GuidanceResponse) object); { org.hl7.fhir.String lhsRequestId; lhsRequestId = this.getRequestId(); org.hl7.fhir.String rhsRequestId; rhsRequestId = that.getRequestId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "requestId", lhsRequestId), LocatorUtils.property(thatLocator, "requestId", rhsRequestId), lhsRequestId, rhsRequestId, (this.requestId!= null), (that.requestId!= null))) { return false; } } { Reference lhsModule; lhsModule = this.getModule(); Reference rhsModule; rhsModule = that.getModule(); if (!strategy.equals(LocatorUtils.property(thisLocator, "module", lhsModule), LocatorUtils.property(thatLocator, "module", rhsModule), lhsModule, rhsModule, (this.module!= null), (that.module!= null))) { return false; } } { GuidanceResponseStatus lhsStatus; lhsStatus = this.getStatus(); GuidanceResponseStatus 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; } } { List lhsEvaluationMessage; lhsEvaluationMessage = (((this.evaluationMessage!= null)&&(!this.evaluationMessage.isEmpty()))?this.getEvaluationMessage():null); List rhsEvaluationMessage; rhsEvaluationMessage = (((that.evaluationMessage!= null)&&(!that.evaluationMessage.isEmpty()))?that.getEvaluationMessage():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "evaluationMessage", lhsEvaluationMessage), LocatorUtils.property(thatLocator, "evaluationMessage", rhsEvaluationMessage), lhsEvaluationMessage, rhsEvaluationMessage, ((this.evaluationMessage!= null)&&(!this.evaluationMessage.isEmpty())), ((that.evaluationMessage!= null)&&(!that.evaluationMessage.isEmpty())))) { return false; } } { Reference lhsOutputParameters; lhsOutputParameters = this.getOutputParameters(); Reference rhsOutputParameters; rhsOutputParameters = that.getOutputParameters(); if (!strategy.equals(LocatorUtils.property(thisLocator, "outputParameters", lhsOutputParameters), LocatorUtils.property(thatLocator, "outputParameters", rhsOutputParameters), lhsOutputParameters, rhsOutputParameters, (this.outputParameters!= null), (that.outputParameters!= null))) { return false; } } { List lhsAction; lhsAction = (((this.action!= null)&&(!this.action.isEmpty()))?this.getAction():null); List rhsAction; rhsAction = (((that.action!= null)&&(!that.action.isEmpty()))?that.getAction():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "action", lhsAction), LocatorUtils.property(thatLocator, "action", rhsAction), lhsAction, rhsAction, ((this.action!= null)&&(!this.action.isEmpty())), ((that.action!= null)&&(!that.action.isEmpty())))) { return false; } } { List lhsDataRequirement; lhsDataRequirement = (((this.dataRequirement!= null)&&(!this.dataRequirement.isEmpty()))?this.getDataRequirement():null); List rhsDataRequirement; rhsDataRequirement = (((that.dataRequirement!= null)&&(!that.dataRequirement.isEmpty()))?that.getDataRequirement():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "dataRequirement", lhsDataRequirement), LocatorUtils.property(thatLocator, "dataRequirement", rhsDataRequirement), lhsDataRequirement, rhsDataRequirement, ((this.dataRequirement!= null)&&(!this.dataRequirement.isEmpty())), ((that.dataRequirement!= null)&&(!that.dataRequirement.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); { org.hl7.fhir.String theRequestId; theRequestId = this.getRequestId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "requestId", theRequestId), currentHashCode, theRequestId, (this.requestId!= null)); } { Reference theModule; theModule = this.getModule(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "module", theModule), currentHashCode, theModule, (this.module!= null)); } { GuidanceResponseStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null)); } { List theEvaluationMessage; theEvaluationMessage = (((this.evaluationMessage!= null)&&(!this.evaluationMessage.isEmpty()))?this.getEvaluationMessage():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "evaluationMessage", theEvaluationMessage), currentHashCode, theEvaluationMessage, ((this.evaluationMessage!= null)&&(!this.evaluationMessage.isEmpty()))); } { Reference theOutputParameters; theOutputParameters = this.getOutputParameters(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "outputParameters", theOutputParameters), currentHashCode, theOutputParameters, (this.outputParameters!= null)); } { List theAction; theAction = (((this.action!= null)&&(!this.action.isEmpty()))?this.getAction():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "action", theAction), currentHashCode, theAction, ((this.action!= null)&&(!this.action.isEmpty()))); } { List theDataRequirement; theDataRequirement = (((this.dataRequirement!= null)&&(!this.dataRequirement.isEmpty()))?this.getDataRequirement():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dataRequirement", theDataRequirement), currentHashCode, theDataRequirement, ((this.dataRequirement!= null)&&(!this.dataRequirement.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); { org.hl7.fhir.String theRequestId; theRequestId = this.getRequestId(); strategy.appendField(locator, this, "requestId", buffer, theRequestId, (this.requestId!= null)); } { Reference theModule; theModule = this.getModule(); strategy.appendField(locator, this, "module", buffer, theModule, (this.module!= null)); } { GuidanceResponseStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null)); } { List theEvaluationMessage; theEvaluationMessage = (((this.evaluationMessage!= null)&&(!this.evaluationMessage.isEmpty()))?this.getEvaluationMessage():null); strategy.appendField(locator, this, "evaluationMessage", buffer, theEvaluationMessage, ((this.evaluationMessage!= null)&&(!this.evaluationMessage.isEmpty()))); } { Reference theOutputParameters; theOutputParameters = this.getOutputParameters(); strategy.appendField(locator, this, "outputParameters", buffer, theOutputParameters, (this.outputParameters!= null)); } { List theAction; theAction = (((this.action!= null)&&(!this.action.isEmpty()))?this.getAction():null); strategy.appendField(locator, this, "action", buffer, theAction, ((this.action!= null)&&(!this.action.isEmpty()))); } { List theDataRequirement; theDataRequirement = (((this.dataRequirement!= null)&&(!this.dataRequirement.isEmpty()))?this.getDataRequirement():null); strategy.appendField(locator, this, "dataRequirement", buffer, theDataRequirement, ((this.dataRequirement!= null)&&(!this.dataRequirement.isEmpty()))); } return buffer; } public void setEvaluationMessage(List value) { this.evaluationMessage = value; } public void setAction(List value) { this.action = value; } public void setDataRequirement(List value) { this.dataRequirement = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy