From ee2db3560963564e490bc53ae1b4d34e99add805 Mon Sep 17 00:00:00 2001 From: Salah-BOUYAHIA Date: Fri, 23 Aug 2024 16:13:37 +0200 Subject: [PATCH] fix: add mater to export one-file --- .../Dashboard/ExportModal/export_table.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/Dashboard/ExportModal/export_table.ts b/src/components/Dashboard/ExportModal/export_table.ts index 782f7b46a..aa57d98ee 100644 --- a/src/components/Dashboard/ExportModal/export_table.ts +++ b/src/components/Dashboard/ExportModal/export_table.ts @@ -14,7 +14,7 @@ export type label = | 'measurement' | 'care_site - fact_relationship' | 'imaging_study - imaging_series' - | 'questionnaire - questionnaire__item - questionnaireresponse - questionnaireresponse__item - questionnaireresponse__item__answer' + | 'questionnaire - questionnaireresponse' export type ExportTableType = { id: string[] @@ -40,7 +40,8 @@ const exportTable: ExportTableType[] = [ 'drug_exposure_prescription', 'drug_exposure_administration', 'measurement', - 'imaging_study - imaging_series' + 'imaging_study - imaging_series', + 'questionnaire - questionnaireresponse' ] }, { @@ -65,7 +66,8 @@ const exportTable: ExportTableType[] = [ 'drug_exposure_prescription', 'drug_exposure_administration', 'measurement', - 'imaging_study - imaging_series' + 'imaging_study - imaging_series', + 'questionnaire - questionnaireresponse' ] }, { @@ -141,10 +143,9 @@ const exportTable: ExportTableType[] = [ { id: ['questionnaire', 'questionnaireresponse'], name: 'Formulaires', - label: - 'questionnaire - questionnaire__item - questionnaireresponse - questionnaireresponse__item - questionnaireresponse__item__answer', + label: 'questionnaire - questionnaireresponse', resourceType: ResourceType.QUESTIONNAIRE_RESPONSE, - compatibleResourceTypes: [] + compatibleResourceTypes: ['questionnaire - questionnaireresponse', 'person', 'visit_occurrence'] } ]