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; }
public org.hl7.fhir.instance.model.DecimalType convertDecimal(org.hl7.fhir.dstu3.model.DecimalType src) throws FHIRException { org.hl7.fhir.instance.model.DecimalType tgt = new org.hl7.fhir.instance.model.DecimalType(src.getValue()); copyElement(src, tgt); return tgt; }
public boolean hasFactorElement() { return this.factor != null && !this.factor.isEmpty(); }
public static org.hl7.fhir.dstu2016may.model.DecimalType convertDecimal(org.hl7.fhir.dstu3.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; }
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); } }
/** * 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); } }
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 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; }
"Value is '" + value + "' but must be '" + ((org.hl7.fhir.dstu3.model.IntegerType) fixed).asStringValue() + "'"); else if (fixed instanceof org.hl7.fhir.dstu3.model.DecimalType) rule(errors, IssueType.VALUE, focus.line(), focus.col(), path, check(((org.hl7.fhir.dstu3.model.DecimalType) fixed).asStringValue(), value), "Value is '" + value + "' but must be '" + ((org.hl7.fhir.dstu3.model.DecimalType) fixed).asStringValue() + "'"); else if (fixed instanceof org.hl7.fhir.dstu3.model.Base64BinaryType) rule(errors, IssueType.VALUE, focus.line(), focus.col(), path, check(((org.hl7.fhir.dstu3.model.Base64BinaryType) fixed).asStringValue(), value),
if (nextValue.getValueElement().isEmpty()) { continue; } else if (nextObject instanceof Quantity) { Quantity nextValue = (Quantity) nextObject; if (nextValue.getValueElement().isEmpty()) { continue; } else if (nextObject instanceof DecimalType) { DecimalType nextValue = (DecimalType) nextObject; if (nextValue.getValue() == null) { continue; ResourceIndexedSearchParamNumber nextEntity = new ResourceIndexedSearchParamNumber(resourceName, nextValue.getValue()); nextEntity.setResource(theEntity); retVal.add(nextEntity);
@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; }
public static org.hl7.fhir.dstu2016may.model.DecimalType convertDecimal(org.hl7.fhir.dstu3.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 SampledData copy() { SampledData dst = new SampledData(); copyValues(dst); dst.origin = origin == null ? null : origin.copy(); dst.period = period == null ? null : period.copy(); dst.factor = factor == null ? null : factor.copy(); dst.lowerLimit = lowerLimit == null ? null : lowerLimit.copy(); dst.upperLimit = upperLimit == null ? null : upperLimit.copy(); dst.dimensions = dimensions == null ? null : dimensions.copy(); dst.data = data == null ? null : data.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 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; }
/** * @return 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 BigDecimal getFactor() { return this.factor == null ? null : this.factor.getValue(); }
public boolean hasMeasureScore() { return this.measureScore != null && !this.measureScore.isEmpty(); }
nextResource.addExtension(new Extension(ExtensionConstants.CONF_RESOURCE_COUNT, new DecimalType(count)));
public SequenceQualityComponent copy() { SequenceQualityComponent dst = new SequenceQualityComponent(); copyValues(dst); dst.type = type == null ? null : type.copy(); dst.standardSequence = standardSequence == null ? null : standardSequence.copy(); dst.start = start == null ? null : start.copy(); dst.end = end == null ? null : end.copy(); dst.score = score == null ? null : score.copy(); dst.method = method == null ? null : method.copy(); dst.truthTP = truthTP == null ? null : truthTP.copy(); dst.queryTP = queryTP == null ? null : queryTP.copy(); dst.truthFN = truthFN == null ? null : truthFN.copy(); dst.queryFP = queryFP == null ? null : queryFP.copy(); dst.gtFP = gtFP == null ? null : gtFP.copy(); dst.precision = precision == null ? null : precision.copy(); dst.recall = recall == null ? null : recall.copy(); dst.fScore = fScore == null ? null : fScore.copy(); return dst; }