Beispiel #1
0
 public Specimen copy() {
   Specimen dst = new Specimen();
   dst.identifier = identifier == null ? null : identifier.copy();
   dst.type = type == null ? null : type.copy();
   dst.source = new ArrayList<SpecimenSourceComponent>();
   for (SpecimenSourceComponent i : source) dst.source.add(i.copy(dst));
   dst.subject = subject == null ? null : subject.copy();
   dst.accessionIdentifier = new ArrayList<Identifier>();
   for (Identifier i : accessionIdentifier) dst.accessionIdentifier.add(i.copy());
   dst.receivedTime = receivedTime == null ? null : receivedTime.copy();
   dst.collection = collection == null ? null : collection.copy(dst);
   dst.treatment = new ArrayList<SpecimenTreatmentComponent>();
   for (SpecimenTreatmentComponent i : treatment) dst.treatment.add(i.copy(dst));
   dst.container = new ArrayList<SpecimenContainerComponent>();
   for (SpecimenContainerComponent i : container) dst.container.add(i.copy(dst));
   return dst;
 }
Beispiel #2
0
 public SpecimenContainerComponent copy(Specimen e) {
   SpecimenContainerComponent dst = e.new SpecimenContainerComponent();
   dst.identifier = new ArrayList<Identifier>();
   for (Identifier i : identifier) dst.identifier.add(i.copy());
   dst.description = description == null ? null : description.copy();
   dst.type = type == null ? null : type.copy();
   dst.capacity = capacity == null ? null : capacity.copy();
   dst.specimenQuantity = specimenQuantity == null ? null : specimenQuantity.copy();
   dst.additive = additive == null ? null : additive.copy();
   return dst;
 }