ca.uhn.fhir.model.dstu2.composite.SampledDataDt Maven / Gradle / Ivy
package ca.uhn.fhir.model.dstu2.composite;
import java.net.URI;
import java.math.BigDecimal;
import org.apache.commons.lang3.StringUtils;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.base.composite.*;
import ca.uhn.fhir.model.dstu2.valueset.AddressTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum;
import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.CodingDt;
import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum;
import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Device;
import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Organization;
import ca.uhn.fhir.model.dstu2.resource.Patient;
import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
import ca.uhn.fhir.model.dstu2.resource.Practitioner;
import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum;
import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum;
import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
import ca.uhn.fhir.model.dstu2.composite.RangeDt;
import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu2.valueset.SignatureTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu2.valueset.TimingAbbreviationEnum;
import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum;
import ca.uhn.fhir.model.dstu2.resource.ValueSet;
import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.DurationDt;
import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.MarkdownDt;
import ca.uhn.fhir.model.primitive.PositiveIntDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UnsignedIntDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR SampledDataDt Datatype
* ()
*
*
* Definition:
* A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data
*
*
*
* Requirements:
* There is a need for a concise way to handle the data produced by devices that sample a physical state at a high frequency
*
*/
@DatatypeDef(name="SampledData")
public class SampledDataDt
extends BaseIdentifiableElement
implements ICompositeDatatype
{
/**
* Constructor
*/
public SampledDataDt() {
// nothing
}
@Child(name="origin", type=SimpleQuantityDt.class, order=0, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series"
)
private SimpleQuantityDt myOrigin;
@Child(name="period", type=DecimalDt.class, order=1, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The length of time between sampling times, measured in milliseconds"
)
private DecimalDt myPeriod;
@Child(name="factor", type=DecimalDt.class, order=2, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A correction factor that is applied to the sampled data points before they are added to the origin"
)
private DecimalDt myFactor;
@Child(name="lowerLimit", type=DecimalDt.class, order=3, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)"
)
private DecimalDt myLowerLimit;
@Child(name="upperLimit", type=DecimalDt.class, order=4, min=0, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)"
)
private DecimalDt myUpperLimit;
@Child(name="dimensions", type=PositiveIntDt.class, order=5, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once"
)
private PositiveIntDt myDimensions;
@Child(name="data", type=StringDt.class, order=6, min=1, max=1, summary=true, modifier=false)
@Description(
shortDefinition="",
formalDefinition="A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value"
)
private StringDt myData;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData);
}
@Override
public List getAllPopulatedChildElementsOfType(Class theType) {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData);
}
/**
* Gets the value(s) for origin ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series
*
*/
public SimpleQuantityDt getOrigin() {
if (myOrigin == null) {
myOrigin = new SimpleQuantityDt();
}
return myOrigin;
}
/**
* Sets the value(s) for origin ()
*
*
* Definition:
* The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series
*
*/
public SampledDataDt setOrigin(SimpleQuantityDt theValue) {
myOrigin = theValue;
return this;
}
/**
* Gets the value(s) for period ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The length of time between sampling times, measured in milliseconds
*
*/
public DecimalDt getPeriodElement() {
if (myPeriod == null) {
myPeriod = new DecimalDt();
}
return myPeriod;
}
/**
* Gets the value(s) for period ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The length of time between sampling times, measured in milliseconds
*
*/
public BigDecimal getPeriod() {
return getPeriodElement().getValue();
}
/**
* Sets the value(s) for period ()
*
*
* Definition:
* The length of time between sampling times, measured in milliseconds
*
*/
public SampledDataDt setPeriod(DecimalDt theValue) {
myPeriod = theValue;
return this;
}
/**
* Sets the value for period ()
*
*
* Definition:
* The length of time between sampling times, measured in milliseconds
*
*/
public SampledDataDt setPeriod( double theValue) {
myPeriod = new DecimalDt(theValue);
return this;
}
/**
* Sets the value for period ()
*
*
* Definition:
* The length of time between sampling times, measured in milliseconds
*
*/
public SampledDataDt setPeriod( long theValue) {
myPeriod = new DecimalDt(theValue);
return this;
}
/**
* Sets the value for period ()
*
*
* Definition:
* The length of time between sampling times, measured in milliseconds
*
*/
public SampledDataDt setPeriod( java.math.BigDecimal theValue) {
myPeriod = new DecimalDt(theValue);
return this;
}
/**
* Gets the value(s) for factor ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A correction factor that is applied to the sampled data points before they are added to the origin
*
*/
public DecimalDt getFactorElement() {
if (myFactor == null) {
myFactor = new DecimalDt();
}
return myFactor;
}
/**
* Gets the value(s) for factor ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A correction factor that is applied to the sampled data points before they are added to the origin
*
*/
public BigDecimal getFactor() {
return getFactorElement().getValue();
}
/**
* Sets the value(s) for factor ()
*
*
* Definition:
* A correction factor that is applied to the sampled data points before they are added to the origin
*
*/
public SampledDataDt setFactor(DecimalDt theValue) {
myFactor = theValue;
return this;
}
/**
* Sets the value for factor ()
*
*
* Definition:
* A correction factor that is applied to the sampled data points before they are added to the origin
*
*/
public SampledDataDt setFactor( double theValue) {
myFactor = new DecimalDt(theValue);
return this;
}
/**
* Sets the value for factor ()
*
*
* Definition:
* A correction factor that is applied to the sampled data points before they are added to the origin
*
*/
public SampledDataDt setFactor( long theValue) {
myFactor = new DecimalDt(theValue);
return this;
}
/**
* Sets the value for factor ()
*
*
* Definition:
* A correction factor that is applied to the sampled data points before they are added to the origin
*
*/
public SampledDataDt setFactor( java.math.BigDecimal theValue) {
myFactor = new DecimalDt(theValue);
return this;
}
/**
* Gets the value(s) for lowerLimit ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
*
*/
public DecimalDt getLowerLimitElement() {
if (myLowerLimit == null) {
myLowerLimit = new DecimalDt();
}
return myLowerLimit;
}
/**
* Gets the value(s) for lowerLimit ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
*
*/
public BigDecimal getLowerLimit() {
return getLowerLimitElement().getValue();
}
/**
* Sets the value(s) for lowerLimit ()
*
*
* Definition:
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
*
*/
public SampledDataDt setLowerLimit(DecimalDt theValue) {
myLowerLimit = theValue;
return this;
}
/**
* Sets the value for lowerLimit ()
*
*
* Definition:
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
*
*/
public SampledDataDt setLowerLimit( double theValue) {
myLowerLimit = new DecimalDt(theValue);
return this;
}
/**
* Sets the value for lowerLimit ()
*
*
* Definition:
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
*
*/
public SampledDataDt setLowerLimit( long theValue) {
myLowerLimit = new DecimalDt(theValue);
return this;
}
/**
* Sets the value for lowerLimit ()
*
*
* Definition:
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
*
*/
public SampledDataDt setLowerLimit( java.math.BigDecimal theValue) {
myLowerLimit = new DecimalDt(theValue);
return this;
}
/**
* Gets the value(s) for upperLimit ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
*
*/
public DecimalDt getUpperLimitElement() {
if (myUpperLimit == null) {
myUpperLimit = new DecimalDt();
}
return myUpperLimit;
}
/**
* Gets the value(s) for upperLimit ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
*
*/
public BigDecimal getUpperLimit() {
return getUpperLimitElement().getValue();
}
/**
* Sets the value(s) for upperLimit ()
*
*
* Definition:
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
*
*/
public SampledDataDt setUpperLimit(DecimalDt theValue) {
myUpperLimit = theValue;
return this;
}
/**
* Sets the value for upperLimit ()
*
*
* Definition:
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
*
*/
public SampledDataDt setUpperLimit( double theValue) {
myUpperLimit = new DecimalDt(theValue);
return this;
}
/**
* Sets the value for upperLimit ()
*
*
* Definition:
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
*
*/
public SampledDataDt setUpperLimit( long theValue) {
myUpperLimit = new DecimalDt(theValue);
return this;
}
/**
* Sets the value for upperLimit ()
*
*
* Definition:
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
*
*/
public SampledDataDt setUpperLimit( java.math.BigDecimal theValue) {
myUpperLimit = new DecimalDt(theValue);
return this;
}
/**
* Gets the value(s) for dimensions ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once
*
*/
public PositiveIntDt getDimensionsElement() {
if (myDimensions == null) {
myDimensions = new PositiveIntDt();
}
return myDimensions;
}
/**
* Gets the value(s) for dimensions ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once
*
*/
public Integer getDimensions() {
return getDimensionsElement().getValue();
}
/**
* Sets the value(s) for dimensions ()
*
*
* Definition:
* The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once
*
*/
public SampledDataDt setDimensions(PositiveIntDt theValue) {
myDimensions = theValue;
return this;
}
/**
* Sets the value for dimensions ()
*
*
* Definition:
* The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once
*
*/
public SampledDataDt setDimensions( int theInteger) {
myDimensions = new PositiveIntDt(theInteger);
return this;
}
/**
* Gets the value(s) for data ().
* creating it if it does
* not exist. Will not return null
.
*
*
* Definition:
* A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value
*
*/
public StringDt getDataElement() {
if (myData == null) {
myData = new StringDt();
}
return myData;
}
/**
* Gets the value(s) for data ().
* creating it if it does
* not exist. This method may return null
.
*
*
* Definition:
* A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value
*
*/
public String getData() {
return getDataElement().getValue();
}
/**
* Sets the value(s) for data ()
*
*
* Definition:
* A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value
*
*/
public SampledDataDt setData(StringDt theValue) {
myData = theValue;
return this;
}
/**
* Sets the value for data ()
*
*
* Definition:
* A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value
*
*/
public SampledDataDt setData( String theString) {
myData = new StringDt(theString);
return this;
}
}