Skip to content

Commit

Permalink
fix: resolve add filter to patient table for export when one file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdi-BOUYAHIA committed Sep 9, 2024
1 parent a2b4a12 commit ba84e85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cohort360",
"version": "2.39.4",
"version": "2.39.5",
"private": true,
"type": "module",
"dependencies": {
Expand Down
9 changes: 4 additions & 5 deletions src/components/Dashboard/ExportModal/ExportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const ExportModal: React.FC<ExportModalProps> = ({ cohortId, fhirGroupId, open,
checked: table.label === 'person'
}))
handleChangeSettings('tables', newSelectedTables)
setExpandedTableIds([])
setExpandedTableIds(['person'])
}

const handleSelectAllTables = () => {
Expand Down Expand Up @@ -416,9 +416,8 @@ const ExportModal: React.FC<ExportModalProps> = ({ cohortId, fhirGroupId, open,
<Tooltip
title={
<span>
Par exemple, il coche prescription, alors seules les tables person et visit_occurrence restent cochables
Par exemple, il coche person, alors tout est cochable, mais si ensuite il coche prescription, alors
seule visit_occurrence reste cochable, le reste se grise
Cette fonctionnalité permet d'intégrer, dans chaque fichier généré correspondant à une table
sélectionnée, les données patient et visites associées.
</span>
}
>
Expand Down Expand Up @@ -480,7 +479,7 @@ const ExportModal: React.FC<ExportModalProps> = ({ cohortId, fhirGroupId, open,
onChange={(event) => setSelectState(event.target.value as 'csv' | 'xlsx')}
>
<MenuItem value={'csv'}>{'Fichier csv'}</MenuItem>
<MenuItem value={'xlsx'}>{'Fichier xlsx'}</MenuItem>
<MenuItem value={'xlsx'}>{'Fichier exel (.xlsx)'}</MenuItem>
</Select>
</Grid>

Expand Down

0 comments on commit ba84e85

Please sign in to comment.