public Goal copy() { Goal dst = new Goal(); 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.description = description == null ? null : description.copy(); dst.status = status == null ? null : status.copy(); dst.notes = notes == null ? null : notes.copy(); if (concern != null) { dst.concern = new ArrayList<Reference>(); for (Reference i : concern) dst.concern.add(i.copy()); } ; return dst; }