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

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

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

 * <complexType name="MeasureReport">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="measure" type="{http://hl7.org/fhir}Reference"/>
 *         <element name="type" type="{http://hl7.org/fhir}MeasureReportType"/>
 *         <element name="patient" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="period" type="{http://hl7.org/fhir}Period"/>
 *         <element name="status" type="{http://hl7.org/fhir}MeasureReportStatus"/>
 *         <element name="date" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="reportingOrganization" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="group" type="{http://hl7.org/fhir}MeasureReport.Group" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="evaluatedResources" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "MeasureReport", propOrder = { "measure", "type", "patient", "period", "status", "date", "reportingOrganization", "group", "evaluatedResources" }) public class MeasureReport extends DomainResource implements Equals, HashCode, ToString { @XmlElement(required = true) protected Reference measure; @XmlElement(required = true) protected MeasureReportType type; protected Reference patient; @XmlElement(required = true) protected Period period; @XmlElement(required = true) protected MeasureReportStatus status; protected DateTime date; protected Reference reportingOrganization; protected List group; protected Reference evaluatedResources; /** * Gets the value of the measure property. * * @return * possible object is * {@link Reference } * */ public Reference getMeasure() { return measure; } /** * Sets the value of the measure property. * * @param value * allowed object is * {@link Reference } * */ public void setMeasure(Reference value) { this.measure = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link MeasureReportType } * */ public MeasureReportType getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link MeasureReportType } * */ public void setType(MeasureReportType value) { this.type = 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 period property. * * @return * possible object is * {@link Period } * */ public Period getPeriod() { return period; } /** * Sets the value of the period property. * * @param value * allowed object is * {@link Period } * */ public void setPeriod(Period value) { this.period = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link MeasureReportStatus } * */ public MeasureReportStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link MeasureReportStatus } * */ public void setStatus(MeasureReportStatus value) { this.status = 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 reportingOrganization property. * * @return * possible object is * {@link Reference } * */ public Reference getReportingOrganization() { return reportingOrganization; } /** * Sets the value of the reportingOrganization property. * * @param value * allowed object is * {@link Reference } * */ public void setReportingOrganization(Reference value) { this.reportingOrganization = value; } /** * Gets the value of the group 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 group property. * *

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

     *    getGroup().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MeasureReportGroup } * * */ public List getGroup() { if (group == null) { group = new ArrayList(); } return this.group; } /** * Gets the value of the evaluatedResources property. * * @return * possible object is * {@link Reference } * */ public Reference getEvaluatedResources() { return evaluatedResources; } /** * Sets the value of the evaluatedResources property. * * @param value * allowed object is * {@link Reference } * */ public void setEvaluatedResources(Reference value) { this.evaluatedResources = value; } public MeasureReport withMeasure(Reference value) { setMeasure(value); return this; } public MeasureReport withType(MeasureReportType value) { setType(value); return this; } public MeasureReport withPatient(Reference value) { setPatient(value); return this; } public MeasureReport withPeriod(Period value) { setPeriod(value); return this; } public MeasureReport withStatus(MeasureReportStatus value) { setStatus(value); return this; } public MeasureReport withDate(DateTime value) { setDate(value); return this; } public MeasureReport withReportingOrganization(Reference value) { setReportingOrganization(value); return this; } public MeasureReport withGroup(MeasureReportGroup... values) { if (values!= null) { for (MeasureReportGroup value: values) { getGroup().add(value); } } return this; } public MeasureReport withGroup(Collection values) { if (values!= null) { getGroup().addAll(values); } return this; } public MeasureReport withEvaluatedResources(Reference value) { setEvaluatedResources(value); return this; } @Override public MeasureReport withText(Narrative value) { setText(value); return this; } @Override public MeasureReport withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public MeasureReport withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public MeasureReport withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public MeasureReport withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public MeasureReport withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public MeasureReport withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public MeasureReport withId(Id value) { setId(value); return this; } @Override public MeasureReport withMeta(Meta value) { setMeta(value); return this; } @Override public MeasureReport withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public MeasureReport withLanguage(Code value) { setLanguage(value); return this; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof MeasureReport)) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final MeasureReport that = ((MeasureReport) object); { Reference lhsMeasure; lhsMeasure = this.getMeasure(); Reference rhsMeasure; rhsMeasure = that.getMeasure(); if (!strategy.equals(LocatorUtils.property(thisLocator, "measure", lhsMeasure), LocatorUtils.property(thatLocator, "measure", rhsMeasure), lhsMeasure, rhsMeasure)) { return false; } } { MeasureReportType lhsType; lhsType = this.getType(); MeasureReportType rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) { 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; } } { Period lhsPeriod; lhsPeriod = this.getPeriod(); Period rhsPeriod; rhsPeriod = that.getPeriod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "period", lhsPeriod), LocatorUtils.property(thatLocator, "period", rhsPeriod), lhsPeriod, rhsPeriod)) { return false; } } { MeasureReportStatus lhsStatus; lhsStatus = this.getStatus(); MeasureReportStatus rhsStatus; rhsStatus = that.getStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus)) { 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)) { return false; } } { Reference lhsReportingOrganization; lhsReportingOrganization = this.getReportingOrganization(); Reference rhsReportingOrganization; rhsReportingOrganization = that.getReportingOrganization(); if (!strategy.equals(LocatorUtils.property(thisLocator, "reportingOrganization", lhsReportingOrganization), LocatorUtils.property(thatLocator, "reportingOrganization", rhsReportingOrganization), lhsReportingOrganization, rhsReportingOrganization)) { return false; } } { List lhsGroup; lhsGroup = (((this.group!= null)&&(!this.group.isEmpty()))?this.getGroup():null); List rhsGroup; rhsGroup = (((that.group!= null)&&(!that.group.isEmpty()))?that.getGroup():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "group", lhsGroup), LocatorUtils.property(thatLocator, "group", rhsGroup), lhsGroup, rhsGroup)) { return false; } } { Reference lhsEvaluatedResources; lhsEvaluatedResources = this.getEvaluatedResources(); Reference rhsEvaluatedResources; rhsEvaluatedResources = that.getEvaluatedResources(); if (!strategy.equals(LocatorUtils.property(thisLocator, "evaluatedResources", lhsEvaluatedResources), LocatorUtils.property(thatLocator, "evaluatedResources", rhsEvaluatedResources), lhsEvaluatedResources, rhsEvaluatedResources)) { 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); { Reference theMeasure; theMeasure = this.getMeasure(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "measure", theMeasure), currentHashCode, theMeasure); } { MeasureReportType theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType); } { Reference thePatient; thePatient = this.getPatient(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient); } { Period thePeriod; thePeriod = this.getPeriod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "period", thePeriod), currentHashCode, thePeriod); } { MeasureReportStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus); } { DateTime theDate; theDate = this.getDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate); } { Reference theReportingOrganization; theReportingOrganization = this.getReportingOrganization(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reportingOrganization", theReportingOrganization), currentHashCode, theReportingOrganization); } { List theGroup; theGroup = (((this.group!= null)&&(!this.group.isEmpty()))?this.getGroup():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "group", theGroup), currentHashCode, theGroup); } { Reference theEvaluatedResources; theEvaluatedResources = this.getEvaluatedResources(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "evaluatedResources", theEvaluatedResources), currentHashCode, theEvaluatedResources); } 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); { Reference theMeasure; theMeasure = this.getMeasure(); strategy.appendField(locator, this, "measure", buffer, theMeasure); } { MeasureReportType theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType); } { Reference thePatient; thePatient = this.getPatient(); strategy.appendField(locator, this, "patient", buffer, thePatient); } { Period thePeriod; thePeriod = this.getPeriod(); strategy.appendField(locator, this, "period", buffer, thePeriod); } { MeasureReportStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus); } { DateTime theDate; theDate = this.getDate(); strategy.appendField(locator, this, "date", buffer, theDate); } { Reference theReportingOrganization; theReportingOrganization = this.getReportingOrganization(); strategy.appendField(locator, this, "reportingOrganization", buffer, theReportingOrganization); } { List theGroup; theGroup = (((this.group!= null)&&(!this.group.isEmpty()))?this.getGroup():null); strategy.appendField(locator, this, "group", buffer, theGroup); } { Reference theEvaluatedResources; theEvaluatedResources = this.getEvaluatedResources(); strategy.appendField(locator, this, "evaluatedResources", buffer, theEvaluatedResources); } return buffer; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy