code.getCodingFirstRep().setDisplay(this.observationConcept.getName());
observation.setCode(code);
observation.setStatus(STATUS);
IDatatype value = null;
if (this.valueAsNumber != null) {
<BUG>QuantityDt quantity = new QuantityDt(this.valueAsNumber.doubleValue());
quantity.setUnit(this.unit.getConceptCode());// Unit is defined as a
quantity.setCode(this.unit.getConceptCode());
quantity.setSystem(this.unit.getVocabulary().getSystemUri());
value = quantity;</BUG>
if (this.rangeLow != null)

code.getCodingFirstRep().setDisplay(this.observationConcept.getName());
observation.setCode(code);
observation.setStatus(STATUS);
IDatatype value = null;
if (this.valueAsNumber != null) {
QuantityDt quantity = new QuantityDt(this.valueAsNumber.doubleValue());
if (this.unit != null) {
quantity.setUnit(this.unit.getConceptCode());
quantity.setCode(this.unit.getConceptCode());
quantity.setSystem(this.unit.getVocabulary().getSystemUri());
}
value = quantity;
if (this.rangeLow != null)
