public DiagnosticOrderItemComponent copy(DiagnosticOrder e) { DiagnosticOrderItemComponent dst = e.new DiagnosticOrderItemComponent(); dst.code = code == null ? null : code.copy(); dst.specimen = new ArrayList<ResourceReference>(); for (ResourceReference i : specimen) dst.specimen.add(i.copy()); dst.bodySite = bodySite == null ? null : bodySite.copy(); dst.status = status == null ? null : status.copy(); dst.event = new ArrayList<DiagnosticOrderEventComponent>(); for (DiagnosticOrderEventComponent i : event) dst.event.add(i.copy(e)); return dst; }
public DiagnosticOrder copy() { DiagnosticOrder dst = new DiagnosticOrder(); dst.subject = subject == null ? null : subject.copy(); dst.orderer = orderer == null ? null : orderer.copy(); dst.identifier = new ArrayList<Identifier>(); for (Identifier i : identifier) dst.identifier.add(i.copy()); dst.encounter = encounter == null ? null : encounter.copy(); dst.clinicalNotes = clinicalNotes == null ? null : clinicalNotes.copy(); dst.specimen = new ArrayList<ResourceReference>(); for (ResourceReference i : specimen) dst.specimen.add(i.copy()); dst.status = status == null ? null : status.copy(); dst.event = new ArrayList<DiagnosticOrderEventComponent>(); for (DiagnosticOrderEventComponent i : event) dst.event.add(i.copy(dst)); dst.item = new ArrayList<DiagnosticOrderItemComponent>(); for (DiagnosticOrderItemComponent i : item) dst.item.add(i.copy(dst)); return dst; }