public MedicationPackageComponent copy(Medication e) { MedicationPackageComponent dst = new MedicationPackageComponent(); dst.container = container == null ? null : container.copy(); dst.content = new ArrayList<MedicationPackageContentComponent>(); for (MedicationPackageContentComponent i : content) dst.content.add(i.copy(e)); return dst; }
public MedicationPackageContentComponent copy(Medication e) { MedicationPackageContentComponent dst = new MedicationPackageContentComponent(); dst.item = item == null ? null : item.copy(); dst.amount = amount == null ? null : amount.copy(); return dst; }