org.hl7.fhir.MeasureReport Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// 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 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 Equals2, HashCode2, ToString2
{
@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 Jakarta XML Binding 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;
}
@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 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, (this.measure!= null), (that.measure!= null))) {
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, (this.type!= null), (that.type!= null))) {
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;
}
}
{
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, (this.period!= null), (that.period!= null))) {
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, (this.status!= null), (that.status!= 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;
}
}
{
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, (this.reportingOrganization!= null), (that.reportingOrganization!= null))) {
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, ((this.group!= null)&&(!this.group.isEmpty())), ((that.group!= null)&&(!that.group.isEmpty())))) {
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, (this.evaluatedResources!= null), (that.evaluatedResources!= 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);
{
Reference theMeasure;
theMeasure = this.getMeasure();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "measure", theMeasure), currentHashCode, theMeasure, (this.measure!= null));
}
{
MeasureReportType theType;
theType = this.getType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null));
}
{
Reference thePatient;
thePatient = this.getPatient();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient, (this.patient!= null));
}
{
Period thePeriod;
thePeriod = this.getPeriod();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "period", thePeriod), currentHashCode, thePeriod, (this.period!= null));
}
{
MeasureReportStatus theStatus;
theStatus = this.getStatus();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus, (this.status!= null));
}
{
DateTime theDate;
theDate = this.getDate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "date", theDate), currentHashCode, theDate, (this.date!= null));
}
{
Reference theReportingOrganization;
theReportingOrganization = this.getReportingOrganization();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reportingOrganization", theReportingOrganization), currentHashCode, theReportingOrganization, (this.reportingOrganization!= null));
}
{
List theGroup;
theGroup = (((this.group!= null)&&(!this.group.isEmpty()))?this.getGroup():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "group", theGroup), currentHashCode, theGroup, ((this.group!= null)&&(!this.group.isEmpty())));
}
{
Reference theEvaluatedResources;
theEvaluatedResources = this.getEvaluatedResources();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "evaluatedResources", theEvaluatedResources), currentHashCode, theEvaluatedResources, (this.evaluatedResources!= 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);
{
Reference theMeasure;
theMeasure = this.getMeasure();
strategy.appendField(locator, this, "measure", buffer, theMeasure, (this.measure!= null));
}
{
MeasureReportType theType;
theType = this.getType();
strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null));
}
{
Reference thePatient;
thePatient = this.getPatient();
strategy.appendField(locator, this, "patient", buffer, thePatient, (this.patient!= null));
}
{
Period thePeriod;
thePeriod = this.getPeriod();
strategy.appendField(locator, this, "period", buffer, thePeriod, (this.period!= null));
}
{
MeasureReportStatus theStatus;
theStatus = this.getStatus();
strategy.appendField(locator, this, "status", buffer, theStatus, (this.status!= null));
}
{
DateTime theDate;
theDate = this.getDate();
strategy.appendField(locator, this, "date", buffer, theDate, (this.date!= null));
}
{
Reference theReportingOrganization;
theReportingOrganization = this.getReportingOrganization();
strategy.appendField(locator, this, "reportingOrganization", buffer, theReportingOrganization, (this.reportingOrganization!= null));
}
{
List theGroup;
theGroup = (((this.group!= null)&&(!this.group.isEmpty()))?this.getGroup():null);
strategy.appendField(locator, this, "group", buffer, theGroup, ((this.group!= null)&&(!this.group.isEmpty())));
}
{
Reference theEvaluatedResources;
theEvaluatedResources = this.getEvaluatedResources();
strategy.appendField(locator, this, "evaluatedResources", buffer, theEvaluatedResources, (this.evaluatedResources!= null));
}
return buffer;
}
public void setGroup(List value) {
this.group = value;
}
}