              if (searchTerm && !key.toLowerCase().includes(searchTerm) && 
                        !measure.description.toLowerCase().includes(searchTerm)) {
                        return;
                    }
                    
                    const item = document.createElement('div');
                    item.className = 'measure-item';
                    item.textContent = `${key} - ${measure.description.substring(0, 50)}...`;
                    item.onclick = () => selectMeasure(category, ke