@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.
Files changed (270) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/BarChart.vue +1 -0
  3. package/dist/runtime/components/ChoroplethMap.vue +4 -1
  4. package/dist/runtime/internal/geo/fr-regions.json +1 -1
  5. package/dist/runtime/utils/chart.d.ts +6 -3
  6. package/dist/runtime/utils/chart.js +15 -2
  7. package/layer/app/app.config.ts +6 -0
  8. package/layer/app/components/OipPubmedSummary.vue +223 -0
  9. package/layer/app/components/OipResourceDrawer.vue +331 -0
  10. package/layer/app/components/OipResourceDrawerLink.vue +40 -0
  11. package/layer/app/components/OipResourceField.vue +41 -0
  12. package/layer/app/components/OipResourceGenericCard.vue +54 -0
  13. package/layer/app/components/OipResourceSource.vue +50 -0
  14. package/layer/app/components/OipResourceTags.vue +65 -0
  15. package/layer/app/components/OipResourceView.vue +107 -0
  16. package/layer/app/components/oip-drugs/fiches/AssociationFiche.vue +775 -0
  17. package/layer/app/components/oip-drugs/fiches/BrandFiche.vue +1111 -0
  18. package/layer/app/components/oip-drugs/fiches/IndicationFiche.vue +182 -0
  19. package/layer/app/components/oip-drugs/fiches/JoFiche.vue +101 -0
  20. package/layer/app/components/oip-drugs/fiches/PndsFiche.vue +279 -0
  21. package/layer/app/components/oip-drugs/heart/JoCard.vue +314 -0
  22. package/layer/app/components/oip-drugs/heart/TextHighlight.vue +326 -0
  23. package/layer/app/components/oip-drugs/heart/ansm/BrandCard.vue +187 -0
  24. package/layer/app/components/oip-drugs/heart/ansm/CisDetail.vue +363 -0
  25. package/layer/app/components/oip-drugs/heart/ansm/CisTable.vue +167 -0
  26. package/layer/app/components/oip-drugs/heart/associations/NationalAssemblyCard.vue +373 -0
  27. package/layer/app/components/oip-drugs/heart/associations/NationalAssemblyFiche.vue +372 -0
  28. package/layer/app/components/oip-drugs/heart/associations/TranscriptionCard.vue +55 -0
  29. package/layer/app/components/oip-drugs/heart/elastic/SourceContainerElastic.vue +103 -0
  30. package/layer/app/components/oip-drugs/heart/france/BrandGroupCard.vue +450 -0
  31. package/layer/app/components/oip-drugs/heart/mitm/Card.vue +199 -0
  32. package/layer/app/components/oip-drugs/heart/mitm/Source.vue +23 -0
  33. package/layer/app/components/oip-drugs/heart/mitm/details/Overview.vue +381 -0
  34. package/layer/app/components/oip-drugs/heart/put/Card.vue +212 -0
  35. package/layer/app/components/oip-drugs/heart/results/AccesCard.vue +696 -0
  36. package/layer/app/components/oip-drugs/heart/results/AlertCard.vue +342 -0
  37. package/layer/app/components/oip-drugs/heart/results/AsmrCursor.vue +229 -0
  38. package/layer/app/components/oip-drugs/heart/results/EvalCard.vue +370 -0
  39. package/layer/app/components/oip-drugs/heart/results/IndicCard.vue +743 -0
  40. package/layer/app/components/oip-drugs/heart/results/MatchExplain.vue +243 -0
  41. package/layer/app/components/oip-drugs/heart/results/PrefRows.vue +105 -0
  42. package/layer/app/components/oip-drugs/heart/results/details/HasHistory.vue +487 -0
  43. package/layer/app/components/oip-drugs/heart/results/details/InternationalCountryCard.vue +461 -0
  44. package/layer/app/components/oip-drugs/heart/results/details/InternationalOverview.vue +200 -0
  45. package/layer/app/components/oip-drugs/heart/results/details/InternationalPriceDrawer.vue +647 -0
  46. package/layer/app/components/oip-drugs/heart/results/details/Monograph.vue +128 -0
  47. package/layer/app/components/oip-drugs/heart/results/details/OpinionDrawer.vue +535 -0
  48. package/layer/app/components/oip-drugs/heart/results/details/PresentationDrawer.vue +738 -0
  49. package/layer/app/components/oip-drugs/heart/results/details/Price.vue +227 -0
  50. package/layer/app/components/oip-drugs/heart/results/details/PriceOverview.vue +1261 -0
  51. package/layer/app/components/oip-drugs/heart/results/details/RecordDrawer.vue +494 -0
  52. package/layer/app/components/oip-drugs/heart/results/details/RecordList.vue +426 -0
  53. package/layer/app/components/oip-drugs/heart/results/les/Card.vue +340 -0
  54. package/layer/app/components/oip-drugs/heart/results/les/Drawer.vue +67 -0
  55. package/layer/app/components/oip-drugs/heart/results/les/IndicationDetail.vue +149 -0
  56. package/layer/app/components/oip-drugs/heart/results/les/Source.vue +20 -0
  57. package/layer/app/components/oip-drugs/heart/results/les/SourceTag.vue +39 -0
  58. package/layer/app/components/oip-drugs/heart/searchPage/DynamicSource.vue +29 -0
  59. package/layer/app/components/oip-drugs/medicam/market/Chart.vue +121 -0
  60. package/layer/app/components/oip-drugs/outpatient/ProductEvolution.vue +236 -0
  61. package/layer/app/components/oip-drugs/resources/Ansm.vue +75 -0
  62. package/layer/app/components/oip-drugs/resources/Association.vue +30 -0
  63. package/layer/app/components/oip-drugs/resources/Brand.vue +65 -0
  64. package/layer/app/components/oip-drugs/resources/Contribution.vue +216 -0
  65. package/layer/app/components/oip-drugs/resources/Hospital.vue +151 -0
  66. package/layer/app/components/oip-drugs/resources/Indication.vue +54 -0
  67. package/layer/app/components/oip-drugs/resources/Jo.vue +57 -0
  68. package/layer/app/components/oip-drugs/resources/Medicam.vue +140 -0
  69. package/layer/app/components/oip-drugs/resources/Mitm.vue +84 -0
  70. package/layer/app/components/oip-drugs/resources/NationalAssembly.vue +93 -0
  71. package/layer/app/components/oip-drugs/resources/Outpatient.vue +97 -0
  72. package/layer/app/components/oip-drugs/resources/Pnds.vue +24 -0
  73. package/layer/app/components/oip-drugs/resources/Price.vue +106 -0
  74. package/layer/app/components/oip-drugs/resources/Put.vue +143 -0
  75. package/layer/app/components/oip-science/appel-a-projet/Cards.vue +162 -0
  76. package/layer/app/components/oip-science/clinical-trials/Cards.vue +382 -0
  77. package/layer/app/components/oip-science/clinical-trials/CardsGlobal.vue +273 -0
  78. package/layer/app/components/oip-science/clinical-trials/LinkedList.vue +366 -0
  79. package/layer/app/components/oip-science/clinical-trials/PairBadge.vue +25 -0
  80. package/layer/app/components/oip-science/clinical-trials/PairBody.vue +182 -0
  81. package/layer/app/components/oip-science/clinical-trials/SitesDrawer.vue +95 -0
  82. package/layer/app/components/oip-science/common/Form.vue +73 -0
  83. package/layer/app/components/oip-science/common/MatchAvgTag.vue +283 -0
  84. package/layer/app/components/oip-science/common/NoData.vue +16 -0
  85. package/layer/app/components/oip-science/common/ScoreBadge.vue +35 -0
  86. package/layer/app/components/oip-science/common/Source.vue +31 -0
  87. package/layer/app/components/oip-science/common/TableTags.vue +279 -0
  88. package/layer/app/components/oip-science/common/Timeline.vue +104 -0
  89. package/layer/app/components/oip-science/common/ToolTips.vue +89 -0
  90. package/layer/app/components/oip-science/cross/publicationPubmed.vue +484 -0
  91. package/layer/app/components/oip-science/crossData/CrossDataLocations.vue +71 -0
  92. package/layer/app/components/oip-science/ctgov/Investigators.vue +148 -0
  93. package/layer/app/components/oip-science/ctgov/Locations.vue +102 -0
  94. package/layer/app/components/oip-science/ctgov/Publications.vue +52 -0
  95. package/layer/app/components/oip-science/ctgov/Sponsors.vue +66 -0
  96. package/layer/app/components/oip-science/ctgov/StudyDescription.vue +1136 -0
  97. package/layer/app/components/oip-science/ctgov-centers/ClinicalTrials.vue +40 -0
  98. package/layer/app/components/oip-science/ctgov-centers/Publications.vue +50 -0
  99. package/layer/app/components/oip-science/ctgov-investigators/ClinicalTrials.vue +43 -0
  100. package/layer/app/components/oip-science/ctgov-investigators/Informations.vue +171 -0
  101. package/layer/app/components/oip-science/ctgov-investigators/Publications.vue +44 -0
  102. package/layer/app/components/oip-science/elastic/DateRangeFilter.vue +209 -0
  103. package/layer/app/components/oip-science/elastic/Filter.vue +719 -0
  104. package/layer/app/components/oip-science/elastic/MatchExplain.vue +152 -0
  105. package/layer/app/components/oip-science/establishments/Cards.vue +183 -0
  106. package/layer/app/components/oip-science/establishments/ClinicalTrials.vue +62 -0
  107. package/layer/app/components/oip-science/establishments/Hcps.vue +227 -0
  108. package/layer/app/components/oip-science/establishments/Informations.vue +263 -0
  109. package/layer/app/components/oip-science/establishments/LinkedList.vue +153 -0
  110. package/layer/app/components/oip-science/establishments/MatchedLabels.vue +194 -0
  111. package/layer/app/components/oip-science/establishments/PublicFinance.vue +62 -0
  112. package/layer/app/components/oip-science/euct/Investigators.vue +125 -0
  113. package/layer/app/components/oip-science/euct/Locations.vue +102 -0
  114. package/layer/app/components/oip-science/euct/Products.vue +101 -0
  115. package/layer/app/components/oip-science/euct/Publications.vue +89 -0
  116. package/layer/app/components/oip-science/euct/Sponsors.vue +86 -0
  117. package/layer/app/components/oip-science/euct/StudyDescription.vue +1075 -0
  118. package/layer/app/components/oip-science/euct-centers/ClinicalTrials.vue +40 -0
  119. package/layer/app/components/oip-science/euct-centers/Publications.vue +55 -0
  120. package/layer/app/components/oip-science/euct-investigators/ClinicalTrials.vue +41 -0
  121. package/layer/app/components/oip-science/euct-investigators/Informations.vue +171 -0
  122. package/layer/app/components/oip-science/euct-investigators/Publications.vue +51 -0
  123. package/layer/app/components/oip-science/hcps/AppelsAProjet.vue +62 -0
  124. package/layer/app/components/oip-science/hcps/Cards.vue +237 -0
  125. package/layer/app/components/oip-science/hcps/ClinicalTrials.vue +78 -0
  126. package/layer/app/components/oip-science/hcps/Informations.vue +296 -0
  127. package/layer/app/components/oip-science/hcps/LinkedList.vue +153 -0
  128. package/layer/app/components/oip-science/hcps/MatchedLabels.vue +207 -0
  129. package/layer/app/components/oip-science/hcps/Pubmed.vue +128 -0
  130. package/layer/app/components/oip-science/local/SliderTabs.vue +99 -0
  131. package/layer/app/components/oip-science/local/SliderTabsFull.vue +135 -0
  132. package/layer/app/components/oip-science/pubmed/Authors.vue +128 -0
  133. package/layer/app/components/oip-science/pubmed/Cards.vue +417 -0
  134. package/layer/app/components/oip-science/pubmed/ClinicalTrials.vue +71 -0
  135. package/layer/app/components/oip-science/resources/Phrc.vue +39 -0
  136. package/layer/app/composables/useOipChapterScroll.ts +43 -0
  137. package/layer/app/composables/useOipResourceHooks.ts +27 -0
  138. package/layer/app/composables/useOipResourceNav.ts +66 -0
  139. package/layer/app/composables/useOipResourceViews.ts +117 -0
  140. package/layer/app/composables/useOipResources.ts +83 -0
  141. package/layer/app/oip-drugs/PORTING.md +120 -0
  142. package/layer/app/oip-drugs/composables/useAssociationDetail.ts +220 -0
  143. package/layer/app/oip-drugs/composables/useAssociationExport.ts +63 -0
  144. package/layer/app/oip-drugs/composables/useAssociationLookup.ts +105 -0
  145. package/layer/app/oip-drugs/composables/useCardPrefOptions.ts +201 -0
  146. package/layer/app/oip-drugs/composables/useCurrency.ts +121 -0
  147. package/layer/app/oip-drugs/composables/useDirectusSources.ts +224 -0
  148. package/layer/app/oip-drugs/composables/useHeartBrandMatches.ts +112 -0
  149. package/layer/app/oip-drugs/composables/useHeartDetailSearches.ts +479 -0
  150. package/layer/app/oip-drugs/composables/useHeartIntlApprovals.ts +661 -0
  151. package/layer/app/oip-drugs/composables/useHeartLesIndication.ts +168 -0
  152. package/layer/app/oip-drugs/composables/useHeartMatchExplain.ts +231 -0
  153. package/layer/app/oip-drugs/composables/useHeartReports.ts +239 -0
  154. package/layer/app/oip-drugs/composables/useHeartSearchFields.ts +233 -0
  155. package/layer/app/oip-drugs/composables/useMergeByKey.ts +23 -0
  156. package/layer/app/oip-drugs/composables/useOipDrugsElastic.ts +621 -0
  157. package/layer/app/oip-drugs/composables/usePageEmpty.ts +58 -0
  158. package/layer/app/oip-drugs/composables/v-useSalesSource.ts +64 -0
  159. package/layer/app/oip-drugs/drugs.css +500 -0
  160. package/layer/app/oip-drugs/esIndices.ts +322 -0
  161. package/layer/app/oip-drugs/kinds.ts +264 -0
  162. package/layer/app/oip-drugs/locales/en.json +1571 -0
  163. package/layer/app/oip-drugs/locales/fr.json +1571 -0
  164. package/layer/app/oip-drugs/monographs/blincyto-has.vue +289 -0
  165. package/layer/app/oip-drugs/monographs/darzalex-has.vue +276 -0
  166. package/layer/app/oip-drugs/monographs/dupixent-has.vue +216 -0
  167. package/layer/app/oip-drugs/monographs/enhertu-has.vue +280 -0
  168. package/layer/app/oip-drugs/monographs/has-sein-2023.vue +1649 -0
  169. package/layer/app/oip-drugs/monographs/ibrance-has.vue +277 -0
  170. package/layer/app/oip-drugs/monographs/imfinzi-has.vue +293 -0
  171. package/layer/app/oip-drugs/monographs/keytruda-has.vue +334 -0
  172. package/layer/app/oip-drugs/monographs/kisqali-has.vue +201 -0
  173. package/layer/app/oip-drugs/monographs/opdivo-has.vue +231 -0
  174. package/layer/app/oip-drugs/monographs/ozempic-has.vue +186 -0
  175. package/layer/app/oip-drugs/monographs/tecentriq-has.vue +312 -0
  176. package/layer/app/oip-drugs/monographs/yescarta-has.vue +272 -0
  177. package/layer/app/oip-drugs/types/elastic.ts +113 -0
  178. package/layer/app/oip-drugs/types/es/agencies.ts +152 -0
  179. package/layer/app/oip-drugs/types/es/directory.ts +54 -0
  180. package/layer/app/oip-drugs/types/es/docByIndex.ts +151 -0
  181. package/layer/app/oip-drugs/types/es/openmedic.ts +67 -0
  182. package/layer/app/oip-drugs/types/es/outpatient.ts +71 -0
  183. package/layer/app/oip-drugs/types/es/portal.ts +130 -0
  184. package/layer/app/oip-drugs/types/es/retail.ts +107 -0
  185. package/layer/app/oip-drugs/types/es/statistics.ts +29 -0
  186. package/layer/app/oip-drugs/types/heart/CurrencyRate.ts +16 -0
  187. package/layer/app/oip-drugs/types/heart/ansm.ts +106 -0
  188. package/layer/app/oip-drugs/types/heart/tag.ts +29 -0
  189. package/layer/app/oip-drugs/utils/associationFields.ts +118 -0
  190. package/layer/app/oip-drugs/utils/contributions.ts +36 -0
  191. package/layer/app/oip-drugs/utils/countryMapping.ts +387 -0
  192. package/layer/app/oip-drugs/utils/esHighlight.ts +21 -0
  193. package/layer/app/oip-drugs/utils/exportSheets.ts +57 -0
  194. package/layer/app/oip-drugs/utils/heartIntlPrice.ts +228 -0
  195. package/layer/app/oip-drugs/utils/heartStyleAndFormat.ts +262 -0
  196. package/layer/app/oip-drugs/utils/heartStyleAnsm.ts +71 -0
  197. package/layer/app/oip-drugs/utils/latestDate.ts +31 -0
  198. package/layer/app/oip-drugs/utils/p-heartCardTags.ts +53 -0
  199. package/layer/app/oip-drugs/utils/priceExport.ts +269 -0
  200. package/layer/app/oip-drugs/utils/q-hasRatings.ts +43 -0
  201. package/layer/app/oip-drugs/utils/s-openCard.ts +20 -0
  202. package/layer/app/oip-drugs/utils/sourceUuids.ts +155 -0
  203. package/layer/app/oip-drugs/utils/styleAndFormat.ts +40 -0
  204. package/layer/app/oip-drugs/utils/v-salesSeries.ts +156 -0
  205. package/layer/app/oip-drugs/utils/v-scopeTags.ts +23 -0
  206. package/layer/app/oip-science/PORTING.md +93 -0
  207. package/layer/app/oip-science/assets/smartSelection.json +428 -0
  208. package/layer/app/oip-science/composables/useAuthorMatching.ts +342 -0
  209. package/layer/app/oip-science/composables/useCTCenter.ts +107 -0
  210. package/layer/app/oip-science/composables/useCTInvestigators.ts +107 -0
  211. package/layer/app/oip-science/composables/useEstablishmentCrossData.ts +139 -0
  212. package/layer/app/oip-science/composables/useEstablishmentMatching.ts +176 -0
  213. package/layer/app/oip-science/composables/useEuct.ts +418 -0
  214. package/layer/app/oip-science/composables/useEuctCenter.ts +107 -0
  215. package/layer/app/oip-science/composables/useEuctInvestigators.ts +107 -0
  216. package/layer/app/oip-science/composables/useGlobalClinicalTrials.ts +624 -0
  217. package/layer/app/oip-science/composables/useLinkedTrials.ts +83 -0
  218. package/layer/app/oip-science/composables/useOipElastic.ts +658 -0
  219. package/layer/app/oip-science/composables/useOipSearchExplain.ts +166 -0
  220. package/layer/app/oip-science/composables/usePubmed.ts +487 -0
  221. package/layer/app/oip-science/composables/useSearchFields.ts +153 -0
  222. package/layer/app/oip-science/indexConfig.json +794 -0
  223. package/layer/app/oip-science/locales/en.json +483 -0
  224. package/layer/app/oip-science/locales/fr.json +483 -0
  225. package/layer/app/oip-science/science.css +1182 -0
  226. package/layer/app/oip-science/utils/a-openCard.ts +23 -0
  227. package/layer/app/oip-science/utils/b-openCard.ts +35 -0
  228. package/layer/app/oip-science/utils/c-filterContext.ts +81 -0
  229. package/layer/app/oip-science/utils/f-types.ts +241 -0
  230. package/layer/app/oip-science/utils/frDiseaseTerms.ts +269 -0
  231. package/layer/app/oip-science/utils/matchMethod.ts +53 -0
  232. package/layer/app/oip-science/utils/sliderTabs.ts +13 -0
  233. package/layer/app/oip-science/utils/sources.ts +15 -0
  234. package/layer/app/oip-science/utils/styleAndFormat.ts +608 -0
  235. package/layer/app/oip-science/utils/toPresets.ts +7 -0
  236. package/layer/app/oip-science/utils/valueTable.ts +126 -0
  237. package/layer/app/plugins/oip-science-i18n.ts +17 -0
  238. package/layer/app/utils/oipFicheRoutes.ts +118 -0
  239. package/layer/app/utils/oipResources.ts +440 -0
  240. package/layer/nuxt.config.ts +22 -2
  241. package/layer/public/reports/blincyto-has.html +292 -0
  242. package/layer/public/reports/blincyto-has.pdf +0 -0
  243. package/layer/public/reports/darzalex-has.html +279 -0
  244. package/layer/public/reports/darzalex-has.pdf +0 -0
  245. package/layer/public/reports/dupixent-has.html +217 -0
  246. package/layer/public/reports/dupixent-has.pdf +0 -0
  247. package/layer/public/reports/enhertu-has.html +283 -0
  248. package/layer/public/reports/enhertu-has.pdf +0 -0
  249. package/layer/public/reports/has-sein-2023.html +1639 -0
  250. package/layer/public/reports/ibrance-has.html +280 -0
  251. package/layer/public/reports/ibrance-has.pdf +0 -0
  252. package/layer/public/reports/imfinzi-has.html +297 -0
  253. package/layer/public/reports/imfinzi-has.pdf +0 -0
  254. package/layer/public/reports/keytruda-has.html +337 -0
  255. package/layer/public/reports/keytruda-has.pdf +0 -0
  256. package/layer/public/reports/kisqali-has.html +202 -0
  257. package/layer/public/reports/kisqali-has.pdf +0 -0
  258. package/layer/public/reports/opdivo-has.html +232 -0
  259. package/layer/public/reports/opdivo-has.pdf +0 -0
  260. package/layer/public/reports/ozempic-has.html +188 -0
  261. package/layer/public/reports/ozempic-has.pdf +0 -0
  262. package/layer/public/reports/tecentriq-has.html +315 -0
  263. package/layer/public/reports/tecentriq-has.pdf +0 -0
  264. package/layer/public/reports/yescarta-has.html +275 -0
  265. package/layer/public/reports/yescarta-has.pdf +0 -0
  266. package/layer/server/api/oip/es.post.ts +99 -0
  267. package/layer/server/api/oip/pdf.get.ts +70 -0
  268. package/layer/server/api/oip/reports.get.ts +98 -0
  269. package/layer/server/api/oip/resource-types.get.ts +22 -0
  270. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ <!--
