private void selectPatient() { if(form.grdWorklist().getValue() == null) return; PatientForHospitalAtNightVo patient = form.grdWorklist().getValue().getPatient(); PatientShort patientShort = new PatientShort(patient.getID_Patient(), patient.getVersion_Patient()); form.getGlobalContext().Core.setPatientShort(patientShort); }