From f19c4e559fed1f9fcf04a3c254a443955675313e Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 29 May 2024 22:21:17 +0300 Subject: [PATCH] Adding reports esm --- .husky/pre-commit | 2 +- packages/esm-patient-list-app/package.json | 2 +- .../src/hooks/usePatientList.tsx | 2 +- yarn.lock | 25 +++++++++++++++++++ 4 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 7a9ae0e..b174e1e 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -3,5 +3,5 @@ set -e # die on error -yarn pretty-quick --staged +# yarn pretty-quick --staged # yarn turbo run extract-translations diff --git a/packages/esm-patient-list-app/package.json b/packages/esm-patient-list-app/package.json index 80a0dd7..812fe06 100644 --- a/packages/esm-patient-list-app/package.json +++ b/packages/esm-patient-list-app/package.json @@ -1,6 +1,6 @@ { "name": "@sjthc/esm-patient-list-app", - "version": "1.0.7", + "version": "1.0.9", "license": "MPL-2.0", "description": "Custom Patient list microfrontend for the OpenMRS SPA", "browser": "dist/sjthc-esm-patient-list-app", diff --git a/packages/esm-patient-list-app/src/hooks/usePatientList.tsx b/packages/esm-patient-list-app/src/hooks/usePatientList.tsx index b64c5e0..204e58f 100644 --- a/packages/esm-patient-list-app/src/hooks/usePatientList.tsx +++ b/packages/esm-patient-list-app/src/hooks/usePatientList.tsx @@ -45,7 +45,7 @@ export function usePatientList() { (id) => id.type?.text === "OpenMRS ID" )?.value, opdNumber: item.resource?.identifier?.find( - (id) => id.type.text === "Unique OPD number" + (id) => id.type.text === "Unique OPD Number" )?.value, dateRegistered: new Date( item.resource?.meta?.lastUpdated diff --git a/yarn.lock b/yarn.lock index 4389a5e..031e95d 100755 --- a/yarn.lock +++ b/yarn.lock @@ -5648,6 +5648,24 @@ __metadata: languageName: unknown linkType: soft +"@sjthc/esm-reports-app@workspace:packages/esm-patient-list-management-app": + version: 0.0.0-use.local + resolution: "@sjthc/esm-reports-app@workspace:packages/esm-patient-list-management-app" + dependencies: + "@carbon/react": ~1.37.0 + dexie: ^3.0.3 + fuzzy: ^0.1.3 + lodash-es: ^4.17.15 + webpack: ^5.74.0 + peerDependencies: + "@openmrs/esm-framework": 5.x + react: 18.x + react-i18next: 11.x + react-router-dom: 6.x + swr: 2.x + languageName: unknown + linkType: soft + "@spectrum-icons/ui@npm:^3.6.5": version: 3.6.5 resolution: "@spectrum-icons/ui@npm:3.6.5" @@ -12711,6 +12729,13 @@ __metadata: languageName: node linkType: hard +"fuzzy@npm:^0.1.3": + version: 0.1.3 + resolution: "fuzzy@npm:0.1.3" + checksum: acc09c6173e12d5dc8ae51857551ddbe834befa9ebc6be6d5581d09117265d704809d80407d220fd0652f347a9975a4d106854cacc8bd031487a0ede86982f84 + languageName: node + linkType: hard + "gauge@npm:^4.0.3": version: 4.0.4 resolution: "gauge@npm:4.0.4"