public org.hl7.fhir.instance.model.Distance convertDistance(org.hl7.fhir.dstu3.model.Distance src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Distance tgt = new org.hl7.fhir.instance.model.Distance(); 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; }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof Distance)) return false; Distance o = (Distance) other; return compareDeep(value, o.value, true) && compareDeep(comparator, o.comparator, true) && compareDeep(unit, o.unit, true) && compareDeep(system, o.system, true) && compareDeep(code, o.code, true); }
@Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof Distance)) return false; Distance o = (Distance) other; return compareValues(value, o.value, true) && compareValues(comparator, o.comparator, true) && compareValues(unit, o.unit, true) && compareValues(system, o.system, true) && compareValues(code, o.code, true); }
public org.hl7.fhir.dstu3.model.Distance convertDistance(org.hl7.fhir.instance.model.Distance src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Distance tgt = new org.hl7.fhir.dstu3.model.Distance(); 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 Distance copy() { Distance dst = new Distance(); copyValues(dst); dst.value = value == null ? null : value.copy(); dst.comparator = comparator == null ? null : comparator.copy(); dst.unit = unit == null ? null : unit.copy(); dst.system = system == null ? null : system.copy(); dst.code = code == null ? null : code.copy(); return dst; }
return new ElementDefinition(); if ("Distance".equals(name)) return new Distance(); if ("Age".equals(name)) return new Age();
protected Distance typedCopy() { return copy(); }
public org.hl7.fhir.r4.model.Distance convertDistance(org.hl7.fhir.instance.model.Distance src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Distance tgt = new org.hl7.fhir.r4.model.Distance(); 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 Distance copy() { Distance dst = new Distance(); copyValues(dst); dst.value = value == null ? null : value.copy(); dst.comparator = comparator == null ? null : comparator.copy(); dst.unit = unit == null ? null : unit.copy(); dst.system = system == null ? null : system.copy(); dst.code = code == null ? null : code.copy(); return dst; }
return new ElementDefinition(); if ("Distance".equals(name)) return new Distance(); if ("Age".equals(name)) return new Age();
protected Distance typedCopy() { return copy(); }
public org.hl7.fhir.instance.model.Distance convertDistance(org.hl7.fhir.r4.model.Distance src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Distance tgt = new org.hl7.fhir.instance.model.Distance(); 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 org.hl7.fhir.r4.model.Distance convertDistance(org.hl7.fhir.instance.model.Distance src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Distance tgt = new org.hl7.fhir.r4.model.Distance(); 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; }
@Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof Distance)) return false; Distance o = (Distance) other; return compareValues(value, o.value, true) && compareValues(comparator, o.comparator, true) && compareValues(unit, o.unit, true) && compareValues(system, o.system, true) && compareValues(code, o.code, true); }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof Distance)) return false; Distance o = (Distance) other; return compareDeep(value, o.value, true) && compareDeep(comparator, o.comparator, true) && compareDeep(unit, o.unit, true) && compareDeep(system, o.system, true) && compareDeep(code, o.code, true); }
public org.hl7.fhir.instance.model.Distance convertDistance(org.hl7.fhir.r4.model.Distance src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Distance tgt = new org.hl7.fhir.instance.model.Distance(); 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 org.hl7.fhir.dstu3.model.Distance convertDistance(org.hl7.fhir.instance.model.Distance src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Distance tgt = new org.hl7.fhir.dstu3.model.Distance(); 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 org.hl7.fhir.instance.model.Distance convertDistance(org.hl7.fhir.dstu3.model.Distance src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Distance tgt = new org.hl7.fhir.instance.model.Distance(); 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; }