Skip to content

Commit

Permalink
(chore) removed the serial No and update the case-encounter to case-m…
Browse files Browse the repository at this point in the history
…anagement-encounters
  • Loading branch information
its-kios09 committed Jul 29, 2024
1 parent 02407b9 commit 465b791
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ const CaseManagementListActive: React.FC<CaseManagementListActiveProps> = ({ set

const { data: activeCasesData, error: activeCasesError } = useActivecases(caseManagerPersonUuid);

const patientChartUrl = '${openmrsSpaBase}/patient/${patientUuid}/chart/case-encounter';
const patientChartUrl = '${openmrsSpaBase}/patient/${patientUuid}/chart/case-management-encounters';

const headers = [
{ key: 'sno', header: t('s/No', 'S/No') },
{ key: 'names', header: t('names', 'Names') },
{ key: 'dateofstart', header: t('dateofstart', 'Start Date') },
{ key: 'dateofend', header: t('dateofend', 'End Date') },
Expand All @@ -57,7 +56,6 @@ const CaseManagementListActive: React.FC<CaseManagementListActiveProps> = ({ set
?.slice((currentPage - 1) * pageSize, currentPage * pageSize)
.map((caseData, index) => ({
id: caseData.uuid,
sno: (currentPage - 1) * pageSize + index + 1,
names: (
<ConfigurableLink
style={{ textDecoration: 'none', maxWidth: '50%' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ const CaseManagementListInActive: React.FC<CaseManagementListInActiveProps> = ({

const { data: inactiveCasesData } = useActivecases(caseManagerPersonUuid);

const patientChartUrl = '${openmrsSpaBase}/patient/${patientUuid}/chart/case-encounter';
const patientChartUrl = '${openmrsSpaBase}/patient/${patientUuid}/chart/case-management-encounters';

const headers = [
{ key: 'sno', header: t('s/No', 'S/No') },
{ key: 'names', header: t('names', 'Names') },
{ key: 'dateofstart', header: t('dateofstart', 'Start Date') },
{ key: 'dateofend', header: t('dateofend', 'End Date') },
Expand All @@ -57,7 +56,6 @@ const CaseManagementListInActive: React.FC<CaseManagementListInActiveProps> = ({
?.slice((currentPage - 1) * pageSize, currentPage * pageSize)
.map((caseData, index) => ({
id: caseData.uuid,
sno: (currentPage - 1) * pageSize + index + 1,
names: (
<ConfigurableLink
style={{ textDecoration: 'none', maxWidth: '50%' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const caseEncounterDashboardMeta = {
slot: 'patient-chart-relationships-slot',
columns: 1,
title: 'Case management',
path: 'case-encounter',
path: 'case-management-encounters',
moduleName: '@kenyaemr/esm-patient-clinical-view-app',
config: {},
};
2 changes: 1 addition & 1 deletion packages/esm-patient-clinical-view-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
"columns": 1,
"columnSpan": 1,
"slot": "patient-chart-case-encounter-slot",
"path": "case-encounter",
"path": "case-management-encounters",

"layoutMode": "anchored"
}
Expand Down

0 comments on commit 465b791

Please sign in to comment.