-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a274d65
commit 259faab
Showing
17 changed files
with
53 additions
and
429 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...esm-patient-chart-app/src/clinical-views/components/patient-program-summary.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from 'react'; | ||
import { useConfig } from '@openmrs/esm-framework'; | ||
import { getEncounterTileColumns } from '../../encounter-tile/utils/encounter-tile-config-builder'; | ||
import { EncounterTile, type EncounterTileColumn } from '../../encounter-tile/components/encounter-tile.component'; | ||
|
||
interface OverviewListProps { | ||
patientUuid: string; | ||
} | ||
|
||
interface TileDefinition { | ||
title: string; | ||
columns: Array<EncounterTileColumn>; | ||
} | ||
|
||
const PatientSummaryOverviewList: React.FC<OverviewListProps> = ({ patientUuid }) => { | ||
const config = useConfig(); | ||
|
||
const tilesDefinitions = config.tilesDefinitions; | ||
|
||
const tilesData: Array<TileDefinition> = tilesDefinitions.map((tile: any) => ({ | ||
title: tile.tileHeader, | ||
columns: getEncounterTileColumns(tile), | ||
})); | ||
|
||
return ( | ||
<> | ||
{tilesData.map((tile, index) => ( | ||
<EncounterTile key={index} patientUuid={patientUuid} columns={tile.columns} headerTitle={tile.title} /> | ||
))} | ||
</> | ||
); | ||
}; | ||
|
||
export default PatientSummaryOverviewList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
packages/esm-patient-chart-app/src/encounter-list/api.resource.ts
This file was deleted.
Oops, something went wrong.
52 changes: 0 additions & 52 deletions
52
packages/esm-patient-chart-app/src/encounter-list/shema-manipulation.ts
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...counter-tile/encounter-tile.component.tsx → ...e/components/encounter-tile.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...t-chart-app/src/hooks/useLastEncounter.ts → .../encounter-tile/hooks/useLastEncounter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 0 additions & 63 deletions
63
packages/esm-patient-chart-app/src/encounter-tile/summary-card.component.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
...ges/esm-patient-chart-app/src/patient-summary/patient-hiv-encounter-summary.component.tsx
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
packages/esm-patient-chart-app/src/patient-summary/patient-summary.component.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.