@tekkare/romulus 0.1.251 → 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 (265) hide show
  1. package/dist/module.json +1 -1
  2. package/layer/app/app.config.ts +6 -0
  3. package/layer/app/components/OipPubmedSummary.vue +223 -0
  4. package/layer/app/components/OipResourceDrawer.vue +331 -0
  5. package/layer/app/components/OipResourceDrawerLink.vue +40 -0
  6. package/layer/app/components/OipResourceField.vue +41 -0
  7. package/layer/app/components/OipResourceGenericCard.vue +54 -0
  8. package/layer/app/components/OipResourceSource.vue +50 -0
  9. package/layer/app/components/OipResourceTags.vue +65 -0
  10. package/layer/app/components/OipResourceView.vue +107 -0
  11. package/layer/app/components/oip-drugs/fiches/AssociationFiche.vue +775 -0
  12. package/layer/app/components/oip-drugs/fiches/BrandFiche.vue +1111 -0
  13. package/layer/app/components/oip-drugs/fiches/IndicationFiche.vue +182 -0
  14. package/layer/app/components/oip-drugs/fiches/JoFiche.vue +101 -0
  15. package/layer/app/components/oip-drugs/fiches/PndsFiche.vue +279 -0
  16. package/layer/app/components/oip-drugs/heart/JoCard.vue +314 -0
  17. package/layer/app/components/oip-drugs/heart/TextHighlight.vue +326 -0
  18. package/layer/app/components/oip-drugs/heart/ansm/BrandCard.vue +187 -0
  19. package/layer/app/components/oip-drugs/heart/ansm/CisDetail.vue +363 -0
  20. package/layer/app/components/oip-drugs/heart/ansm/CisTable.vue +167 -0
  21. package/layer/app/components/oip-drugs/heart/associations/NationalAssemblyCard.vue +373 -0
  22. package/layer/app/components/oip-drugs/heart/associations/NationalAssemblyFiche.vue +372 -0
  23. package/layer/app/components/oip-drugs/heart/associations/TranscriptionCard.vue +55 -0
  24. package/layer/app/components/oip-drugs/heart/elastic/SourceContainerElastic.vue +103 -0
  25. package/layer/app/components/oip-drugs/heart/france/BrandGroupCard.vue +450 -0
  26. package/layer/app/components/oip-drugs/heart/mitm/Card.vue +199 -0
  27. package/layer/app/components/oip-drugs/heart/mitm/Source.vue +23 -0
  28. package/layer/app/components/oip-drugs/heart/mitm/details/Overview.vue +381 -0
  29. package/layer/app/components/oip-drugs/heart/put/Card.vue +212 -0
  30. package/layer/app/components/oip-drugs/heart/results/AccesCard.vue +696 -0
  31. package/layer/app/components/oip-drugs/heart/results/AlertCard.vue +342 -0
  32. package/layer/app/components/oip-drugs/heart/results/AsmrCursor.vue +229 -0
  33. package/layer/app/components/oip-drugs/heart/results/EvalCard.vue +370 -0
  34. package/layer/app/components/oip-drugs/heart/results/IndicCard.vue +743 -0
  35. package/layer/app/components/oip-drugs/heart/results/MatchExplain.vue +243 -0
  36. package/layer/app/components/oip-drugs/heart/results/PrefRows.vue +105 -0
  37. package/layer/app/components/oip-drugs/heart/results/details/HasHistory.vue +487 -0
  38. package/layer/app/components/oip-drugs/heart/results/details/InternationalCountryCard.vue +461 -0
  39. package/layer/app/components/oip-drugs/heart/results/details/InternationalOverview.vue +200 -0
  40. package/layer/app/components/oip-drugs/heart/results/details/InternationalPriceDrawer.vue +647 -0
  41. package/layer/app/components/oip-drugs/heart/results/details/Monograph.vue +128 -0
  42. package/layer/app/components/oip-drugs/heart/results/details/OpinionDrawer.vue +535 -0
  43. package/layer/app/components/oip-drugs/heart/results/details/PresentationDrawer.vue +738 -0
  44. package/layer/app/components/oip-drugs/heart/results/details/Price.vue +227 -0
  45. package/layer/app/components/oip-drugs/heart/results/details/PriceOverview.vue +1261 -0
  46. package/layer/app/components/oip-drugs/heart/results/details/RecordDrawer.vue +494 -0
  47. package/layer/app/components/oip-drugs/heart/results/details/RecordList.vue +426 -0
  48. package/layer/app/components/oip-drugs/heart/results/les/Card.vue +340 -0
  49. package/layer/app/components/oip-drugs/heart/results/les/Drawer.vue +67 -0
  50. package/layer/app/components/oip-drugs/heart/results/les/IndicationDetail.vue +149 -0
  51. package/layer/app/components/oip-drugs/heart/results/les/Source.vue +20 -0
  52. package/layer/app/components/oip-drugs/heart/results/les/SourceTag.vue +39 -0
  53. package/layer/app/components/oip-drugs/heart/searchPage/DynamicSource.vue +29 -0
  54. package/layer/app/components/oip-drugs/medicam/market/Chart.vue +121 -0
  55. package/layer/app/components/oip-drugs/outpatient/ProductEvolution.vue +236 -0
  56. package/layer/app/components/oip-drugs/resources/Ansm.vue +75 -0
  57. package/layer/app/components/oip-drugs/resources/Association.vue +30 -0
  58. package/layer/app/components/oip-drugs/resources/Brand.vue +65 -0
  59. package/layer/app/components/oip-drugs/resources/Contribution.vue +216 -0
  60. package/layer/app/components/oip-drugs/resources/Hospital.vue +151 -0
  61. package/layer/app/components/oip-drugs/resources/Indication.vue +54 -0
  62. package/layer/app/components/oip-drugs/resources/Jo.vue +57 -0
  63. package/layer/app/components/oip-drugs/resources/Medicam.vue +140 -0
  64. package/layer/app/components/oip-drugs/resources/Mitm.vue +84 -0
  65. package/layer/app/components/oip-drugs/resources/NationalAssembly.vue +93 -0
  66. package/layer/app/components/oip-drugs/resources/Outpatient.vue +97 -0
  67. package/layer/app/components/oip-drugs/resources/Pnds.vue +24 -0
  68. package/layer/app/components/oip-drugs/resources/Price.vue +106 -0
  69. package/layer/app/components/oip-drugs/resources/Put.vue +143 -0
  70. package/layer/app/components/oip-science/appel-a-projet/Cards.vue +162 -0
  71. package/layer/app/components/oip-science/clinical-trials/Cards.vue +382 -0
  72. package/layer/app/components/oip-science/clinical-trials/CardsGlobal.vue +273 -0
  73. package/layer/app/components/oip-science/clinical-trials/LinkedList.vue +366 -0
  74. package/layer/app/components/oip-science/clinical-trials/PairBadge.vue +25 -0
  75. package/layer/app/components/oip-science/clinical-trials/PairBody.vue +182 -0
  76. package/layer/app/components/oip-science/clinical-trials/SitesDrawer.vue +95 -0
  77. package/layer/app/components/oip-science/common/Form.vue +73 -0
  78. package/layer/app/components/oip-science/common/MatchAvgTag.vue +283 -0
  79. package/layer/app/components/oip-science/common/NoData.vue +16 -0
  80. package/layer/app/components/oip-science/common/ScoreBadge.vue +35 -0
  81. package/layer/app/components/oip-science/common/Source.vue +31 -0
  82. package/layer/app/components/oip-science/common/TableTags.vue +279 -0
  83. package/layer/app/components/oip-science/common/Timeline.vue +104 -0
  84. package/layer/app/components/oip-science/common/ToolTips.vue +89 -0
  85. package/layer/app/components/oip-science/cross/publicationPubmed.vue +484 -0
  86. package/layer/app/components/oip-science/crossData/CrossDataLocations.vue +71 -0
  87. package/layer/app/components/oip-science/ctgov/Investigators.vue +148 -0
  88. package/layer/app/components/oip-science/ctgov/Locations.vue +102 -0
  89. package/layer/app/components/oip-science/ctgov/Publications.vue +52 -0
  90. package/layer/app/components/oip-science/ctgov/Sponsors.vue +66 -0
  91. package/layer/app/components/oip-science/ctgov/StudyDescription.vue +1136 -0
  92. package/layer/app/components/oip-science/ctgov-centers/ClinicalTrials.vue +40 -0
  93. package/layer/app/components/oip-science/ctgov-centers/Publications.vue +50 -0
  94. package/layer/app/components/oip-science/ctgov-investigators/ClinicalTrials.vue +43 -0
  95. package/layer/app/components/oip-science/ctgov-investigators/Informations.vue +171 -0
  96. package/layer/app/components/oip-science/ctgov-investigators/Publications.vue +44 -0
  97. package/layer/app/components/oip-science/elastic/DateRangeFilter.vue +209 -0
  98. package/layer/app/components/oip-science/elastic/Filter.vue +719 -0
  99. package/layer/app/components/oip-science/elastic/MatchExplain.vue +152 -0
  100. package/layer/app/components/oip-science/establishments/Cards.vue +183 -0
  101. package/layer/app/components/oip-science/establishments/ClinicalTrials.vue +62 -0
  102. package/layer/app/components/oip-science/establishments/Hcps.vue +227 -0
  103. package/layer/app/components/oip-science/establishments/Informations.vue +263 -0
  104. package/layer/app/components/oip-science/establishments/LinkedList.vue +153 -0
  105. package/layer/app/components/oip-science/establishments/MatchedLabels.vue +194 -0
  106. package/layer/app/components/oip-science/establishments/PublicFinance.vue +62 -0
  107. package/layer/app/components/oip-science/euct/Investigators.vue +125 -0
  108. package/layer/app/components/oip-science/euct/Locations.vue +102 -0
  109. package/layer/app/components/oip-science/euct/Products.vue +101 -0
  110. package/layer/app/components/oip-science/euct/Publications.vue +89 -0
  111. package/layer/app/components/oip-science/euct/Sponsors.vue +86 -0
  112. package/layer/app/components/oip-science/euct/StudyDescription.vue +1075 -0
  113. package/layer/app/components/oip-science/euct-centers/ClinicalTrials.vue +40 -0
  114. package/layer/app/components/oip-science/euct-centers/Publications.vue +55 -0
  115. package/layer/app/components/oip-science/euct-investigators/ClinicalTrials.vue +41 -0
  116. package/layer/app/components/oip-science/euct-investigators/Informations.vue +171 -0
  117. package/layer/app/components/oip-science/euct-investigators/Publications.vue +51 -0
  118. package/layer/app/components/oip-science/hcps/AppelsAProjet.vue +62 -0
  119. package/layer/app/components/oip-science/hcps/Cards.vue +237 -0
  120. package/layer/app/components/oip-science/hcps/ClinicalTrials.vue +78 -0
  121. package/layer/app/components/oip-science/hcps/Informations.vue +296 -0
  122. package/layer/app/components/oip-science/hcps/LinkedList.vue +153 -0
  123. package/layer/app/components/oip-science/hcps/MatchedLabels.vue +207 -0
  124. package/layer/app/components/oip-science/hcps/Pubmed.vue +128 -0
  125. package/layer/app/components/oip-science/local/SliderTabs.vue +99 -0
  126. package/layer/app/components/oip-science/local/SliderTabsFull.vue +135 -0
  127. package/layer/app/components/oip-science/pubmed/Authors.vue +128 -0
  128. package/layer/app/components/oip-science/pubmed/Cards.vue +417 -0
  129. package/layer/app/components/oip-science/pubmed/ClinicalTrials.vue +71 -0
  130. package/layer/app/components/oip-science/resources/Phrc.vue +39 -0
  131. package/layer/app/composables/useOipChapterScroll.ts +43 -0
  132. package/layer/app/composables/useOipResourceHooks.ts +27 -0
  133. package/layer/app/composables/useOipResourceNav.ts +66 -0
  134. package/layer/app/composables/useOipResourceViews.ts +117 -0
  135. package/layer/app/composables/useOipResources.ts +83 -0
  136. package/layer/app/oip-drugs/PORTING.md +120 -0
  137. package/layer/app/oip-drugs/composables/useAssociationDetail.ts +220 -0
  138. package/layer/app/oip-drugs/composables/useAssociationExport.ts +63 -0
  139. package/layer/app/oip-drugs/composables/useAssociationLookup.ts +105 -0
  140. package/layer/app/oip-drugs/composables/useCardPrefOptions.ts +201 -0
  141. package/layer/app/oip-drugs/composables/useCurrency.ts +121 -0
  142. package/layer/app/oip-drugs/composables/useDirectusSources.ts +224 -0
  143. package/layer/app/oip-drugs/composables/useHeartBrandMatches.ts +112 -0
  144. package/layer/app/oip-drugs/composables/useHeartDetailSearches.ts +479 -0
  145. package/layer/app/oip-drugs/composables/useHeartIntlApprovals.ts +661 -0
  146. package/layer/app/oip-drugs/composables/useHeartLesIndication.ts +168 -0
  147. package/layer/app/oip-drugs/composables/useHeartMatchExplain.ts +231 -0
  148. package/layer/app/oip-drugs/composables/useHeartReports.ts +239 -0
  149. package/layer/app/oip-drugs/composables/useHeartSearchFields.ts +233 -0
  150. package/layer/app/oip-drugs/composables/useMergeByKey.ts +23 -0
  151. package/layer/app/oip-drugs/composables/useOipDrugsElastic.ts +621 -0
  152. package/layer/app/oip-drugs/composables/usePageEmpty.ts +58 -0
  153. package/layer/app/oip-drugs/composables/v-useSalesSource.ts +64 -0
  154. package/layer/app/oip-drugs/drugs.css +500 -0
  155. package/layer/app/oip-drugs/esIndices.ts +322 -0
  156. package/layer/app/oip-drugs/kinds.ts +264 -0
  157. package/layer/app/oip-drugs/locales/en.json +1571 -0
  158. package/layer/app/oip-drugs/locales/fr.json +1571 -0
  159. package/layer/app/oip-drugs/monographs/blincyto-has.vue +289 -0
  160. package/layer/app/oip-drugs/monographs/darzalex-has.vue +276 -0
  161. package/layer/app/oip-drugs/monographs/dupixent-has.vue +216 -0
  162. package/layer/app/oip-drugs/monographs/enhertu-has.vue +280 -0
  163. package/layer/app/oip-drugs/monographs/has-sein-2023.vue +1649 -0
  164. package/layer/app/oip-drugs/monographs/ibrance-has.vue +277 -0
  165. package/layer/app/oip-drugs/monographs/imfinzi-has.vue +293 -0
  166. package/layer/app/oip-drugs/monographs/keytruda-has.vue +334 -0
  167. package/layer/app/oip-drugs/monographs/kisqali-has.vue +201 -0
  168. package/layer/app/oip-drugs/monographs/opdivo-has.vue +231 -0
  169. package/layer/app/oip-drugs/monographs/ozempic-has.vue +186 -0
  170. package/layer/app/oip-drugs/monographs/tecentriq-has.vue +312 -0
  171. package/layer/app/oip-drugs/monographs/yescarta-has.vue +272 -0
  172. package/layer/app/oip-drugs/types/elastic.ts +113 -0
  173. package/layer/app/oip-drugs/types/es/agencies.ts +152 -0
  174. package/layer/app/oip-drugs/types/es/directory.ts +54 -0
  175. package/layer/app/oip-drugs/types/es/docByIndex.ts +151 -0
  176. package/layer/app/oip-drugs/types/es/openmedic.ts +67 -0
  177. package/layer/app/oip-drugs/types/es/outpatient.ts +71 -0
  178. package/layer/app/oip-drugs/types/es/portal.ts +130 -0
  179. package/layer/app/oip-drugs/types/es/retail.ts +107 -0
  180. package/layer/app/oip-drugs/types/es/statistics.ts +29 -0
  181. package/layer/app/oip-drugs/types/heart/CurrencyRate.ts +16 -0
  182. package/layer/app/oip-drugs/types/heart/ansm.ts +106 -0
  183. package/layer/app/oip-drugs/types/heart/tag.ts +29 -0
  184. package/layer/app/oip-drugs/utils/associationFields.ts +118 -0
  185. package/layer/app/oip-drugs/utils/contributions.ts +36 -0
  186. package/layer/app/oip-drugs/utils/countryMapping.ts +387 -0
  187. package/layer/app/oip-drugs/utils/esHighlight.ts +21 -0
  188. package/layer/app/oip-drugs/utils/exportSheets.ts +57 -0
  189. package/layer/app/oip-drugs/utils/heartIntlPrice.ts +228 -0
  190. package/layer/app/oip-drugs/utils/heartStyleAndFormat.ts +262 -0
  191. package/layer/app/oip-drugs/utils/heartStyleAnsm.ts +71 -0
  192. package/layer/app/oip-drugs/utils/latestDate.ts +31 -0
  193. package/layer/app/oip-drugs/utils/p-heartCardTags.ts +53 -0
  194. package/layer/app/oip-drugs/utils/priceExport.ts +269 -0
  195. package/layer/app/oip-drugs/utils/q-hasRatings.ts +43 -0
  196. package/layer/app/oip-drugs/utils/s-openCard.ts +20 -0
  197. package/layer/app/oip-drugs/utils/sourceUuids.ts +155 -0
  198. package/layer/app/oip-drugs/utils/styleAndFormat.ts +40 -0
  199. package/layer/app/oip-drugs/utils/v-salesSeries.ts +156 -0
  200. package/layer/app/oip-drugs/utils/v-scopeTags.ts +23 -0
  201. package/layer/app/oip-science/PORTING.md +93 -0
  202. package/layer/app/oip-science/assets/smartSelection.json +428 -0
  203. package/layer/app/oip-science/composables/useAuthorMatching.ts +342 -0
  204. package/layer/app/oip-science/composables/useCTCenter.ts +107 -0
  205. package/layer/app/oip-science/composables/useCTInvestigators.ts +107 -0
  206. package/layer/app/oip-science/composables/useEstablishmentCrossData.ts +139 -0
  207. package/layer/app/oip-science/composables/useEstablishmentMatching.ts +176 -0
  208. package/layer/app/oip-science/composables/useEuct.ts +418 -0
  209. package/layer/app/oip-science/composables/useEuctCenter.ts +107 -0
  210. package/layer/app/oip-science/composables/useEuctInvestigators.ts +107 -0
  211. package/layer/app/oip-science/composables/useGlobalClinicalTrials.ts +624 -0
  212. package/layer/app/oip-science/composables/useLinkedTrials.ts +83 -0
  213. package/layer/app/oip-science/composables/useOipElastic.ts +658 -0
  214. package/layer/app/oip-science/composables/useOipSearchExplain.ts +166 -0
  215. package/layer/app/oip-science/composables/usePubmed.ts +487 -0
  216. package/layer/app/oip-science/composables/useSearchFields.ts +153 -0
  217. package/layer/app/oip-science/indexConfig.json +794 -0
  218. package/layer/app/oip-science/locales/en.json +483 -0
  219. package/layer/app/oip-science/locales/fr.json +483 -0
  220. package/layer/app/oip-science/science.css +1182 -0
  221. package/layer/app/oip-science/utils/a-openCard.ts +23 -0
  222. package/layer/app/oip-science/utils/b-openCard.ts +35 -0
  223. package/layer/app/oip-science/utils/c-filterContext.ts +81 -0
  224. package/layer/app/oip-science/utils/f-types.ts +241 -0
  225. package/layer/app/oip-science/utils/frDiseaseTerms.ts +269 -0
  226. package/layer/app/oip-science/utils/matchMethod.ts +53 -0
  227. package/layer/app/oip-science/utils/sliderTabs.ts +13 -0
  228. package/layer/app/oip-science/utils/sources.ts +15 -0
  229. package/layer/app/oip-science/utils/styleAndFormat.ts +608 -0
  230. package/layer/app/oip-science/utils/toPresets.ts +7 -0
  231. package/layer/app/oip-science/utils/valueTable.ts +126 -0
  232. package/layer/app/plugins/oip-science-i18n.ts +17 -0
  233. package/layer/app/utils/oipFicheRoutes.ts +118 -0
  234. package/layer/app/utils/oipResources.ts +440 -0
  235. package/layer/nuxt.config.ts +22 -2
  236. package/layer/public/reports/blincyto-has.html +292 -0
  237. package/layer/public/reports/blincyto-has.pdf +0 -0
  238. package/layer/public/reports/darzalex-has.html +279 -0
  239. package/layer/public/reports/darzalex-has.pdf +0 -0
  240. package/layer/public/reports/dupixent-has.html +217 -0
  241. package/layer/public/reports/dupixent-has.pdf +0 -0
  242. package/layer/public/reports/enhertu-has.html +283 -0
  243. package/layer/public/reports/enhertu-has.pdf +0 -0
  244. package/layer/public/reports/has-sein-2023.html +1639 -0
  245. package/layer/public/reports/ibrance-has.html +280 -0
  246. package/layer/public/reports/ibrance-has.pdf +0 -0
  247. package/layer/public/reports/imfinzi-has.html +297 -0
  248. package/layer/public/reports/imfinzi-has.pdf +0 -0
  249. package/layer/public/reports/keytruda-has.html +337 -0
  250. package/layer/public/reports/keytruda-has.pdf +0 -0
  251. package/layer/public/reports/kisqali-has.html +202 -0
  252. package/layer/public/reports/kisqali-has.pdf +0 -0
  253. package/layer/public/reports/opdivo-has.html +232 -0
  254. package/layer/public/reports/opdivo-has.pdf +0 -0
  255. package/layer/public/reports/ozempic-has.html +188 -0
  256. package/layer/public/reports/ozempic-has.pdf +0 -0
  257. package/layer/public/reports/tecentriq-has.html +315 -0
  258. package/layer/public/reports/tecentriq-has.pdf +0 -0
  259. package/layer/public/reports/yescarta-has.html +275 -0
  260. package/layer/public/reports/yescarta-has.pdf +0 -0
  261. package/layer/server/api/oip/es.post.ts +99 -0
  262. package/layer/server/api/oip/pdf.get.ts +70 -0
  263. package/layer/server/api/oip/reports.get.ts +98 -0
  264. package/layer/server/api/oip/resource-types.get.ts +22 -0
  265. package/package.json +1 -1
