@claudebernard/patient-profile-element 0.3.5 → 0.4.2
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 +2063 -1938
- package/dist/patient-profile.d.ts +16 -3
- package/dist/patient-profile.es.js +368 -162
- package/package.json +22 -14
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Bundle } from 'fhir/r5';
|
|
2
2
|
import { CSSResult } from 'lit';
|
|
3
3
|
import { LitElement } from 'lit';
|
|
4
|
+
import { nothing } from 'lit';
|
|
4
5
|
import { TemplateResult } from 'lit';
|
|
5
6
|
|
|
6
7
|
export declare class PatientProfile extends LitElement {
|
|
@@ -8,18 +9,19 @@ export declare class PatientProfile extends LitElement {
|
|
|
8
9
|
editButtonVisible: boolean | undefined;
|
|
9
10
|
apiUrl: string;
|
|
10
11
|
apiKey: string | undefined;
|
|
12
|
+
preferences: PatientProfilePreferences | undefined;
|
|
11
13
|
moreInformationVisible: boolean;
|
|
12
14
|
patientAgeUnit: "ans" | "mois";
|
|
13
15
|
private editionModalElement;
|
|
14
16
|
handleMoreInformation(): void;
|
|
15
17
|
displayRenalInsufficiencyStatus(): symbol | TemplateResult<1>;
|
|
16
|
-
displayCreatininemieSection(): TemplateResult<1
|
|
18
|
+
displayCreatininemieSection(): TemplateResult<1> | typeof nothing;
|
|
17
19
|
private displayHepaticInsufficiencySection;
|
|
18
20
|
private truncateLabel;
|
|
19
21
|
private displayPregnancy;
|
|
20
22
|
private displayBreastfeeding;
|
|
21
|
-
displayPathologies(): TemplateResult<1
|
|
22
|
-
displayAllergies(): TemplateResult<1
|
|
23
|
+
displayPathologies(): TemplateResult<1> | typeof nothing;
|
|
24
|
+
displayAllergies(): TemplateResult<1> | typeof nothing;
|
|
23
25
|
openEditionModal(): void;
|
|
24
26
|
private editProfilePatient;
|
|
25
27
|
private getPatientAge;
|
|
@@ -27,11 +29,22 @@ export declare class PatientProfile extends LitElement {
|
|
|
27
29
|
static styles: CSSResult;
|
|
28
30
|
}
|
|
29
31
|
|
|
32
|
+
export declare interface PatientProfilePreferences {
|
|
33
|
+
/**
|
|
34
|
+
* Filtre le type de pathologie utilisé lors de l'appel fetchPathologiesByTerm.
|
|
35
|
+
* - "AMM" : pathologies avec Autorisation de Mise sur le Marché
|
|
36
|
+
* - "CIM10" : pathologies selon la classification CIM-10
|
|
37
|
+
* - "" : aucun filtre (toutes les pathologies)
|
|
38
|
+
*/
|
|
39
|
+
typePathology?: "AMM" | "CIM10" | "";
|
|
40
|
+
}
|
|
41
|
+
|
|
30
42
|
export declare interface PatientProfileProps {
|
|
31
43
|
patientProfile?: Bundle;
|
|
32
44
|
editButtonVisible?: boolean;
|
|
33
45
|
apiUrl: string;
|
|
34
46
|
apiKey?: string;
|
|
47
|
+
preferences?: PatientProfilePreferences;
|
|
35
48
|
}
|
|
36
49
|
|
|
37
50
|
export { }
|