Skip to content

v5.0.0

Choose a tag to compare

@denniskigen denniskigen released this 18 Jul 19:59
· 1348 commits to main since this release
2234a56

Patient Management v5.0.0 is a major release that introduces a BREAKING change. It migrates all the frontend modules in this monorepo to leverage the new module loading mechanism introduced in Core v5.

Highlights

Support for the new module-loading mechanism

Per the migration guide, this release introduces a routes.json file used to configure pages and extensions for each frontend module in this monorepo. It also makes the necessary changes to app entry points (src/index.ts), including specifying named exports for each extension and page. Specifying this dynamic and static metadata makes these modules compatible with the new module loading mechanism, enabling us to leverage the performance benefits on offer. This is a BREAKING change, and all distros that use these modules will need to update their configurations to use the latest versions of the core framework and openmrs tooling.

Show recently viewed patients in the search menu

This release adds the ability to view up to the last 10 patients whose charts you've viewed in the search menu. This feature should make it easier for clinicians to quickly access the charts of patients they've recently interacted with. Watch @jnsereko's video below for a demo of how this feature works:

recent-searches.mov

Address hierarchy improvements

This release contains improvements to the address hierarchy widget in the registration form. It includes fixes to the search-by-level feature and ordering of address fields. It also adds support for showing possible entries for an address field based on the selected parent field.

Support for reverse order of name fields via configuration

This release adds support for reversing the order of name fields in the registration form via configuration from the default order of givenName > middleName > and familyName to familyName > middleName > givenName.

Fixes for registering unidentified patients and patients with unknown date of birth

This release adds fixes to the registration form so that it better supports registering patients with unknown names and estimated dates of birth.

Breaking changes

  • (BREAKING) Migrate esm-patient-management to use routes.json by @vasharma05 in #733

Features

  • (feat) By default, search should just redirect to the chart by @ibacher in #722
  • (feat) Show a details button on the compact patient banner for deceased patients by @jwnasambu in #724
  • (feat) O3-2098 & O3-1755 & O3-1834: Allow ordering fields and showing possible entries for an address field for address hierarchy by @vasharma05 in #725
  • (feat) Automatically update translation files for all locales when keys and strings change by @vasharma05 in #731
  • (feat) Enable reverse order for name fields in registration form via configuration by @vasharma05 in #744
  • (feat) Display recently viewed patients in the search menu by @jnsereko in #665
  • (feat) Remove filtering todays queue entries on frontend by @CynthiaKamau in #752
  • (feat) O3-2100: Unknown patient name and estimated D.O.B config by @Jexsie in #697
  • (feat) Display all active visits by removing filter for showing only today's active visits by @donaldkibet in #755

Bug fixes

  • (fix) Change activeVisits.idNumber assignment for improved code robustness by @donaldkibet in #756
  • (fix) O3-2152: Rtl support, fix styles by @AlexanderMizgirev in #721
  • (fix) Remove deprecated extensionSlotName prop by @denniskigen in #726
  • (fix) O3-2081- Update tests for patient-registration-validation component by @ayush-AI in #707
  • (fix) O3-2152: Fix styles in appointments calendar, patient registration by @AlexanderMizgirev in #729
  • (fix) O3-2174: Fix stacking context in the appointments widget search overlay by @jwnasambu in #723
  • (fix) Exports should reference the result of getSync / getAsync by @ibacher in #736
  • (fix) Fix wrong component name in outpatients app routes by @denniskigen in #738
  • (fix) More fixes for routes by @denniskigen in #740
  • (fix) Remove incorrect order property from routes by @denniskigen in #739
  • (fix) Fix Appointments calendar dashboard link extension config by @denniskigen in #742
  • (fix) Fix an issue where registering a patient doesn't work by @vasharma05 in #746
  • (fix) Add encoding to address hierarchy searchString by @donaldkibet in #734
  • (fix) Properly handle focus and blur states for address hierarchy fields by @vasharma05 in #745
  • (fix) O3-2022: Editing Patients changes Birthday in UTC-minus timezones by @mogoodrich in #727

Housekeeping

  • (chore) Switch back to swc-loader by @denniskigen in #737
  • (chore) Update to newer versions of openmrs and @openmrs/esm-framework by @ibacher in #743
  • (chore) O3-2171: Utilize Docker to resolve disk space issues in Bamboo CI by @jayasanka-sack in #720

Tests

  • (test)O3-2215: Add tests for field.component by @ayush-AI in #741
  • (test) O3-2218 O3-2219: Add test for add-patient-link and nav-link tests components by @ayush-AI in #749
  • (test) O3-2073: Improve test coverage for the DeathInfoSection component by @ayush-AI in #680
  • (test) O3-2225 O3-2226: Add tests for cancel-patient-edit.component and delete-identifier-confirmation-modal by @ayush-AI in #750
  • (test) O3-2229: Add unit tests for utils.ts file by @ayush-AI in #747
  • (test) Adapt tests to use naming and syntax conventions by @denniskigen in #728

Thank you to all our wonderful contributors 🎉

Full Changelog: v4.5.0...v5.0.0