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

ca.uhn.fhir.model.dstu.composite.SampledDataDt Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
















package ca.uhn.fhir.model.dstu.composite;

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.dstu.valueset.AddressUseEnum;
import ca.uhn.fhir.model.dstu.composite.CodingDt;
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
import ca.uhn.fhir.model.dstu.resource.Organization;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
import ca.uhn.fhir.model.dstu.resource.ValueSet;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
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.IntegerDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;

/**
 * HAPI/FHIR SampledDataDt Datatype
 * (A series of measurements taken by a device)
 *
 * 

* 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="SampledDataDt") public class SampledDataDt extends BaseIdentifiableElement implements ICompositeDatatype { /** * Constructor */ public SampledDataDt() { // nothing } @Child(name="origin", type=QuantityDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="Zero value and units", formalDefinition="The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series" ) private QuantityDt myOrigin; @Child(name="period", type=DecimalDt.class, order=1, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="Number of milliseconds between samples", 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="Multiply data by this before adding to origin", 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="Lower limit of detection", 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="Upper limit of detection", 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=IntegerDt.class, order=5, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="Number of sample points at each time point", 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 IntegerDt myDimensions; @Child(name="data", type=StringDt.class, order=6, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="Decimal values with spaces, or \"E\" | \"U\" | \"L\"", 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 (Zero value and units). * 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 QuantityDt getOrigin() { if (myOrigin == null) { myOrigin = new QuantityDt(); } return myOrigin; } /** * Gets the value(s) for origin (Zero value and units). * 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 QuantityDt getOriginElement() { if (myOrigin == null) { myOrigin = new QuantityDt(); } return myOrigin; } /** * Sets the value(s) for origin (Zero value and units) * *

* 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(QuantityDt theValue) { myOrigin = theValue; return this; } /** * Sets the value for origin (Zero value and units) * *

* 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( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { myOrigin = new QuantityDt(theComparator, theValue, theUnits); return this; } /** * Sets the value for origin (Zero value and units) * *

* 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( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { myOrigin = new QuantityDt(theComparator, theValue, theSystem, theUnits); return this; } /** * Sets the value for origin (Zero value and units) * *

* 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( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { myOrigin = new QuantityDt(theComparator, theValue, theSystem, theUnits); return this; } /** * Sets the value for origin (Zero value and units) * *

* 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( double theValue) { myOrigin = new QuantityDt(theValue); return this; } /** * Sets the value for origin (Zero value and units) * *

* 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( long theValue) { myOrigin = new QuantityDt(theValue); return this; } /** * Sets the value for origin (Zero value and units) * *

* 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( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { myOrigin = new QuantityDt(theComparator, theValue, theUnits); return this; } /** * Gets the value(s) for period (Number of milliseconds between samples). * creating it if it does * not exist. Will not return null. * *

* Definition: * The length of time between sampling times, measured in milliseconds *

*/ public DecimalDt getPeriod() { if (myPeriod == null) { myPeriod = new DecimalDt(); } return myPeriod; } /** * Gets the value(s) for period (Number of milliseconds between samples). * 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; } /** * Sets the value(s) for period (Number of milliseconds between samples) * *

* 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 (Number of milliseconds between samples) * *

* 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 (Number of milliseconds between samples) * *

* 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 (Number of milliseconds between samples) * *

* 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 (Multiply data by this before adding to origin). * 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 getFactor() { if (myFactor == null) { myFactor = new DecimalDt(); } return myFactor; } /** * Gets the value(s) for factor (Multiply data by this before adding to origin). * 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; } /** * Sets the value(s) for factor (Multiply data by this before adding to origin) * *

* 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 (Multiply data by this before adding to origin) * *

* 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 (Multiply data by this before adding to origin) * *

* 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 (Multiply data by this before adding to origin) * *

* 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 (Lower limit of detection). * 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 getLowerLimit() { if (myLowerLimit == null) { myLowerLimit = new DecimalDt(); } return myLowerLimit; } /** * Gets the value(s) for lowerLimit (Lower limit of detection). * 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; } /** * Sets the value(s) for lowerLimit (Lower limit of detection) * *

* 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 (Lower limit of detection) * *

* 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 (Lower limit of detection) * *

* 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 (Lower limit of detection) * *

* 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 (Upper limit of detection). * 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 getUpperLimit() { if (myUpperLimit == null) { myUpperLimit = new DecimalDt(); } return myUpperLimit; } /** * Gets the value(s) for upperLimit (Upper limit of detection). * 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; } /** * Sets the value(s) for upperLimit (Upper limit of detection) * *

* 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 (Upper limit of detection) * *

* 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 (Upper limit of detection) * *

* 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 (Upper limit of detection) * *

* 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 (Number of sample points at each time point). * 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 IntegerDt getDimensions() { if (myDimensions == null) { myDimensions = new IntegerDt(); } return myDimensions; } /** * Gets the value(s) for dimensions (Number of sample points at each time point). * 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 IntegerDt getDimensionsElement() { if (myDimensions == null) { myDimensions = new IntegerDt(); } return myDimensions; } /** * Sets the value(s) for dimensions (Number of sample points at each time point) * *

* 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(IntegerDt theValue) { myDimensions = theValue; return this; } /** * Sets the value for dimensions (Number of sample points at each time point) * *

* 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 IntegerDt(theInteger); return this; } /** * Gets the value(s) for data (Decimal values with spaces, or \"E\" | \"U\" | \"L\"). * 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 getData() { if (myData == null) { myData = new StringDt(); } return myData; } /** * Gets the value(s) for data (Decimal values with spaces, or \"E\" | \"U\" | \"L\"). * 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; } /** * Sets the value(s) for data (Decimal values with spaces, or \"E\" | \"U\" | \"L\") * *

* 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 (Decimal values with spaces, or \"E\" | \"U\" | \"L\") * *

* 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; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy