Example #1
0
 public AdverseReaction copy() {
   AdverseReaction dst = new AdverseReaction();
   dst.reactionDate = reactionDate == null ? null : reactionDate.copy();
   dst.subject = subject == null ? null : subject.copy();
   dst.didNotOccurFlag = didNotOccurFlag == null ? null : didNotOccurFlag.copy();
   dst.recorder = recorder == null ? null : recorder.copy();
   dst.symptom = new ArrayList<AdverseReactionSymptomComponent>();
   for (AdverseReactionSymptomComponent i : symptom) dst.symptom.add(i.copy(dst));
   dst.exposure = new ArrayList<AdverseReactionExposureComponent>();
   for (AdverseReactionExposureComponent i : exposure) dst.exposure.add(i.copy(dst));
   return dst;
 }
Example #2
0
 public AdverseReactionSymptomComponent copy(AdverseReaction e) {
   AdverseReactionSymptomComponent dst = e.new AdverseReactionSymptomComponent();
   dst.code = code == null ? null : code.copy();
   dst.severity = severity == null ? null : severity.copy();
   return dst;
 }