FamilyRemote familyRemote = FacadeDB.getInstance().getFamilySyncBroker().getFamilyRemoteByFamily(background.getFamily());
if (familyRemote == null) {
return null;
}
PatientFamilyWs familyWs = new PatientFamilyWs();
familyWs.setFamilyId(familyRemote.getRemoteId());
familyWs.setBackgroundCardiac(background.getBackgroundCardiac() != null ? background.getBackgroundCardiac() : false);
familyWs.setBackgroundCholesterol(background.getBackgroundCholesterol() != null ? background.getBackgroundCholesterol() : false);
familyWs.setBackgroundDiabetic(background.getBackgroundDiabetic() != null ? background.getBackgroundDiabetic() : false);
familyWs.setBackgroundHypertension(background.getBackgroundHypertension() != null ? background.getBackgroundHypertension() : false);
return familyWs;
}