Removing/hiding nutritional value from Registration

This page (https://bahmni.atlassian.net/wiki/display/BAH/Registration+Page) mentions the ‘hideFields’ Feature to hide/remove the default nutritional values concepts from the registration process. I’ve tried various locations within the extension.json file, but the fields still appear.

Where is the right position for the hideFields element?

In registration/extension.json, there will be an extension with extensionPointId as “org.bahmni.registration.conceptSetGroup.observations”, which will most likely be about nutritionalValues. Remove the whole extension (both key and values).

E.g. if you are using default_config, delete these line in registration/extension.json

"nutritionalValues":{
    "id": "bahmni.registration.conceptSetGroup.nutritionalLevels",
    "extensionPointId": "org.bahmni.registration.conceptSetGroup.observations",
    "type": "config",
    "extensionParams": {
        "conceptName": "Nutritional Values",
        "translationKey": "NUTRITIONAL_VALUES_LOCALE_KEY",
        "conceptNames": ["Height", "Weight", "BMI", "BMI STATUS"],
        "required":true,
        "showLatest": true
    },
    "order": 1,
    "requiredPrivilege": "Edit Visits"
},
1 Like

OK. This works. Thx.