BN-75 | Add. DiagnosisTable Display Control #30
Merged
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.
JIRA → BN-75
This PR introduces the diagnoses display control into the Bahmni Clinical Frontend application and implements UI/UX improvements across the remaining components.
🗂️ Type of Change
📋 Changes Made
** Added - Diagnoses Display System**
Added
DiagnosesTablecomponent and all associated files:src/displayControls/diagnoses/DiagnosesTable.tsxsrc/displayControls/diagnoses/styles/DiagnosesTable.module.scsssrc/displayControls/diagnoses/__tests__/DiagnosesTable.test.tsxsrc/displayControls/diagnoses/__tests__/DiagnosesTable.integration.test.tsxAdded
useDiagnoseshook:src/hooks/useDiagnoses.ts(57 lines removed)src/hooks/__tests__/useDiagnoses.test.tsx(379 lines removed)Added
diagnosesService:src/services/diagnosesService.ts(120 lines removed)src/services/__tests__/diagnosesService.test.ts(418 lines removed)Updated
DashboardSectioncomponent:🌐 Localization Cleanup
Added diagnosis-related translation keys from both English and Spanish locales:
DIAGNOSES_DISPLAY_CONTROL_HEADINGDIAGNOSIS_LIST_DIAGNOSISDIAGNOSIS_LIST_RECORDERDIAGNOSIS_TABLE_NOT_AVAILABLEERROR_FETCHING_DIAGNOSESNO_DIAGNOSES🏗️ Constants and Types Cleanup
Constants Added:
PATIENT_DIAGNOSIS_RESOURCE_URLHL7_CONDITION_CATEGORY_DIAGNOSIS_CODEFULL_MONTH_DATE_FORMATType definitions Added:
FormattedDiagnosisinterfaceDiagnosesByDateinterfaceDiagnosisInputEntryinterface for form functionality🎨 UI/UX Improvements
ExpandableDataTable Enhancements:
renderExpandedContentprop optionalalign="start"prop from Accordion components for consistent stylingComponent Styling Updates:
width: 100%, paddingTop: 1rem)width: 100%, paddingTop: 1rem)🔧 Date Utility Simplification
getUserPreferredLocaleservice🧪 Testing
Screenshots
Important
Checklist
Reviewer(s)
@bahnew/developers
Kindly review the proposed changes when convenient. Your feedback is appreciated.