/** * @param value Numerical value (with implicit precision). */ public Money setValue(long value) { this.value = new DecimalType(); this.value.setValue(value); return this; }
/** * @return 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 this.upperLimit == null ? null : this.upperLimit.getValue(); }
public boolean hasPrecision() { if (this.precision == null) return false; for (DecimalType item : this.precision) if (!item.isEmpty()) return true; return false; }
@Override public DecimalType copy() { DecimalType ret = new DecimalType(getValue()); copyValues(ret); return ret; }
private void addQuantity(ResourceTable theEntity, HashSet<ResourceIndexedSearchParamQuantity> retVal, String resourceName, Quantity nextValue) { if (!nextValue.getValueElement().isEmpty()) { BigDecimal nextValueValue = nextValue.getValueElement().getValue(); String nextValueString = nextValue.getSystemElement().getValueAsString(); String nextValueCode = nextValue.getCode(); ResourceIndexedSearchParamQuantity nextEntity = new ResourceIndexedSearchParamQuantity(resourceName, nextValueValue, nextValueString, nextValueCode); nextEntity.setResource(theEntity); retVal.add(nextEntity); } }
public static org.hl7.fhir.dstu2016may.model.DecimalType convertDecimal(org.hl7.fhir.r4.model.DecimalType src) throws FHIRException { org.hl7.fhir.dstu2016may.model.DecimalType tgt = new org.hl7.fhir.dstu2016may.model.DecimalType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
public LocationPositionComponent copy() { LocationPositionComponent dst = new LocationPositionComponent(); copyValues(dst); dst.longitude = longitude == null ? null : longitude.copy(); dst.latitude = latitude == null ? null : latitude.copy(); dst.altitude = altitude == null ? null : altitude.copy(); return dst; }
private static void renderTransformParam(StringBuilder b, StructureMapGroupRuleTargetParameterComponent rtp) { try { if (rtp.hasValueBooleanType()) b.append(rtp.getValueBooleanType().asStringValue()); else if (rtp.hasValueDecimalType()) b.append(rtp.getValueDecimalType().asStringValue()); else if (rtp.hasValueIdType()) b.append(rtp.getValueIdType().asStringValue()); else if (rtp.hasValueDecimalType()) b.append(rtp.getValueDecimalType().asStringValue()); else if (rtp.hasValueIntegerType()) b.append(rtp.getValueIntegerType().asStringValue()); else b.append("'"+Utilities.escapeJava(rtp.getValueStringType().asStringValue())+"'"); } catch (FHIRException e) { e.printStackTrace(); b.append("error!"); } }
/** * A parser can provide a literal representation for the decimal value that preserves * the presented form. * * All sorts of bad things can happen if this method is used to set the string representation * to anything other than what was parsed into the actual value. Don't do that * * @param value * @return */ public DecimalType setRepresentation(String value) { forceStringValue(value); return this; } }
@Override public DecimalType copy() { DecimalType ret = new DecimalType(getValue()); copyValues(ret); return ret; }
public static org.hl7.fhir.dstu2016may.model.DecimalType convertDecimal(org.hl7.fhir.r4.model.DecimalType src) throws FHIRException { org.hl7.fhir.dstu2016may.model.DecimalType tgt = new org.hl7.fhir.dstu2016may.model.DecimalType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
public RiskEvidenceSynthesisRiskEstimatePrecisionEstimateComponent copy() { RiskEvidenceSynthesisRiskEstimatePrecisionEstimateComponent dst = new RiskEvidenceSynthesisRiskEstimatePrecisionEstimateComponent(); copyValues(dst); dst.type = type == null ? null : type.copy(); dst.level = level == null ? null : level.copy(); dst.from = from == null ? null : from.copy(); dst.to = to == null ? null : to.copy(); return dst; }
"Value is '" + value + "' but must be '" + ((org.hl7.fhir.r4.model.IntegerType) fixed).asStringValue() + "'"); else if (fixed instanceof org.hl7.fhir.r4.model.DecimalType) rule(errors, IssueType.VALUE, focus.line(), focus.col(), path, check(((org.hl7.fhir.r4.model.DecimalType) fixed).asStringValue(), value), "Value is '" + value + "' but must be '" + ((org.hl7.fhir.r4.model.DecimalType) fixed).asStringValue() + "'"); else if (fixed instanceof org.hl7.fhir.r4.model.Base64BinaryType) rule(errors, IssueType.VALUE, focus.line(), focus.col(), path, check(((org.hl7.fhir.r4.model.Base64BinaryType) fixed).asStringValue(), value),
/** * A parser can provide a literal representation for the decimal value that preserves * the presented form. * * All sorts of bad things can happen if this method is used to set the string representation * to anything other than what was parsed into the actual value. Don't do that * * @param value * @return */ public DecimalType setRepresentation(String value) { forceStringValue(value); return this; } }
/** * @param value Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below). */ public LocationPositionComponent setAltitude(double value) { this.altitude = new DecimalType(); this.altitude.setValue(value); return this; }
/** * @return True positives, from the perspective of the truth data, i.e. the number of sites in the Truth Call Set for which there are paths through the Query Call Set that are consistent with all of the alleles at this site, and for which there is an accurate genotype call for the event. */ public BigDecimal getTruthTP() { return this.truthTP == null ? null : this.truthTP.getValue(); }
public boolean hasFMeasure() { if (this.fMeasure == null) return false; for (DecimalType item : this.fMeasure) if (!item.isEmpty()) return true; return false; }
public EffectEvidenceSynthesisEffectEstimatePrecisionEstimateComponent copy() { EffectEvidenceSynthesisEffectEstimatePrecisionEstimateComponent dst = new EffectEvidenceSynthesisEffectEstimatePrecisionEstimateComponent(); copyValues(dst); dst.type = type == null ? null : type.copy(); dst.level = level == null ? null : level.copy(); dst.from = from == null ? null : from.copy(); dst.to = to == null ? null : to.copy(); return dst; }
private static void renderTransformParam(StringBuilder b, StructureMapGroupRuleTargetParameterComponent rtp) { try { if (rtp.hasValueBooleanType()) b.append(rtp.getValueBooleanType().asStringValue()); else if (rtp.hasValueDecimalType()) b.append(rtp.getValueDecimalType().asStringValue()); else if (rtp.hasValueIdType()) b.append(rtp.getValueIdType().asStringValue()); else if (rtp.hasValueDecimalType()) b.append(rtp.getValueDecimalType().asStringValue()); else if (rtp.hasValueIntegerType()) b.append(rtp.getValueIntegerType().asStringValue()); else b.append("'"+Utilities.escapeJava(rtp.getValueStringType().asStringValue())+"'"); } catch (FHIRException e) { e.printStackTrace(); b.append("error!"); } }
/** * @param value The length of time between sampling times, measured in milliseconds. */ public SampledData setPeriod(BigDecimal value) { if (this.period == null) this.period = new DecimalType(); this.period.setValue(value); return this; }