@@ -0,0 +1,125 @@
1
+ <!--
2
+ Onglet « Investigateurs » d'un essai EUCT (portage de la page
3
+ /euct/[id]/investigators de France Augmented Science).
4
+ -->
5
+ <template>
6
+ <div class="oip-science">
7
+ <OipScienceHcpsLinkedList
8
+ :people="people"
9
+ :title="$t('oipScience.trial.investigatorsAndContacts')"
10
+ :sources="['EUCT']"
11
+ index-last-update="EUCT"
12
+ :loading="isLoadingQueryEuct || isLoadingMatches"
13
+ />
14
+ </div>
15
+ </template>
16
+
17
+ <script setup lang="ts">
18
+ import useEuct from '../../../oip-science/composables/useEuct';
19
+ import useAuthorMatching from '../../../oip-science/composables/useAuthorMatching';
20
+ import type { LinkedPerson } from '../hcps/LinkedList.vue';
21
+
22
+ const props = withDefaults(
23
+ defineProps<{
24
+ /** Numero EUCT de l'essai. */
25
+ id: string;
26
+ highlight?: string[];
27
+ lang?: 'fr' | 'en';
28
+ }>(),
29
+ { highlight: () => [], lang: 'fr' },
30
+ );
31
+
32
+ const { findEuctById, resultsQueryEuct, isLoadingQueryEuct } = useEuct();
33
+ const { normalize, fetchEuctHcpMatches } = useAuthorMatching();
34
+
35
+ type HcpMatch = Awaited<ReturnType<typeof fetchEuctHcpMatches>>[number];
36
+ const hcpMatches = ref<HcpMatch[]>([]);
37
+ const hcpByName = ref<Map<string, HcpMatch>>(new Map());
38
+ const isLoadingMatches = ref(true);
39
+
40
+ async function loadMatchedHcps(euctId: string) {
41
+ const matches = await fetchEuctHcpMatches(euctId);
42
+ hcpMatches.value = matches;
43
+ const map = new Map<string, HcpMatch>();
44
+ for (const m of matches) {
45
+ const first = normalize(m.first_name);
46
+ const family = normalize(m.family_name);
47
+ if (first && family) {
48
+ map.set(first + family, m);
49
+ map.set(family + first, m);
50
+ }
51
+ if (family) map.set(family, m);
52
+ }
53
+ hcpByName.value = map;
54
+ }
55
+
56
+ function findHcpMatch(name: string | null | undefined): HcpMatch | null {
57
+ if (!name) return null;
58
+ const n = normalize(name);
59
+ if (!n) return null;
60
+ const direct = hcpByName.value.get(n);
61
+ if (direct) return direct;
62
+ for (const m of hcpMatches.value) {
63
+ const family = normalize(m.family_name);
64
+ if (family && family.length >= 3 && n.includes(family)) {
65
+ const first = normalize(m.first_name);
66
+ if (!first || first.length < 2 || n.includes(first.slice(0, 2))) {
67
+ return m;
68
+ }
69
+ }
70
+ }
71
+ return null;
72
+ }
73
+
74
+ async function load() {
75
+ if (!props.id) return;
76
+ const euctId = props.id.toString();
77
+ isLoadingMatches.value = true;
78
+ await Promise.all([
79
+ findEuctById({ id: euctId, source: ['hcps', 'sites'] }),
80
+ loadMatchedHcps(euctId).finally(() => {
81
+ isLoadingMatches.value = false;
82
+ }),
83
+ ]);
84
+ }
85
+
86
+ onMounted(load);
87
+ watch(() => props.id, load);
88
+
89
+ const people = computed<LinkedPerson[]>(() => {
90
+ const seen = new Set<string>();
91
+ const rows: LinkedPerson[] = (((resultsQueryEuct.value as any)?.hcps as any[]) || []).map((item) => {
92
+ const name = `${item.title ? item.title + ' ' : ''}${item.first_name || ''} ${item.last_name || ''}`.trim();
93
+ const match = findHcpMatch(`${item.first_name || ''} ${item.last_name || ''}`);
94
+ if (match) seen.add(match.hcp_code);
95
+ return {
96
+ name: name || null,
97
+ role: item.department_name || null,
98
+ country: item.country || null,
99
+ rpps: match?.hcp_code || null,
100
+ score: match?.score ?? null,
101
+ };
102
+ });
103
+
104
+ // Professionnels rapproches par l'index mais absents du registre par leur nom.
105
+ for (const m of hcpMatches.value) {
106
+ if (seen.has(m.hcp_code)) continue;
107
+ rows.push({
108
+ name: `${m.family_name} ${m.first_name}`.trim(),
109
+ role: m.specialty.find((s: any) => s.type === 'PRINCIPAL')?.label || m.specialty[0]?.label || null,
110
+ country: 'France',
111
+ rpps: m.hcp_code,
112
+ score: m.score,
113
+ });
114
+ }
115
+
116
+ // Une personne par RPPS, sinon par nom ; la France en tete.
117
+ const unique = new Map<string, LinkedPerson>();
118
+ for (const row of rows) {
119
+ const key = row.rpps ? `rpps:${row.rpps}` : `name:${normalize(row.name || '')}`;
120
+ if (key === 'name:' || unique.has(key)) continue;
121
+ unique.set(key, row);
122
+ }
123
+ return [...unique.values()].sort((a, b) => (a.country === 'France' ? 0 : 1) - (b.country === 'France' ? 0 : 1));
124
+ });
125
+ </script>
@@ -0,0 +1,102 @@
1
+ <!--
2
+ Onglet « Sites » d'un essai EUCT (portage de la page
3
+ /euct/[id]/locations de France Augmented Science).
4
+ -->
5
+ <template>
6
+ <div class="oip-science">
7
+ <OipScienceEstablishmentsLinkedList
8
+ :locations="locations"
9
+ :title="$t('oipScience.trial.locations')"
10
+ :sources="['EUCT']"
11
+ index-last-update="EUCT"
12
+ :loading="isLoadingQueryEuct || isLoadingMatches"
13
+ />
14
+ </div>
15
+ </template>
16
+
17
+ <script setup lang="ts">
18
+ import useEuct from '../../../oip-science/composables/useEuct';
19
+ import useAuthorMatching from '../../../oip-science/composables/useAuthorMatching';
20
+ import useEstablishmentMatching from '../../../oip-science/composables/useEstablishmentMatching';
21
+ import type { LinkedLocation } from '../establishments/LinkedList.vue';
22
+
23
+ const props = withDefaults(
24
+ defineProps<{
25
+ /** Numero EUCT de l'essai. */
26
+ id: string;
27
+ highlight?: string[];
28
+ lang?: 'fr' | 'en';
29
+ }>(),
30
+ { highlight: () => [], lang: 'fr' },
31
+ );
32
+
33
+ const { findEuctById, resultsQueryEuct, isLoadingQueryEuct } = useEuct();
34
+ const { normalize } = useAuthorMatching();
35
+ const { fetchEuctHcoMatches } = useEstablishmentMatching();
36
+
37
+ // Etablissements rapproches de l'essai (index hco__euct). Chaque entree porte
38
+ // le libelle EUCT d'origine dans `name` : lien site <-> HCO un a un.
39
+ type TrialHcoMatch = Awaited<ReturnType<typeof fetchEuctHcoMatches>>[number];
40
+ const hcoMatches = ref<TrialHcoMatch[]>([]);
41
+ const matchByName = ref<Map<string, TrialHcoMatch>>(new Map());
42
+ const isLoadingMatches = ref(true);
43
+
44
+ async function loadHcoMatches(euctId: string) {
45
+ const matches = await fetchEuctHcoMatches(euctId);
46
+ hcoMatches.value = matches;
47
+ const map = new Map<string, TrialHcoMatch>();
48
+ for (const m of matches) {
49
+ const key = normalize(m.name || '');
50
+ if (key) map.set(key, m);
51
+ }
52
+ matchByName.value = map;
53
+ }
54
+
55
+ async function load() {
56
+ if (!props.id) return;
57
+ const euctId = props.id.toString();
58
+ isLoadingMatches.value = true;
59
+ await Promise.all([
60
+ findEuctById({ id: euctId, source: ['sites'] }),
61
+ loadHcoMatches(euctId).finally(() => {
62
+ isLoadingMatches.value = false;
63
+ }),
64
+ ]);
65
+ }
66
+
67
+ onMounted(load);
68
+ watch(() => props.id, load);
69
+
70
+ const locations = computed<LinkedLocation[]>(() => {
71
+ const sites: any[] = (resultsQueryEuct.value as any)?.sites || [];
72
+ const seen = new Set<string>();
73
+
74
+ // 1. Les sites EUCT, la France en tete, enrichis du FINESS rapproche.
75
+ const rows: LinkedLocation[] = [...sites]
76
+ .sort((a, b) => (a.country === 'France' ? 0 : 1) - (b.country === 'France' ? 0 : 1))
77
+ .map((item) => {
78
+ const match = matchByName.value.get(normalize(item.organisation_name || ''));
79
+ if (match?.hco_et_code) seen.add(match.hco_et_code);
80
+ return {
81
+ name: item.organisation_name,
82
+ country: item.country,
83
+ city: item.city,
84
+ finess: match?.hco_et_code || null,
85
+ score: typeof match?.score === 'number' ? match.score : null,
86
+ };
87
+ });
88
+
89
+ // 2. Les etablissements rapproches qu'aucun site n'a repris.
90
+ for (const m of hcoMatches.value) {
91
+ if (!m.hco_et_code || seen.has(m.hco_et_code)) continue;
92
+ rows.push({
93
+ name: m.name || m.hco_et_label || '',
94
+ country: 'France',
95
+ city: m.hco_et_city || '',
96
+ finess: m.hco_et_code,
97
+ score: typeof m.score === 'number' ? m.score : null,
98
+ });
99
+ }
100
+ return rows;
101
+ });
102
+ </script>
@@ -0,0 +1,101 @@
1
+ <!--
2
+ Onglet « Produits » d'un essai EUCT (portage de la page
3
+ /euct/[id]/products de France Augmented Science).
4
+ -->
5
+ <template>
6
+ <div class="oip-science">
7
+ <RmTableCard v-if="loaded && !isLoadingQueryEuct">
8
+ <template #header>
9
+ <div>
10
+ <h3 class="rm-table-card__title">{{ $t('oipScience.trial.products') }}</h3>
11
+ <p class="rm-table-card__context">
12
+ {{ ifNoRes(getContent.length, 'number') }} {{ $t('oipScience.trial.resultsCount') }}
13
+ </p>
14
+ <OipScienceCommonSource :sources="['EUCT']" :lang="lang" />
15
+ </div>
16
+ </template>
17
+ <RmTable :columns="table.columns" :rows="table.rows" search>
18
+ <template v-for="key in table.typeKeys.Highlight" :key="key" #[key]="{ value }">
19
+ <RmTextHighlight :queries="highlight" :text="value" />
20
+ </template>
21
+ <template v-for="key in table.typeKeys.Tags" :key="key" #[key]="{ value }">
22
+ <RmTag v-if="value" variant="blue" style="width: max-content">
23
+ {{ $t('oipScience.trial.orphanDrug') }}
24
+ </RmTag>
25
+ <p v-else>-</p>
26
+ </template>
27
+ </RmTable>
28
+ </RmTableCard>
29
+ <RmLoadingState v-else :lines="3" :chart-height="240" />
30
+ </div>
31
+ </template>
32
+
33
+ <script setup lang="ts">
34
+ import useEuct from '../../../oip-science/composables/useEuct';
35
+ import { ifNoRes } from '../../../oip-science/utils/styleAndFormat';
36
+ import { valueTable } from '../../../oip-science/utils/valueTable';
37
+
38
+ const props = withDefaults(
39
+ defineProps<{
40
+ /** Numero EUCT de l'essai. */
41
+ id: string;
42
+ /** Termes de la recherche en cours, surlignes dans le tableau. */
43
+ highlight?: string[];
44
+ lang?: 'fr' | 'en';
45
+ }>(),
46
+ { highlight: () => [], lang: 'fr' },
47
+ );
48
+
49
+ const { t } = useI18n();
50
+ const { findEuctById, resultsQueryEuct, isLoadingQueryEuct } = useEuct();
51
+
52
+ // Le composable part a `false` : le tableau attend la premiere lecture.
53
+ const loaded = ref(false);
54
+
55
+ async function load() {
56
+ if (!props.id) return;
57
+ await findEuctById({ id: props.id.toString(), source: ['products'] });
58
+ loaded.value = true;
59
+ }
60
+
61
+ onMounted(load);
62
+ watch(() => props.id, load);
63
+
64
+ // Sept colonnes dans l'en-tete, sept types : le tableau Auriga n'en declarait
65
+ // que six, le tag « orphelin » se posait sur le code ATC et le booleen sortait brut.
66
+ const getColumnType = computed(() => ['Highlight', 'Highlight', 'Highlight', 'Highlight', 'Highlight', 'Highlight', 'Tags']);
67
+
68
+ const getHeader = computed(() => [
69
+ 'euMpNumber',
70
+ t('oipScience.trial.role'),
71
+ t('oipScience.trial.productName'),
72
+ t('oipScience.trial.activeSubstance'),
73
+ t('oipScience.trial.atcName'),
74
+ t('oipScience.trial.atcCode'),
75
+ t('oipScience.trial.tags'),
76
+ ]);
77
+
78
+ const getContent = computed(() => {
79
+ const products = (resultsQueryEuct.value as any)?.products;
80
+ if (products && products.length > 0) {
81
+ return products.map((item: any) => ({
82
+ values: [
83
+ item?.productDictionaryInfo?.euMpNumber,
84
+ item?.Role,
85
+ item?.productDictionaryInfo?.prodName,
86
+ item?.productDictionaryInfo?.activeSubstanceName,
87
+ item?.productDictionaryInfo?.atcName,
88
+ item?.productDictionaryInfo?.atcCode,
89
+ item?.isOrphanDesignation,
90
+ ],
91
+ }));
92
+ }
93
+ return [];
94
+ });
95
+
96
+ const table = computed(() =>
97
+ valueTable(getHeader.value, getContent.value, getColumnType.value, {
98
+ align: ['left', 'left', 'left', 'left', 'left', 'left', 'right'],
99
+ }),
100
+ );
101
+ </script>
@@ -0,0 +1,89 @@
1
+ <!--
2
+ Onglet « Publications » d'un essai EUCT (portage de la page
3
+ /euct/[id]/publications de France Augmented Science) : les publications
4
+ PubMed que l'essai cite.
5
+ -->
6
+ <template>
7
+ <div class="oip-science">
8
+ <div v-if="!isLoading && pubmedResults.length" class="oip_grid gap-24">
9
+ <RmResultsLine
10
+ icon="Article"
11
+ :items="[{ count: pubmedResults.length, label: $t('oipScience.resultKpis.publications', pubmedResults.length) }]"
12
+ />
13
+ <div v-for="(res, index) in pubmedResults" :key="index">
14
+ <OipSciencePubmedCards :data="res" :id="res.PubMed_ID" />
15
+ </div>
16
+ </div>
17
+ <RmLoadingState v-if="isLoading" :lines="3" :chart-height="240" />
18
+ <RmEmptyState
19
+ v-if="!isLoading && !pubmedResults.length"
20
+ :title="$t('oipScience.common.noDataTitle')"
21
+ :text="$t('oipScience.common.noDataText')"
22
+ />
23
+ </div>
24
+ </template>
25
+
26
+ <script setup lang="ts">
27
+ import indexConfig from '../../../oip-science/indexConfig.json';
28
+ import useEuct from '../../../oip-science/composables/useEuct';
29
+ import useOipElastic from '../../../oip-science/composables/useOipElastic';
30
+
31
+ const props = withDefaults(
32
+ defineProps<{
33
+ /** Numero EUCT de l'essai. */
34
+ id: string;
35
+ highlight?: string[];
36
+ lang?: 'fr' | 'en';
37
+ }>(),
38
+ { highlight: () => [], lang: 'fr' },
39
+ );
40
+
41
+ const { queryCustomElastic } = useOipElastic();
42
+ const { findEuctById, resultsQueryEuct } = useEuct();
43
+
44
+ const isLoading = ref(true);
45
+ const pubmedResults = ref<any[]>([]);
46
+
47
+ async function load() {
48
+ const pageId = props.id?.toString();
49
+ if (!pageId) {
50
+ isLoading.value = false;
51
+ return;
52
+ }
53
+
54
+ isLoading.value = true;
55
+ pubmedResults.value = [];
56
+ try {
57
+ await findEuctById({ id: pageId, source: ['pubmed_citations_id'] });
58
+ const pubmedIds = [
59
+ ...new Set((((resultsQueryEuct.value as any)?.pubmed_citations_id as string[]) || []).filter(Boolean)),
60
+ ];
61
+
62
+ if (pubmedIds.length === 0) return;
63
+
64
+ const batchSize = 1000;
65
+ const all: any[] = [];
66
+ for (let i = 0; i < pubmedIds.length; i += batchSize) {
67
+ const batch = pubmedIds.slice(i, i + batchSize);
68
+ const res = await queryCustomElastic({
69
+ index: indexConfig.pubmed.index,
70
+ cluster: indexConfig.pubmed.cluster,
71
+ customQuery: {
72
+ size: batch.length,
73
+ query: { terms: { 'PubMed_ID.keyword': batch } },
74
+ sort: [{ article_date: { order: 'desc' } }],
75
+ },
76
+ });
77
+ all.push(...(res?.results || []));
78
+ }
79
+ pubmedResults.value = all;
80
+ } catch (e) {
81
+ console.error(e);
82
+ } finally {
83
+ isLoading.value = false;
84
+ }
85
+ }
86
+
87
+ onMounted(load);
88
+ watch(() => props.id, load);
89
+ </script>
@@ -0,0 +1,86 @@
1
+ <!--
2
+ Onglet « Sponsors » d'un essai EUCT (portage de la page
3
+ /euct/[id]/sponsors de France Augmented Science).
4
+ -->
5
+ <template>
6
+ <div class="oip-science">
7
+ <RmTableCard v-if="loaded && !isLoadingQueryEuct">
8
+ <template #header>
9
+ <div>
10
+ <h3 class="rm-table-card__title">{{ $t('oipScience.trial.sponsorsAndCollaborators') }}</h3>
11
+ <p class="rm-table-card__context">
12
+ {{ ifNoRes(getContent.length, 'number') }} {{ $t('oipScience.trial.resultsCount') }}
13
+ </p>
14
+ <OipScienceCommonSource :sources="['EUCT']" :lang="lang" />
15
+ </div>
16
+ </template>
17
+ <RmTable :columns="table.columns" :rows="table.rows" search>
18
+ <template v-for="key in table.typeKeys.Tag" :key="key" #[key]="{ value }">
19
+ <div v-if="value" class="oip_row gap-8 wrap end">
20
+ <div v-for="(item, index) in value" :key="index">
21
+ <RmTag variant="gray" class="no-wrap">
22
+ {{ getCountryEmoji(item.address.countryName) }}
23
+ </RmTag>
24
+ </div>
25
+ </div>
26
+ </template>
27
+ </RmTable>
28
+ </RmTableCard>
29
+ <RmLoadingState v-else :lines="3" :chart-height="240" />
30
+ </div>
31
+ </template>
32
+
33
+ <script setup lang="ts">
34
+ import useEuct from '../../../oip-science/composables/useEuct';
35
+ import { getCountryEmoji, ifNoRes } from '../../../oip-science/utils/styleAndFormat';
36
+ import { valueTable } from '../../../oip-science/utils/valueTable';
37
+
38
+ const props = withDefaults(
39
+ defineProps<{
40
+ /** Numero EUCT de l'essai. */
41
+ id: string;
42
+ highlight?: string[];
43
+ lang?: 'fr' | 'en';
44
+ }>(),
45
+ { highlight: () => [], lang: 'fr' },
46
+ );
47
+
48
+ const { t } = useI18n();
49
+ const { findEuctById, resultsQueryEuct, isLoadingQueryEuct } = useEuct();
50
+
51
+ // Le composable part a `false` : le tableau attend la premiere lecture.
52
+ const loaded = ref(false);
53
+
54
+ async function load() {
55
+ if (!props.id) return;
56
+ await findEuctById({ id: props.id.toString(), source: ['co_sponsors'] });
57
+ loaded.value = true;
58
+ }
59
+
60
+ onMounted(load);
61
+ watch(() => props.id, load);
62
+
63
+ const getColumnType = computed(() => ['', '', 'Tag']);
64
+
65
+ const getHeader = computed(() => [t('oipScience.common.name'), t('oipScience.common.type'), t('oipScience.trial.country')]);
66
+
67
+ const getContent = computed(() => {
68
+ const coSponsors = (resultsQueryEuct.value as any)?.co_sponsors;
69
+ if (coSponsors && coSponsors.length > 0) {
70
+ return coSponsors.map((item: any) => ({
71
+ values: [
72
+ item?.organisation?.name,
73
+ item?.organisation?.type,
74
+ item.addresses && item.addresses.length > 0 ? item.addresses : null,
75
+ ],
76
+ }));
77
+ }
78
+ return [];
79
+ });
80
+
81
+ const table = computed(() =>
82
+ valueTable(getHeader.value, getContent.value, getColumnType.value, {
83
+ align: ['left', 'left', 'right'],
84
+ }),
85
+ );
86
+ </script>