/** * Convenience constructor * * @param theComparator The {@link #setComparator(QuantityComparator) comparator} * @param theValue The {@link #setValue(BigDecimal) value} * @param theSystem The {@link #setSystem(String)} (the code system for the units} * @param theCode The {@link #setCode(String)} (the code for the units} * @param theUnit The {@link #setUnit(String)} (the human readable display name for the units} */ public Quantity(QuantityComparator theComparator, double theValue, String theSystem, String theCode, String theUnit) { setValue(theValue); setComparator(theComparator); setSystem(theSystem); setCode(theCode); setUnit(theUnit); }
/** * Convenience constructor * * @param theComparator The {@link #setComparator(QuantityComparator) comparator} * @param theValue The {@link #setValue(BigDecimal) value} * @param theSystem The {@link #setSystem(String)} (the code system for the units} * @param theCode The {@link #setCode(String)} (the code for the units} * @param theUnit The {@link #setUnit(String)} (the human readable display name for the units} */ public Quantity(QuantityComparator theComparator, long theValue, String theSystem, String theCode, String theUnit) { setValue(theValue); setComparator(theComparator); setSystem(theSystem); setCode(theCode); setUnit(theUnit); } /**
public org.hl7.fhir.r4.model.Quantity convertQuantity(org.hl7.fhir.instance.model.Quantity src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Quantity tgt = new org.hl7.fhir.r4.model.Quantity(); copyElement(src, tgt); tgt.setValue(src.getValue()); tgt.setComparator(convertQuantityComparator(src.getComparator())); tgt.setUnit(src.getUnit()); tgt.setSystem(src.getSystem()); tgt.setCode(src.getCode()); return tgt; }
public static org.hl7.fhir.r4.model.Quantity convertQuantity(org.hl7.fhir.dstu2016may.model.Quantity src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Quantity tgt = new org.hl7.fhir.r4.model.Quantity(); copyElement(src, tgt); if (src.hasValue()) tgt.setValue(src.getValue()); tgt.setComparator(convertQuantityComparator(src.getComparator())); if (src.hasUnit()) tgt.setUnit(src.getUnit()); if (src.hasSystem()) tgt.setSystem(src.getSystem()); if (src.hasCode()) tgt.setCode(src.getCode()); return tgt; }
/** * Convenience constructor * * @param theComparator The {@link #setComparator(QuantityComparator) comparator} * @param theValue The {@link #setValue(BigDecimal) value} * @param theSystem The {@link #setSystem(String)} (the code system for the units} * @param theCode The {@link #setCode(String)} (the code for the units} * @param theUnit The {@link #setUnit(String)} (the human readable display name for the units} */ public Quantity(QuantityComparator theComparator, double theValue, String theSystem, String theCode, String theUnit) { setValue(theValue); setComparator(theComparator); setSystem(theSystem); setCode(theCode); setUnit(theUnit); }
/** * Convenience constructor * * @param theComparator The {@link #setComparator(QuantityComparator) comparator} * @param theValue The {@link #setValue(BigDecimal) value} * @param theSystem The {@link #setSystem(String)} (the code system for the units} * @param theCode The {@link #setCode(String)} (the code for the units} * @param theUnit The {@link #setUnit(String)} (the human readable display name for the units} */ public Quantity(QuantityComparator theComparator, long theValue, String theSystem, String theCode, String theUnit) { setValue(theValue); setComparator(theComparator); setSystem(theSystem); setCode(theCode); setUnit(theUnit); } /**
public org.hl7.fhir.r4.model.Quantity convertQuantity(org.hl7.fhir.instance.model.Quantity src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Quantity tgt = new org.hl7.fhir.r4.model.Quantity(); copyElement(src, tgt); tgt.setValue(src.getValue()); tgt.setComparator(convertQuantityComparator(src.getComparator())); tgt.setUnit(src.getUnit()); tgt.setSystem(src.getSystem()); tgt.setCode(src.getCode()); return tgt; }
public static org.hl7.fhir.r4.model.Quantity convertQuantity(org.hl7.fhir.dstu2016may.model.Quantity src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Quantity tgt = new org.hl7.fhir.r4.model.Quantity(); copyElement(src, tgt); if (src.hasValue()) tgt.setValue(src.getValue()); tgt.setComparator(convertQuantityComparator(src.getComparator())); if (src.hasUnit()) tgt.setUnit(src.getUnit()); if (src.hasSystem()) tgt.setSystem(src.getSystem()); if (src.hasCode()) tgt.setCode(src.getCode()); return tgt; }