@claudebernard/patient-profile-element 0.7.4 → 0.8.1-beta.1
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/custom-elements.json +10170 -1335
- package/dist/patient-profile.d.ts +26 -6
- package/dist/patient-profile.es.js +1694 -52
- package/package.json +3 -50
|
@@ -15,6 +15,10 @@ declare interface MissingPreferences {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
declare interface OverviewPreferences {
|
|
18
|
+
editButton?: {
|
|
19
|
+
/** @default true */
|
|
20
|
+
display?: boolean;
|
|
21
|
+
};
|
|
18
22
|
warning?: {
|
|
19
23
|
missingWeight?: MissingPreferences;
|
|
20
24
|
missingHeight?: MissingPreferences;
|
|
@@ -24,9 +28,9 @@ declare interface OverviewPreferences {
|
|
|
24
28
|
|
|
25
29
|
export declare class PatientProfile extends LitElement {
|
|
26
30
|
patientProfile?: Bundle;
|
|
27
|
-
editButtonVisible: boolean | undefined;
|
|
28
31
|
apiUrl: string;
|
|
29
32
|
apiKey: string | undefined;
|
|
33
|
+
context?: WebComponentContext;
|
|
30
34
|
preferences: PatientProfilePreferences | undefined;
|
|
31
35
|
moreInformationVisible: boolean;
|
|
32
36
|
patientAgeUnit: "ans" | "mois";
|
|
@@ -61,10 +65,10 @@ export declare interface PatientProfilePreferences {
|
|
|
61
65
|
|
|
62
66
|
export declare interface PatientProfileProps {
|
|
63
67
|
patientProfile?: Bundle;
|
|
64
|
-
editButtonVisible?: boolean;
|
|
65
68
|
apiUrl: string;
|
|
66
69
|
apiKey?: string;
|
|
67
70
|
preferences?: PatientProfilePreferences;
|
|
71
|
+
context?: WebComponentContext;
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
declare interface SectionPreferences {
|
|
@@ -74,6 +78,22 @@ declare interface SectionPreferences {
|
|
|
74
78
|
readOnly?: boolean;
|
|
75
79
|
}
|
|
76
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Contexte applicatif d'un appel : identifie l'application consommatrice réelle (ex: Equasens,
|
|
83
|
+
* Maiia officine) et/ou la chaîne des web components BCB déjà traversés avant d'atteindre le
|
|
84
|
+
* composant courant - contrairement à `COMPONENT_HEADERS`, qui identifie uniquement le composant
|
|
85
|
+
* appelant direct, sans notion de consommateur final ni de chaîne d'imbrication.
|
|
86
|
+
*/
|
|
87
|
+
declare interface WebComponentContext {
|
|
88
|
+
/** L'application hôte réelle, à l'origine de l'intégration - ex: "equasens" ou "equasens@1.3.1". */
|
|
89
|
+
consumer?: string;
|
|
90
|
+
/** Web components BCB déjà traversés, du plus externe au plus proche - n'inclut PAS le composant courant. */
|
|
91
|
+
ancestry?: Array<{
|
|
92
|
+
name: string;
|
|
93
|
+
version: string;
|
|
94
|
+
}>;
|
|
95
|
+
}
|
|
96
|
+
|
|
77
97
|
export { }
|
|
78
98
|
|
|
79
99
|
|
|
@@ -93,7 +113,7 @@ declare global {
|
|
|
93
113
|
|
|
94
114
|
declare global {
|
|
95
115
|
interface HTMLElementTagNameMap {
|
|
96
|
-
"bcb-patient-
|
|
116
|
+
"bcb-patient-pathologies-form": PatientPathologiesForm;
|
|
97
117
|
}
|
|
98
118
|
}
|
|
99
119
|
|
|
@@ -107,14 +127,14 @@ declare global {
|
|
|
107
127
|
|
|
108
128
|
declare global {
|
|
109
129
|
interface HTMLElementTagNameMap {
|
|
110
|
-
"bcb-patient-
|
|
130
|
+
"bcb-patient-demographics-form": PatientDemographicsForm;
|
|
111
131
|
}
|
|
112
132
|
}
|
|
113
133
|
|
|
114
134
|
|
|
115
135
|
declare global {
|
|
116
136
|
interface HTMLElementTagNameMap {
|
|
117
|
-
"bcb-patient-
|
|
137
|
+
"bcb-patient-renal-form": PatientRenalForm;
|
|
118
138
|
}
|
|
119
139
|
}
|
|
120
140
|
|
|
@@ -128,7 +148,7 @@ declare global {
|
|
|
128
148
|
|
|
129
149
|
declare global {
|
|
130
150
|
interface HTMLElementTagNameMap {
|
|
131
|
-
"bcb-patient-
|
|
151
|
+
"bcb-patient-reproductive-form": PatientReproductiveForm;
|
|
132
152
|
}
|
|
133
153
|
}
|
|
134
154
|
|