@claudebernard/patient-profile-element 0.7.4 → 0.8.0

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.
@@ -27,6 +27,7 @@ export declare class PatientProfile extends LitElement {
27
27
  editButtonVisible: boolean | undefined;
28
28
  apiUrl: string;
29
29
  apiKey: string | undefined;
30
+ context?: WebComponentContext;
30
31
  preferences: PatientProfilePreferences | undefined;
31
32
  moreInformationVisible: boolean;
32
33
  patientAgeUnit: "ans" | "mois";
@@ -65,6 +66,7 @@ export declare interface PatientProfileProps {
65
66
  apiUrl: string;
66
67
  apiKey?: string;
67
68
  preferences?: PatientProfilePreferences;
69
+ context?: WebComponentContext;
68
70
  }
69
71
 
70
72
  declare interface SectionPreferences {
@@ -74,6 +76,22 @@ declare interface SectionPreferences {
74
76
  readOnly?: boolean;
75
77
  }
76
78
 
79
+ /**
80
+ * Contexte applicatif d'un appel : identifie l'application consommatrice réelle (ex: Equasens,
81
+ * Maiia officine) et/ou la chaîne des web components BCB déjà traversés avant d'atteindre le
82
+ * composant courant - contrairement à `COMPONENT_HEADERS`, qui identifie uniquement le composant
83
+ * appelant direct, sans notion de consommateur final ni de chaîne d'imbrication.
84
+ */
85
+ declare interface WebComponentContext {
86
+ /** L'application hôte réelle, à l'origine de l'intégration - ex: "equasens" ou "equasens@1.3.1". */
87
+ consumer?: string;
88
+ /** Web components BCB déjà traversés, du plus externe au plus proche - n'inclut PAS le composant courant. */
89
+ ancestry?: Array<{
90
+ name: string;
91
+ version: string;
92
+ }>;
93
+ }
94
+
77
95
  export { }
78
96
 
79
97
 
@@ -93,28 +111,28 @@ declare global {
93
111
 
94
112
  declare global {
95
113
  interface HTMLElementTagNameMap {
96
- "bcb-patient-demographics-form": PatientDemographicsForm;
114
+ "bcb-patient-reproductive-form": PatientReproductiveForm;
97
115
  }
98
116
  }
99
117
 
100
118
 
101
119
  declare global {
102
120
  interface HTMLElementTagNameMap {
103
- "bcb-patient-allergies-form": PatientAllergiesForm;
121
+ "bcb-patient-demographics-form": PatientDemographicsForm;
104
122
  }
105
123
  }
106
124
 
107
125
 
108
126
  declare global {
109
127
  interface HTMLElementTagNameMap {
110
- "bcb-patient-reproductive-form": PatientReproductiveForm;
128
+ "bcb-patient-pathologies-form": PatientPathologiesForm;
111
129
  }
112
130
  }
113
131
 
114
132
 
115
133
  declare global {
116
134
  interface HTMLElementTagNameMap {
117
- "bcb-patient-pathologies-form": PatientPathologiesForm;
135
+ "bcb-patient-renal-form": PatientRenalForm;
118
136
  }
119
137
  }
120
138
 
@@ -128,7 +146,7 @@ declare global {
128
146
 
129
147
  declare global {
130
148
  interface HTMLElementTagNameMap {
131
- "bcb-patient-renal-form": PatientRenalForm;
149
+ "bcb-patient-allergies-form": PatientAllergiesForm;
132
150
  }
133
151
  }
134
152