public static org.hl7.fhir.dstu3.model.DecimalType convertDecimal(org.hl7.fhir.dstu2016may.model.DecimalType src) throws FHIRException { org.hl7.fhir.dstu3.model.DecimalType tgt = new org.hl7.fhir.dstu3.model.DecimalType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
/** * @param value A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. */ public DetailComponent setFactor(double value) { this.factor = new DecimalType(); this.factor.setValue(value); return this; }
/** * @param value A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. */ public SubDetailComponent setFactor(double value) { this.factor = new DecimalType(); this.factor.setValue(value); return this; }
/** * @param value Indicates the duration of time over which repetitions are to occur; e.g. to express "3 times per day", 3 would be the frequency and "1 day" would be the period. */ public TimingRepeatComponent setPeriod(double value) { this.period = new DecimalType(); this.period.setValue(value); return this; }
/** * @param value If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as "do this once every 3-5 days. */ public TimingRepeatComponent setPeriodMax(long value) { this.periodMax = new DecimalType(); this.periodMax.setValue(value); return this; }
/** * @param value If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as "do this once every 3-5 days. */ public TimingRepeatComponent setPeriodMax(double value) { this.periodMax = new DecimalType(); this.periodMax.setValue(value); return this; }
/** * @param value Factor overriding the factor determined by the rules associated with the code. */ public ChargeItem setFactorOverride(double value) { this.factorOverride = new DecimalType(); this.factorOverride.setValue(value); return this; }
/** * @param value False negatives, i.e. the number of sites in the Truth Call Set for which there is no path through the Query Call Set that is consistent with all of the alleles at this site, or sites for which there is an inaccurate genotype call for the event. Sites with correct variant but incorrect genotype are counted here. */ public SequenceQualityComponent setTruthFN(long value) { this.truthFN = new DecimalType(); this.truthFN.setValue(value); return this; }
/** * @param value The number of false positives where the non-REF alleles in the Truth and Query Call Sets match (i.e. cases where the truth is 1/1 and the query is 0/1 or similar). */ public SequenceQualityComponent setGtFP(long value) { this.gtFP = new DecimalType(); this.gtFP.setValue(value); return this; }
/** * @param value QUERY.TP / (QUERY.TP + QUERY.FP). */ public SequenceQualityComponent setPrecision(long value) { this.precision = new DecimalType(); this.precision.setValue(value); return this; }
/** * @param value Harmonic mean of Recall and Precision, computed as: 2 * precision * recall / (precision + recall). */ public SequenceQualityComponent setFScore(long value) { this.fScore = new DecimalType(); this.fScore.setValue(value); return this; }
/** * @param value The length of time between sampling times, measured in milliseconds. */ public SampledData setPeriod(double value) { this.period = new DecimalType(); this.period.setValue(value); return this; }
/** * @param value 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 SampledData setUpperLimit(double value) { this.upperLimit = new DecimalType(); this.upperLimit.setValue(value); return this; }
/** * @param value Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below). */ public LocationPositionComponent setLatitude(BigDecimal value) { if (this.latitude == null) this.latitude = new DecimalType(); this.latitude.setValue(value); return this; }
/** * @param value Amount of prism to compensate for eye alignment in fractional units. */ public VisionPrescriptionDispenseComponent setPrism(double value) { this.prism = new DecimalType(); this.prism.setValue(value); return this; }
/** * @param value Contact lens power measured in diopters (0.25 units). */ public VisionPrescriptionDispenseComponent setPower(double value) { this.power = new DecimalType(); this.power.setValue(value); return this; }
/** * @param value An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Valued Item delivered. The concept of Points allows for assignment of point values for a Contract Valued Item, such that a monetary amount can be assigned to each point. */ public ValuedItemComponent setPoints(long value) { this.points = new DecimalType(); this.points.setValue(value); return this; }
/** * @param value An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the Contract Provision Valued Item delivered. The concept of Points allows for assignment of point values for a Contract ProvisionValued Item, such that a monetary amount can be assigned to each point. */ public TermValuedItemComponent setPoints(long value) { this.points = new DecimalType(); this.points.setValue(value); return this; }
/** * @param value When searching, the server's search ranking score for the entry. */ public BundleEntrySearchComponent setScore(long value) { this.score = new DecimalType(); this.score.setValue(value); return this; }
/** * Rounds the value to the given prevision * * @see MathContext#getPrecision() * @see MathContext#getRoundingMode() */ public void round(int thePrecision, RoundingMode theRoundingMode) { if (getValue() != null) { BigDecimal newValue = getValue().round(new MathContext(thePrecision, theRoundingMode)); setValue(newValue); } }