@tekkare/romulus 0.1.250 → 0.1.252
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/BarChart.vue +1 -0
- package/dist/runtime/components/ChoroplethMap.vue +4 -1
- package/dist/runtime/internal/geo/fr-regions.json +1 -1
- package/dist/runtime/utils/chart.d.ts +6 -3
- package/dist/runtime/utils/chart.js +15 -2
- package/layer/app/app.config.ts +6 -0
- package/layer/app/components/OipPubmedSummary.vue +223 -0
- package/layer/app/components/OipResourceDrawer.vue +331 -0
- package/layer/app/components/OipResourceDrawerLink.vue +40 -0
- package/layer/app/components/OipResourceField.vue +41 -0
- package/layer/app/components/OipResourceGenericCard.vue +54 -0
- package/layer/app/components/OipResourceSource.vue +50 -0
- package/layer/app/components/OipResourceTags.vue +65 -0
- package/layer/app/components/OipResourceView.vue +107 -0
- package/layer/app/components/oip-drugs/fiches/AssociationFiche.vue +775 -0
- package/layer/app/components/oip-drugs/fiches/BrandFiche.vue +1111 -0
- package/layer/app/components/oip-drugs/fiches/IndicationFiche.vue +182 -0
- package/layer/app/components/oip-drugs/fiches/JoFiche.vue +101 -0
- package/layer/app/components/oip-drugs/fiches/PndsFiche.vue +279 -0
- package/layer/app/components/oip-drugs/heart/JoCard.vue +314 -0
- package/layer/app/components/oip-drugs/heart/TextHighlight.vue +326 -0
- package/layer/app/components/oip-drugs/heart/ansm/BrandCard.vue +187 -0
- package/layer/app/components/oip-drugs/heart/ansm/CisDetail.vue +363 -0
- package/layer/app/components/oip-drugs/heart/ansm/CisTable.vue +167 -0
- package/layer/app/components/oip-drugs/heart/associations/NationalAssemblyCard.vue +373 -0
- package/layer/app/components/oip-drugs/heart/associations/NationalAssemblyFiche.vue +372 -0
- package/layer/app/components/oip-drugs/heart/associations/TranscriptionCard.vue +55 -0
- package/layer/app/components/oip-drugs/heart/elastic/SourceContainerElastic.vue +103 -0
- package/layer/app/components/oip-drugs/heart/france/BrandGroupCard.vue +450 -0
- package/layer/app/components/oip-drugs/heart/mitm/Card.vue +199 -0
- package/layer/app/components/oip-drugs/heart/mitm/Source.vue +23 -0
- package/layer/app/components/oip-drugs/heart/mitm/details/Overview.vue +381 -0
- package/layer/app/components/oip-drugs/heart/put/Card.vue +212 -0
- package/layer/app/components/oip-drugs/heart/results/AccesCard.vue +696 -0
- package/layer/app/components/oip-drugs/heart/results/AlertCard.vue +342 -0
- package/layer/app/components/oip-drugs/heart/results/AsmrCursor.vue +229 -0
- package/layer/app/components/oip-drugs/heart/results/EvalCard.vue +370 -0
- package/layer/app/components/oip-drugs/heart/results/IndicCard.vue +743 -0
- package/layer/app/components/oip-drugs/heart/results/MatchExplain.vue +243 -0
- package/layer/app/components/oip-drugs/heart/results/PrefRows.vue +105 -0
- package/layer/app/components/oip-drugs/heart/results/details/HasHistory.vue +487 -0
- package/layer/app/components/oip-drugs/heart/results/details/InternationalCountryCard.vue +461 -0
- package/layer/app/components/oip-drugs/heart/results/details/InternationalOverview.vue +200 -0
- package/layer/app/components/oip-drugs/heart/results/details/InternationalPriceDrawer.vue +647 -0
- package/layer/app/components/oip-drugs/heart/results/details/Monograph.vue +128 -0
- package/layer/app/components/oip-drugs/heart/results/details/OpinionDrawer.vue +535 -0
- package/layer/app/components/oip-drugs/heart/results/details/PresentationDrawer.vue +738 -0
- package/layer/app/components/oip-drugs/heart/results/details/Price.vue +227 -0
- package/layer/app/components/oip-drugs/heart/results/details/PriceOverview.vue +1261 -0
- package/layer/app/components/oip-drugs/heart/results/details/RecordDrawer.vue +494 -0
- package/layer/app/components/oip-drugs/heart/results/details/RecordList.vue +426 -0
- package/layer/app/components/oip-drugs/heart/results/les/Card.vue +340 -0
- package/layer/app/components/oip-drugs/heart/results/les/Drawer.vue +67 -0
- package/layer/app/components/oip-drugs/heart/results/les/IndicationDetail.vue +149 -0
- package/layer/app/components/oip-drugs/heart/results/les/Source.vue +20 -0
- package/layer/app/components/oip-drugs/heart/results/les/SourceTag.vue +39 -0
- package/layer/app/components/oip-drugs/heart/searchPage/DynamicSource.vue +29 -0
- package/layer/app/components/oip-drugs/medicam/market/Chart.vue +121 -0
- package/layer/app/components/oip-drugs/outpatient/ProductEvolution.vue +236 -0
- package/layer/app/components/oip-drugs/resources/Ansm.vue +75 -0
- package/layer/app/components/oip-drugs/resources/Association.vue +30 -0
- package/layer/app/components/oip-drugs/resources/Brand.vue +65 -0
- package/layer/app/components/oip-drugs/resources/Contribution.vue +216 -0
- package/layer/app/components/oip-drugs/resources/Hospital.vue +151 -0
- package/layer/app/components/oip-drugs/resources/Indication.vue +54 -0
- package/layer/app/components/oip-drugs/resources/Jo.vue +57 -0
- package/layer/app/components/oip-drugs/resources/Medicam.vue +140 -0
- package/layer/app/components/oip-drugs/resources/Mitm.vue +84 -0
- package/layer/app/components/oip-drugs/resources/NationalAssembly.vue +93 -0
- package/layer/app/components/oip-drugs/resources/Outpatient.vue +97 -0
- package/layer/app/components/oip-drugs/resources/Pnds.vue +24 -0
- package/layer/app/components/oip-drugs/resources/Price.vue +106 -0
- package/layer/app/components/oip-drugs/resources/Put.vue +143 -0
- package/layer/app/components/oip-science/appel-a-projet/Cards.vue +162 -0
- package/layer/app/components/oip-science/clinical-trials/Cards.vue +382 -0
- package/layer/app/components/oip-science/clinical-trials/CardsGlobal.vue +273 -0
- package/layer/app/components/oip-science/clinical-trials/LinkedList.vue +366 -0
- package/layer/app/components/oip-science/clinical-trials/PairBadge.vue +25 -0
- package/layer/app/components/oip-science/clinical-trials/PairBody.vue +182 -0
- package/layer/app/components/oip-science/clinical-trials/SitesDrawer.vue +95 -0
- package/layer/app/components/oip-science/common/Form.vue +73 -0
- package/layer/app/components/oip-science/common/MatchAvgTag.vue +283 -0
- package/layer/app/components/oip-science/common/NoData.vue +16 -0
- package/layer/app/components/oip-science/common/ScoreBadge.vue +35 -0
- package/layer/app/components/oip-science/common/Source.vue +31 -0
- package/layer/app/components/oip-science/common/TableTags.vue +279 -0
- package/layer/app/components/oip-science/common/Timeline.vue +104 -0
- package/layer/app/components/oip-science/common/ToolTips.vue +89 -0
- package/layer/app/components/oip-science/cross/publicationPubmed.vue +484 -0
- package/layer/app/components/oip-science/crossData/CrossDataLocations.vue +71 -0
- package/layer/app/components/oip-science/ctgov/Investigators.vue +148 -0
- package/layer/app/components/oip-science/ctgov/Locations.vue +102 -0
- package/layer/app/components/oip-science/ctgov/Publications.vue +52 -0
- package/layer/app/components/oip-science/ctgov/Sponsors.vue +66 -0
- package/layer/app/components/oip-science/ctgov/StudyDescription.vue +1136 -0
- package/layer/app/components/oip-science/ctgov-centers/ClinicalTrials.vue +40 -0
- package/layer/app/components/oip-science/ctgov-centers/Publications.vue +50 -0
- package/layer/app/components/oip-science/ctgov-investigators/ClinicalTrials.vue +43 -0
- package/layer/app/components/oip-science/ctgov-investigators/Informations.vue +171 -0
- package/layer/app/components/oip-science/ctgov-investigators/Publications.vue +44 -0
- package/layer/app/components/oip-science/elastic/DateRangeFilter.vue +209 -0
- package/layer/app/components/oip-science/elastic/Filter.vue +719 -0
- package/layer/app/components/oip-science/elastic/MatchExplain.vue +152 -0
- package/layer/app/components/oip-science/establishments/Cards.vue +183 -0
- package/layer/app/components/oip-science/establishments/ClinicalTrials.vue +62 -0
- package/layer/app/components/oip-science/establishments/Hcps.vue +227 -0
- package/layer/app/components/oip-science/establishments/Informations.vue +263 -0
- package/layer/app/components/oip-science/establishments/LinkedList.vue +153 -0
- package/layer/app/components/oip-science/establishments/MatchedLabels.vue +194 -0
- package/layer/app/components/oip-science/establishments/PublicFinance.vue +62 -0
- package/layer/app/components/oip-science/euct/Investigators.vue +125 -0
- package/layer/app/components/oip-science/euct/Locations.vue +102 -0
- package/layer/app/components/oip-science/euct/Products.vue +101 -0
- package/layer/app/components/oip-science/euct/Publications.vue +89 -0
- package/layer/app/components/oip-science/euct/Sponsors.vue +86 -0
- package/layer/app/components/oip-science/euct/StudyDescription.vue +1075 -0
- package/layer/app/components/oip-science/euct-centers/ClinicalTrials.vue +40 -0
- package/layer/app/components/oip-science/euct-centers/Publications.vue +55 -0
- package/layer/app/components/oip-science/euct-investigators/ClinicalTrials.vue +41 -0
- package/layer/app/components/oip-science/euct-investigators/Informations.vue +171 -0
- package/layer/app/components/oip-science/euct-investigators/Publications.vue +51 -0
- package/layer/app/components/oip-science/hcps/AppelsAProjet.vue +62 -0
- package/layer/app/components/oip-science/hcps/Cards.vue +237 -0
- package/layer/app/components/oip-science/hcps/ClinicalTrials.vue +78 -0
- package/layer/app/components/oip-science/hcps/Informations.vue +296 -0
- package/layer/app/components/oip-science/hcps/LinkedList.vue +153 -0
- package/layer/app/components/oip-science/hcps/MatchedLabels.vue +207 -0
- package/layer/app/components/oip-science/hcps/Pubmed.vue +128 -0
- package/layer/app/components/oip-science/local/SliderTabs.vue +99 -0
- package/layer/app/components/oip-science/local/SliderTabsFull.vue +135 -0
- package/layer/app/components/oip-science/pubmed/Authors.vue +128 -0
- package/layer/app/components/oip-science/pubmed/Cards.vue +417 -0
- package/layer/app/components/oip-science/pubmed/ClinicalTrials.vue +71 -0
- package/layer/app/components/oip-science/resources/Phrc.vue +39 -0
- package/layer/app/composables/useOipChapterScroll.ts +43 -0
- package/layer/app/composables/useOipResourceHooks.ts +27 -0
- package/layer/app/composables/useOipResourceNav.ts +66 -0
- package/layer/app/composables/useOipResourceViews.ts +117 -0
- package/layer/app/composables/useOipResources.ts +83 -0
- package/layer/app/oip-drugs/PORTING.md +120 -0
- package/layer/app/oip-drugs/composables/useAssociationDetail.ts +220 -0
- package/layer/app/oip-drugs/composables/useAssociationExport.ts +63 -0
- package/layer/app/oip-drugs/composables/useAssociationLookup.ts +105 -0
- package/layer/app/oip-drugs/composables/useCardPrefOptions.ts +201 -0
- package/layer/app/oip-drugs/composables/useCurrency.ts +121 -0
- package/layer/app/oip-drugs/composables/useDirectusSources.ts +224 -0
- package/layer/app/oip-drugs/composables/useHeartBrandMatches.ts +112 -0
- package/layer/app/oip-drugs/composables/useHeartDetailSearches.ts +479 -0
- package/layer/app/oip-drugs/composables/useHeartIntlApprovals.ts +661 -0
- package/layer/app/oip-drugs/composables/useHeartLesIndication.ts +168 -0
- package/layer/app/oip-drugs/composables/useHeartMatchExplain.ts +231 -0
- package/layer/app/oip-drugs/composables/useHeartReports.ts +239 -0
- package/layer/app/oip-drugs/composables/useHeartSearchFields.ts +233 -0
- package/layer/app/oip-drugs/composables/useMergeByKey.ts +23 -0
- package/layer/app/oip-drugs/composables/useOipDrugsElastic.ts +621 -0
- package/layer/app/oip-drugs/composables/usePageEmpty.ts +58 -0
- package/layer/app/oip-drugs/composables/v-useSalesSource.ts +64 -0
- package/layer/app/oip-drugs/drugs.css +500 -0
- package/layer/app/oip-drugs/esIndices.ts +322 -0
- package/layer/app/oip-drugs/kinds.ts +264 -0
- package/layer/app/oip-drugs/locales/en.json +1571 -0
- package/layer/app/oip-drugs/locales/fr.json +1571 -0
- package/layer/app/oip-drugs/monographs/blincyto-has.vue +289 -0
- package/layer/app/oip-drugs/monographs/darzalex-has.vue +276 -0
- package/layer/app/oip-drugs/monographs/dupixent-has.vue +216 -0
- package/layer/app/oip-drugs/monographs/enhertu-has.vue +280 -0
- package/layer/app/oip-drugs/monographs/has-sein-2023.vue +1649 -0
- package/layer/app/oip-drugs/monographs/ibrance-has.vue +277 -0
- package/layer/app/oip-drugs/monographs/imfinzi-has.vue +293 -0
- package/layer/app/oip-drugs/monographs/keytruda-has.vue +334 -0
- package/layer/app/oip-drugs/monographs/kisqali-has.vue +201 -0
- package/layer/app/oip-drugs/monographs/opdivo-has.vue +231 -0
- package/layer/app/oip-drugs/monographs/ozempic-has.vue +186 -0
- package/layer/app/oip-drugs/monographs/tecentriq-has.vue +312 -0
- package/layer/app/oip-drugs/monographs/yescarta-has.vue +272 -0
- package/layer/app/oip-drugs/types/elastic.ts +113 -0
- package/layer/app/oip-drugs/types/es/agencies.ts +152 -0
- package/layer/app/oip-drugs/types/es/directory.ts +54 -0
- package/layer/app/oip-drugs/types/es/docByIndex.ts +151 -0
- package/layer/app/oip-drugs/types/es/openmedic.ts +67 -0
- package/layer/app/oip-drugs/types/es/outpatient.ts +71 -0
- package/layer/app/oip-drugs/types/es/portal.ts +130 -0
- package/layer/app/oip-drugs/types/es/retail.ts +107 -0
- package/layer/app/oip-drugs/types/es/statistics.ts +29 -0
- package/layer/app/oip-drugs/types/heart/CurrencyRate.ts +16 -0
- package/layer/app/oip-drugs/types/heart/ansm.ts +106 -0
- package/layer/app/oip-drugs/types/heart/tag.ts +29 -0
- package/layer/app/oip-drugs/utils/associationFields.ts +118 -0
- package/layer/app/oip-drugs/utils/contributions.ts +36 -0
- package/layer/app/oip-drugs/utils/countryMapping.ts +387 -0
- package/layer/app/oip-drugs/utils/esHighlight.ts +21 -0
- package/layer/app/oip-drugs/utils/exportSheets.ts +57 -0
- package/layer/app/oip-drugs/utils/heartIntlPrice.ts +228 -0
- package/layer/app/oip-drugs/utils/heartStyleAndFormat.ts +262 -0
- package/layer/app/oip-drugs/utils/heartStyleAnsm.ts +71 -0
- package/layer/app/oip-drugs/utils/latestDate.ts +31 -0
- package/layer/app/oip-drugs/utils/p-heartCardTags.ts +53 -0
- package/layer/app/oip-drugs/utils/priceExport.ts +269 -0
- package/layer/app/oip-drugs/utils/q-hasRatings.ts +43 -0
- package/layer/app/oip-drugs/utils/s-openCard.ts +20 -0
- package/layer/app/oip-drugs/utils/sourceUuids.ts +155 -0
- package/layer/app/oip-drugs/utils/styleAndFormat.ts +40 -0
- package/layer/app/oip-drugs/utils/v-salesSeries.ts +156 -0
- package/layer/app/oip-drugs/utils/v-scopeTags.ts +23 -0
- package/layer/app/oip-science/PORTING.md +93 -0
- package/layer/app/oip-science/assets/smartSelection.json +428 -0
- package/layer/app/oip-science/composables/useAuthorMatching.ts +342 -0
- package/layer/app/oip-science/composables/useCTCenter.ts +107 -0
- package/layer/app/oip-science/composables/useCTInvestigators.ts +107 -0
- package/layer/app/oip-science/composables/useEstablishmentCrossData.ts +139 -0
- package/layer/app/oip-science/composables/useEstablishmentMatching.ts +176 -0
- package/layer/app/oip-science/composables/useEuct.ts +418 -0
- package/layer/app/oip-science/composables/useEuctCenter.ts +107 -0
- package/layer/app/oip-science/composables/useEuctInvestigators.ts +107 -0
- package/layer/app/oip-science/composables/useGlobalClinicalTrials.ts +624 -0
- package/layer/app/oip-science/composables/useLinkedTrials.ts +83 -0
- package/layer/app/oip-science/composables/useOipElastic.ts +658 -0
- package/layer/app/oip-science/composables/useOipSearchExplain.ts +166 -0
- package/layer/app/oip-science/composables/usePubmed.ts +487 -0
- package/layer/app/oip-science/composables/useSearchFields.ts +153 -0
- package/layer/app/oip-science/indexConfig.json +794 -0
- package/layer/app/oip-science/locales/en.json +483 -0
- package/layer/app/oip-science/locales/fr.json +483 -0
- package/layer/app/oip-science/science.css +1182 -0
- package/layer/app/oip-science/utils/a-openCard.ts +23 -0
- package/layer/app/oip-science/utils/b-openCard.ts +35 -0
- package/layer/app/oip-science/utils/c-filterContext.ts +81 -0
- package/layer/app/oip-science/utils/f-types.ts +241 -0
- package/layer/app/oip-science/utils/frDiseaseTerms.ts +269 -0
- package/layer/app/oip-science/utils/matchMethod.ts +53 -0
- package/layer/app/oip-science/utils/sliderTabs.ts +13 -0
- package/layer/app/oip-science/utils/sources.ts +15 -0
- package/layer/app/oip-science/utils/styleAndFormat.ts +608 -0
- package/layer/app/oip-science/utils/toPresets.ts +7 -0
- package/layer/app/oip-science/utils/valueTable.ts +126 -0
- package/layer/app/plugins/oip-science-i18n.ts +17 -0
- package/layer/app/utils/oipFicheRoutes.ts +118 -0
- package/layer/app/utils/oipResources.ts +440 -0
- package/layer/nuxt.config.ts +22 -2
- package/layer/public/reports/blincyto-has.html +292 -0
- package/layer/public/reports/blincyto-has.pdf +0 -0
- package/layer/public/reports/darzalex-has.html +279 -0
- package/layer/public/reports/darzalex-has.pdf +0 -0
- package/layer/public/reports/dupixent-has.html +217 -0
- package/layer/public/reports/dupixent-has.pdf +0 -0
- package/layer/public/reports/enhertu-has.html +283 -0
- package/layer/public/reports/enhertu-has.pdf +0 -0
- package/layer/public/reports/has-sein-2023.html +1639 -0
- package/layer/public/reports/ibrance-has.html +280 -0
- package/layer/public/reports/ibrance-has.pdf +0 -0
- package/layer/public/reports/imfinzi-has.html +297 -0
- package/layer/public/reports/imfinzi-has.pdf +0 -0
- package/layer/public/reports/keytruda-has.html +337 -0
- package/layer/public/reports/keytruda-has.pdf +0 -0
- package/layer/public/reports/kisqali-has.html +202 -0
- package/layer/public/reports/kisqali-has.pdf +0 -0
- package/layer/public/reports/opdivo-has.html +232 -0
- package/layer/public/reports/opdivo-has.pdf +0 -0
- package/layer/public/reports/ozempic-has.html +188 -0
- package/layer/public/reports/ozempic-has.pdf +0 -0
- package/layer/public/reports/tecentriq-has.html +315 -0
- package/layer/public/reports/tecentriq-has.pdf +0 -0
- package/layer/public/reports/yescarta-has.html +275 -0
- package/layer/public/reports/yescarta-has.pdf +0 -0
- package/layer/server/api/oip/es.post.ts +99 -0
- package/layer/server/api/oip/pdf.get.ts +70 -0
- package/layer/server/api/oip/reports.get.ts +98 -0
- package/layer/server/api/oip/resource-types.get.ts +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Onglet Essais cliniques d'une fiche centre CT.gov
|
|
3
|
+
(pages/ctgov/centers/[id]/clinical-trials.vue de France Augmented Science).
|
|
4
|
+
-->
|
|
5
|
+
<template>
|
|
6
|
+
<div class="oip-science">
|
|
7
|
+
<OipScienceClinicalTrialsLinkedList
|
|
8
|
+
:nct-ids="nctIds"
|
|
9
|
+
:title="$t('oipScience.common.clinicalTrials')"
|
|
10
|
+
:sources="['CT.gov']"
|
|
11
|
+
index-last-update="CT.gov"
|
|
12
|
+
:loading="isLoadingQueryCTCenters"
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script setup lang="ts">
|
|
18
|
+
import useCTCenter from '../../../oip-science/composables/useCTCenter';
|
|
19
|
+
|
|
20
|
+
const props = withDefaults(defineProps<{ id: string; highlight?: string[]; lang?: 'fr' | 'en' }>(), {
|
|
21
|
+
highlight: () => [],
|
|
22
|
+
lang: undefined,
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const { findCTCentersById, resultsCTCenters, isLoadingQueryCTCenters } = useCTCenter();
|
|
26
|
+
|
|
27
|
+
watch(
|
|
28
|
+
() => props.id,
|
|
29
|
+
async (id) => {
|
|
30
|
+
if (id) {
|
|
31
|
+
await findCTCentersById({ id: id.toString() });
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{ immediate: true },
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
const nctIds = computed<string[]>(() =>
|
|
38
|
+
(resultsCTCenters.value?.records || []).map((r) => r.nct_id).filter((id): id is string => !!id),
|
|
39
|
+
);
|
|
40
|
+
</script>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Onglet Publications d'une fiche centre CT.gov
|
|
3
|
+
(pages/ctgov/centers/[id]/publications.vue de France Augmented Science).
|
|
4
|
+
-->
|
|
5
|
+
<template>
|
|
6
|
+
<div class="oip-science">
|
|
7
|
+
<OipScienceCrossPublicationPubmed
|
|
8
|
+
v-if="!isLoadingQueryCTCenters"
|
|
9
|
+
:custom-query="pubmedFromIdsQuery(pubmedIds)"
|
|
10
|
+
:from="`Center ${resultsCTCenters?.facility_name}`"
|
|
11
|
+
/>
|
|
12
|
+
<RmLoadingState v-if="isLoadingQueryCTCenters" :lines="3" :chart-height="240" />
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script setup lang="ts">
|
|
17
|
+
import usePubmed from '../../../oip-science/composables/usePubmed';
|
|
18
|
+
import useCTCenter from '../../../oip-science/composables/useCTCenter';
|
|
19
|
+
import { removeDuplicate } from '../../../oip-science/utils/styleAndFormat';
|
|
20
|
+
|
|
21
|
+
const props = withDefaults(defineProps<{ id: string; highlight?: string[]; lang?: 'fr' | 'en' }>(), {
|
|
22
|
+
highlight: () => [],
|
|
23
|
+
lang: undefined,
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const { pubmedFromIdsQuery } = usePubmed();
|
|
27
|
+
const { findCTCentersById, resultsCTCenters, isLoadingQueryCTCenters } = useCTCenter();
|
|
28
|
+
|
|
29
|
+
const pubmedIds = ref([] as any);
|
|
30
|
+
|
|
31
|
+
watch(
|
|
32
|
+
() => props.id,
|
|
33
|
+
async (id) => {
|
|
34
|
+
pubmedIds.value = [];
|
|
35
|
+
if (id) {
|
|
36
|
+
await findCTCentersById({ id: id.toString() });
|
|
37
|
+
|
|
38
|
+
if (resultsCTCenters.value?.records && resultsCTCenters.value.records.length > 0) {
|
|
39
|
+
pubmedIds.value = removeDuplicate(
|
|
40
|
+
resultsCTCenters.value.records
|
|
41
|
+
.map((item: any) => item.pubmed_name)
|
|
42
|
+
.filter(Boolean)
|
|
43
|
+
.flat(),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{ immediate: true },
|
|
49
|
+
);
|
|
50
|
+
</script>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Onglet Essais cliniques d'une fiche investigateur CT.gov
|
|
3
|
+
(pages/ctgov/investigators/[id]/clinical-trials.vue de France Augmented Science).
|
|
4
|
+
-->
|
|
5
|
+
<template>
|
|
6
|
+
<div class="oip-science">
|
|
7
|
+
<OipScienceClinicalTrialsLinkedList
|
|
8
|
+
:nct-ids="nctIds"
|
|
9
|
+
:title="$t('oipScience.common.clinicalTrials')"
|
|
10
|
+
:sources="['CT.gov']"
|
|
11
|
+
index-last-update="CT.gov"
|
|
12
|
+
:loading="isLoadingQueryCTInvestigators"
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script setup lang="ts">
|
|
18
|
+
import useCTInvestigators from '../../../oip-science/composables/useCTInvestigators';
|
|
19
|
+
|
|
20
|
+
const props = withDefaults(defineProps<{ id: string; highlight?: string[]; lang?: 'fr' | 'en' }>(), {
|
|
21
|
+
highlight: () => [],
|
|
22
|
+
lang: undefined,
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const { findCTInvestigatorsById, resultsCTInvestigators, isLoadingQueryCTInvestigators } =
|
|
26
|
+
useCTInvestigators();
|
|
27
|
+
|
|
28
|
+
watch(
|
|
29
|
+
() => props.id,
|
|
30
|
+
async (id) => {
|
|
31
|
+
if (id) {
|
|
32
|
+
await findCTInvestigatorsById({ id: id.toString() });
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{ immediate: true },
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
const nctIds = computed<string[]>(() =>
|
|
39
|
+
(resultsCTInvestigators.value?.records || [])
|
|
40
|
+
.map((r) => r.nct_id)
|
|
41
|
+
.filter((id): id is string => !!id),
|
|
42
|
+
);
|
|
43
|
+
</script>
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Onglet Informations d'une fiche investigateur CT.gov (pages/ctgov/investigators/[id]/informations.vue
|
|
3
|
+
de France Augmented Science) : le professionnel RPPS retrouve par le nom de l'investigateur.
|
|
4
|
+
-->
|
|
5
|
+
<template>
|
|
6
|
+
<div class="oip-science">
|
|
7
|
+
<RmTableCard v-if="!isLoading && hcp">
|
|
8
|
+
<template #header>
|
|
9
|
+
<div>
|
|
10
|
+
<h3 class="rm-table-card__title">{{ $t('oipScience.common.informations') }}</h3>
|
|
11
|
+
<OipScienceCommonSource :sources="['RPPS']" :lang="lang" />
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<RmTable :columns="infoTable.columns" :rows="infoTable.rows" />
|
|
15
|
+
</RmTableCard>
|
|
16
|
+
|
|
17
|
+
<!-- Establishments -->
|
|
18
|
+
<RmTableCard v-if="!isLoading && hcp && getEstablishments.length > 0" class="mt-24">
|
|
19
|
+
<template #header>
|
|
20
|
+
<div>
|
|
21
|
+
<h3 class="rm-table-card__title">{{ $t('oipScience.common.centers') }}</h3>
|
|
22
|
+
<p class="rm-table-card__context">
|
|
23
|
+
{{ ifNoRes(getEstablishments.length, 'number') }} {{ $t('oipScience.trial.resultsCount') }}
|
|
24
|
+
</p>
|
|
25
|
+
<OipScienceCommonSource :sources="['RPPS', 'FINESS']" :lang="lang" />
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
<RmTable :columns="establishmentsTable.columns" :rows="establishmentsTable.rows" search />
|
|
29
|
+
</RmTableCard>
|
|
30
|
+
|
|
31
|
+
<RmLoadingState v-if="isLoading" :lines="3" :chart-height="240" />
|
|
32
|
+
<RmEmptyState
|
|
33
|
+
v-if="!isLoading && !hcp"
|
|
34
|
+
:title="$t('oipScience.common.noDataTitle')"
|
|
35
|
+
:text="$t('oipScience.common.noDataText')"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script setup lang="ts">
|
|
41
|
+
import indexConfig from '../../../oip-science/indexConfig.json';
|
|
42
|
+
import useOipElastic from '../../../oip-science/composables/useOipElastic';
|
|
43
|
+
import useCTInvestigators from '../../../oip-science/composables/useCTInvestigators';
|
|
44
|
+
import { valueTable } from '../../../oip-science/utils/valueTable';
|
|
45
|
+
import { ifNoRes } from '../../../oip-science/utils/styleAndFormat';
|
|
46
|
+
|
|
47
|
+
const props = withDefaults(defineProps<{ id: string; highlight?: string[]; lang?: 'fr' | 'en' }>(), {
|
|
48
|
+
highlight: () => [],
|
|
49
|
+
lang: undefined,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
const { t } = useI18n();
|
|
53
|
+
const { queryCustomElastic } = useOipElastic();
|
|
54
|
+
const { findCTInvestigatorsById, resultsCTInvestigators } = useCTInvestigators();
|
|
55
|
+
|
|
56
|
+
const isLoading = ref(true);
|
|
57
|
+
const hcp = ref<any>(null);
|
|
58
|
+
|
|
59
|
+
async function load() {
|
|
60
|
+
isLoading.value = true;
|
|
61
|
+
hcp.value = null;
|
|
62
|
+
try {
|
|
63
|
+
// 1. Fetch investigator data
|
|
64
|
+
if (props.id) {
|
|
65
|
+
await findCTInvestigatorsById({ id: props.id.toString() });
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// 2. Search matching HCP by name
|
|
69
|
+
if (resultsCTInvestigators.value?.investigator_name) {
|
|
70
|
+
const name = resultsCTInvestigators.value.investigator_name;
|
|
71
|
+
const res = await queryCustomElastic({
|
|
72
|
+
index: indexConfig.hcps.index,
|
|
73
|
+
cluster: indexConfig.hcps.cluster,
|
|
74
|
+
customQuery: {
|
|
75
|
+
size: 1,
|
|
76
|
+
query: {
|
|
77
|
+
multi_match: {
|
|
78
|
+
query: name,
|
|
79
|
+
fields: ['hcp_first_name', 'hcp_family_name'],
|
|
80
|
+
type: 'cross_fields',
|
|
81
|
+
operator: 'and',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
onlyOne: true,
|
|
86
|
+
});
|
|
87
|
+
if (res) {
|
|
88
|
+
hcp.value = res;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
} catch (e) {
|
|
92
|
+
console.error(e);
|
|
93
|
+
} finally {
|
|
94
|
+
isLoading.value = false;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
watch(() => props.id, load, { immediate: true });
|
|
99
|
+
|
|
100
|
+
const getContent = computed(() => {
|
|
101
|
+
if (!hcp.value) return [];
|
|
102
|
+
const h: any = hcp.value;
|
|
103
|
+
const specs: any[] = Array.isArray(h?.specialty) ? h.specialty : [];
|
|
104
|
+
const principal = specs.find((s: any) => s?.hcp_specialty_type === 'PRINCIPAL');
|
|
105
|
+
const secondaries = specs.filter((s: any) => s?.hcp_specialty_type !== 'PRINCIPAL');
|
|
106
|
+
const firstAddr = (h?.address || [])[0] || {};
|
|
107
|
+
return [
|
|
108
|
+
{ values: ['RPPS', h?.hcp_code || '-'] },
|
|
109
|
+
{ values: [t('oipScience.trial.firstName'), h?.hcp_first_name || '-'] },
|
|
110
|
+
{ values: [t('oipScience.trial.familyName'), h?.hcp_family_name || '-'] },
|
|
111
|
+
{ values: [t('oipScience.common.city'), firstAddr?.hcp_city || '-'] },
|
|
112
|
+
{
|
|
113
|
+
values: [
|
|
114
|
+
t('oipScience.common.principalSpecialty'),
|
|
115
|
+
principal?.hcp_specialty_label_regroup || '-',
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
values: [
|
|
120
|
+
t('oipScience.common.secondarySpecialties'),
|
|
121
|
+
secondaries.length > 0
|
|
122
|
+
? secondaries.map((s: any) => s?.hcp_specialty_label_regroup).filter(Boolean).join(', ')
|
|
123
|
+
: '-',
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
{ values: [t('oipScience.trial.clinicalTrialsNct'), h?.nct_trial_count || 0] },
|
|
127
|
+
{ values: [t('oipScience.trial.clinicalTrialsEuct'), h?.euct_trial_count || 0] },
|
|
128
|
+
{ values: ['PubMed', h?.pubmed_trial_count || 0] },
|
|
129
|
+
{
|
|
130
|
+
values: [
|
|
131
|
+
t('oipScience.trial.establishments'),
|
|
132
|
+
|
|
133
|
+
Array.isArray(h?.address) ? h.address.filter((x: any) => x?.hco_et_code).length : 0,
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
];
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
const getEstablishments = computed(() => {
|
|
140
|
+
if (!Array.isArray(hcp.value?.address)) return [];
|
|
141
|
+
return hcp.value.address
|
|
142
|
+
.filter((addr: any) => addr?.hco_et_code)
|
|
143
|
+
.map((addr: any) => ({
|
|
144
|
+
values: [
|
|
145
|
+
addr.hco_et_label || '-',
|
|
146
|
+
addr.hcp_city || '-',
|
|
147
|
+
addr.hco_et_code || '-',
|
|
148
|
+
],
|
|
149
|
+
}));
|
|
150
|
+
});
|
|
151
|
+
const infoTable = computed(() =>
|
|
152
|
+
valueTable([t('oipScience.trial.field'), t('oipScience.trial.value')], getContent.value, undefined, {
|
|
153
|
+
align: ['left', 'left'],
|
|
154
|
+
}),
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
const establishmentsTable = computed(() =>
|
|
158
|
+
valueTable(
|
|
159
|
+
[t('oipScience.common.name'), t('oipScience.common.city'), t('oipScience.common.finessEt')],
|
|
160
|
+
getEstablishments.value,
|
|
161
|
+
undefined,
|
|
162
|
+
{ align: ['left', 'left', 'left'] },
|
|
163
|
+
),
|
|
164
|
+
);
|
|
165
|
+
</script>
|
|
166
|
+
|
|
167
|
+
<style scoped>
|
|
168
|
+
.mt-24 {
|
|
169
|
+
margin-top: 24px;
|
|
170
|
+
}
|
|
171
|
+
</style>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Onglet Publications d'une fiche investigateur CT.gov
|
|
3
|
+
(pages/ctgov/investigators/[id]/publications.vue de France Augmented Science).
|
|
4
|
+
-->
|
|
5
|
+
<template>
|
|
6
|
+
<div class="oip-science">
|
|
7
|
+
<OipScienceCrossPublicationPubmed
|
|
8
|
+
v-if="!isLoadingQueryCTInvestigators && resultsCTInvestigators"
|
|
9
|
+
:custom-query="
|
|
10
|
+
pubmedFromIdsQuery(resultsCTInvestigators?.pubmed_ids || [])
|
|
11
|
+
"
|
|
12
|
+
:from="`Investigator ${resultsCTInvestigators?.investigator_name}`"
|
|
13
|
+
/>
|
|
14
|
+
|
|
15
|
+
<RmLoadingState v-if="isLoadingQueryCTInvestigators" :lines="3" :chart-height="240" />
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script setup lang="ts">
|
|
20
|
+
import usePubmed from '../../../oip-science/composables/usePubmed';
|
|
21
|
+
import useCTInvestigators from '../../../oip-science/composables/useCTInvestigators';
|
|
22
|
+
|
|
23
|
+
const props = withDefaults(defineProps<{ id: string; highlight?: string[]; lang?: 'fr' | 'en' }>(), {
|
|
24
|
+
highlight: () => [],
|
|
25
|
+
lang: undefined,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const { pubmedFromIdsQuery } = usePubmed();
|
|
29
|
+
const {
|
|
30
|
+
findCTInvestigatorsById,
|
|
31
|
+
resultsCTInvestigators,
|
|
32
|
+
isLoadingQueryCTInvestigators,
|
|
33
|
+
} = useCTInvestigators();
|
|
34
|
+
|
|
35
|
+
watch(
|
|
36
|
+
() => props.id,
|
|
37
|
+
async (id) => {
|
|
38
|
+
if (id) {
|
|
39
|
+
await findCTInvestigatorsById({ id: id.toString() });
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{ immediate: true },
|
|
43
|
+
);
|
|
44
|
+
</script>
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Filtre de periode d'une liste (anciennement ElasticDateRangeFilter de France
|
|
3
|
+
Augmented Science). Sa valeur et sa clause vont dans le contexte de la liste
|
|
4
|
+
parente (c-filterContext).
|
|
5
|
+
-->
|
|
6
|
+
<template>
|
|
7
|
+
<div>
|
|
8
|
+
<RmDropdownSelect
|
|
9
|
+
:search="false"
|
|
10
|
+
|
|
11
|
+
:options="dateRange.map((x) => t(`oipScience.ui.dateRange.${x.value}`))"
|
|
12
|
+
v-model="displayedItem"
|
|
13
|
+
:label="label || filterName" :lang="$i18n.locale === 'en' ? 'en' : 'fr'" />
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
<script setup lang="ts">
|
|
17
|
+
import { useOipFilterContext } from "../../../oip-science/utils/c-filterContext";
|
|
18
|
+
|
|
19
|
+
const filterContext = useOipFilterContext();
|
|
20
|
+
|
|
21
|
+
const emit = defineEmits(["changeElement"]);
|
|
22
|
+
|
|
23
|
+
const props = defineProps({
|
|
24
|
+
filterValues: {
|
|
25
|
+
type: [Array, String, Function],
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
field: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: false,
|
|
31
|
+
default: null,
|
|
32
|
+
},
|
|
33
|
+
filterName: {
|
|
34
|
+
type: String,
|
|
35
|
+
required: true,
|
|
36
|
+
},
|
|
37
|
+
nestedField: {
|
|
38
|
+
type: String,
|
|
39
|
+
required: false,
|
|
40
|
+
default: null,
|
|
41
|
+
},
|
|
42
|
+
keyName: {
|
|
43
|
+
type: String,
|
|
44
|
+
required: false,
|
|
45
|
+
default: null,
|
|
46
|
+
},
|
|
47
|
+
/** Libelle affiche ; `filterName` reste la cle technique du store. */
|
|
48
|
+
label: {
|
|
49
|
+
type: String,
|
|
50
|
+
required: false,
|
|
51
|
+
default: "",
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const { t } = useI18n();
|
|
56
|
+
|
|
57
|
+
const dateRange = ref([
|
|
58
|
+
{ name: "All", value: "all" },
|
|
59
|
+
{ name: "Last 30 days", value: "last_30" },
|
|
60
|
+
{ name: "Last 90 days", value: "last_90" },
|
|
61
|
+
{ name: "Last 180 days", value: "last_180" },
|
|
62
|
+
{ name: "Last 360 days", value: "last_360" },
|
|
63
|
+
{ name: "Last 3 years", value: "last_3_years" },
|
|
64
|
+
{ name: "Last 5 years", value: "last_5_years" },
|
|
65
|
+
]);
|
|
66
|
+
|
|
67
|
+
const selectedItem = ref("" as string);
|
|
68
|
+
|
|
69
|
+
// Le store garde le nom technique (anglais) de la periode ; seul le libelle
|
|
70
|
+
// affiche suit la langue.
|
|
71
|
+
const displayedItem = computed({
|
|
72
|
+
get() {
|
|
73
|
+
const range = dateRange.value.find((x) => x.name === selectedItem.value);
|
|
74
|
+
return range ? t(`oipScience.ui.dateRange.${range.value}`) : selectedItem.value;
|
|
75
|
+
},
|
|
76
|
+
set(label: string) {
|
|
77
|
+
const range = dateRange.value.find((x) => t(`oipScience.ui.dateRange.${x.value}`) === label);
|
|
78
|
+
selectedItem.value = range ? range.name : label;
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
onMounted(() => {
|
|
83
|
+
selectedItem.value =
|
|
84
|
+
(props.filterValues as string[]).length > 0
|
|
85
|
+
? (props.filterValues as string[])[0]
|
|
86
|
+
: (dateRange.value as any[])[0].name;
|
|
87
|
+
// setSearch(selectedItem.value);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
watch(
|
|
91
|
+
() => selectedItem.value,
|
|
92
|
+
(val) => {
|
|
93
|
+
filterContext.setAppFilters({
|
|
94
|
+
filter: props.filterName,
|
|
95
|
+
keyName: props.keyName,
|
|
96
|
+
values: val != "" ? [val] : [],
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
setSearch(val);
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
const changeSelectValue = (val: any) => {
|
|
104
|
+
selectedItem.value = val;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const setSearch = (search: any) => {
|
|
108
|
+
const dateValue = dateRange.value.find((x) => x.name == search);
|
|
109
|
+
|
|
110
|
+
let obj;
|
|
111
|
+
|
|
112
|
+
if (search != undefined && search != "All" && props.field) {
|
|
113
|
+
obj = {
|
|
114
|
+
range: {
|
|
115
|
+
[`${props.field}`]: {
|
|
116
|
+
format: "yyyy-MM-dd",
|
|
117
|
+
gt: getDateRange(dateValue?.value).gte,
|
|
118
|
+
lte: getDateRange(dateValue?.value).lte,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (search != undefined && search != "All" && props.nestedField) {
|
|
125
|
+
obj = {
|
|
126
|
+
nested: {
|
|
127
|
+
path: props.nestedField.split(".")[0],
|
|
128
|
+
query: {
|
|
129
|
+
range: {
|
|
130
|
+
[`${props.nestedField}`]: {
|
|
131
|
+
gt: getDateRange(dateValue?.value).gte,
|
|
132
|
+
lte: getDateRange(dateValue?.value).lte,
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
filterContext.setQueryFilters({
|
|
141
|
+
filter: props.filterName,
|
|
142
|
+
values: obj,
|
|
143
|
+
keyName: props.keyName,
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
// emit('changeElement', {
|
|
147
|
+
// filter: props.filterName,
|
|
148
|
+
// page: route.fullPath,
|
|
149
|
+
// values: obj,
|
|
150
|
+
// });
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
const getDateRange = (value: any) => {
|
|
154
|
+
const now = new Date();
|
|
155
|
+
|
|
156
|
+
switch (value) {
|
|
157
|
+
case "last_30":
|
|
158
|
+
const thirtyDaysAgo = new Date();
|
|
159
|
+
thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30);
|
|
160
|
+
return {
|
|
161
|
+
gte: thirtyDaysAgo.toISOString().split("T")[0],
|
|
162
|
+
lte: now.toISOString().split("T")[0],
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
case "last_90":
|
|
166
|
+
const ninetyDaysAgo = new Date();
|
|
167
|
+
ninetyDaysAgo.setDate(ninetyDaysAgo.getDate() - 90);
|
|
168
|
+
return {
|
|
169
|
+
gte: ninetyDaysAgo.toISOString().split("T")[0],
|
|
170
|
+
lte: now.toISOString().split("T")[0],
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
case "last_180":
|
|
174
|
+
const oneEightyDaysAgo = new Date();
|
|
175
|
+
oneEightyDaysAgo.setDate(oneEightyDaysAgo.getDate() - 180);
|
|
176
|
+
return {
|
|
177
|
+
gte: oneEightyDaysAgo.toISOString().split("T")[0],
|
|
178
|
+
lte: now.toISOString().split("T")[0],
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
case "last_360":
|
|
182
|
+
const threeSixtyDaysAgo = new Date();
|
|
183
|
+
threeSixtyDaysAgo.setDate(threeSixtyDaysAgo.getDate() - 360);
|
|
184
|
+
return {
|
|
185
|
+
gte: threeSixtyDaysAgo.toISOString().split("T")[0],
|
|
186
|
+
lte: now.toISOString().split("T")[0],
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
case "last_3_years":
|
|
190
|
+
const threeYearsAgo = new Date();
|
|
191
|
+
threeYearsAgo.setFullYear(threeYearsAgo.getFullYear() - 3);
|
|
192
|
+
return {
|
|
193
|
+
gte: threeYearsAgo.toISOString().split("T")[0],
|
|
194
|
+
lte: now.toISOString().split("T")[0],
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
case "last_5_years":
|
|
198
|
+
const fiveYearsAgo = new Date();
|
|
199
|
+
fiveYearsAgo.setFullYear(fiveYearsAgo.getFullYear() - 5);
|
|
200
|
+
return {
|
|
201
|
+
gte: fiveYearsAgo.toISOString().split("T")[0],
|
|
202
|
+
lte: now.toISOString().split("T")[0],
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
default:
|
|
206
|
+
return {};
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
</script>
|