feat: centralize vital sign configurations and utilities in vital-signs.ts#32
Merged
feat: centralize vital sign configurations and utilities in vital-signs.ts#32
Conversation
zhuzilinaba
approved these changes
Oct 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors how vital sign and blood test configuration data is managed and displayed across several components. It centralizes configuration for vital signs and blood tests into shared modules, improves consistency in labeling, units, chart domains, and colors, and updates UI components to leverage these centralized configurations for better maintainability and clarity.
Centralization and Consistency of Vital Sign Configuration
@/lib/vital-signsin multiple components, ensuring all vital sign labels, units, abbreviations, chart domains, and colors are managed from a single source. (blood-pressure-input.tsx,individual-vital-signs-form.tsx,latest-observations-display.tsx,observation-chart.tsx) [1] [2] [3] [4]Improved Chart Rendering and Tooltip Formatting
observation-chart.tsx) [1] [2] [3] [4] [5] [6] [7] [8] [9]Consistent Display of Vital Sign Labels and Units
latest-observations-display.tsx)Blood Test Labeling Improvements
getBloodTestLabelfrom the centralized constants module to display user-friendly blood test names in the blood test request form. (blood-test-request-form.tsx) [1] [2]Unit Correction
bulk-vital-signs-form.tsx)