PatientRemote patientRemote = FacadeDB.getInstance().getPatientSyncBroker().getPatientRemoteByPatient(clinicalInformation.getPatient());
if (patientRemote == null) {
return null;
}
ClinicalInfoWs clinicalInfoWs = new ClinicalInfoWs();
clinicalInfoWs.setPatientId(patientRemote.getRemoteId());
clinicalInfoWs.setAge(clinicalInformation.getYears());
clinicalInfoWs.setDate(this.dateToXMLGregorianCalendar(clinicalInformation.getInformationDate()));
clinicalInfoWs.setWeight(clinicalInformation.getWeight());
clinicalInfoWs.setHeight(clinicalInformation.getHeight());
clinicalInfoWs.setHdl(clinicalInformation.getHdl());
clinicalInfoWs.setLdl(clinicalInformation.getLdl());
clinicalInfoWs.setGlucemic(clinicalInformation.getGlucemic());
clinicalInfoWs.setTotalCholesterol(clinicalInformation.getTotalCholesterol());
clinicalInfoWs.setSystolicPressure(clinicalInformation.getSystolicPressure());
clinicalInfoWs.setDiastolicPressure(clinicalInformation.getDiastolicPressure());
clinicalInfoWs.setTriglycerides(clinicalInformation.getTriglycerides());
return clinicalInfoWs;
}