コード例 #1
0
ファイル: Specimen.java プロジェクト: jmandel/fhir-lib
 public SpecimenTreatmentComponent copy(Specimen e) {
   SpecimenTreatmentComponent dst = e.new SpecimenTreatmentComponent();
   dst.description = description == null ? null : description.copy();
   dst.procedure = procedure == null ? null : procedure.copy();
   dst.additive = new ArrayList<ResourceReference>();
   for (ResourceReference i : additive) dst.additive.add(i.copy());
   return dst;
 }
コード例 #2
0
ファイル: Specimen.java プロジェクト: jmandel/fhir-lib
 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;
 }