@Test public void saveResetsDiagnosisToNullForEmptyData() { when(this.patient.getData(DATA_NAME)).thenReturn(new IndexedPatientData<>(DATA_NAME, Collections.emptyList())); this.component.save(this.patient); verify(this.dataHolder).set(XPROPERTY_NAME, null, this.xcontext); }
@Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }
ClinicalDiagnosisController implements PatientDataController<Disorder> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); } }
ClinicalDiagnosisController implements PatientDataController<Disorder> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  }
ClinicalDiagnosisController implements PatientDataController<Disorder> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override String getName(); @Override IndexedPatientData<Disorder> load(Patient patient); @Override void save(Patient patient); @Override void save(@Nonnull final Patient patient, @Nonnull final PatientWritePolicy policy); @Override void writeJSON(Patient patient, JSONObject json); @Override void writeJSON(Patient patient, JSONObject json, Collection<String> selectedFieldNames); @Override PatientData<Disorder> readJSON(JSONObject json); }
ClinicalDiagnosisController implements PatientDataController<Disorder> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override String getName(); @Override IndexedPatientData<Disorder> load(Patient patient); @Override void save(Patient patient); @Override void save(@Nonnull final Patient patient, @Nonnull final PatientWritePolicy policy); @Override void writeJSON(Patient patient, JSONObject json); @Override void writeJSON(Patient patient, JSONObject json, Collection<String> selectedFieldNames); @Override PatientData<Disorder> readJSON(JSONObject json);  }