public org.hl7.fhir.dstu3.model.DecimalType convertDecimal(org.hl7.fhir.instance.model.DecimalType src) throws FHIRException { org.hl7.fhir.dstu3.model.DecimalType tgt = new org.hl7.fhir.dstu3.model.DecimalType(src.getValue()); copyElement(src, tgt); return tgt; }
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; }
@Operation(name = JpaConstants.OPERATION_SUGGEST_KEYWORDS, idempotent = true) public Parameters suggestKeywords( @OperationParam(name = "context", min = 1, max = 1) String theContext, @OperationParam(name = "searchParam", min = 1, max = 1) String theSearchParam, @OperationParam(name = "text", min = 1, max = 1) String theText ) { if (isBlank(theContext)) { throw new InvalidRequestException("Parameter 'context' must be provided"); } if (isBlank(theSearchParam)) { throw new InvalidRequestException("Parameter 'searchParam' must be provided"); } if (isBlank(theText)) { throw new InvalidRequestException("Parameter 'text' must be provided"); } List<Suggestion> keywords = mySearchDao.suggestKeywords(theContext, theSearchParam, theText); Parameters retVal = new Parameters(); for (Suggestion next : keywords) { retVal.addParameter() .addPart(new ParametersParameterComponent().setName("keyword").setValue(new StringType(next.getTerm()))) .addPart(new ParametersParameterComponent().setName("score").setValue(new DecimalType(next.getScore()))); } return retVal; }
/** * @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 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; }
nextResource.addExtension(new Extension(ExtensionConstants.CONF_RESOURCE_COUNT, new DecimalType(count)));
/** * @return {@link #factor} (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.). This is the underlying object with id, value and extensions. The accessor "getFactor" gives direct access to the value */ public DecimalType getFactorElement() { if (this.factor == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ItemComponent.factor"); else if (Configuration.doAutoCreate()) this.factor = new DecimalType(); // bb return this.factor; }
/** * @return {@link #duration} (How long this thing happens for when it happens.). This is the underlying object with id, value and extensions. The accessor "getDuration" gives direct access to the value */ public DecimalType getDurationElement() { if (this.duration == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TimingRepeatComponent.duration"); else if (Configuration.doAutoCreate()) this.duration = new DecimalType(); // bb return this.duration; }
/** * @return {@link #durationMax} (The upper limit of how long this thing happens for when it happens.). This is the underlying object with id, value and extensions. The accessor "getDurationMax" gives direct access to the value */ public DecimalType getDurationMaxElement() { if (this.durationMax == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TimingRepeatComponent.durationMax"); else if (Configuration.doAutoCreate()) this.durationMax = new DecimalType(); // bb return this.durationMax; }
/** * @return {@link #period} (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.). This is the underlying object with id, value and extensions. The accessor "getPeriod" gives direct access to the value */ public DecimalType getPeriodElement() { if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TimingRepeatComponent.period"); else if (Configuration.doAutoCreate()) this.period = new DecimalType(); // bb return this.period; }
/** * @return {@link #factor} (A real number that represents a multiplier used in determining the overall value of the Contract Provision Valued Item delivered. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount.). This is the underlying object with id, value and extensions. The accessor "getFactor" gives direct access to the value */ public DecimalType getFactorElement() { if (this.factor == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TermValuedItemComponent.factor"); else if (Configuration.doAutoCreate()) this.factor = new DecimalType(); // bb return this.factor; }
/** * @return {@link #score} (The final score (percentage of tests passed) resulting from the execution of the TestScript.). This is the underlying object with id, value and extensions. The accessor "getScore" gives direct access to the value */ public DecimalType getScoreElement() { if (this.score == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TestReport.score"); else if (Configuration.doAutoCreate()) this.score = new DecimalType(); // bb return this.score; }