Skip to content

Commit f3518a8

Browse files
Merge branch 'main' into O3-4970
2 parents 66e2f3d + b9d63aa commit f3518a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+493
-10
lines changed

packages/esm-patient-allergies-app/src/allergies/allergies-list.extension.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import classNames from 'classnames';
23
import { useTranslation } from 'react-i18next';
34
import { Tag, TagSkeleton, Tooltip } from '@carbon/react';
45
import { getCoreTranslation } from '@openmrs/esm-framework';
@@ -19,12 +20,16 @@ const AllergyList: React.FC<AllergyListProps> = ({ patientUuid }) => {
1920
);
2021

2122
if (isLoading) {
22-
return <TagSkeleton />;
23+
return (
24+
<div className={styles.container}>
25+
<TagSkeleton />
26+
</div>
27+
);
2328
}
2429

2530
if (sortedAllergies?.length) {
2631
return (
27-
<div className={styles.label}>
32+
<div className={classNames(styles.label, styles.container)}>
2833
<span>{t('allergies', 'Allergies')}:</span>
2934
{sortedAllergies.map((allergy) => (
3035
<Tooltip
@@ -46,7 +51,7 @@ const AllergyList: React.FC<AllergyListProps> = ({ patientUuid }) => {
4651
}
4752

4853
return (
49-
<div className={styles.label}>
54+
<div className={classNames(styles.label, styles.container)}>
5055
{t('allergies', 'Allergies')}: {getCoreTranslation('unknown')}
5156
</div>
5257
);

packages/esm-patient-allergies-app/src/allergies/allergies-list.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
@use '@carbon/type';
44
@use '@openmrs/esm-styleguide/src/vars' as *;
55

6+
.container {
7+
margin: layout.$spacing-03 layout.$spacing-05;
8+
}
9+
610
.label {
711
@include type.type-style('label-01');
812
color: $text-02;

packages/esm-patient-conditions-app/src/conditions/conditions-detailed-summary.component.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,14 @@ function ConditionsDetailedSummary({ patient }) {
9999

100100
const handleConditionStatusChange = ({ selectedItem }) => setFilter(selectedItem.id);
101101

102-
if (isLoading) return <DataTableSkeleton role="progressbar" compact={isDesktop} zebra />;
103-
if (error) return <ErrorState error={error} headerTitle={headerTitle} />;
102+
if (isLoading) {
103+
return <DataTableSkeleton role="progressbar" compact={isDesktop} zebra />;
104+
}
105+
106+
if (error) {
107+
return <ErrorState error={error} headerTitle={headerTitle} />;
108+
}
109+
104110
if (conditions?.length) {
105111
return (
106112
<div className={styles.widgetCard}>

packages/esm-patient-conditions-app/src/conditions/conditions-overview.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ interface ConditionsOverviewProps {
5555
const ConditionsOverview: React.FC<ConditionsOverviewProps> = ({ patientUuid }) => {
5656
const { conditionPageSize } = useConfig<ConfigObject>();
5757
const { t } = useTranslation();
58-
const displayText = t('conditions', 'Conditions');
58+
const displayText = t('conditions_lower', 'conditions');
5959
const headerTitle = t('conditions', 'Conditions');
6060
const urlLabel = t('seeAll', 'See all');
6161
const pageUrl = `\${openmrsSpaBase}/patient/${patientUuid}/chart/Conditions`;

packages/esm-patient-medications-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test:watch": "cross-env TZ=UTC jest --watch --config jest.config.js --color",
1818
"coverage": "yarn test --coverage",
1919
"typescript": "tsc",
20-
"extract-translations": "i18next 'src/**/*.component.tsx' 'src/**/*.modal.tsx' 'src/**/*.extension.tsx' 'src/**/*.workspace.tsx' 'src/**/*.hook.tsx' 'src/index.ts' --config ../../tools/i18next-parser.config.js"
20+
"extract-translations": "i18next 'src/**/*.component.tsx' 'src/**/*.modal.tsx' 'src/**/*.extension.tsx' 'src/**/*.workspace.tsx' 'src/**/*.hook.tsx' 'src/**/*.resource.ts' 'src/index.ts' --config ../../tools/i18next-parser.config.js"
2121
},
2222
"browserslist": [
2323
"extends browserslist-config-openmrs"

packages/esm-patient-medications-app/src/add-drug-order/drug-order-form.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export function DrugOrderForm({
351351
kind="warning"
352352
lowContrast
353353
className={styles.inlineNotification}
354-
title={t('errorLoadingProviders', 'Error loading clinicians list')}
354+
title={t('errorLoadingClinicians', 'Error loading clinicians')}
355355
subtitle={t('tryReopeningTheForm', 'Please try launching the form again')}
356356
/>
357357
) : (

packages/esm-patient-medications-app/translations/am.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
"discontinued": "Discontinued",
1616
"dispensingInformation": "Dispensing instructions",
1717
"dosageInstructions": "Dosage instructions",
18+
"dosageRequiredErrorMessage": "Dosage is required",
1819
"dose": "Dose",
1920
"drugAlreadyPrescribed": "Already prescribed",
2021
"drugName": "Drug name",
2122
"drugOrders": "Drug orders",
23+
"drugRequiredErrorMessage": "Drug is required",
2224
"duration": "Duration",
2325
"durationUnit": "Duration unit",
2426
"durationUnitPlaceholder": "Duration Unit",
@@ -33,12 +35,15 @@
3335
"errorFetchingDrugOrderTemplates": "Error fetching drug order templates",
3436
"errorFetchingDrugResults": "Error fetching results for \"{{searchTerm}}\"",
3537
"errorFetchingOrderConfig": "Error occured when fetching Order config",
38+
"errorLoadingClinicians": "Error loading clinicians",
3639
"female": "Female",
3740
"fillPrescription": "Fill prescription",
41+
"freeDosageErrorMessage": "Add free dosage note",
3842
"freeTextDosage": "Free text dosage",
3943
"goToDrugOrderForm": "Order form",
4044
"increment": "Increment",
4145
"indication": "Indication",
46+
"indicationErrorMessage": "Indication is required",
4247
"indicationPlaceholder": "e.g. \"Hypertension\"",
4348
"male": "Male",
4449
"medicationDurationAndUnit": "for {{duration}} {{durationUnit}}",
@@ -48,6 +53,7 @@
4853
"noCliniciansFound": "No clinicians found",
4954
"noCliniciansFoundDescription": "Cannot select prescribing clinician because no clinicians with appropriate roles are found. Check configuration.",
5055
"noResultsForDrugSearch": "No results to display for \"{{searchTerm}}\"",
56+
"numRefillsErrorMessage": "Number of refills is required",
5157
"onDate": "on",
5258
"or": "or",
5359
"orderActionDiscontinue": "Discontinue",
@@ -64,7 +70,9 @@
6470
"pastMedicationsTableTitle": "Past Medications",
6571
"patientInstructions": "Patient instructions",
6672
"patientInstructionsPlaceholder": "Additional dosing instructions (e.g. \"Take after eating\")",
73+
"pillDispensedErrorMessage": "Quantity to dispense is required",
6774
"prescribingClinician": "Prescribing Clinician",
75+
"prescribingClinicianRequiredErrorMessage": "Prescribing clinician is required",
6876
"prescriptionDuration": "Prescription duration",
6977
"prescriptionInfo": "Prescription info",
7078
"prescriptionRefills": "Prescription refills",
@@ -85,6 +93,10 @@
8593
"searchFieldPlaceholder": "Search for a drug or orderset (e.g. \"Aspirin\")",
8694
"searchResultsMatchesForTerm_one": "{{count}} result for \"{{searchTerm}}\"",
8795
"searchResultsMatchesForTerm_other": "{{count}} results for \"{{searchTerm}}\"",
96+
"selectFrequencyErrorMessage": "Frequency is required",
97+
"selectQuantityUnitsErrorMessage": "Quantity unit is required",
98+
"selectRouteErrorMessage": "Route is required",
99+
"selectUnitErrorMessage": "Dose unit is required",
88100
"startDate": "Start date",
89101
"takeAsNeeded": "Take as needed",
90102
"tryReopeningTheForm": "Please try launching the form again",

packages/esm-patient-medications-app/translations/ar.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
"discontinued": "Discontinued",
1616
"dispensingInformation": "Dispensing instructions",
1717
"dosageInstructions": "Dosage instructions",
18+
"dosageRequiredErrorMessage": "Dosage is required",
1819
"dose": "الجرعة",
1920
"drugAlreadyPrescribed": "تم وصفها بالفعل",
2021
"drugName": "Drug name",
2122
"drugOrders": "Drug orders",
23+
"drugRequiredErrorMessage": "Drug is required",
2224
"duration": "المدة",
2325
"durationUnit": "وحدة المدة",
2426
"durationUnitPlaceholder": "وحدة المدة",
@@ -33,12 +35,15 @@
3335
"errorFetchingDrugOrderTemplates": "خطأ في جلب قوالب طلب الدواء",
3436
"errorFetchingDrugResults": "خطأ في جلب النتائج لـ \"{{searchTerm}}\"",
3537
"errorFetchingOrderConfig": "حدث خطأ عند جلب تكوين الطلب",
38+
"errorLoadingClinicians": "Error loading clinicians",
3639
"female": "أنثى",
3740
"fillPrescription": "Fill prescription",
41+
"freeDosageErrorMessage": "Add free dosage note",
3842
"freeTextDosage": "نص الجرعة الحر",
3943
"goToDrugOrderForm": "نموذج الطلب",
4044
"increment": "زيادة",
4145
"indication": "الدلالة",
46+
"indicationErrorMessage": "Indication is required",
4247
"indicationPlaceholder": "مثل \"ارتفاع ضغط الدم\"",
4348
"male": "ذكر",
4449
"medicationDurationAndUnit": "لمدة {{duration}} {{durationUnit}}",
@@ -48,6 +53,7 @@
4853
"noCliniciansFound": "No clinicians found",
4954
"noCliniciansFoundDescription": "Cannot select prescribing clinician because no clinicians with appropriate roles are found. Check configuration.",
5055
"noResultsForDrugSearch": "لا توجد نتائج لـ \"{{searchTerm}}\"",
56+
"numRefillsErrorMessage": "Number of refills is required",
5157
"onDate": "في",
5258
"or": "or",
5359
"orderActionDiscontinue": "إيقاف",
@@ -64,7 +70,9 @@
6470
"pastMedicationsTableTitle": "الأدوية السابقة",
6571
"patientInstructions": "تعليمات المريض",
6672
"patientInstructionsPlaceholder": "تعليمات الجرعة الإضافية (مثل \"خذ بعد الأكل\")",
73+
"pillDispensedErrorMessage": "Quantity to dispense is required",
6774
"prescribingClinician": "Prescribing Clinician",
75+
"prescribingClinicianRequiredErrorMessage": "Prescribing clinician is required",
6876
"prescriptionDuration": "Prescription duration",
6977
"prescriptionInfo": "Prescription info",
7078
"prescriptionRefills": "إعادة الوصفة",
@@ -85,6 +93,10 @@
8593
"searchFieldPlaceholder": "ابحث عن دواء أو مجموعة طلبات (مثل \"أسبرين\")",
8694
"searchResultsMatchesForTerm_one": "{{count}} نتيجة لـ \"{{searchTerm}}\"",
8795
"searchResultsMatchesForTerm_other": "{{count}} نتائج لـ \"{{searchTerm}}\"",
96+
"selectFrequencyErrorMessage": "Frequency is required",
97+
"selectQuantityUnitsErrorMessage": "Quantity unit is required",
98+
"selectRouteErrorMessage": "Route is required",
99+
"selectUnitErrorMessage": "Dose unit is required",
88100
"startDate": "تاريخ البداية",
89101
"takeAsNeeded": "خذ حسب الحاجة",
90102
"tryReopeningTheForm": "يرجى محاولة فتح النموذج مرة أخرى",

packages/esm-patient-medications-app/translations/ar_SY.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
"discontinued": "Discontinued",
1616
"dispensingInformation": "Dispensing instructions",
1717
"dosageInstructions": "Dosage instructions",
18+
"dosageRequiredErrorMessage": "Dosage is required",
1819
"dose": "Dose",
1920
"drugAlreadyPrescribed": "Already prescribed",
2021
"drugName": "Drug name",
2122
"drugOrders": "Drug orders",
23+
"drugRequiredErrorMessage": "Drug is required",
2224
"duration": "Duration",
2325
"durationUnit": "Duration unit",
2426
"durationUnitPlaceholder": "Duration Unit",
@@ -33,12 +35,15 @@
3335
"errorFetchingDrugOrderTemplates": "Error fetching drug order templates",
3436
"errorFetchingDrugResults": "Error fetching results for \"{{searchTerm}}\"",
3537
"errorFetchingOrderConfig": "Error occured when fetching Order config",
38+
"errorLoadingClinicians": "Error loading clinicians",
3639
"female": "Female",
3740
"fillPrescription": "Fill prescription",
41+
"freeDosageErrorMessage": "Add free dosage note",
3842
"freeTextDosage": "Free text dosage",
3943
"goToDrugOrderForm": "Order form",
4044
"increment": "Increment",
4145
"indication": "Indication",
46+
"indicationErrorMessage": "Indication is required",
4247
"indicationPlaceholder": "e.g. \"Hypertension\"",
4348
"male": "Male",
4449
"medicationDurationAndUnit": "for {{duration}} {{durationUnit}}",
@@ -48,6 +53,7 @@
4853
"noCliniciansFound": "No clinicians found",
4954
"noCliniciansFoundDescription": "Cannot select prescribing clinician because no clinicians with appropriate roles are found. Check configuration.",
5055
"noResultsForDrugSearch": "No results to display for \"{{searchTerm}}\"",
56+
"numRefillsErrorMessage": "Number of refills is required",
5157
"onDate": "on",
5258
"or": "or",
5359
"orderActionDiscontinue": "Discontinue",
@@ -64,7 +70,9 @@
6470
"pastMedicationsTableTitle": "Past Medications",
6571
"patientInstructions": "Patient instructions",
6672
"patientInstructionsPlaceholder": "Additional dosing instructions (e.g. \"Take after eating\")",
73+
"pillDispensedErrorMessage": "Quantity to dispense is required",
6774
"prescribingClinician": "Prescribing Clinician",
75+
"prescribingClinicianRequiredErrorMessage": "Prescribing clinician is required",
6876
"prescriptionDuration": "Prescription duration",
6977
"prescriptionInfo": "Prescription info",
7078
"prescriptionRefills": "Prescription refills",
@@ -85,6 +93,10 @@
8593
"searchFieldPlaceholder": "Search for a drug or orderset (e.g. \"Aspirin\")",
8694
"searchResultsMatchesForTerm_one": "{{count}} result for \"{{searchTerm}}\"",
8795
"searchResultsMatchesForTerm_other": "{{count}} results for \"{{searchTerm}}\"",
96+
"selectFrequencyErrorMessage": "Frequency is required",
97+
"selectQuantityUnitsErrorMessage": "Quantity unit is required",
98+
"selectRouteErrorMessage": "Route is required",
99+
"selectUnitErrorMessage": "Dose unit is required",
88100
"startDate": "Start date",
89101
"takeAsNeeded": "Take as needed",
90102
"tryReopeningTheForm": "Please try launching the form again",

packages/esm-patient-medications-app/translations/bn.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
"discontinued": "Discontinued",
1616
"dispensingInformation": "Dispensing instructions",
1717
"dosageInstructions": "Dosage instructions",
18+
"dosageRequiredErrorMessage": "Dosage is required",
1819
"dose": "Dose",
1920
"drugAlreadyPrescribed": "Already prescribed",
2021
"drugName": "Drug name",
2122
"drugOrders": "Drug orders",
23+
"drugRequiredErrorMessage": "Drug is required",
2224
"duration": "Duration",
2325
"durationUnit": "Duration unit",
2426
"durationUnitPlaceholder": "Duration Unit",
@@ -33,12 +35,15 @@
3335
"errorFetchingDrugOrderTemplates": "Error fetching drug order templates",
3436
"errorFetchingDrugResults": "Error fetching results for \"{{searchTerm}}\"",
3537
"errorFetchingOrderConfig": "Error occured when fetching Order config",
38+
"errorLoadingClinicians": "Error loading clinicians",
3639
"female": "Female",
3740
"fillPrescription": "Fill prescription",
41+
"freeDosageErrorMessage": "Add free dosage note",
3842
"freeTextDosage": "Free text dosage",
3943
"goToDrugOrderForm": "Order form",
4044
"increment": "Increment",
4145
"indication": "Indication",
46+
"indicationErrorMessage": "Indication is required",
4247
"indicationPlaceholder": "e.g. \"Hypertension\"",
4348
"male": "Male",
4449
"medicationDurationAndUnit": "for {{duration}} {{durationUnit}}",
@@ -48,6 +53,7 @@
4853
"noCliniciansFound": "No clinicians found",
4954
"noCliniciansFoundDescription": "Cannot select prescribing clinician because no clinicians with appropriate roles are found. Check configuration.",
5055
"noResultsForDrugSearch": "No results to display for \"{{searchTerm}}\"",
56+
"numRefillsErrorMessage": "Number of refills is required",
5157
"onDate": "on",
5258
"or": "or",
5359
"orderActionDiscontinue": "Discontinue",
@@ -64,7 +70,9 @@
6470
"pastMedicationsTableTitle": "Past Medications",
6571
"patientInstructions": "Patient instructions",
6672
"patientInstructionsPlaceholder": "Additional dosing instructions (e.g. \"Take after eating\")",
73+
"pillDispensedErrorMessage": "Quantity to dispense is required",
6774
"prescribingClinician": "Prescribing Clinician",
75+
"prescribingClinicianRequiredErrorMessage": "Prescribing clinician is required",
6876
"prescriptionDuration": "Prescription duration",
6977
"prescriptionInfo": "Prescription info",
7078
"prescriptionRefills": "Prescription refills",
@@ -85,6 +93,10 @@
8593
"searchFieldPlaceholder": "Search for a drug or orderset (e.g. \"Aspirin\")",
8694
"searchResultsMatchesForTerm_one": "{{count}} result for \"{{searchTerm}}\"",
8795
"searchResultsMatchesForTerm_other": "{{count}} results for \"{{searchTerm}}\"",
96+
"selectFrequencyErrorMessage": "Frequency is required",
97+
"selectQuantityUnitsErrorMessage": "Quantity unit is required",
98+
"selectRouteErrorMessage": "Route is required",
99+
"selectUnitErrorMessage": "Dose unit is required",
88100
"startDate": "Start date",
89101
"takeAsNeeded": "Take as needed",
90102
"tryReopeningTheForm": "Please try launching the form again",

0 commit comments

Comments
 (0)