Fixed sql query for entidad
Added print patient record button to cita dialog.