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

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

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

 * <complexType name="DecisionSupportServiceModule">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="moduleMetadata" type="{http://hl7.org/fhir}ModuleMetadata" minOccurs="0"/>
 *         <element name="trigger" type="{http://hl7.org/fhir}TriggerDefinition" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="parameter" type="{http://hl7.org/fhir}ParameterDefinition" 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 = "DecisionSupportServiceModule", propOrder = { "moduleMetadata", "trigger", "parameter", "dataRequirement" }) public class DecisionSupportServiceModule extends DomainResource implements Equals2, HashCode2, ToString2 { protected ModuleMetadata moduleMetadata; protected List trigger; protected List parameter; protected List dataRequirement; /** * Gets the value of the moduleMetadata property. * * @return * possible object is * {@link ModuleMetadata } * */ public ModuleMetadata getModuleMetadata() { return moduleMetadata; } /** * Sets the value of the moduleMetadata property. * * @param value * allowed object is * {@link ModuleMetadata } * */ public void setModuleMetadata(ModuleMetadata value) { this.moduleMetadata = value; } /** * Gets the value of the trigger 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 trigger property. * *

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

     *    getTrigger().add(newItem);
     * 
* * *

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

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

     *    getParameter().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ParameterDefinition } * * */ public List getParameter() { if (parameter == null) { parameter = new ArrayList(); } return this.parameter; } /** * 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 DecisionSupportServiceModule withModuleMetadata(ModuleMetadata value) { setModuleMetadata(value); return this; } public DecisionSupportServiceModule withTrigger(TriggerDefinition... values) { if (values!= null) { for (TriggerDefinition value: values) { getTrigger().add(value); } } return this; } public DecisionSupportServiceModule withTrigger(Collection values) { if (values!= null) { getTrigger().addAll(values); } return this; } public DecisionSupportServiceModule withParameter(ParameterDefinition... values) { if (values!= null) { for (ParameterDefinition value: values) { getParameter().add(value); } } return this; } public DecisionSupportServiceModule withParameter(Collection values) { if (values!= null) { getParameter().addAll(values); } return this; } public DecisionSupportServiceModule withDataRequirement(DataRequirement... values) { if (values!= null) { for (DataRequirement value: values) { getDataRequirement().add(value); } } return this; } public DecisionSupportServiceModule withDataRequirement(Collection values) { if (values!= null) { getDataRequirement().addAll(values); } return this; } @Override public DecisionSupportServiceModule withText(Narrative value) { setText(value); return this; } @Override public DecisionSupportServiceModule withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public DecisionSupportServiceModule withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public DecisionSupportServiceModule withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public DecisionSupportServiceModule withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public DecisionSupportServiceModule withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public DecisionSupportServiceModule withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public DecisionSupportServiceModule withId(Id value) { setId(value); return this; } @Override public DecisionSupportServiceModule withMeta(Meta value) { setMeta(value); return this; } @Override public DecisionSupportServiceModule withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public DecisionSupportServiceModule 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 DecisionSupportServiceModule that = ((DecisionSupportServiceModule) object); { ModuleMetadata lhsModuleMetadata; lhsModuleMetadata = this.getModuleMetadata(); ModuleMetadata rhsModuleMetadata; rhsModuleMetadata = that.getModuleMetadata(); if (!strategy.equals(LocatorUtils.property(thisLocator, "moduleMetadata", lhsModuleMetadata), LocatorUtils.property(thatLocator, "moduleMetadata", rhsModuleMetadata), lhsModuleMetadata, rhsModuleMetadata, (this.moduleMetadata!= null), (that.moduleMetadata!= null))) { return false; } } { List lhsTrigger; lhsTrigger = (((this.trigger!= null)&&(!this.trigger.isEmpty()))?this.getTrigger():null); List rhsTrigger; rhsTrigger = (((that.trigger!= null)&&(!that.trigger.isEmpty()))?that.getTrigger():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "trigger", lhsTrigger), LocatorUtils.property(thatLocator, "trigger", rhsTrigger), lhsTrigger, rhsTrigger, ((this.trigger!= null)&&(!this.trigger.isEmpty())), ((that.trigger!= null)&&(!that.trigger.isEmpty())))) { return false; } } { List lhsParameter; lhsParameter = (((this.parameter!= null)&&(!this.parameter.isEmpty()))?this.getParameter():null); List rhsParameter; rhsParameter = (((that.parameter!= null)&&(!that.parameter.isEmpty()))?that.getParameter():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "parameter", lhsParameter), LocatorUtils.property(thatLocator, "parameter", rhsParameter), lhsParameter, rhsParameter, ((this.parameter!= null)&&(!this.parameter.isEmpty())), ((that.parameter!= null)&&(!that.parameter.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); { ModuleMetadata theModuleMetadata; theModuleMetadata = this.getModuleMetadata(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "moduleMetadata", theModuleMetadata), currentHashCode, theModuleMetadata, (this.moduleMetadata!= null)); } { List theTrigger; theTrigger = (((this.trigger!= null)&&(!this.trigger.isEmpty()))?this.getTrigger():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "trigger", theTrigger), currentHashCode, theTrigger, ((this.trigger!= null)&&(!this.trigger.isEmpty()))); } { List theParameter; theParameter = (((this.parameter!= null)&&(!this.parameter.isEmpty()))?this.getParameter():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parameter", theParameter), currentHashCode, theParameter, ((this.parameter!= null)&&(!this.parameter.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); { ModuleMetadata theModuleMetadata; theModuleMetadata = this.getModuleMetadata(); strategy.appendField(locator, this, "moduleMetadata", buffer, theModuleMetadata, (this.moduleMetadata!= null)); } { List theTrigger; theTrigger = (((this.trigger!= null)&&(!this.trigger.isEmpty()))?this.getTrigger():null); strategy.appendField(locator, this, "trigger", buffer, theTrigger, ((this.trigger!= null)&&(!this.trigger.isEmpty()))); } { List theParameter; theParameter = (((this.parameter!= null)&&(!this.parameter.isEmpty()))?this.getParameter():null); strategy.appendField(locator, this, "parameter", buffer, theParameter, ((this.parameter!= null)&&(!this.parameter.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 setTrigger(List value) { this.trigger = value; } public void setParameter(List value) { this.parameter = value; } public void setDataRequirement(List value) { this.dataRequirement = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy