@Override void doSetValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theValue) { clear(); if (theValue == null) { return; } List<String> parts = ParameterUtil.splitParameterString(theValue, '|', true); if (parts.size() > 0 && StringUtils.isNotBlank(parts.get(0))) { String value = super.extractPrefixAndReturnRest(parts.get(0)); setValue(value); } if (parts.size() > 1 && StringUtils.isNotBlank(parts.get(1))) { setSystem(parts.get(1)); } if (parts.size() > 2 && StringUtils.isNotBlank(parts.get(2))) { setUnits(parts.get(2)); } }
/** * Constructor * * @param theQuantity * A quantity value (with no system or units), such as "100.0" or "<=4" * @param theSystem * The unit system * @param theUnits * The unit code */ public QuantityParam(String theQuantity, String theSystem, String theUnits) { setValueAsQueryToken(null, null, null, theQuantity); setSystem(theSystem); setUnits(theUnits); }
private void clear() { setPrefix(null); setSystem((String) null); setUnits(null); setValue((BigDecimal) null); }
/** * Constructor * * @param thePrefix * The comparator, or <code>null</code> for an equals comparator * @param theValue * A quantity value * @param theSystem * The unit system * @param theUnits * The unit code */ public QuantityParam(ParamPrefixEnum thePrefix, long theValue, String theSystem, String theUnits) { setPrefix(thePrefix); setValue(theValue); setSystem(theSystem); setUnits(theUnits); }
/** * Constructor * * @param thePrefix * The comparator, or <code>null</code> for an equals comparator * @param theValue * A quantity value * @param theSystem * The unit system * @param theUnits * The unit code */ public QuantityParam(ParamPrefixEnum thePrefix, BigDecimal theValue, String theSystem, String theUnits) { setPrefix(thePrefix); setValue(theValue); setSystem(theSystem); setUnits(theUnits); }
/** * Constructor * * @param thePrefix * The comparator, or <code>null</code> for an equals comparator * @param theValue * A quantity value * @param theSystem * The unit system * @param theUnits * The unit code */ public QuantityParam(ParamPrefixEnum thePrefix, double theValue, String theSystem, String theUnits) { setPrefix(thePrefix); setValue(theValue); setSystem(theSystem); setUnits(theUnits); }
@Override void doSetValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theValue) { clear(); if (theValue == null) { return; } List<String> parts = ParameterUtil.splitParameterString(theValue, '|', true); if (parts.size() > 0 && StringUtils.isNotBlank(parts.get(0))) { String value = super.extractPrefixAndReturnRest(parts.get(0)); setValue(value); } if (parts.size() > 1 && StringUtils.isNotBlank(parts.get(1))) { setSystem(parts.get(1)); } if (parts.size() > 2 && StringUtils.isNotBlank(parts.get(2))) { setUnits(parts.get(2)); } }
/** * Constructor * * @param theQuantity * A quantity value (with no system or units), such as "100.0" or "<=4" * @param theSystem * The unit system * @param theUnits * The unit code */ public QuantityParam(String theQuantity, String theSystem, String theUnits) { setValueAsQueryToken(null, null, null, theQuantity); setSystem(theSystem); setUnits(theUnits); }
private void clear() { setPrefix(null); setSystem((String) null); setUnits(null); setValue((BigDecimal) null); }
/** * Constructor * * @param thePrefix * The comparator, or <code>null</code> for an equals comparator * @param theValue * A quantity value * @param theSystem * The unit system * @param theUnits * The unit code */ public QuantityParam(ParamPrefixEnum thePrefix, double theValue, String theSystem, String theUnits) { setPrefix(thePrefix); setValue(theValue); setSystem(theSystem); setUnits(theUnits); }
/** * Constructor * * @param thePrefix * The comparator, or <code>null</code> for an equals comparator * @param theValue * A quantity value * @param theSystem * The unit system * @param theUnits * The unit code */ public QuantityParam(ParamPrefixEnum thePrefix, BigDecimal theValue, String theSystem, String theUnits) { setPrefix(thePrefix); setValue(theValue); setSystem(theSystem); setUnits(theUnits); }
/** * Constructor * * @param thePrefix * The comparator, or <code>null</code> for an equals comparator * @param theValue * A quantity value * @param theSystem * The unit system * @param theUnits * The unit code */ public QuantityParam(ParamPrefixEnum thePrefix, long theValue, String theSystem, String theUnits) { setPrefix(thePrefix); setValue(theValue); setSystem(theSystem); setUnits(theUnits); }