Skip to content

Conversation

@karokojnr
Copy link
Collaborator

The previous logic was comparing child.key against parent keys in parent_to_entries, which would never match. Now we:

  1. Extract all leaf texts from PHYSICAL EXAMINATION.* entries in path_config
  2. Filter top.values to keep only children whose key matches these leaf texts
  3. Rename BMI from 'centile' to 'range' during filtering
  4. If no PHYSICAL EXAMINATION entries in path_config, don't filter (keep all)

The previous logic was comparing child.key against parent keys in parent_to_entries,
which would never match. Now we:
1. Extract all leaf texts from PHYSICAL EXAMINATION.* entries in path_config
2. Filter top.values to keep only children whose key matches these leaf texts
3. Rename BMI from 'centile' to 'range' during filtering
4. If no PHYSICAL EXAMINATION entries in path_config, don't filter (keep all)
@karokojnr karokojnr merged commit a4021c7 into main Nov 19, 2025
1 check passed
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.

2 participants