/** * @return {@link #age} (The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.) */ public Range getAge() { if (this.age == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ObservationReferenceRangeComponent.age"); else if (Configuration.doAutoCreate()) this.age = new Range(); // cc return this.age; }
public org.hl7.fhir.r4.model.Range convertRange(org.hl7.fhir.instance.model.Range src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Range tgt = new org.hl7.fhir.r4.model.Range(); copyElement(src, tgt); tgt.setLow(convertSimpleQuantity(src.getLow())); tgt.setHigh(convertSimpleQuantity(src.getHigh())); return tgt; }
@Override public void setProperty(String name, Base value) throws FHIRException { if (name.equals("low")) this.low = castToSimpleQuantity(value); // SimpleQuantity else if (name.equals("high")) this.high = castToSimpleQuantity(value); // SimpleQuantity else super.setProperty(name, value); }
public Range copy() { Range dst = new Range(); copyValues(dst); dst.low = low == null ? null : low.copy(); dst.high = high == null ? null : high.copy(); return dst; }
public org.hl7.fhir.instance.model.Range convertRange(org.hl7.fhir.r4.model.Range src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Range tgt = new org.hl7.fhir.instance.model.Range(); copyElement(src, tgt); tgt.setLow(convertSimpleQuantity(src.getLow())); tgt.setHigh(convertSimpleQuantity(src.getHigh())); return tgt; }
public boolean hasAge() { return this.age != null && !this.age.isEmpty(); }
protected Range typedCopy() { return copy(); }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof Range)) return false; Range o = (Range) other; return compareDeep(low, o.low, true) && compareDeep(high, o.high, true); }
public org.hl7.fhir.instance.model.Range convertRange(org.hl7.fhir.dstu3.model.Range src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Range tgt = new org.hl7.fhir.instance.model.Range(); copyElement(src, tgt); tgt.setLow(convertSimpleQuantity(src.getLow())); tgt.setHigh(convertSimpleQuantity(src.getHigh())); return tgt; }
public Range copy() { Range dst = new Range(); copyValues(dst); dst.low = low == null ? null : low.copy(); dst.high = high == null ? null : high.copy(); return dst; }
public boolean isEmpty() { return super.isEmpty() && (low == null || low.isEmpty()) && (high == null || high.isEmpty()) && (meaning == null || meaning.isEmpty()) && (age == null || age.isEmpty()) && (text == null || text.isEmpty()) ; }
public ObservationReferenceRangeComponent copy() { ObservationReferenceRangeComponent dst = new ObservationReferenceRangeComponent(); copyValues(dst); dst.low = low == null ? null : low.copy(); dst.high = high == null ? null : high.copy(); dst.meaning = meaning == null ? null : meaning.copy(); dst.age = age == null ? null : age.copy(); dst.text = text == null ? null : text.copy(); return dst; }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof Range)) return false; Range o = (Range) other; return compareDeep(low, o.low, true) && compareDeep(high, o.high, true); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("low")) { this.low = new SimpleQuantity(); return this.low; } else if (name.equals("high")) { this.high = new SimpleQuantity(); return this.high; } else if (name.equals("meaning")) { this.meaning = new CodeableConcept(); return this.meaning; } else if (name.equals("age")) { this.age = new Range(); return this.age; } else if (name.equals("text")) { throw new FHIRException("Cannot call addChild on a primitive type Observation.text"); } else return super.addChild(name); }
public org.hl7.fhir.dstu3.model.Range convertRange(org.hl7.fhir.instance.model.Range src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Range tgt = new org.hl7.fhir.dstu3.model.Range(); copyElement(src, tgt); tgt.setLow(convertSimpleQuantity(src.getLow())); tgt.setHigh(convertSimpleQuantity(src.getHigh())); return tgt; }
public org.hl7.fhir.instance.model.Range convertRange(org.hl7.fhir.dstu3.model.Range src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Range tgt = new org.hl7.fhir.instance.model.Range(); copyElement(src, tgt); tgt.setLow(convertSimpleQuantity(src.getLow())); tgt.setHigh(convertSimpleQuantity(src.getHigh())); return tgt; }
public boolean hasAge() { return this.age != null && !this.age.isEmpty(); }
protected Range typedCopy() { return copy(); }