Skip to content

Conversation

@olewandowski1
Copy link
Contributor

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work is based on designs, which are linked or shown either in the Jira ticket or the description below. (See also: Styleguide)
  • My work includes tests or is validated by existing tests.

Summary

This PR introduces two new configuration options under biometrics that allow implementers to restrict BMI visibility based on patient age:

  • restrictBmiForMinors – enables or disables age‑based BMI restriction
  • bmiRestrictionMinAge – defines the minimum age at which BMI is shown

When enabled, BMI is hidden and not calculated for patients younger than the configured age across the vitals header, biometrics table, biometrics charts, and the vitals and biometrics form. Patient age is derived using the OpenMRS age() utility, and when age is unavailable, BMI remains visible as a safe fallback.

By default, BMI restriction is false (disabled), meaning there is no change in behavior unless these new configuration options are explicitly enabled, ensuring full backward compatibility.

UI

Kazam_screencast_00020.mp4

@olewandowski1
Copy link
Contributor Author

Hi @denniskigen , could you please review this PR when you have a moment?

@olewandowski1
Copy link
Contributor Author

Hi @denniskigen , could you take a look on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant