return new ElementDefinition(); if ("Distance".equals(name)) return new Distance(); if ("Age".equals(name)) return new Age();
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; }
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; }
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; }
return new ElementDefinition(); if ("Distance".equals(name)) return new Distance(); if ("Age".equals(name)) return new Age();
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; }
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.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; }