public MedicationProductComponent copy(Medication e) { MedicationProductComponent dst = new MedicationProductComponent(); dst.form = form == null ? null : form.copy(); dst.ingredient = new ArrayList<MedicationProductIngredientComponent>(); for (MedicationProductIngredientComponent i : ingredient) dst.ingredient.add(i.copy(e)); return dst; }
public Medication copy() { Medication dst = new Medication(); dst.name = name == null ? null : name.copy(); dst.code = code == null ? null : code.copy(); dst.isBrand = isBrand == null ? null : isBrand.copy(); dst.manufacturer = manufacturer == null ? null : manufacturer.copy(); dst.kind = kind == null ? null : kind.copy(); dst.product = product == null ? null : product.copy(dst); dst.package_ = package_ == null ? null : package_.copy(dst); return dst; }