コード例 #1
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (type == null || type.isEmpty())
       && (outcome == null || outcome.isEmpty())
       && (onset == null || onset.isEmpty())
       && (note == null || note.isEmpty());
 }
コード例 #2
0
 public FamilyMemberHistoryConditionComponent copy() {
   FamilyMemberHistoryConditionComponent dst = new FamilyMemberHistoryConditionComponent();
   copyValues(dst);
   dst.type = type == null ? null : type.copy();
   dst.outcome = outcome == null ? null : outcome.copy();
   dst.onset = onset == null ? null : onset.copy();
   dst.note = note == null ? null : note.copy();
   return dst;
 }
コード例 #3
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (identifier == null || identifier.isEmpty())
       && (patient == null || patient.isEmpty())
       && (date == null || date.isEmpty())
       && (name == null || name.isEmpty())
       && (relationship == null || relationship.isEmpty())
       && (gender == null || gender.isEmpty())
       && (born == null || born.isEmpty())
       && (age == null || age.isEmpty())
       && (deceased == null || deceased.isEmpty())
       && (note == null || note.isEmpty())
       && (condition == null || condition.isEmpty());
 }
コード例 #4
0
 public FamilyMemberHistory copy() {
   FamilyMemberHistory dst = new FamilyMemberHistory();
   copyValues(dst);
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.patient = patient == null ? null : patient.copy();
   dst.date = date == null ? null : date.copy();
   dst.name = name == null ? null : name.copy();
   dst.relationship = relationship == null ? null : relationship.copy();
   dst.gender = gender == null ? null : gender.copy();
   dst.born = born == null ? null : born.copy();
   dst.age = age == null ? null : age.copy();
   dst.deceased = deceased == null ? null : deceased.copy();
   dst.note = note == null ? null : note.copy();
   if (condition != null) {
     dst.condition = new ArrayList<FamilyMemberHistoryConditionComponent>();
     for (FamilyMemberHistoryConditionComponent i : condition) dst.condition.add(i.copy());
   }
   ;
   return dst;
 }