2
+ Onglet Essais cliniques d'une fiche centre EUCT
3
+ (pages/euct/centers/[id]/clinical-trials.vue de France Augmented Science).
4
+ -->
5
+ <template>
6
+ <div class="oip-science">
7
+ <OipScienceClinicalTrialsLinkedList
8
+ :euct-ids="euctIds"
9
+ :title="$t('oipScience.common.clinicalTrials')"
10
+ :sources="['EUCT']"
11
+ index-last-update="EUCT"
12
+ :loading="isLoadingQueryEuctCenters"
13
+ />
14
+ </div>
15
+ </template>
16
+
17
+ <script setup lang="ts">
18
+ import useEuctCenter from '../../../oip-science/composables/useEuctCenter';
19
+
20
+ const props = withDefaults(defineProps<{ id: string; highlight?: string[]; lang?: 'fr' | 'en' }>(), {
21
+ highlight: () => [],
22
+ lang: undefined,
23
+ });
24
+
25
+ const { findEuctCentersById, resultsEuctCenters, isLoadingQueryEuctCenters } = useEuctCenter();
26
+
27
+ watch(
28
+ () => props.id,
29
+ async (id) => {
30
+ if (id) {
31
+ await findEuctCentersById({ id: id.toString() });
32
+ }
33
+ },
34
+ { immediate: true },
35
+ );
36
+
37
+ const euctIds = computed<string[]>(() =>
38
+ (resultsEuctCenters.value?.records || []).map((r) => r.euct_number).filter(Boolean),
39
+ );
40
+ </script>
@@ -0,0 +1,55 @@
1
+ <!--
2
+ Onglet Publications d'une fiche centre EUCT
3
+ (pages/euct/centers/[id]/publications.vue de France Augmented Science).
4
+ -->
5
+ <template>
6
+ <div class="oip-science">
7
+ <OipScienceCrossPublicationPubmed
8
+ v-if="!isLoadingQueryEuctCenters"
9
+ :custom-query="pubmedFromIdsQuery(pubmedIds)"
10
+ :from="`Center ${resultsEuctCenters?.organisation_name}`"
11
+ />
12
+ <RmLoadingState v-if="isLoadingQueryEuctCenters" :lines="3" :chart-height="240" />
13
+ </div>
14
+ </template>
15
+
16
+ <script setup lang="ts">
17
+ import type { EuctCentersRecords } from '../../../oip-science/utils/f-types';
18
+ import usePubmed from '../../../oip-science/composables/usePubmed';
19
+ import useEuctCenter from '../../../oip-science/composables/useEuctCenter';
20
+ import { removeDuplicate } from '../../../oip-science/utils/styleAndFormat';
21
+
22
+ const props = withDefaults(defineProps<{ id: string; highlight?: string[]; lang?: 'fr' | 'en' }>(), {
23
+ highlight: () => [],
24
+ lang: undefined,
25
+ });
26
+
27
+ const { pubmedFromIdsQuery } = usePubmed();
28
+ const { findEuctCentersById, resultsEuctCenters, isLoadingQueryEuctCenters } = useEuctCenter();
29
+
30
+ const pubmedIds = ref([] as any);
31
+
32
+ watch(
33
+ () => props.id,
34
+ async (id) => {
35
+ pubmedIds.value = [];
36
+ if (id) {
37
+ await findEuctCentersById({ id: id.toString() });
38
+
39
+ if (
40
+ resultsEuctCenters.value &&
41
+ resultsEuctCenters.value.records &&
42
+ resultsEuctCenters.value.records.length > 0
43
+ ) {
44
+ pubmedIds.value = removeDuplicate(
45
+ resultsEuctCenters.value.records
46
+ .map((item: EuctCentersRecords) => item.pubmed_citations_id)
47
+ .filter(Boolean)
48
+ .flat(),
49
+ );
50
+ }
51
+ }
52
+ },
53
+ { immediate: true },
54
+ );
55
+ </script>
@@ -0,0 +1,41 @@
1
+ <!--
2
+ Onglet Essais cliniques d'une fiche investigateur EUCT
3
+ (pages/euct/investigators/[id]/clinical-trials.vue de France Augmented Science).
4
+ -->
5
+ <template>
6
+ <div class="oip-science">
7
+ <OipScienceClinicalTrialsLinkedList
8
+ :euct-ids="euctIds"
9
+ :title="$t('oipScience.common.clinicalTrials')"
10
+ :sources="['EUCT']"
11
+ index-last-update="EUCT"
12
+ :loading="isLoadingQueryEuctInvestigators"
13
+ />
14
+ </div>
15
+ </template>
16
+
17
+ <script setup lang="ts">
18
+ import useEuctInvestigators from '../../../oip-science/composables/useEuctInvestigators';
19
+
20
+ const props = withDefaults(defineProps<{ id: string; highlight?: string[]; lang?: 'fr' | 'en' }>(), {
21
+ highlight: () => [],
22
+ lang: undefined,
23
+ });
24
+
25
+ const { findEuctInvestigatorsById, resultsEuctInvestigators, isLoadingQueryEuctInvestigators } =
26
+ useEuctInvestigators();
27
+
28
+ watch(
29
+ () => props.id,
30
+ async (id) => {
31
+ if (id) {
32
+ await findEuctInvestigatorsById({ id: id.toString() });
33
+ }
34
+ },
35
+ { immediate: true },
36
+ );
37
+
38
+ const euctIds = computed<string[]>(() =>
39
+ (resultsEuctInvestigators.value?.records || []).map((r) => r.euct_number).filter(Boolean),
40
+ );
41
+ </script>
@@ -0,0 +1,171 @@
1
+ <!--
2
+ Onglet Informations d'une fiche investigateur EUCT (pages/euct/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 useEuctInvestigators from '../../../oip-science/composables/useEuctInvestigators';
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 { findEuctInvestigatorsById, resultsEuctInvestigators } = useEuctInvestigators();
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 findEuctInvestigatorsById({ id: props.id.toString() });
66
+ }
67
+
68
+ // 2. Search matching HCP by name
69
+ if (resultsEuctInvestigators.value?.full_name) {
70
+ const name = resultsEuctInvestigators.value.full_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,51 @@
1
+ <!--
2
+ Onglet Publications d'une fiche investigateur EUCT
3
+ (pages/euct/investigators/[id]/publications.vue de France Augmented Science).
4
+ -->
5
+ <template>
6
+ <div class="oip-science">
7
+ <OipScienceCrossPublicationPubmed
8
+ v-if="!isLoadingQueryEuctInvestigators"
9
+ :custom-query="pubmedFromIdsQuery(pubmedIds || [])"
10
+ :from="`Investigator ${resultsEuctInvestigators?.full_name}`"
11
+ />
12
+ <RmLoadingState v-if="isLoadingQueryEuctInvestigators" :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 useEuctInvestigators from '../../../oip-science/composables/useEuctInvestigators';
19
+
20
+ const props = withDefaults(defineProps<{ id: string; highlight?: string[]; lang?: 'fr' | 'en' }>(), {
21
+ highlight: () => [],
22
+ lang: undefined,
23
+ });
24
+
25
+ const {
26
+ findEuctInvestigatorsById,
27
+ resultsEuctInvestigators,
28
+ isLoadingQueryEuctInvestigators,
29
+ } = useEuctInvestigators();
30
+ const { pubmedFromIdsQuery } = usePubmed();
31
+
32
+ const pubmedIds = ref([] as any);
33
+
34
+ watch(
35
+ () => props.id,
36
+ async (id) => {
37
+ pubmedIds.value = [];
38
+ if (id) {
39
+ await findEuctInvestigatorsById({ id: id.toString() });
40
+
41
+ if (
42
+ resultsEuctInvestigators?.value?.pubmed_ids &&
43
+ resultsEuctInvestigators.value.pubmed_ids.length > 0
44
+ ) {
45
+ pubmedIds.value = resultsEuctInvestigators.value.pubmed_ids;
46
+ }
47
+ }
48
+ },
49
+ { immediate: true },
50
+ );
51
+ </script>
@@ -0,0 +1,62 @@
1
+ <!--
2
+ Onglet AAP (PHRC) de la fiche professionnel (porte de la page
3
+ hcps/[id]/appels-a-projet de France Augmented Science).
4
+ -->
5
+ <template>
6
+ <div class="oip-science">
7
+ <div v-if="!isLoading && results.length" class="oip_grid gap-24">
8
+ <RmResultsLine icon="Coins" :items="[{ count: results.length, label: $t('oipScience.resultKpis.projects', results.length) }]" />
9
+ <div v-for="(item, index) in results" :key="index">
10
+ <OipScienceAppelAProjetCards :data="item" :highlight="highlight" />
11
+ </div>
12
+ </div>
13
+ <RmLoadingState v-if="isLoading" :lines="3" :chart-height="240" />
14
+ <RmEmptyState
15
+ v-if="!isLoading && results.length === 0"
16
+ :title="$t('oipScience.common.noDataTitle')"
17
+ :text="$t('oipScience.common.noDataText')"
18
+ />
19
+ </div>
20
+ </template>
21
+
22
+ <script setup lang="ts">
23
+ import indexConfig from '../../../oip-science/indexConfig.json';
24
+ import useOipElastic from '../../../oip-science/composables/useOipElastic';
25
+
26
+ const props = withDefaults(defineProps<{ id: string; highlight?: string[]; lang?: 'fr' | 'en' }>(), {
27
+ highlight: () => [],
28
+ lang: undefined,
29
+ });
30
+
31
+ const { queryCustomElastic } = useOipElastic();
32
+
33
+ const isLoading = ref(true);
34
+ const results = ref<any[]>([]);
35
+
36
+ async function load(urlId: string) {
37
+ isLoading.value = true;
38
+ results.value = [];
39
+ try {
40
+ const res = await queryCustomElastic({
41
+ index: indexConfig.phrc.index,
42
+ cluster: indexConfig.phrc.cluster,
43
+ customQuery: {
44
+ from: 0,
45
+ query: {
46
+ term: { 'hcp_code.keyword': urlId },
47
+ },
48
+ size: 10000,
49
+ sort: [{ period: { order: 'desc' } }],
50
+ },
51
+ });
52
+
53
+ results.value = res?.results || [];
54
+ } catch (e) {
55
+ console.error(e);
56
+ } finally {
57
+ isLoading.value = false;
58
+ }
59
+ }
60
+
61
+ watch(() => props.id, (id) => { if (id) load(id); }, { immediate: true });
62
+ </script>
@@ -0,0 +1,237 @@
1
+ <!--
2
+ Carte d'un professionnel de sante (portage de components/hcps/Cards.vue de
3
+ France Augmented Science). Le menu d'export de la carte n'est pas repris.
4
+ -->
5
+ <template>
6
+ <RmResultCard
7
+ class="oip-science"
8
+ clickable
9
+ :lang="lang"
10
+ :link="detailsUrl"
11
+ @click="openCard($event, detailsUrl, openDetails)"
12
+ >
13
+ <template #code>
14
+ <RmCopyCode v-if="data?.hcp_code" label="RPPS" :value="String(data.hcp_code)" :lang="lang" />
15
+ </template>
16
+
17
+ <template #title>
18
+ <RmTextHighlight
19
+ :queries="highlight"
20
+ :text="ifNoRes(fullName)"
21
+ />
22
+ </template>
23
+
24
+ <template #subtitle>
25
+ {{ $t('oipScience.common.city') }}: {{ ifNoRes(primaryCity) }}
26
+ </template>
27
+
28
+ <template #actions>
29
+ <component
30
+ :is="projectButton"
31
+ v-if="projectButton"
32
+ :resource-id="hcpResourceId(data?.hcp_code)"
33
+ type="HCP"
34
+ :label="`${data?.hcp_first_name ?? ''} ${data?.hcp_family_name ?? ''}`.trim()"
35
+ compact
36
+ />
37
+ </template>
38
+
39
+ <template #meta>
40
+ <RmTag v-if="principalSpecialty" variant="blue">
41
+ {{ principalSpecialty }}
42
+ </RmTag>
43
+ <RmTag
44
+ v-for="(spec, i) in secondarySpecialties"
45
+ :key="i"
46
+ variant="gray"
47
+ >
48
+ {{ spec }}
49
+ </RmTag>
50
+ <!-- Fiche d'un centre : le match sur les essais de ce centre seul. -->
51
+ <template v-if="centerScore !== undefined">
52
+ <RmTag
53
+ v-if="centerScore !== null"
54
+ variant="blue"
55
+ :data-tooltip="$t('oipScience.common.centerMatchTooltip')"
56
+ >
57
+ {{ $t('oipScience.common.centerMatch', { score: Math.round(centerScore * 100) }) }}
58
+ </RmTag>
59
+ </template>
60
+ <OipScienceCommonMatchAvgTag
61
+ v-else-if="(data?.nct_name?.length || 0) + (data?.euct_name?.length || 0) + (data?.pubmed_name?.length || 0) > 0"
62
+ :nct-name="data?.nct_name"
63
+ :euct-name="data?.euct_name"
64
+ :pubmed-name="data?.pubmed_name"
65
+ />
66
+ <slot name="extra" />
67
+ </template>
68
+
69
+ <div class="oip_row gap-16 wrap">
70
+ <div class="kpi-block" v-if="(data?.nct_trial_count || 0) > 0">
71
+ <p class="kpi-label">🇺🇸 NCT</p>
72
+ <div class="kpi-item">
73
+ <p class="kpi-value">{{ formatNumber(data.nct_trial_count) }}</p>
74
+ <p class="kpi-sub">{{ $t('oipScience.kpi.trials') }}</p>
75
+ </div>
76
+ </div>
77
+
78
+ <div class="kpi-block" v-if="(data?.euct_trial_count || 0) > 0">
79
+ <p class="kpi-label">🇪🇺 EUCT (CTIS)</p>
80
+ <div class="kpi-item">
81
+ <p class="kpi-value">{{ formatNumber(data.euct_trial_count) }}</p>
82
+ <p class="kpi-sub">{{ $t('oipScience.kpi.trials') }}</p>
83
+ </div>
84
+ </div>
85
+
86
+ <div class="kpi-block" v-if="aapCount > 0">
87
+ <p class="kpi-label">📋 {{ $t('oipScience.common.aap') }}</p>
88
+ <div class="kpi-item">
89
+ <p class="kpi-value">{{ formatNumber(aapCount) }}</p>
90
+ <p class="kpi-sub">{{ $t('oipScience.kpi.studies') }}</p>
91
+ </div>
92
+ </div>
93
+
94
+ <div class="kpi-block" v-if="(data?.pubmed_trial_count || 0) > 0">
95
+ <p class="kpi-label">📚 PubMed</p>
96
+ <div class="kpi-item">
97
+ <p class="kpi-value">{{ formatNumber(data.pubmed_trial_count) }}</p>
98
+ <p class="kpi-sub">{{ $t('oipScience.kpi.citations') }}</p>
99
+ </div>
100
+ </div>
101
+
102
+ <div class="kpi-block" v-if="totalCount > 0">
103
+ <p class="kpi-label">📊 Total</p>
104
+ <div class="kpi-item">
105
+ <p class="kpi-value">{{ formatNumber(totalCount) }}</p>
106
+ <p class="kpi-sub">{{ $t('oipScience.kpi.participations') }}</p>
107
+ </div>
108
+ </div>
109
+ </div>
110
+
111
+ <template #footer>
112
+ <OipScienceCommonSource :sources="['RPPS']" :lang="lang" />
113
+ </template>
114
+ </RmResultCard>
115
+ </template>
116
+
117
+ <script setup lang="ts">
118
+ import type { PropType } from 'vue';
119
+ import { formatNumber, ifNoRes } from '../../../oip-science/utils/styleAndFormat';
120
+ import { openCard } from '../../../oip-science/utils/a-openCard';
121
+
122
+ const props = defineProps({
123
+ data: {
124
+ type: Object as () => any,
125
+ default: () => ({}),
126
+ },
127
+ aapCount: {
128
+ type: Number,
129
+ default: 0,
130
+ },
131
+ /**
132
+ * Score de match sur les essais d'un centre (0..1), a la place de la
133
+ * moyenne de tous les matchs. `null` : aucun essai commun, pas de tag.
134
+ * Absent : la moyenne habituelle.
135
+ */
136
+ centerScore: {
137
+ type: Number as PropType<number | null>,
138
+ default: undefined,
139
+ },
140
+ /** Termes de la recherche en cours, surlignes dans le nom. */
141
+ highlight: {
142
+ type: Array as PropType<string[]>,
143
+ default: () => [],
144
+ },
145
+ });
146
+
147
+ const nav = useOipResourceNav();
148
+ const { projectButton } = useOipResourceHooks();
149
+
150
+ /** L'`_id` d'un professionnel dans l'annuaire : `10_` puis le RPPS. */
151
+ function hcpResourceId(hcpCode: unknown) {
152
+ return hcpCode == null || hcpCode === '' ? '' : `10_${hcpCode}`;
153
+ }
154
+
155
+ const fullName = computed(() => {
156
+ return `${props.data?.hcp_family_name || ''} ${props.data?.hcp_first_name || ''}`.trim();
157
+ });
158
+
159
+ const principalSpecialty = computed(() => {
160
+ const specs = props.data?.specialty;
161
+ if (!Array.isArray(specs)) return null;
162
+ const principal = specs.find((s: any) => s.hcp_specialty_type === 'PRINCIPAL');
163
+ return principal?.hcp_specialty_label_regroup || null;
164
+ });
165
+
166
+ const secondarySpecialties = computed(() => {
167
+ const specs = props.data?.specialty;
168
+ if (!Array.isArray(specs)) return [];
169
+ return specs
170
+ .filter((s: any) => s.hcp_specialty_type !== 'PRINCIPAL')
171
+ .map((s: any) => s.hcp_specialty_label_regroup)
172
+ .filter(Boolean);
173
+ });
174
+
175
+ const primaryCity = computed(() => {
176
+ const addresses = props.data?.address;
177
+ if (!Array.isArray(addresses) || addresses.length === 0) return null;
178
+ return addresses[0]?.hcp_city || null;
179
+ });
180
+
181
+ const totalCount = computed(() => {
182
+ return (
183
+ (props.data?.nct_trial_count || 0)
184
+ + (props.data?.euct_trial_count || 0)
185
+ + (props.data?.pubmed_trial_count || 0)
186
+ + (props.aapCount || 0)
187
+ );
188
+ });
189
+
190
+ const { locale } = useI18n();
191
+ const lang = computed(() => (locale.value === 'en' ? 'en' : 'fr'));
192
+ const detailsUrl = computed(() =>
193
+ props.data?.hcp_code ? nav.href('HCP', hcpResourceId(props.data.hcp_code), 'informations') : '',
194
+ );
195
+ const openDetails = () => nav.open('HCP', hcpResourceId(props.data?.hcp_code), 'informations');
196
+ </script>
197
+
198
+ <style scoped>
199
+ .kpi-block {
200
+ display: flex;
201
+ flex-direction: column;
202
+ align-items: center;
203
+ gap: 2px;
204
+ padding: 0 12px;
205
+ min-width: 80px;
206
+ border-right: 1px solid var(--border-default);
207
+ }
208
+ .kpi-block:first-child {
209
+ padding-left: 0;
210
+ }
211
+ .kpi-block:last-child {
212
+ border-right: none;
213
+ }
214
+ .kpi-label {
215
+ font-size: 11px;
216
+ font-weight: 600;
217
+ color: var(--text-muted);
218
+ white-space: nowrap;
219
+ }
220
+ .kpi-item {
221
+ display: flex;
222
+ flex-direction: column;
223
+ align-items: center;
224
+ gap: 1px;
225
+ }
226
+ .kpi-value {
227
+ font-size: 13px;
228
+ font-weight: 700;
229
+ color: var(--text-primary);
230
+ }
231
+ .kpi-sub {
232
+ font-size: 10px;
233
+ color: var(--text-muted);
234
+ text-transform: uppercase;
235
+ letter-spacing: 0.5px;
236
+ }
237
+ </style>