@tekkare/romulus 0.1.322 → 0.1.323
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
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Fiche d'une autorisation de mise sur le marche du BfArM (Germany One, type
|
|
3
|
+
DeBfarmApproval), par son `_id` (entry_number, l'ENR). Le tiroir montre
|
|
4
|
+
l'identite de l'autorisation et, quand la marque a ete evaluee, la carte du
|
|
5
|
+
G-BA, comme l'onglet de la fiche de Germany One.
|
|
6
|
+
|
|
7
|
+
Montee par le tiroir des projets ; le lien vers l'app passe par le slot
|
|
8
|
+
`title-link`.
|
|
9
|
+
-->
|
|
10
|
+
<template>
|
|
11
|
+
<div class="oip-germany">
|
|
12
|
+
<RmPageHeader :eyebrow="en ? 'BfArM marketing authorisation' : 'Autorisation de mise sur le marché, BfArM'">
|
|
13
|
+
<template #title>
|
|
14
|
+
<span class="oip-germany__title">{{ doc?.product_name || id }}</span>
|
|
15
|
+
<slot name="title-link" />
|
|
16
|
+
</template>
|
|
17
|
+
</RmPageHeader>
|
|
18
|
+
|
|
19
|
+
<div class="oip-germany__body">
|
|
20
|
+
<RmLoadingState v-if="loading" :lines="3" :chart="false" />
|
|
21
|
+
<RmEmptyState v-else-if="!doc" icon="Prohibit" :title="en ? 'Authorisation not found' : 'Autorisation introuvable'" />
|
|
22
|
+
<template v-else>
|
|
23
|
+
<RmSectionCard position="bottom">
|
|
24
|
+
<div class="oip-germany__overview">
|
|
25
|
+
<div class="oip-germany__tags">
|
|
26
|
+
<RmTag :variant="statusVariant(doc.status_de)">{{ doc.status_de || "-" }}</RmTag>
|
|
27
|
+
<RmTag v-if="doc.is_marketable" variant="emerald">{{ en ? "Marketable" : "Commercialisable" }}</RmTag>
|
|
28
|
+
<RmTag v-if="doc.procedure_type_de" variant="fushia">{{ doc.procedure_type_de }}</RmTag>
|
|
29
|
+
<RmTag v-if="doc.competent_authority" variant="gray">{{ doc.competent_authority }}</RmTag>
|
|
30
|
+
</div>
|
|
31
|
+
<dl class="oip-germany__facts">
|
|
32
|
+
<template v-for="fact in facts" :key="fact.label">
|
|
33
|
+
<dt>{{ fact.label }}</dt>
|
|
34
|
+
<dd>
|
|
35
|
+
<RmDate v-if="fact.date" :date="fact.value" :lang="lang" />
|
|
36
|
+
<template v-else>{{ fact.value }}</template>
|
|
37
|
+
</dd>
|
|
38
|
+
</template>
|
|
39
|
+
</dl>
|
|
40
|
+
<p v-if="doc.indication_de || doc.indication_en" class="oip-germany__text">
|
|
41
|
+
{{ (en && doc.indication_en) || doc.indication_de }}
|
|
42
|
+
</p>
|
|
43
|
+
</div>
|
|
44
|
+
<template #footer>
|
|
45
|
+
<OipResourceSource :uuid="GERMANY_BFARM_SOURCE" :lang="lang" />
|
|
46
|
+
</template>
|
|
47
|
+
</RmSectionCard>
|
|
48
|
+
|
|
49
|
+
<OipGermanyBrandCard
|
|
50
|
+
v-for="brand in Object.keys(assessments)"
|
|
51
|
+
:key="brand"
|
|
52
|
+
:brand="brand"
|
|
53
|
+
:decisions="assessments[brand]!"
|
|
54
|
+
:show="{ endpoints: true, comparator: true }"
|
|
55
|
+
show-all
|
|
56
|
+
:lang="en ? 'en' : 'fr'"
|
|
57
|
+
/>
|
|
58
|
+
</template>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<script setup lang="ts">
|
|
64
|
+
import { oipEsGet, oipEsSearch } from "../../composables/useOipResources";
|
|
65
|
+
import { GERMANY_BFARM_SOURCE, GERMANY_INDEX } from "../../oip-germany/kinds";
|
|
66
|
+
|
|
67
|
+
const props = withDefaults(
|
|
68
|
+
defineProps<{
|
|
69
|
+
/** Le `resourceId` : `_id` de l'autorisation (entry_number). */
|
|
70
|
+
id: string;
|
|
71
|
+
type?: string;
|
|
72
|
+
lang?: "fr" | "en";
|
|
73
|
+
highlight?: string[];
|
|
74
|
+
}>(),
|
|
75
|
+
{ type: "DeBfarmApproval", lang: "en", highlight: () => [] },
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
const en = computed(() => props.lang !== "fr");
|
|
79
|
+
const loading = ref(true);
|
|
80
|
+
const doc = ref<Record<string, any> | null>(null);
|
|
81
|
+
/** Lignes du G-BA par marque, quand la marque ouvre le nom du produit. */
|
|
82
|
+
const assessments = ref<Record<string, Record<string, any>[]>>({});
|
|
83
|
+
|
|
84
|
+
const facts = computed(() => {
|
|
85
|
+
const d = doc.value ?? {};
|
|
86
|
+
const rows: { label: string; value: unknown; date?: boolean }[] = [
|
|
87
|
+
{ label: "ENR", value: d.entry_number },
|
|
88
|
+
{ label: en.value ? "Authorisation number" : "Numéro d'autorisation", value: d.authorisation_number },
|
|
89
|
+
{ label: en.value ? "Active substance" : "Substance active", value: [].concat(d.active_substances ?? []).join(", ") },
|
|
90
|
+
{ label: "ATC", value: [d.atc_code, d.atc_label_de].filter(Boolean).join(" · ") },
|
|
91
|
+
{ label: en.value ? "Dosage form" : "Forme galénique", value: d.dosage_form },
|
|
92
|
+
{ label: en.value ? "Marketing authorisation holder" : "Titulaire", value: [d.mah_name, d.mah_country].filter(Boolean).join(", ") },
|
|
93
|
+
{ label: en.value ? "Authorisation date" : "Date d'autorisation", value: d.authorisation_date, date: true },
|
|
94
|
+
{ label: en.value ? "Last decision" : "Dernière décision", value: d.last_decision_date, date: true },
|
|
95
|
+
];
|
|
96
|
+
return rows.filter((row) => row.value);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
/** Statuts actifs en vert, statuts echus en gris. */
|
|
100
|
+
function statusVariant(status: string): any {
|
|
101
|
+
if (["zugelassen", "verlängert", "registriert", "genehmigt", "fiktiv zugelassen"].includes(status)) return "green";
|
|
102
|
+
if (status === "EMA-notifiziert") return "sky";
|
|
103
|
+
if (status === "versagt" || status === "widerrufen") return "rose";
|
|
104
|
+
return "gray";
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Le G-BA n'a pas d'identifiant BfArM : une marque (« Ozempic ») se rattache
|
|
109
|
+
* quand elle ouvre le nom du produit (« Ozempic 0,5 mg … »), en mots entiers.
|
|
110
|
+
* L'ATC n'est pas une cle (il differe sur une marque sur six).
|
|
111
|
+
*/
|
|
112
|
+
function opensName(name: string, brand: string) {
|
|
113
|
+
const n = (name || "").toLowerCase();
|
|
114
|
+
const b = (brand || "").split(" (")[0]!.trim().toLowerCase();
|
|
115
|
+
if (!b || !n.startsWith(b)) return false;
|
|
116
|
+
const next = n.charAt(b.length);
|
|
117
|
+
return next === "" || !/[\p{L}\p{N}]/u.test(next);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
async function read() {
|
|
121
|
+
loading.value = true;
|
|
122
|
+
doc.value = null;
|
|
123
|
+
assessments.value = {};
|
|
124
|
+
const hit = await oipEsGet<any>("drugs", GERMANY_INDEX.bfarm, props.id).catch(() => null);
|
|
125
|
+
doc.value = hit?._source ?? null;
|
|
126
|
+
loading.value = false;
|
|
127
|
+
|
|
128
|
+
const name = String(doc.value?.product_name ?? "");
|
|
129
|
+
if (!name) return;
|
|
130
|
+
const res = await oipEsSearch<any>("drugs", GERMANY_INDEX.gba, {
|
|
131
|
+
size: 500,
|
|
132
|
+
query: { match: { brand_name: name } },
|
|
133
|
+
sort: [{ valid_from: "desc" }],
|
|
134
|
+
}).catch(() => null);
|
|
135
|
+
const grouped: Record<string, Record<string, any>[]> = {};
|
|
136
|
+
for (const row of (res?.hits?.hits ?? []).map((h: any) => h._source)) {
|
|
137
|
+
for (const brand of ([] as string[]).concat(row.brand_name ?? [])) {
|
|
138
|
+
if (opensName(name, brand)) (grouped[brand] ??= []).push(row);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
assessments.value = grouped;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
watch(() => props.id, read, { immediate: true });
|
|
145
|
+
</script>
|
|
146
|
+
|
|
147
|
+
<style scoped>
|
|
148
|
+
.oip-germany__body {
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
gap: var(--space-16);
|
|
152
|
+
padding: var(--space-20) var(--space-32) var(--space-32);
|
|
153
|
+
}
|
|
154
|
+
.oip-germany__title {
|
|
155
|
+
margin-right: var(--space-12);
|
|
156
|
+
}
|
|
157
|
+
.oip-germany__overview {
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
gap: var(--space-16);
|
|
161
|
+
}
|
|
162
|
+
.oip-germany__tags {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-wrap: wrap;
|
|
165
|
+
gap: var(--space-8);
|
|
166
|
+
}
|
|
167
|
+
.oip-germany__facts {
|
|
168
|
+
display: grid;
|
|
169
|
+
grid-template-columns: max-content 1fr;
|
|
170
|
+
gap: var(--space-6) var(--space-24);
|
|
171
|
+
font-size: var(--font-14);
|
|
172
|
+
margin: 0;
|
|
173
|
+
}
|
|
174
|
+
.oip-germany__facts dt {
|
|
175
|
+
color: var(--text-muted);
|
|
176
|
+
}
|
|
177
|
+
.oip-germany__facts dd {
|
|
178
|
+
margin: 0;
|
|
179
|
+
}
|
|
180
|
+
.oip-germany__text {
|
|
181
|
+
color: var(--text-secondary);
|
|
182
|
+
font-size: var(--font-14);
|
|
183
|
+
line-height: 1.5;
|
|
184
|
+
margin: 0;
|
|
185
|
+
}
|
|
186
|
+
</style>
|
|
@@ -107,6 +107,7 @@ const VIEW_LOADERS: Record<string, () => Promise<any>> = {
|
|
|
107
107
|
"patients-vaccine": () => import("../components/oip-patients/VaccineFiche.vue"),
|
|
108
108
|
"germany-gba": () => import("../components/oip-germany/GbaAssessment.vue"),
|
|
109
109
|
"germany-molecule": () => import("../components/oip-germany/GkvMolecule.vue"),
|
|
110
|
+
"germany-bfarm": () => import("../components/oip-germany/BfarmApproval.vue"),
|
|
110
111
|
"italy-aifa-act": () => import("../components/oip-italy/AifaAct.vue"),
|
|
111
112
|
"italy-price": () => import("../components/oip-italy/ItalyPrice.vue"),
|
|
112
113
|
"italy-reimbursement": () => import("../components/oip-italy/Reimbursement.vue"),
|
|
@@ -18,11 +18,15 @@ const GERMANY = { fr: "Allemagne", en: "Germany" };
|
|
|
18
18
|
export const GERMANY_GBA_SOURCE = "4fa70cd9-7918-47e9-920e-a2059b964519";
|
|
19
19
|
/** Source Directus du remboursement ambulatoire (GKV-Arzneimittelindex). */
|
|
20
20
|
export const GERMANY_GKV_SOURCE = "400181da-9d16-4b00-86d7-b9d03832a06e";
|
|
21
|
+
/** Source Directus du registre des autorisations du BfArM (AMIce). */
|
|
22
|
+
export const GERMANY_BFARM_SOURCE = "13257243-e9ea-4123-ac0a-0186b646f023";
|
|
21
23
|
|
|
22
24
|
/** Index de Germany One, sur le cluster `drugs`. */
|
|
23
25
|
export const GERMANY_INDEX = {
|
|
24
26
|
gba: "ope__de_gba_benefit_assessment_drug_approvals__tekkare",
|
|
25
27
|
gkv: "ope_de_retail_national_tekkare",
|
|
28
|
+
/** Registre BfArM (ope__de__bfarm_drug_approvals__tekkare), par id Directus. */
|
|
29
|
+
bfarm: "4abc5d53-61c8-4a97-bb78-f0b33a070ed3",
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
const list = (value: unknown) => (Array.isArray(value) ? value.filter(Boolean).join(", ") : String(value ?? ""));
|
|
@@ -42,9 +46,23 @@ export const GERMANY_PROJECT_KINDS: RmProjectKind[] = [
|
|
|
42
46
|
subtitle: (s) => [s?.added_benefit_en, s?.patient_group_en].filter(Boolean).join(" · "),
|
|
43
47
|
path: (s) => {
|
|
44
48
|
const brand = list(s?.brand_name);
|
|
45
|
-
return brand ? `/
|
|
49
|
+
return brand ? `/benefit-assessments?search=${encodeURIComponent(brand)}` : "/benefit-assessments";
|
|
46
50
|
},
|
|
47
51
|
},
|
|
52
|
+
{
|
|
53
|
+
// Une autorisation de mise sur le marche du BfArM, un dosage ou un
|
|
54
|
+
// conditionnement (`_id` = entry_number, l'ENR).
|
|
55
|
+
type: "DeBfarmApproval",
|
|
56
|
+
index: GERMANY_INDEX.bfarm,
|
|
57
|
+
label: { fr: "Autorisations du BfArM", en: "BfArM approvals" },
|
|
58
|
+
section: GERMANY,
|
|
59
|
+
country: "de",
|
|
60
|
+
icon: "SealCheck",
|
|
61
|
+
source: ["product_name", "status_de", "active_substance_names", "mah_name", "authorisation_date"],
|
|
62
|
+
title: (s) => String(s?.product_name ?? ""),
|
|
63
|
+
subtitle: (s) => [list(s?.active_substance_names), s?.mah_name, s?.status_de].filter(Boolean).join(" · "),
|
|
64
|
+
path: (_s, id) => (id ? `/approvals/details/${encodeURIComponent(id)}` : "/approvals"),
|
|
65
|
+
},
|
|
48
66
|
{
|
|
49
67
|
// Une molecule ATC5 de l'index GKV (`_id` = de_<ATC5>_).
|
|
50
68
|
type: "DeGkvMolecule",
|
|
@@ -332,6 +332,7 @@ const ITALY_VIEWS: Record<string, string> = {
|
|
|
332
332
|
const GERMANY_VIEWS: Record<string, string> = {
|
|
333
333
|
DeGbaAssessment: "germany-gba",
|
|
334
334
|
DeGkvMolecule: "germany-molecule",
|
|
335
|
+
DeBfarmApproval: "germany-bfarm",
|
|
335
336
|
};
|
|
336
337
|
|
|
337
338
|
/** La vue de chaque famille de fr_drugs_app (cf. useOipResourceViews). */
|