QuantityDt value = new QuantityDt(); value.setValue(83.9).setSystem("http://unitsofmeasure.org").setCode("kg"); observation.setValue(value); low.setValue(45).setSystem("http://unitsofmeasure.org").setCode("kg"); observation.getReferenceRangeFirstRep().setLow(low); SimpleQuantityDt high = new SimpleQuantityDt(); low.setValue(90).setSystem("http://unitsofmeasure.org").setCode("kg"); observation.getReferenceRangeFirstRep().setHigh(high);
if (nextValue.getValueElement().isEmpty()) { continue; ResourceIndexedSearchParamQuantity nextEntity = new ResourceIndexedSearchParamQuantity(resourceName, nextValue.getValueElement().getValue(), nextValue.getSystemElement().getValueAsString(), nextValue.getCode()); nextEntity.setResource(theEntity); retVal.add(nextEntity);
} else if (nextObject instanceof QuantityDt) { QuantityDt nextValue = (QuantityDt) nextObject; if (nextValue.getValueElement().isEmpty()) { continue; ResourceIndexedSearchParamNumber nextEntity = new ResourceIndexedSearchParamNumber(resourceName, nextValue.getValue()); nextEntity.setResource(theEntity); retVal.add(nextEntity);
/** * Constructor */ @SimpleSetter public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") double theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) { setValue(theValue); setComparator(theComparator); setSystem(theSystem); setUnits(theUnits); }
/** * Constructor */ @SimpleSetter public QuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") double theValue, @SimpleSetter.Parameter(name = "theUnits") String theUnits) { setValue(theValue); setComparator(theComparator); setUnits(theUnits); }
/** * Constructor */ @SimpleSetter public QuantityDt(@SimpleSetter.Parameter(name="theValue") double theValue) { setValue(theValue); }
/** * Gets the value(s) for <b>denominator</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * The value of the denominator * </p> */ public QuantityDt getDenominator() { if (myDenominator == null) { myDenominator = new QuantityDt(); } return myDenominator; }
/** * @deprecated Use {@link #setUnit(String)} instead - Quantity.units was renamed to Quantity.unit in DSTU2 */ @Deprecated @Override public BaseQuantityDt setUnits(String theString) { return setUnit(theString); }
/** * Gets the value(s) for <b>system</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The identification of the system that provides the coded form of the unit * </p> */ public String getSystem() { return getSystemElement().getValue(); }
/** * Gets the value(s) for <b>value</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The value of the measured amount. The value includes an implicit precision in the presentation of the value * </p> */ public BigDecimal getValue() { return getValueElement().getValue(); }
/** * @deprecated Use {@link #getUnitElement()} - Quantity.units was renamed to Quantity.unit in DSTU2 */ @Deprecated @Override public StringDt getUnitsElement() { return getUnitElement(); }
/** * Gets the value(s) for <b>comparator</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value * </p> */ public String getComparator() { return getComparatorElement().getValue(); }
/** * Gets the value(s) for <b>code</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * A computer processable form of the unit in some unit representation system * </p> */ public String getCode() { return getCodeElement().getValue(); }
/** * Constructor */ @SimpleSetter public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") long theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) { setValue(theValue); setComparator(theComparator); setSystem(theSystem); setUnits(theUnits); }
/** * Constructor */ @SimpleSetter public QuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") long theValue, @SimpleSetter.Parameter(name = "theUnits") String theUnits) { setValue(theValue); setComparator(theComparator); setUnits(theUnits); }
/** * Constructor */ @SimpleSetter public QuantityDt(@SimpleSetter.Parameter(name="theValue") long theValue) { setValue(theValue); }
/** * Gets the value(s) for <b>numerator</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * The value of the numerator * </p> */ public QuantityDt getNumerator() { if (myNumerator == null) { myNumerator = new QuantityDt(); } return myNumerator; }
/** * Gets the value(s) for <b>unit</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * A human-readable form of the unit * </p> */ public String getUnit() { return getUnitElement().getValue(); }
.setDisplay("Erythrocytes [#/volume] in Blood by Automated count"); observation.setValue( new QuantityDt() .setValue(4.12) .setUnit("10 trillion/L") .setSystem("http://unitsofmeasure.org") .setCode("10*12/L"));