@Override public PatientData<Object> load(Patient patient) { PatientSpecificity spec = this.service.getSpecificity(patient); if (spec != null) { Map<String, Object> data = new LinkedHashMap<String, Object>(); data.put("score", spec.getScore()); data.put("date", this.isoDateFormat.format(spec.getComputationDate())); data.put("server", spec.getComputingMethod()); return new DictionaryPatientData<Object>(NAME, data); } return null; }
@Override public PatientData<Object> load(Patient patient) { PatientSpecificity spec = this.service.getSpecificity(patient); if (spec != null) { Map<String, Object> data = new LinkedHashMap<String, Object>(); data.put("score", spec.getScore()); data.put("date", this.isoDateFormat.format(spec.getComputationDate())); data.put("server", spec.getComputingMethod()); return new DictionaryPatientData<Object>(NAME, data); } return null; }