utput();
        }

        function removeValue(index) {
            measuresDB[currentCategory][currentMeasure].values.splice(index, 1);
            renderValues(measuresDB[currentCategory][currentMeasure].values);
            updateJSONOutput();
        }

        function updateJSONOutput() {
            document.getElementById('jsonOutput').textContent = JSON.stringify(measuresDB, null, 2);
        }

        function addNewMeasure() {
            const name = prompt('Enter measure ID (e.g., phq9):');
