@tekkare/romulus 0.1.337 → 0.1.338
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
CHANGED
|
@@ -163,6 +163,16 @@
|
|
|
163
163
|
@select="drawerRecord = $event"
|
|
164
164
|
/>
|
|
165
165
|
</div>
|
|
166
|
+
<div v-else-if="chosenTab === derogatoryTabIndex && derogatoryTabIndex > 0" class="arg_page_layout">
|
|
167
|
+
<OipDrugsHeartResultsDetailsRecordList
|
|
168
|
+
:title="locale === 'en' ? 'ANSM derogatory access' : 'Accès dérogatoires ANSM'"
|
|
169
|
+
:subtitle="locale === 'en' ? 'statuses recorded for the brand' : 'statuts recensés pour la marque'"
|
|
170
|
+
:items="derogatoryRecords"
|
|
171
|
+
:source-uuid="HEART_SOURCE_UUIDS.ANSM"
|
|
172
|
+
:empty-label="locale === 'en' ? 'No derogatory access for this product.' : 'Aucun accès dérogatoire pour ce produit.'"
|
|
173
|
+
@select="drawerRecord = $event"
|
|
174
|
+
/>
|
|
175
|
+
</div>
|
|
166
176
|
<div v-else-if="chosenTab === lesTabIndex && lesTabIndex > 0" class="arg_page_layout">
|
|
167
177
|
<OipDrugsHeartResultsDetailsRecordList
|
|
168
178
|
:title="locale === 'en' ? 'Liste en sus indications' : 'Indications en liste en sus'"
|
|
@@ -343,6 +353,7 @@ const availableTabs = computed(() => {
|
|
|
343
353
|
tabs.push({ key: 'smr', label: 'SMR & ASMR' });
|
|
344
354
|
}
|
|
345
355
|
if (resultsQueryPut.value.length > 0) tabs.push({ key: 'put', label: 'PUT' });
|
|
356
|
+
if (derogatoryRecords.value.length > 0) tabs.push({ key: 'derogatory', label: en ? 'Derogatory access' : 'Accès dérogatoire' });
|
|
346
357
|
if (resultsQueryLes.value.length > 0) tabs.push({ key: 'les', label: 'LES' });
|
|
347
358
|
// Les alertes ferment la liste : elles completent la fiche, elles ne la
|
|
348
359
|
// presentent pas.
|
|
@@ -404,6 +415,7 @@ const ansmTabIndex = computed(() => tabIndexOf('ansm'));
|
|
|
404
415
|
const mitmTabIndex = computed(() => tabIndexOf('mitm'));
|
|
405
416
|
const smrTabIndex = computed(() => tabIndexOf('smr'));
|
|
406
417
|
const putTabIndex = computed(() => tabIndexOf('put'));
|
|
418
|
+
const derogatoryTabIndex = computed(() => tabIndexOf('derogatory'));
|
|
407
419
|
const lesTabIndex = computed(() => tabIndexOf('les'));
|
|
408
420
|
|
|
409
421
|
/** L'onglet ouvert, par sa cle et son libelle. */
|
|
@@ -495,6 +507,73 @@ const alertRecords = computed(() =>
|
|
|
495
507
|
})
|
|
496
508
|
);
|
|
497
509
|
|
|
510
|
+
/**
|
|
511
|
+
* Acces derogatoires ANSM de la marque (AAC, AAP, CPC, ATU, RTU, AMM) : le
|
|
512
|
+
* champ nested `derogatory_access` de la fiche HAS, une entree par statut, le
|
|
513
|
+
* plus recent en tete. Memes champs que l'index
|
|
514
|
+
* ope_block402_fr__drugs__derogatory_access__ansm.
|
|
515
|
+
*/
|
|
516
|
+
const derogatoryRecords = computed(() =>
|
|
517
|
+
[...((resultsQuery.value?.derogatory_access ?? []) as any[])]
|
|
518
|
+
.sort((a, b) => String(b.published_date ?? "").localeCompare(String(a.published_date ?? "")))
|
|
519
|
+
.map((row: any) => {
|
|
520
|
+
const english = locale.value === "en";
|
|
521
|
+
const lastRenewal = [...(row.renewal_date ?? [])].sort().at(-1);
|
|
522
|
+
const milestones = [
|
|
523
|
+
[english ? "Published" : "Publié", row.published_date],
|
|
524
|
+
[english ? "Updated" : "Mis à jour", row.updated_date],
|
|
525
|
+
[english ? "Granted" : "Octroi", row.granted_date],
|
|
526
|
+
[english ? "Marketing authorisation" : "AMM", row.marketing_authorization_date],
|
|
527
|
+
[english ? "Last renewal" : "Dernier renouvellement", lastRenewal],
|
|
528
|
+
[english ? "Stopped" : "Arrêt", row.stopped_date],
|
|
529
|
+
[english ? "Refused" : "Refus", row.refused_date],
|
|
530
|
+
]
|
|
531
|
+
.filter(([, date]) => date)
|
|
532
|
+
.map(([label, date]) => `${label} : ${date}`);
|
|
533
|
+
return {
|
|
534
|
+
key: row.derogatory_access_id || `${row.drug_id}-${row.scheme_type}`,
|
|
535
|
+
typeLabel: row.scheme_type || "ANSM",
|
|
536
|
+
icon: "Key",
|
|
537
|
+
date: row.refused_date || row.stopped_date || row.granted_date || row.published_date || null,
|
|
538
|
+
url: row.url_link || null,
|
|
539
|
+
title: pickText(row.drug_name) || row.scheme_type || "ANSM",
|
|
540
|
+
excerpt: row.status_text || null,
|
|
541
|
+
status: row.state_label || null,
|
|
542
|
+
statusTone: derogatoryTone(row.state_label),
|
|
543
|
+
sourceLabel: sourceName(HEART_SOURCE_UUIDS.ANSM),
|
|
544
|
+
sections: [
|
|
545
|
+
{ key: "text", label: english ? "ANSM text" : "Texte ANSM", body: row.status_text || "" },
|
|
546
|
+
{
|
|
547
|
+
key: "context",
|
|
548
|
+
label: english ? "Framework" : "Cadre",
|
|
549
|
+
body: [
|
|
550
|
+
row.owner && `${english ? "Holder" : "Titulaire"} : ${row.owner}`,
|
|
551
|
+
row.active_substance && `${english ? "Active substance" : "Substance active"} : ${row.active_substance}`,
|
|
552
|
+
(row.current_status ?? []).length &&
|
|
553
|
+
`${english ? "Current status" : "Statut actuel"} : ${row.current_status.join(", ")}`,
|
|
554
|
+
...milestones,
|
|
555
|
+
]
|
|
556
|
+
.filter(Boolean)
|
|
557
|
+
.join("\n"),
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
key: "documents",
|
|
561
|
+
label: "Documents",
|
|
562
|
+
body: (row.document_url ?? []).join("\n"),
|
|
563
|
+
},
|
|
564
|
+
],
|
|
565
|
+
};
|
|
566
|
+
})
|
|
567
|
+
);
|
|
568
|
+
|
|
569
|
+
/** Etat ANSM : en cours ou accorde se lit bien, refuse ou defavorable mal. */
|
|
570
|
+
function derogatoryTone(state: string): "good" | "bad" | "neutral" {
|
|
571
|
+
const value = (state || "").toLowerCase();
|
|
572
|
+
if (value === "en cours" || value === "oui") return "good";
|
|
573
|
+
if (value.startsWith("refus") || value.includes("défavorable")) return "bad";
|
|
574
|
+
return "neutral";
|
|
575
|
+
}
|
|
576
|
+
|
|
498
577
|
/** Pre-AMM ou post-AMM, accents et langue mis de cote. */
|
|
499
578
|
function aapTone(label: string) {
|
|
500
579
|
const value = (label || "").normalize("NFD").replace(/[̀-ͯ]/g, "").toLowerCase();
|
|
@@ -1017,8 +1096,11 @@ async function loadAll() {
|
|
|
1017
1096
|
}
|
|
1018
1097
|
|
|
1019
1098
|
// L'onglet demande dependait d'une section secondaire (prix, ANSM, LES...),
|
|
1020
|
-
// sauf si l'on a clique un onglet entre-temps.
|
|
1021
|
-
|
|
1099
|
+
// sauf si l'on a clique un onglet entre-temps. Deja ouvert, il est repose
|
|
1100
|
+
// aussi : `chosenTab` est une position, et les onglets secondaires arrives
|
|
1101
|
+
// avant lui l'ont decale (l'acces derogatoire, lu dans la fiche HAS, tombait
|
|
1102
|
+
// sur Prix).
|
|
1103
|
+
if (pendingTab.value) openRequestedTab();
|
|
1022
1104
|
// Plus rien en attente : l'onglet ouvert remonte a l'appelant s'il differe.
|
|
1023
1105
|
pendingTab.value = "";
|
|
1024
1106
|
const key = currentTabKey.value;
|