@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.
@@ -8,51 +8,62 @@
8
8
  "declarations": [
9
9
  {
10
10
  "kind": "variable",
11
- "name": "meta",
11
+ "name": "Base",
12
12
  "type": {
13
- "text": "Meta<PatientProfile>"
14
- },
15
- "default": "{\n parameters: {\n deepControls: { enabled: true },\n docs: {\n story: {\n autoplay: false,\n },\n },\n },\n tags: [\"autodocs\"],\n render: (args: PatientProfileProps) => html`<bcb-patient-profile\n .patientProfile=${args.patientProfile}\n .editButtonVisible=${args.editButtonVisible}\n .apiUrl=${args.apiUrl}\n .apiKey=${args.apiKey}\n ></bcb-patient-profile>`,\n argTypes: {\n patientProfile: {\n control: { type: \"object\" },\n description: \"FHIR Patient resource with extensions for medical data\",\n },\n editButtonVisible: {\n control: { type: \"boolean\" },\n description: \"Flag to show or hide the edit button\",\n },\n apiUrl: {\n control: { type: \"text\" },\n description: \"The API URL used to perform pathologies and allergies searches.\",\n },\n apiKey: {\n control: { type: \"text\" },\n description: \"The API key to allow access to the resources of the API URL.\",\n },\n },\n args: {\n patientProfile: clonePatientProfile(),\n apiUrl: DEFAULT_API_URL,\n apiKey: DEFAULT_API_KEY,\n editButtonVisible: true,\n },\n}"
13
+ "text": "WebComponentsStory<any, any>"
14
+ }
16
15
  },
17
16
  {
18
17
  "kind": "variable",
19
- "name": "Base",
18
+ "name": "MalePatient",
20
19
  "type": {
21
- "text": "Story"
22
- },
23
- "default": "{\n args: {\n patientProfile: clonePatientProfile(),\n },\n play: async({ canvasElement, step }) => {\n const component = canvasElement.querySelector(\"bcb-patient-profile\") as HTMLElement | null;\n\n await step(\"Verify the patient ID information\", () => {\n const divName = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-name\\\"]\") as HTMLElement | null;\n expect(divName?.textContent).toContain(\"Marie Dupont\");\n\n const divGender = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-gender\\\"]\") as HTMLElement | null;\n expect(divGender?.textContent).toContain(\"Femme\");\n\n const divAge = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-age\\\"]\") as HTMLElement | null;\n expect(divAge?.textContent).toContain(\"42 ans\");\n });\n\n await step(\"Verify the patient physical information\", () => {\n const divHeight = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-height\\\"]\") as HTMLElement | null;\n const textHeight = divHeight?.textContent ?? \"\";\n expect(textHeight).toContain(\"Taille\");\n expect(textHeight).toContain(\"170\");\n expect(textHeight).toContain(\"cm\");\n\n const divWeight = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-weight\\\"]\") as HTMLElement | null;\n const textWeight = divWeight?.textContent ?? \"\";\n expect(textWeight).toContain(\"Poids\");\n expect(textWeight).toContain(\"84\");\n expect(textWeight).toContain(\"kg\");\n\n const divIMC = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-IMC\\\"]\") as HTMLElement | null;\n expect(divIMC?.textContent).toContain(\"29.1\");\n });\n\n const divActions = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"action-buttons\\\"]\") as HTMLElement | null;\n const modifyButton = divActions?.querySelector(\"bcbd-button[data-test-id=\\\"modify-button\\\"]\") as HTMLElement | null;\n const visibleButton = divActions?.querySelector(\"bcbd-button[data-test-id=\\\"visible-button\\\"]\") as HTMLElement | null;\n\n await step(\"Verify the action buttons and more information section\", async() => {\n await expect(modifyButton).not.toBeNull();\n await expect(visibleButton).not.toBeNull();\n });\n\n const moreInfoDiv = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"more-information-section\\\"]\") as HTMLElement | null;\n\n await step(\"Verify the more information section is not visible\", () => {\n expect(moreInfoDiv?.className).not.toContain(\"active\");\n expect(moreInfoDiv).not.toBeVisible();\n });\n\n await step(\"Click on the more information button and verify the displayed information\", async() => {\n if (visibleButton) {\n await visibleButton.click();\n }\n expect(moreInfoDiv).toBeVisible();\n });\n\n // eslint-disable-next-line complexity\n await step(\"Verify the content of more information section\", () => {\n const pregnancyDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"pregnancy-section\\\"]\") as HTMLElement | null;\n expect(pregnancyDiv).toBeVisible();\n const textPregnancy = pregnancyDiv?.textContent ?? \"\";\n expect(textPregnancy).toContain(\"Oui - 20 semaine(s)\");\n\n const breastfeedingDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"breastfeeding-section\\\"]\") as HTMLElement | null;\n expect(breastfeedingDiv).toBeVisible();\n const textBreastfeeding = breastfeedingDiv?.textContent ?? \"\";\n expect(textBreastfeeding).toContain(\"Oui\");\n\n const pathologyDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"pathology-section\\\"]\") as HTMLElement | null;\n expect(pathologyDiv).toBeVisible();\n const textPathology = pathologyDiv?.textContent ?? \"\";\n expect(textPathology).toContain(\"Pathologies suivies\");\n expect(textPathology).toContain(\"Insuffisance hépatique\");\n expect(textPathology).toContain(\"Insuffisance rénale aigüe\");\n expect(textPathology).toContain(\"Insuffisance hépatique mo.\");\n expect(textPathology).toContain(\"Insuffisance cardiaque\");\n\n const allergyDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"allergy-section\\\"]\") as HTMLElement | null;\n expect(allergyDiv).toBeVisible();\n const textAllergy = allergyDiv?.textContent ?? \"\";\n expect(textAllergy).toContain(\"Allergies\");\n expect(textAllergy).toContain(\"Allergie au paracétamol\");\n\n const hepaticInsufficiencyDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"hepatic-insufficiency-section\\\"]\") as HTMLElement | null;\n expect(hepaticInsufficiencyDiv).toBeVisible();\n const textHepaticInsufficiency = hepaticInsufficiencyDiv?.textContent ?? \"\";\n expect(textHepaticInsufficiency).toContain(\"Insuffisance hépatique\");\n expect(textHepaticInsufficiency).toContain(\"Stade B\");\n\n const clairanceDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"clearance-section\\\"]\") as HTMLElement | null;\n expect(clairanceDiv).toBeVisible();\n const textClairance = clairanceDiv?.textContent ?? \"\";\n expect(textClairance).toContain(\"Clairance créatinine\");\n expect(textClairance).toContain(\"71 mL/min\");\n\n const dfgDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"dfg-section\\\"]\") as HTMLElement | null;\n expect(dfgDiv).toBeVisible();\n const textDfg = dfgDiv?.textContent ?? \"\";\n expect(textDfg).toContain(\"DFG\");\n expect(textDfg).toContain(\"45 mL/min\");\n });\n\n //Close the more information section at the end of the test\n if (visibleButton) {\n await visibleButton.click();\n }\n },\n}"
20
+ "text": "WebComponentsStory<any, any>"
21
+ }
22
+ },
23
+ {
24
+ "kind": "variable",
25
+ "name": "YoungPatient",
26
+ "type": {
27
+ "text": "WebComponentsStory<any, any>"
28
+ }
24
29
  },
25
30
  {
26
31
  "kind": "variable",
27
32
  "name": "WithoutEditButton",
28
33
  "type": {
29
- "text": "Story"
30
- },
31
- "default": "{\n args: {\n patientProfile: clonePatientProfile(),\n editButtonVisible: false,\n },\n play: async({ canvasElement, step }) => {\n const component = canvasElement.querySelector(\"bcb-patient-profile\") as HTMLElement | null;\n const divActions = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"action-buttons\\\"]\") as HTMLElement | null;\n const modifyButton = divActions?.querySelector(\"bcbd-button[data-test-id=\\\"modify-button\\\"]\") as HTMLElement | null;\n\n await step(\"Look at the visibility of Edit Button\", async() => {\n await expect(modifyButton).toBeNull();\n });\n },\n}"
34
+ "text": "WebComponentsStory<any, any>"
35
+ }
32
36
  },
33
37
  {
34
38
  "kind": "variable",
35
- "name": "BaseTestStory",
39
+ "name": "PatientProfileEmpty",
36
40
  "type": {
37
- "text": "Story"
38
- },
39
- "default": "{\n args: {\n patientProfile: clonePatientProfile(),\n },\n play: async({ canvasElement, step }) => {\n const restoreFetch = installFetchMockForPathologies(mockPathologies);\n try {\n const component = canvasElement.querySelector(\"bcb-patient-profile\") as HTMLElement | null;\n\n if (component) {\n component.setAttribute(\"patientProfile\", JSON.stringify(clonePatientProfile()));\n // Ou si c'est une propriété :\n (component as any).patientProfile = clonePatientProfile();\n }\n \n const shadow = component?.shadowRoot;\n\n await step(\"Verify initial value\", () => {\n const heightDiv = shadow?.querySelector(\"div[data-test-id=\\\"patient-height\\\"]\") as HTMLElement | null;\n const weightDiv = shadow?.querySelector(\"div[data-test-id=\\\"patient-weight\\\"]\") as HTMLElement | null;\n const ageDiv = shadow?.querySelector(\"div[data-test-id=\\\"patient-age\\\"]\") as HTMLElement | null;\n\n expect(heightDiv?.textContent ?? \"\").toContain(\"170 cm\");\n expect(weightDiv?.textContent ?? \"\").toContain(\"84 kg\");\n expect(ageDiv?.textContent ?? \"\").toContain(\"42 ans\");\n });\n\n const editionComponent = component?.shadowRoot?.querySelector(\"bcb-patient-profile-edition\") as HTMLElement | null;\n const editionContent = editionComponent?.shadowRoot?.querySelector(\"div\") as HTMLElement | null;\n\n // eslint-disable-next-line complexity\n await step(\"Basculer en mode édition et modifier les champs\", async() => {\n const actionsDiv = shadow?.querySelector(\"div[data-test-id=\\\"action-buttons\\\"]\") as HTMLElement | null;\n const modifyButton = actionsDiv?.querySelector(\"bcbd-button[data-test-id=\\\"modify-button\\\"]\") as HTMLElement | null;\n await modifyButton?.click();\n\n const sizeInput = editionContent?.querySelector(\"[data-test-id=\\\"size-input\\\"]\") as HTMLInputElement | null;\n const ageInput = editionContent?.querySelector(\"[data-test-id=\\\"age-input\\\"]\") as HTMLInputElement | null;\n const weightInput = editionContent?.querySelector(\"[data-test-id=\\\"weight-input\\\"]\") as HTMLInputElement | null;\n\n if (sizeInput) {\n sizeInput.value = \"\";\n sizeInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n sizeInput.value = \"20\";\n sizeInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n }\n\n if (ageInput) {\n ageInput.value = \"\";\n ageInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n ageInput.value = \"50\";\n ageInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n }\n\n if (weightInput) {\n weightInput.value = \"\";\n weightInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n weightInput.value = \"90\";\n weightInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n }\n const pathologieSelect = editionContent?.querySelector(\"[data-test-id=\\\"pathologies-select\\\"]\");\n\n const pathologiesSearch = pathologieSelect?.shadowRoot?.querySelector(\"input[type=\\\"text\\\"]\") as HTMLInputElement | null;\n if (pathologiesSearch) {\n await pathologiesSearch.click();\n pathologiesSearch.value = \"tes\";\n pathologiesSearch.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n await pathologiesSearch.click();\n }\n const optionSelector = \"div[data-test-id=\\\"select-option-K63\\\\.0\\\"]\";\n if (pathologieSelect instanceof HTMLElement) {\n const optionPatho = await waitForOption(pathologieSelect, optionSelector, 4000);\n await optionPatho.click();\n }\n\n const hepaticSelect = editionContent?.querySelector(\"[data-test-id=\\\"hepatic-stade-select\\\"]\") as HTMLElement | null;\n if (hepaticSelect instanceof HTMLElement) {\n await hepaticSelect?.click();\n\n const optionA = \"div[data-test-id=\\\"select-option-A\\\"]\";\n const optionStade = await waitForOption(hepaticSelect, optionA, 4000);\n await optionStade?.click();\n }\n\n const validateButton = editionContent?.querySelector(\"[data-test-id=\\\"save-button\\\"]\") as HTMLButtonElement | null;\n await validateButton?.click();\n });\n\n await step(\"Vérifier les valeurs modifiées en mode visuel\", () => {\n const pathologyDiv = shadow?.querySelector(\"div[data-test-id=\\\"pathology-section\\\"]\") as HTMLElement | null;\n const heightDiv = shadow?.querySelector(\"div[data-test-id=\\\"patient-height\\\"]\") as HTMLElement | null;\n const weightDiv = shadow?.querySelector(\"div[data-test-id=\\\"patient-weight\\\"]\") as HTMLElement | null;\n const ageDiv = shadow?.querySelector(\"div[data-test-id=\\\"patient-age\\\"]\") as HTMLElement | null;\n\n expect(heightDiv?.textContent ?? \"\").toContain(\"20 cm\");\n expect(weightDiv?.textContent ?? \"\").toContain(\"90 kg\");\n expect(ageDiv?.textContent ?? \"\").toContain(\"50 ans\");\n\n const pathologyText = pathologyDiv?.textContent ?? \"\";\n expect(pathologyText).toContain(\"Abces de l'intestin\");\n });\n } finally {\n restoreFetch();\n }\n },\n}"
41
+ "text": "WebComponentsStory<any, any>"
42
+ }
40
43
  }
41
44
  ],
42
45
  "exports": [
43
46
  {
44
47
  "kind": "js",
45
- "name": "default",
48
+ "name": "Base",
49
+ "declaration": {
50
+ "name": "Base",
51
+ "module": "src/patient-profile/patient-profile.stories.ts"
52
+ }
53
+ },
54
+ {
55
+ "kind": "js",
56
+ "name": "MalePatient",
46
57
  "declaration": {
47
- "name": "meta",
58
+ "name": "MalePatient",
48
59
  "module": "src/patient-profile/patient-profile.stories.ts"
49
60
  }
50
61
  },
51
62
  {
52
63
  "kind": "js",
53
- "name": "Base",
64
+ "name": "YoungPatient",
54
65
  "declaration": {
55
- "name": "Base",
66
+ "name": "YoungPatient",
56
67
  "module": "src/patient-profile/patient-profile.stories.ts"
57
68
  }
58
69
  },
@@ -66,9 +77,9 @@
66
77
  },
67
78
  {
68
79
  "kind": "js",
69
- "name": "BaseTestStory",
80
+ "name": "PatientProfileEmpty",
70
81
  "declaration": {
71
- "name": "BaseTestStory",
82
+ "name": "PatientProfileEmpty",
72
83
  "module": "src/patient-profile/patient-profile.stories.ts"
73
84
  }
74
85
  }
@@ -117,6 +128,14 @@
117
128
  },
118
129
  "attribute": "api-key"
119
130
  },
131
+ {
132
+ "kind": "field",
133
+ "name": "preferences",
134
+ "type": {
135
+ "text": "PatientProfilePreferences | undefined"
136
+ },
137
+ "attribute": "preferences"
138
+ },
120
139
  {
121
140
  "kind": "field",
122
141
  "name": "moreInformationVisible",
@@ -274,6 +293,13 @@
274
293
  "text": "string | undefined"
275
294
  },
276
295
  "fieldName": "apiKey"
296
+ },
297
+ {
298
+ "name": "preferences",
299
+ "type": {
300
+ "text": "PatientProfilePreferences | undefined"
301
+ },
302
+ "fieldName": "preferences"
277
303
  }
278
304
  ],
279
305
  "superclass": {
@@ -305,2442 +331,2541 @@
305
331
  },
306
332
  {
307
333
  "kind": "javascript-module",
308
- "path": "src/shared/interfaces/api-return.interface.ts",
309
- "declarations": [],
310
- "exports": []
311
- },
312
- {
313
- "kind": "javascript-module",
314
- "path": "src/shared/interfaces/patient.ts",
315
- "declarations": [],
316
- "exports": []
317
- },
318
- {
319
- "kind": "javascript-module",
320
- "path": "src/shared/mocks/pathologies.mock.ts",
321
- "declarations": [
322
- {
323
- "kind": "variable",
324
- "name": "mockPathologies",
325
- "type": {
326
- "text": "object"
327
- },
328
- "default": "{\n \"content\": [\n {\n \"code\": \"0000011731\",\n \"label\": \"Abaissement des bicarbonates sanguins\",\n \"labelHtml\": \"Abaissement des bicarbonates sanguins\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"K63.0\",\n \"label\": \"Abces de l'intestin\",\n \"labelHtml\": \"Abc&egrave;s de l&rsquo;intestin\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Q55.0\",\n \"label\": \"Absence (congenitale) et aplasie du testicule\",\n \"labelHtml\": \"Absence (cong&eacute;nitale) et aplasie du testicule\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000030994\",\n \"label\": \"Absence de test de grossesse negatif a l'initiation du traitement\",\n \"labelHtml\": \"Absence de test de grossesse n&eacute;gatif &agrave; l&rsquo;initiation du traitement\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"Q41.8\",\n \"label\": \"Absence. atresie et stenose congenitales d'autres localisations precisees de l'intestin grele\",\n \"labelHtml\": \"Absence, atr&eacute;sie et st&eacute;nose cong&eacute;nitales d&rsquo;autres localisations pr&eacute;cis&eacute;es de l&rsquo;intestin gr&ecirc;le\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Q41\",\n \"label\": \"Absence. atresie et stenose congenitales de l'intestin grele\",\n \"labelHtml\": \"Absence, atr&eacute;sie et st&eacute;nose cong&eacute;nitales de l&rsquo;intestin gr&ecirc;le\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Q41.9\",\n \"label\": \"Absence. atresie et stenose congenitales de l'intestin grele. sans precision de localisation\",\n \"labelHtml\": \"Absence, atr&eacute;sie et st&eacute;nose cong&eacute;nitales de l&rsquo;intestin gr&ecirc;le, sans pr&eacute;cision de localisation\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E10.9L83\",\n \"label\": \"Acanthosis nigricans au cours du diabete sucre de type 1 sans complication\",\n \"labelHtml\": \"Acanthosis nigricans au cours du diab&egrave;te sucr&eacute; de type 1 sans complication\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E11.9L83\",\n \"label\": \"Acanthosis nigricans au cours du diabete sucre de type 2 sans complication\",\n \"labelHtml\": \"Acanthosis nigricans au cours du diab&egrave;te sucr&eacute; de type 2 sans complication\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"R70.0\",\n \"label\": \"Acceleration de la vitesse de sedimentation\",\n \"labelHtml\": \"Acc&eacute;l&eacute;ration de la vitesse de s&eacute;dimentation\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"R70\",\n \"label\": \"Acceleration de la vitesse de sedimentation et anomalies de la viscosite plasmatique\",\n \"labelHtml\": \"Acc&eacute;l&eacute;ration de la vitesse de s&eacute;dimentation et anomalies de la viscosit&eacute; plasmatique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000012730\",\n \"label\": \"Acceleration du transit intestinal\",\n \"labelHtml\": \"Acc&eacute;l&eacute;ration du transit intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"V95\",\n \"label\": \"Accident d'aeronef a moteur dans lequel un occupant est blesse\",\n \"labelHtml\": \"Accident d&rsquo;a&eacute;ronef &agrave; moteur dans lequel un occupant est bless&eacute;\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"V96\",\n \"label\": \"Accident d'aeronef sans moteur dans lequel un occupant est blesse\",\n \"labelHtml\": \"Accident d&rsquo;a&eacute;ronef sans moteur dans lequel un occupant est bless&eacute;\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"G45\",\n \"label\": \"Accidents ischemiques cerebraux transitoires et syndromes apparentes\",\n \"labelHtml\": \"Accidents isch&eacute;miques c&eacute;r&eacute;braux transitoires et syndromes apparent&eacute;s\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Y88\",\n \"label\": \"Actes medicaux et chirurgicaux consideres comme cause externe de sequelles\",\n \"labelHtml\": \"Actes m&eacute;dicaux et chirurgicaux consid&eacute;r&eacute;s comme cause externe de s&eacute;quelles\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"F52.7\",\n \"label\": \"Activite sexuelle excessive\",\n \"labelHtml\": \"Activit&eacute; sexuelle excessive\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000007838\",\n \"label\": \"Activite sportive intense\",\n \"labelHtml\": \"Activit&eacute; sportive intense\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"K56.5\",\n \"label\": \"Adherences de l'intestin (brides). avec occlusion\",\n \"labelHtml\": \"Adh&eacute;rences de l&rsquo;intestin (brides), avec occlusion\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000034881\",\n \"label\": \"Administration d'eau et d'electrolytes avec une faible quantite d'hydrates de carbone\",\n \"labelHtml\": \"Administration d&rsquo;eau et d&rsquo;&eacute;lectrolytes avec une faible quantit&eacute; d&rsquo;hydrates de carbone\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000024719\",\n \"label\": \"Administration d'heparine au cours des 48h precedant l'AVC avec un temps de thromboplastine > limite superieure de la normale\",\n \"labelHtml\": \"Administration d&rsquo;h&eacute;parine au cours des 48h pr&eacute;c&eacute;dant l&rsquo;AVC avec un temps de thromboplastine > limite sup&eacute;rieure de la normale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"J70.4Y43.1\",\n \"label\": \"Affection pulmonaire interstitielle due aux antimetabolites antitumoraux\",\n \"labelHtml\": \"Affection pulmonaire interstitielle due aux antim&eacute;tabolites antitumoraux\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D57.2\",\n \"label\": \"Affections a hematies falciformes [drepanocytaires] heterozygotes doubles\",\n \"labelHtml\": \"Affections &agrave; h&eacute;maties falciformes [dr&eacute;panocytaires] h&eacute;t&eacute;rozygotes doubles\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E13.6M73.8\",\n \"label\": \"Affections des tissus mous au cours d'autres diabetes sucres precises\",\n \"labelHtml\": \"Affections des tissus mous au cours d&rsquo;autres diab&egrave;tes sucr&eacute;s pr&eacute;cis&eacute;s\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E12.6M73.8\",\n \"label\": \"Affections des tissus mous au cours du diabete sucre de malnutrition\",\n \"labelHtml\": \"Affections des tissus mous au cours du diab&egrave;te sucr&eacute; de malnutrition\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E11.6M73.8\",\n \"label\": \"Affections des tissus mous au cours du diabete sucre de type 2 \",\n \"labelHtml\": \"Affections des tissus mous au cours du diab&egrave;te sucr&eacute; de type 2 \",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E10.6M73.8\",\n \"label\": \"Affections des tissus mous au cours du diabete sucre insulinodependant\",\n \"labelHtml\": \"Affections des tissus mous au cours du diab&egrave;te sucr&eacute; insulinod&eacute;pendant\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E14.6M73.8\",\n \"label\": \"Affections des tissus mous au cours du diabete sucre. sans precision\",\n \"labelHtml\": \"Affections des tissus mous au cours du diab&egrave;te sucr&eacute;, sans pr&eacute;cision\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"N51.1\",\n \"label\": \"Affections du testicule et de l'epididyme au cours de maladies classees ailleurs\",\n \"labelHtml\": \"Affections du testicule et de l&rsquo;&eacute;pididyme au cours de maladies class&eacute;es ailleurs\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"N49.1\",\n \"label\": \"Affections inflammatoires du cordon spermatique. de la tunique vaginale du testicule et du canal deferent\",\n \"labelHtml\": \"Affections inflammatoires du cordon spermatique, de la tunique vaginale du testicule et du canal d&eacute;f&eacute;rent\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000035151\",\n \"label\": \"Agressivite persistante dans le trouble des conduites\",\n \"labelHtml\": \"Agressivit&eacute; persistante dans le trouble des conduites\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"Z04.0\",\n \"label\": \"Alcootest et recherche de substances pharmacologiques dans le sang\",\n \"labelHtml\": \"Alcootest et recherche de substances pharmacologiques dans le sang\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000012717\",\n \"label\": \"Allongement des tests de coagulation\",\n \"labelHtml\": \"Allongement des tests de coagulation\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000000587\",\n \"label\": \"Amibiase intestinale\",\n \"labelHtml\": \"Amibiase intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"A06.1\",\n \"label\": \"Amibiase intestinale chronique\",\n \"labelHtml\": \"Amibiase intestinale chronique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"A06.3\",\n \"label\": \"Amoebome (de l'intestin)\",\n \"labelHtml\": \"Amoebome (de l&rsquo;intestin)\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"S08.8\",\n \"label\": \"Amputation traumatique d'autres parties de la tete\",\n \"labelHtml\": \"Amputation traumatique d&rsquo;autres parties de la t&ecirc;te\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"S08\",\n \"label\": \"Amputation traumatique d'une partie de la tete\",\n \"labelHtml\": \"Amputation traumatique d&rsquo;une partie de la t&ecirc;te\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"G12\",\n \"label\": \"Amyotrophie spinale et syndromes apparentes\",\n \"labelHtml\": \"Amyotrophie spinale et syndromes apparent&eacute;s\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000034195\",\n \"label\": \"Analgesie de courte duree des actes douloureux\",\n \"labelHtml\": \"Analg&eacute;sie de courte dur&eacute;e des actes douloureux\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000020159\",\n \"label\": \"Anemie liee aux maladies inflammatoires chroniques de l'intestin\",\n \"labelHtml\": \"An&eacute;mie li&eacute;e aux maladies inflammatoires chroniques de l&rsquo;intestin\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"D52.1Y43.1\",\n \"label\": \"Anemie par carence en acide folique due aux antimetabolites tumoraux\",\n \"labelHtml\": \"An&eacute;mie par carence en acide folique due aux antim&eacute;tabolites tumoraux\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D46.2\",\n \"label\": \"Anemie refractaire avec exces de blastes [AREB]\",\n \"labelHtml\": \"An&eacute;mie r&eacute;fractaire avec exc&egrave;s de blastes [AREB]\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000015863\",\n \"label\": \"Anemie refractaire avec exces de blastes en transformation\",\n \"labelHtml\": \"An&eacute;mie r&eacute;fractaire avec exc&egrave;s de blastes en transformation\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"D46.3\",\n \"label\": \"Anemie refractaire avec exces de blastes en transformation\",\n \"labelHtml\": \"An&eacute;mie r&eacute;fractaire avec exc&egrave;s de blastes en transformation\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D46.1\",\n \"label\": \"Anemie refractaire avec sideroblastes en couronne\",\n \"labelHtml\": \"An&eacute;mie r&eacute;fractaire avec sid&eacute;roblastes en couronne\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D46.0\",\n \"label\": \"Anemie refractaire sans sideroblastes en couronne. ainsi precisee\",\n \"labelHtml\": \"An&eacute;mie r&eacute;fractaire sans sid&eacute;roblastes en couronne, ainsi pr&eacute;cis&eacute;e\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000035332\",\n \"label\": \"Anesthesie des petites interventions\",\n \"labelHtml\": \"Anesth&eacute;sie des petites interventions\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"F44.6\",\n \"label\": \"Anesthesie dissociative et atteintes sensorielles\",\n \"labelHtml\": \"Anesth&eacute;sie dissociative et atteintes sensorielles\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000029304\",\n \"label\": \"Anesthesie locale des extremites\",\n \"labelHtml\": \"Anesth&eacute;sie locale des extr&eacute;mit&eacute;s\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"M31.6I72.9\",\n \"label\": \"Anevrisme au cours d'autres arterites a cellules geante\",\n \"labelHtml\": \"An&eacute;vrisme au cours d&rsquo;autres art&eacute;rites &agrave; cellules g&eacute;ante\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000016647\",\n \"label\": \"Angio oedeme intestinal\",\n \"labelHtml\": \"Angio-oed&egrave;me intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"K55.3\",\n \"label\": \"Angiodysplasie de l'intestin grele\",\n \"labelHtml\": \"Angiodysplasie de l&rsquo;intestin gr&ecirc;le\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E11.5I79.2\",\n \"label\": \"Angiopathie peripherique au cours du diabete sucre de type 2 \",\n \"labelHtml\": \"Angiopathie p&eacute;riph&eacute;rique au cours du diab&egrave;te sucr&eacute; de type 2 \",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"B81.3\",\n \"label\": \"Angiostrongyloidose [angiostrongylose] intestinale\",\n \"labelHtml\": \"Angiostrongylo&iuml;dose [angiostrongylose] intestinale\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000032547\",\n \"label\": \"Angor intestinal\",\n \"labelHtml\": \"Angor intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000007686\",\n \"label\": \"Anguillulose gastro intestinale\",\n \"labelHtml\": \"Anguillulose gastro-intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"B78.0\",\n \"label\": \"Anguillulose intestinale\",\n \"labelHtml\": \"Anguillulose intestinale\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D72.9\",\n \"label\": \"Anomalie des leucocytes. sans precision\",\n \"labelHtml\": \"Anomalie des leucocytes, sans pr&eacute;cision\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000017715\",\n \"label\": \"Anomalie des plaquettes\",\n \"labelHtml\": \"Anomalie des plaquettes\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"E74.9\",\n \"label\": \"Anomalie du metabolisme des hydrates de carbone. sans precision\",\n \"labelHtml\": \"Anomalie du m&eacute;tabolisme des hydrates de carbone, sans pr&eacute;cision\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D71\",\n \"label\": \"Anomalies fonctionnelles des granulocytes neutrophiles\",\n \"labelHtml\": \"Anomalies fonctionnelles des granulocytes neutrophiles\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D72.0\",\n \"label\": \"Anomalies genetiques des leucocytes\",\n \"labelHtml\": \"Anomalies g&eacute;n&eacute;tiques des leucocytes\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"K07.0\",\n \"label\": \"Anomalies importantes de dimension des machoires\",\n \"labelHtml\": \"Anomalies importantes de dimension des m&acirc;choires\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Y54.1\",\n \"label\": \"Antagonistes de mineralocorticoides ayant provoque des effets indesirables au cours de leur usage therapeutique\",\n \"labelHtml\": \"Antagonistes de min&eacute;ralocortico&iuml;des ayant provoqu&eacute; des effets ind&eacute;sirables au cours de leur usage th&eacute;rapeutique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Y44.3\",\n \"label\": \"Antagonistes des anticoagulants. Vit K et autres coagulants ayant provoque des effets indesirables au cours de leur usage therap\",\n \"labelHtml\": \"Antagonistes des anticoagulants, Vit K et autres coagulants ayant provoqu&eacute; des effets ind&eacute;sirables au cours de leur usage th&eacute;rap\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000007843\",\n \"label\": \"Antecedent d'anastomose intestinale\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent d&rsquo;anastomose intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000007281\",\n \"label\": \"Antecedent d'hepatite severe medicamenteuse\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent d&rsquo;h&eacute;patite s&eacute;v&egrave;re m&eacute;dicamenteuse\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000011646\",\n \"label\": \"Antecedent d'occlusion gastro intestinale\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent d&rsquo;occlusion gastro-intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000008470\",\n \"label\": \"Antecedent d'ulcere gastro intestinal\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent d&rsquo;ulc&egrave;re gastro-intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000017966\",\n \"label\": \"Antecedent de colite secondaire aux antibiotiques\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de colite secondaire aux antibiotiques\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000022549\",\n \"label\": \"Antecedent de perforation gastro intestinale\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de perforation gastro-intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000021331\",\n \"label\": \"Antecedent de photosensibilisation par des fibrates\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de photosensibilisation par des fibrates\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000021330\",\n \"label\": \"Antecedent de reaction phototoxique par des fibrates\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de r&eacute;action phototoxique par des fibrates\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000015141\",\n \"label\": \"Antecedent de resection chirurgicale de l'intestin grele\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de r&eacute;section chirurgicale de l&rsquo;intestin gr&ecirc;le\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000011898\",\n \"label\": \"Antecedent de resection intestinale chez le mucoviscidosique\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de r&eacute;section intestinale chez le mucoviscidosique\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000016978\",\n \"label\": \"Antecedent de saignement gastro intestinal\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de saignement gastro-intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000032656\",\n \"label\": \"Antecedent de saignement ou d'ulcere gastrointestinal au cours d'un traitement par AINS\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de saignement ou d&rsquo;ulc&egrave;re gastrointestinal au cours d&rsquo;un traitement par AINS\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000031320\",\n \"label\": \"Antecedent de thrombopenie sous pentosane polysulfate sodique\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de thrombop&eacute;nie sous pentosane polysulfate sodique\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000012561\",\n \"label\": \"Antecedent de torsades de pointes\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de torsades de pointes\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000000717\",\n \"label\": \"Antecedent familial d'hepatite severe\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent familial d&rsquo;h&eacute;patite s&eacute;v&egrave;re\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000012810\",\n \"label\": \"Antecedent gastro intestinal\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent gastro-intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000023815\",\n \"label\": \"Antecedent pulmonaire associe aux agonistes dopaminergiques\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent pulmonaire associ&eacute; aux agonistes dopaminergiques\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000024346\",\n \"label\": \"Antecedents d'infections recurrentes\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents d&rsquo;infections r&eacute;currentes\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"Z82.8\",\n \"label\": \"Antecedents familiaux d'autres incapacites et maladies chroniques conduisant a l'invalidite. non classees ailleurs\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents familiaux d&rsquo;autres incapacit&eacute;s et maladies chroniques conduisant &agrave; l&rsquo;invalidit&eacute;, non class&eacute;es ailleurs\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Z80.7\",\n \"label\": \"Antecedents familiaux d'autres tumeurs des tissus lymphoide. hematopoietique et apparentes\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents familiaux d&rsquo;autres tumeurs des tissus lympho&iuml;de, h&eacute;matopo&iuml;&eacute;tique et apparent&eacute;s\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Z82\",\n \"label\": \"Antecedents familiaux de certaines incapacites et maladies chroniques conduisant a l'invalidite\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents familiaux de certaines incapacit&eacute;s et maladies chroniques conduisant &agrave; l&rsquo;invalidit&eacute;\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Z83.3\",\n \"label\": \"Antecedents familiaux de diabete sucre\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents familiaux de diab&egrave;te sucr&eacute;\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Z85.7\",\n \"label\": \"Antecedents personnels d'autres tumeurs malignes des tissus lymphoide. hematopoietique et apparentes\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents personnels d&rsquo;autres tumeurs malignes des tissus lympho&iuml;de, h&eacute;matopo&iuml;&eacute;tique et apparent&eacute;s\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000032625\",\n \"label\": \"Anticorps anti cytoplasme des polynucleaires neutrophiles (ANCA) augmentes\",\n \"labelHtml\": \"Anticorps anti-cytoplasme des polynucl&eacute;aires neutrophiles (ANCA) augment&eacute;s\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"Y57.2\",\n \"label\": \"Antidotes et chelateurs ayant provoque des effets indesirables lors de leur usage therapeutique\",\n \"labelHtml\": \"Antidotes et ch&eacute;lateurs ayant provoqu&eacute; des effets ind&eacute;sirables lors de leur usage th&eacute;rapeutique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Y43.1\",\n \"label\": \"Antimetabolites tumoraux ayant provoque des effets indesirables au cours de leur usage therapeutique\",\n \"labelHtml\": \"Antim&eacute;tabolites tumoraux ayant provoqu&eacute; des effets ind&eacute;sirables au cours de leur usage th&eacute;rapeutique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000026742\",\n \"label\": \"Anxiete sociale\",\n \"labelHtml\": \"Anxi&eacute;t&eacute; sociale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"F93.2\",\n \"label\": \"Anxiete sociale de l'enfance\",\n \"labelHtml\": \"Anxi&eacute;t&eacute; sociale de l&rsquo;enfance\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"M31.6I79.1\",\n \"label\": \"Aortite au cours d'autres arterites a cellules geantes\",\n \"labelHtml\": \"Aortite au cours d&rsquo;autres art&eacute;rites &agrave; cellules g&eacute;antes\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"A52.0I79.1\",\n \"label\": \"Aortite syphilitique\",\n \"labelHtml\": \"Aortite syphilitique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"K12.0\",\n \"label\": \"Aphtes buccaux recidivants\",\n \"labelHtml\": \"Aphtes buccaux r&eacute;cidivants\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D61.1Y44.1\",\n \"label\": \"Aplasie medullaire due a vitamine B12. acide folique et autres preparations prescrites dans les anemies megaloblastiques\",\n \"labelHtml\": \"Aplasie m&eacute;dullaire due &agrave; vitamine B12, acide folique et autres pr&eacute;parations prescrites dans les an&eacute;mies m&eacute;galoblastiques\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D61.1Y43.1\",\n \"label\": \"Aplasie medullaire due aux antimetabolites tumoraux\",\n \"labelHtml\": \"Aplasie m&eacute;dullaire due aux antim&eacute;tabolites tumoraux\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Y81\",\n \"label\": \"Appareils utilises en chirurgie generale et esthetique. associes a des accidents\",\n \"labelHtml\": \"Appareils utilis&eacute;s en chirurgie g&eacute;n&eacute;rale et esth&eacute;tique, associ&eacute;s &agrave; des accidents\",\n \"subType\": \"CIM10\",\n },\n ],\n \"pageable\": {\n \"sort\": {\n \"sorted\": true,\n \"unsorted\": false,\n \"empty\": false,\n },\n \"pageSize\": 100,\n \"pageNumber\": 0,\n \"offset\": 0,\n \"paged\": true,\n \"unpaged\": false,\n },\n \"totalElements\": 1365,\n \"totalPages\": 14,\n \"last\": false,\n \"sort\": {\n \"sorted\": true,\n \"unsorted\": false,\n \"empty\": false,\n },\n \"first\": true,\n \"numberOfElements\": 100,\n \"number\": 0,\n \"size\": 100,\n \"empty\": false,\n}"
329
- }
330
- ],
331
- "exports": [
332
- {
333
- "kind": "js",
334
- "name": "mockPathologies",
335
- "declaration": {
336
- "name": "mockPathologies",
337
- "module": "src/shared/mocks/pathologies.mock.ts"
338
- }
339
- }
340
- ]
341
- },
342
- {
343
- "kind": "javascript-module",
344
- "path": "src/shared/mocks/patient-profile.mock.ts",
345
- "declarations": [
346
- {
347
- "kind": "variable",
348
- "name": "patientComplete",
349
- "type": {
350
- "text": "Bundle"
351
- },
352
- "default": "{\n resourceType: \"Bundle\",\n id: \"patient-complete\",\n type: \"document\",\n entry: [\n {\n resource: {\n resourceType: \"Composition\", // On a Bundle of type document, the first entry must be a Composition\n id: \"composition-complete\",\n status: \"final\",\n type: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"34133-9\",\n display: \"Summary of episode note\",\n },\n ],\n },\n subject: [{ reference: \"Patient/patient-complete\" }],\n date: \"2025-09-02\",\n title: \"Patient complete composition\",\n author: [{ reference: \"Practitioner/dr-martin\" }],\n },\n },\n {\n resource: {\n resourceType: \"Patient\",\n id: \"patient-complete\",\n gender: \"female\", // sex at birth\n birthDate: \"1984-01-01\", // birthDate used to calculate age\n name: [\n {\n family: \"Dupont\",\n given: [\"Marie\"],\n },\n ],\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-gestational-age\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"18185-9\",\n display: \"Gestational age\", // Most used Loinc code for gestational age / number of weeks of amenorrhea\n },\n ],\n text: \"Âge gestationnel\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 20,\n unit: \"weeks\",\n system: \"http://unitsofmeasure.org\",\n code: \"wk\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine-clearance\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"2164-2\",\n display: \"Creatinine renal clearance in 24 hour Urine and Serum or Plasma\", // Most used Loinc code for creatinine clearance\n },\n ],\n text: \"Clairance de la créatinine\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 71,\n unit: \"mL/min\",\n system: \"http://unitsofmeasure.org\",\n code: \"mL/min\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"15051-6\",\n display: \"Creatinine [Moles/volume] in Serum or Plasma\", // LOINC code for serum creatinine in μmol/L\n },\n ],\n text: \"Créatininémie\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 121,\n unit: \"μmol/L\",\n system: \"http://unitsofmeasure.org\",\n code: \"umol/L\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"2160-0\",\n display: \"Creatinine [Mass/volume] in Serum or Plasma\", // Most used Loinc code for serum creatinine\n },\n ],\n text: \"Créatininémie\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 1.4,\n unit: \"mg/dL\",\n system: \"http://unitsofmeasure.org\",\n code: \"mg/dL\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-dfg\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"48642-3\",\n // eslint-disable-next-line @stylistic/max-len\n display: \"Glomerular filtration rate [Volume Rate/Area] in Serum, Plasma or Blood by Creatinine-based formula (MDRD)/1.73 sq M\",\n },\n ],\n text: \"DFG\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 45,\n unit: \"mL/min/1.73.m2\",\n system: \"http://unitsofmeasure.org\",\n code: \"mL/min/1.73.m2\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-child-pugh-score\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"98152-2\",\n display: \"Total score [Child-Pugh]\",\n },\n ],\n text: \"Score total Child-Pugh\",\n },\n subject: {\n \"reference\": \"Patient/patient-complete\",\n },\n valueQuantity: {\n value: 7,\n unit: \"score\",\n system: \"http://unitsofmeasure.org\",\n code: \"{score}\",\n },\n valueCodeableConcept: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"710066005\",\n display: \"Child-Pugh score class B\",\n },\n ],\n text: \"Stade B\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-body-weight\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"29463-7\",\n display: \"Body weight\", // Most used Loinc code for body weight\n },\n ],\n text: \"Poids corporel\",\n },\n subject: {\n reference: \"Patient/patient-complete\",\n },\n valueQuantity: {\n value: 84,\n unit: \"kg\",\n system: \"http://unitsofmeasure.org\",\n code: \"kg\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-body-height\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"8302-2\",\n display: \"Body height\", // Most used Loinc code for body height\n },\n ],\n text: \"Taille corporelle\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 170,\n unit: \"cm\",\n system: \"http://unitsofmeasure.org\",\n code: \"cm\",\n },\n },\n },\n {\n resource: {\n resourceType: \"AdverseEvent\", // Resource used to specify adverse events like drug side effects the patient is experiencing\n id: \"adverseevent-amoxicillin-rash\",\n actuality: \"actual\",\n subject: { reference: \"Patient/patient-complete\" },\n status: \"unknown\",\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"271807003\",\n display: \"Rash\",\n },\n ],\n text: \"Éruption cutanée\",\n },\n suspectEntity: [ // Link to the medication request that supposedly or certainly caused the adverse event\n {\n instanceReference: {\n reference: \"MedicationRequest/req-cardensiel\",\n },\n causality: {\n assessmentMethod: {\n coding: [\n {\n system: \"http://terminology.hl7.org/CodeSystem/adverse-event-causality-assess\",\n code: \"certain\",\n display: \"Certain\",\n },\n ],\n },\n },\n },\n ],\n seriousness: {\n coding: [\n {\n system: \"http://terminology.hl7.org/CodeSystem/adverse-event-seriousness\",\n code: \"non-serious\",\n display: \"Non-serious\",\n },\n ],\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-pregnancy-status\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"82810-3\",\n display: \"Pregnancy status\", // Most used Loinc code for pregnancy status\n },\n ],\n text: \"Statut de grossesse\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueCodeableConcept: { // result of the observation meaning the patient is currently pregnant (it can also be represented more simply by a Condition resource with the same snomed code)\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"77386006\",\n display: \"Pregnant\",\n },\n ],\n text: \"Grossesse\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-breastfeeding-status\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"63895-7\",\n display: \"Breastfeeding status\", // Most used Loinc code for breastfeeding status\n },\n ],\n text: \"Statut d'allaitement\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueCodeableConcept: { // result of the observation meaning the patient is currently breastfeeding (it can also be represented more simply by a Condition resource with the same snomed code)\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"69840006\",\n display: \"Breastfeeding\",\n },\n ],\n text: \"Allaitement\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Condition\", // Resources of type Condition are used to specify pathologies\n id: \"hepatic-insufficiency\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"59927004\",\n display: \"Hepatic failure\",\n },\n ],\n text: \"Insuffisance hépatique\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-medical-terrain\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"723189000\",\n display: \"Insuffisance rénale aigüe\",\n },\n ],\n text: \"Insuffisance rénale aigüe\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-medical-terrain\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"723188000\",\n display: \"Insuffisance hépatique modérée\",\n },\n ],\n text: \"Insuffisance hépatique modérée\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-followed-pathology\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"84114007\",\n display: \"Insuffisance cardiaque\",\n },\n ],\n text: \"Insuffisance cardiaque\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"AllergyIntolerance\", // Resource used to specify allergies or intolerances the patient has\n id: \"allergy-paracetamol\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"293584003\",\n display: \"Allergie au paracétamol\",\n },\n ],\n text: \"Allergie au paracétamol\",\n },\n patient: { reference: \"Patient/patient-complete\" },\n },\n },\n ],\n}"
353
- }
354
- ],
355
- "exports": [
356
- {
357
- "kind": "js",
358
- "name": "patientComplete",
359
- "declaration": {
360
- "name": "patientComplete",
361
- "module": "src/shared/mocks/patient-profile.mock.ts"
362
- }
363
- }
364
- ]
365
- },
366
- {
367
- "kind": "javascript-module",
368
- "path": "src/shared/constants/edition-options.ts",
369
- "declarations": [
370
- {
371
- "kind": "variable",
372
- "name": "sexOptions",
373
- "type": {
374
- "text": "{ value: string, label: string }[]"
375
- },
376
- "default": "[\n { value: \"male\", label: \"Masculin\" },\n { value: \"female\", label: \"Féminin\" },\n { value: \"unknown\", label: \"Inconnu\" },\n]"
377
- },
378
- {
379
- "kind": "variable",
380
- "name": "hepaticStadeOptions",
381
- "type": {
382
- "text": "{ value: string, label: string }[]"
383
- },
384
- "default": "[\n { value: \"A\", label: \"Stade A\" },\n { value: \"B\", label: \"Stade B\" },\n { value: \"C\", label: \"Stade C\" },\n]"
385
- },
386
- {
387
- "kind": "variable",
388
- "name": "ageOptions",
389
- "type": {
390
- "text": "{ value: string, label: string }[]"
391
- },
392
- "default": "[\n { value: \"ans\", label: \"Ans\" },\n { value: \"mois\", label: \"Mois\" },\n]"
393
- }
394
- ],
395
- "exports": [
396
- {
397
- "kind": "js",
398
- "name": "sexOptions",
399
- "declaration": {
400
- "name": "sexOptions",
401
- "module": "src/shared/constants/edition-options.ts"
402
- }
403
- },
404
- {
405
- "kind": "js",
406
- "name": "hepaticStadeOptions",
407
- "declaration": {
408
- "name": "hepaticStadeOptions",
409
- "module": "src/shared/constants/edition-options.ts"
410
- }
411
- },
412
- {
413
- "kind": "js",
414
- "name": "ageOptions",
415
- "declaration": {
416
- "name": "ageOptions",
417
- "module": "src/shared/constants/edition-options.ts"
418
- }
419
- }
420
- ]
421
- },
422
- {
423
- "kind": "javascript-module",
424
- "path": "src/shared/constants/loinc.ts",
425
- "declarations": [
426
- {
427
- "kind": "variable",
428
- "name": "acceptedLoincCodesForRenalClearance",
429
- "type": {
430
- "text": "string[]"
431
- },
432
- "default": "[\n \"2163-4\",\n \"2164-2\",\n \"13441-1\",\n \"13442-9\",\n \"13443-7\",\n \"13446-0\",\n \"13447-8\",\n \"13449-4\",\n \"13450-2\",\n \"26752-6\",\n \"35591-7\",\n \"35594-1\",\n \"50380-5\",\n \"50381-3\",\n \"104805-7\",\n]"
433
- },
434
- {
435
- "kind": "variable",
436
- "name": "acceptedLoincCodesForRenalGFRPerBSA",
437
- "type": {
438
- "text": "string[]"
439
- },
440
- "default": "[\n \"69405-9\",\n \"70969-1\",\n \"48642-3\",\n \"48643-1\",\n \"50044-7\",\n \"50210-4\",\n \"50384-7\",\n \"62238-1\",\n \"77147-7\",\n \"78006-4\",\n \"88293-6\",\n \"88294-4\",\n \"94677-2\",\n \"96591-3\",\n \"96592-1\",\n \"98979-8\",\n \"98980-6\",\n \"102097-3\",\n]"
441
- }
442
- ],
443
- "exports": [
444
- {
445
- "kind": "js",
446
- "name": "acceptedLoincCodesForRenalClearance",
447
- "declaration": {
448
- "name": "acceptedLoincCodesForRenalClearance",
449
- "module": "src/shared/constants/loinc.ts"
450
- }
451
- },
452
- {
453
- "kind": "js",
454
- "name": "acceptedLoincCodesForRenalGFRPerBSA",
455
- "declaration": {
456
- "name": "acceptedLoincCodesForRenalGFRPerBSA",
457
- "module": "src/shared/constants/loinc.ts"
458
- }
459
- }
460
- ]
461
- },
462
- {
463
- "kind": "javascript-module",
464
- "path": "src/shared/constants/settings.ts",
334
+ "path": "src/patient-profile/patient-profile-edition/patient-profile-edition.stories.ts",
465
335
  "declarations": [
466
336
  {
467
337
  "kind": "variable",
468
- "name": "PREFIX",
338
+ "name": "Base",
469
339
  "type": {
470
- "text": "string"
471
- },
472
- "default": "\"claudebernard\""
473
- }
474
- ],
475
- "exports": [
476
- {
477
- "kind": "js",
478
- "name": "PREFIX",
479
- "declaration": {
480
- "name": "PREFIX",
481
- "module": "src/shared/constants/settings.ts"
340
+ "text": "WebComponentsStory<any, any>"
482
341
  }
483
342
  }
484
- ]
485
- },
486
- {
487
- "kind": "javascript-module",
488
- "path": "src/shared/constants/snomed.ts",
489
- "declarations": [
490
- {
491
- "kind": "variable",
492
- "name": "snomedToChildPughStadeMap",
493
- "type": {
494
- "text": "object"
495
- },
496
- "default": "{\n \"710065009\": \"Stade A\",\n \"710066005\": \"Stade B\",\n \"710067001\": \"Stade C\",\n}"
497
- },
498
- {
499
- "kind": "variable",
500
- "name": "childPughStadeToSnomedMap",
501
- "type": {
502
- "text": "object"
503
- },
504
- "default": "{\n \"A\": \"710065009\",\n \"B\": \"710066005\",\n \"C\": \"710067001\",\n}"
505
- }
506
343
  ],
507
344
  "exports": [
508
345
  {
509
346
  "kind": "js",
510
- "name": "snomedToChildPughStadeMap",
511
- "declaration": {
512
- "name": "snomedToChildPughStadeMap",
513
- "module": "src/shared/constants/snomed.ts"
514
- }
515
- },
516
- {
517
- "kind": "js",
518
- "name": "childPughStadeToSnomedMap",
347
+ "name": "Base",
519
348
  "declaration": {
520
- "name": "childPughStadeToSnomedMap",
521
- "module": "src/shared/constants/snomed.ts"
349
+ "name": "Base",
350
+ "module": "src/patient-profile/patient-profile-edition/patient-profile-edition.stories.ts"
522
351
  }
523
352
  }
524
353
  ]
525
354
  },
526
355
  {
527
356
  "kind": "javascript-module",
528
- "path": "src/shared/services/api-search.service.ts",
357
+ "path": "src/patient-profile/patient-profile-edition/patient-profile-edition.ts",
529
358
  "declarations": [
530
359
  {
531
- "kind": "function",
532
- "name": "fetchPathologiesByTerm",
533
- "parameters": [
360
+ "kind": "class",
361
+ "description": "",
362
+ "name": "PatientProfileEdition",
363
+ "members": [
534
364
  {
535
- "name": "term",
365
+ "kind": "field",
366
+ "name": "patientProfile",
536
367
  "type": {
537
- "text": "string"
538
- }
539
- },
368
+ "text": "Bundle | undefined"
369
+ },
370
+ "attribute": "patient-profile"
371
+ },
540
372
  {
541
- "name": "params",
373
+ "kind": "field",
374
+ "name": "apiUrl",
542
375
  "type": {
543
- "text": "SearchRequestBody"
544
- }
376
+ "text": "string | undefined"
377
+ },
378
+ "attribute": "api-url"
545
379
  },
546
380
  {
547
- "name": "apiUrl",
381
+ "kind": "field",
382
+ "name": "apiKey",
548
383
  "type": {
549
- "text": "string"
550
- }
551
- }
552
- ]
553
- },
554
- {
555
- "kind": "function",
556
- "name": "fetchMoleculesByTerm",
557
- "parameters": [
384
+ "text": "string | undefined"
385
+ },
386
+ "attribute": "api-key"
387
+ },
558
388
  {
559
- "name": "term",
389
+ "kind": "field",
390
+ "name": "preferences",
560
391
  "type": {
561
- "text": "string"
562
- }
392
+ "text": "PatientProfilePreferences | undefined"
393
+ },
394
+ "attribute": "preferences"
563
395
  },
564
396
  {
565
- "name": "params",
397
+ "kind": "field",
398
+ "name": "patientAge",
566
399
  "type": {
567
- "text": "SearchRequestBody"
568
- }
400
+ "text": "number"
401
+ },
402
+ "default": "0"
569
403
  },
570
404
  {
571
- "name": "apiUrl",
405
+ "kind": "field",
406
+ "name": "patientUnitAge",
572
407
  "type": {
573
408
  "text": "string"
574
- }
575
- }
576
- ]
577
- }
578
- ],
579
- "exports": [
580
- {
581
- "kind": "js",
582
- "name": "fetchPathologiesByTerm",
583
- "declaration": {
584
- "name": "fetchPathologiesByTerm",
585
- "module": "src/shared/services/api-search.service.ts"
586
- }
587
- },
588
- {
589
- "kind": "js",
590
- "name": "fetchMoleculesByTerm",
591
- "declaration": {
592
- "name": "fetchMoleculesByTerm",
593
- "module": "src/shared/services/api-search.service.ts"
594
- }
595
- }
596
- ]
597
- },
598
- {
599
- "kind": "javascript-module",
600
- "path": "src/shared/utils/formula-utils.ts",
601
- "declarations": [
602
- {
603
- "kind": "function",
604
- "name": "calculateBMI",
605
- "return": {
606
- "type": {
607
- "text": ""
608
- }
609
- },
610
- "parameters": [
409
+ },
410
+ "default": "\"ans\""
411
+ },
611
412
  {
612
- "name": "weight",
413
+ "kind": "field",
414
+ "name": "patientWeight",
613
415
  "type": {
614
416
  "text": "number"
615
417
  },
616
- "description": "Poids en kilogrammes"
418
+ "default": "0"
617
419
  },
618
420
  {
619
- "name": "height",
421
+ "kind": "field",
422
+ "name": "patientHeight",
620
423
  "type": {
621
424
  "text": "number"
622
425
  },
623
- "description": "Taille en centimètres"
624
- }
625
- ],
626
- "description": "Calcule l'IMC à partir du poids et de la taille"
627
- },
628
- {
629
- "kind": "function",
630
- "name": "calculateCreatinineClearance",
631
- "return": {
632
- "type": {
633
- "text": ""
634
- }
635
- },
636
- "parameters": [
426
+ "default": "0"
427
+ },
637
428
  {
638
- "name": "age",
429
+ "kind": "field",
430
+ "name": "creatinineByMg",
639
431
  "type": {
640
432
  "text": "number"
641
433
  },
642
- "description": "Age du patient en années"
434
+ "default": "0"
643
435
  },
644
436
  {
645
- "name": "weight",
437
+ "kind": "field",
438
+ "name": "creatinineByUmol",
646
439
  "type": {
647
440
  "text": "number"
648
441
  },
649
- "description": "Poids en kilogrammes"
442
+ "default": "0"
650
443
  },
651
444
  {
652
- "name": "scrMgdl",
445
+ "kind": "field",
446
+ "name": "clairanceCreatinine",
653
447
  "type": {
654
448
  "text": "number"
655
449
  },
656
- "description": "Créatinine sérique en mg/dL"
450
+ "default": "0"
657
451
  },
658
452
  {
659
- "name": "isFemale",
453
+ "kind": "field",
454
+ "name": "dfg",
455
+ "type": {
456
+ "text": "number"
457
+ },
458
+ "default": "0"
459
+ },
460
+ {
461
+ "kind": "field",
462
+ "name": "defaultPatientUnitAge",
463
+ "type": {
464
+ "text": "{ value?: string; label?: string }"
465
+ },
466
+ "default": "{}"
467
+ },
468
+ {
469
+ "kind": "field",
470
+ "name": "defaultPatientSex",
471
+ "type": {
472
+ "text": "{ value?: string; label?: string }"
473
+ },
474
+ "default": "{}"
475
+ },
476
+ {
477
+ "kind": "field",
478
+ "name": "defaultHepaticStade",
479
+ "type": {
480
+ "text": "{ value?: string; label?: string }"
481
+ },
482
+ "default": "{}"
483
+ },
484
+ {
485
+ "kind": "field",
486
+ "name": "isPregnancyDivVisible",
660
487
  "type": {
661
488
  "text": "boolean"
662
489
  },
663
- "description": "true si le patient est une femme, false sinon"
664
- }
665
- ],
666
- "description": "Calcule la clairance de la créatinine selon la formule de Cockcroft-Gault"
667
- },
668
- {
669
- "kind": "function",
670
- "name": "convertCreatinineUmolToMgdL",
671
- "return": {
672
- "type": {
673
- "text": ""
674
- }
675
- },
676
- "parameters": [
490
+ "default": "false"
491
+ },
677
492
  {
678
- "name": "creatinineUmolL",
493
+ "kind": "field",
494
+ "name": "isPregnant",
679
495
  "type": {
680
- "text": "number"
496
+ "text": "boolean"
681
497
  },
682
- "description": "Créatinine en μmol/L"
683
- }
684
- ],
685
- "description": "Convertit la créatinine de μmol/L en mg/dL"
686
- },
687
- {
688
- "kind": "function",
689
- "name": "convertCreatinineMgdLToUmol",
690
- "return": {
691
- "type": {
692
- "text": ""
693
- }
694
- },
695
- "parameters": [
498
+ "default": "false"
499
+ },
696
500
  {
697
- "name": "creatinineMgdL",
501
+ "kind": "field",
502
+ "name": "breastfeeding",
698
503
  "type": {
699
- "text": "number"
504
+ "text": "boolean"
700
505
  },
701
- "description": "Créatinine en mg/dL"
702
- }
703
- ],
704
- "description": "Convertit la créatinine de mg/dL en μmol/L"
705
- },
706
- {
707
- "kind": "function",
708
- "name": "convertCreatinineMgdLToMgL",
709
- "return": {
710
- "type": {
711
- "text": ""
712
- }
713
- },
714
- "parameters": [
506
+ "default": "false"
507
+ },
715
508
  {
716
- "name": "creatinineMgdL",
509
+ "kind": "field",
510
+ "name": "ageErrorMessageInput",
717
511
  "type": {
718
- "text": "number"
512
+ "text": "string"
719
513
  },
720
- "description": "Créatinine en mg/dL"
721
- }
722
- ],
723
- "description": "Convertit la créatinine de mg/dL en mg/L"
724
- },
725
- {
726
- "kind": "function",
727
- "name": "convertCreatinineMgLToMgdL",
728
- "return": {
729
- "type": {
730
- "text": ""
731
- }
732
- },
733
- "parameters": [
514
+ "default": "\"\""
515
+ },
734
516
  {
735
- "name": "creatinineMgL",
517
+ "kind": "field",
518
+ "name": "sizeErrorMessageInput",
736
519
  "type": {
737
- "text": "number"
520
+ "text": "string"
738
521
  },
739
- "description": "Créatinine en mg/L"
740
- }
741
- ],
742
- "description": "Convertit la créatinine de mg/L en mg/dL"
743
- }
744
- ],
745
- "exports": [
746
- {
747
- "kind": "js",
748
- "name": "calculateBMI",
749
- "declaration": {
750
- "name": "calculateBMI",
751
- "module": "src/shared/utils/formula-utils.ts"
752
- }
753
- },
754
- {
755
- "kind": "js",
756
- "name": "calculateCreatinineClearance",
757
- "declaration": {
758
- "name": "calculateCreatinineClearance",
759
- "module": "src/shared/utils/formula-utils.ts"
760
- }
761
- },
762
- {
763
- "kind": "js",
764
- "name": "convertCreatinineUmolToMgdL",
765
- "declaration": {
766
- "name": "convertCreatinineUmolToMgdL",
767
- "module": "src/shared/utils/formula-utils.ts"
768
- }
769
- },
770
- {
771
- "kind": "js",
772
- "name": "convertCreatinineMgdLToUmol",
773
- "declaration": {
774
- "name": "convertCreatinineMgdLToUmol",
775
- "module": "src/shared/utils/formula-utils.ts"
776
- }
777
- },
778
- {
779
- "kind": "js",
780
- "name": "convertCreatinineMgdLToMgL",
781
- "declaration": {
782
- "name": "convertCreatinineMgdLToMgL",
783
- "module": "src/shared/utils/formula-utils.ts"
784
- }
785
- },
786
- {
787
- "kind": "js",
788
- "name": "convertCreatinineMgLToMgdL",
789
- "declaration": {
790
- "name": "convertCreatinineMgLToMgdL",
791
- "module": "src/shared/utils/formula-utils.ts"
792
- }
793
- }
794
- ]
795
- },
796
- {
797
- "kind": "javascript-module",
798
- "path": "src/shared/utils/patient-fhir-utils.ts",
799
- "declarations": [
800
- {
801
- "kind": "function",
802
- "name": "getPatientGender",
803
- "return": {
804
- "type": {
805
- "text": ""
806
- }
807
- },
808
- "parameters": [
522
+ "default": "\"\""
523
+ },
809
524
  {
810
- "name": "bundle",
525
+ "kind": "field",
526
+ "name": "weightErrorMessageInput",
811
527
  "type": {
812
- "text": "Bundle | undefined"
528
+ "text": "string"
813
529
  },
814
- "description": "Bundle Patient FHIR"
815
- }
816
- ],
817
- "description": "Extrait le sexe du patient FHIR"
818
- },
819
- {
820
- "kind": "function",
821
- "name": "setPatientGender",
822
- "return": {
823
- "type": {
824
- "text": "void"
825
- }
826
- },
827
- "parameters": [
530
+ "default": "\"\""
531
+ },
828
532
  {
829
- "name": "bundle",
533
+ "kind": "field",
534
+ "name": "pathologiesApiErrorMessage",
830
535
  "type": {
831
- "text": "Bundle"
832
- }
536
+ "text": "string"
537
+ },
538
+ "default": "\"\""
833
539
  },
834
540
  {
835
- "name": "gender",
541
+ "kind": "field",
542
+ "name": "allergiesApiErrorMessage",
836
543
  "type": {
837
- "text": "\"male\" | \"female\" | \"other\" | \"unknown\""
838
- }
839
- }
840
- ]
841
- },
842
- {
843
- "kind": "function",
844
- "name": "getPatientName",
845
- "return": {
846
- "type": {
847
- "text": ""
848
- }
849
- },
850
- "parameters": [
544
+ "text": "string"
545
+ },
546
+ "default": "\"\""
547
+ },
851
548
  {
852
- "name": "bundle",
549
+ "kind": "field",
550
+ "name": "renalLackInformationErrorMessage",
853
551
  "type": {
854
- "text": "Bundle | undefined"
552
+ "text": "string"
855
553
  },
856
- "description": "Bundle Patient FHIR"
857
- }
858
- ],
859
- "description": "Extrait le nom du patient FHIR"
860
- },
861
- {
862
- "kind": "function",
863
- "name": "getPatientAge",
864
- "return": {
865
- "type": {
866
- "text": ""
867
- }
868
- },
869
- "parameters": [
554
+ "default": "\"\""
555
+ },
870
556
  {
871
- "name": "bundle",
557
+ "kind": "field",
558
+ "name": "childPughErrorMessage",
872
559
  "type": {
873
- "text": "Bundle | undefined"
560
+ "text": "string"
874
561
  },
875
- "description": "Bundle Patient FHIR"
876
- }
877
- ],
878
- "description": "Calcule l'âge du patient à partir de sa date de naissance"
879
- },
880
- {
881
- "kind": "function",
882
- "name": "getPatientBirthDate",
883
- "return": {
884
- "type": {
885
- "text": ""
886
- }
887
- },
888
- "parameters": [
562
+ "default": "\"\""
563
+ },
889
564
  {
890
- "name": "bundle",
565
+ "kind": "field",
566
+ "name": "pathologyOptions",
891
567
  "type": {
892
- "text": "Bundle | undefined"
568
+ "text": "ISelectOption[]"
893
569
  },
894
- "description": "Bundle Patient FHIR"
895
- }
896
- ],
897
- "description": "Calcule l'âge du patient à partir de sa date de naissance"
898
- },
899
- {
900
- "kind": "function",
901
- "name": "setPatientAge",
902
- "return": {
903
- "type": {
904
- "text": "void"
905
- }
906
- },
907
- "parameters": [
570
+ "default": "[]"
571
+ },
908
572
  {
909
- "name": "bundle",
573
+ "kind": "field",
574
+ "name": "allergyOptions",
910
575
  "type": {
911
- "text": "Bundle"
576
+ "text": "ISelectOption[]"
912
577
  },
913
- "description": "Bundle Patient FHIR"
578
+ "default": "[]"
914
579
  },
915
580
  {
916
- "name": "age",
581
+ "kind": "field",
582
+ "name": "selectedPathologyOptions",
917
583
  "type": {
918
- "text": "number"
584
+ "text": "ISelectOption[]"
919
585
  },
920
- "description": "Nouvel âge du patient"
586
+ "default": "[]"
921
587
  },
922
588
  {
923
- "name": "ageUnit",
589
+ "kind": "field",
590
+ "name": "selectedAllergyOptions",
924
591
  "type": {
925
- "text": "string"
592
+ "text": "ISelectOption[]"
926
593
  },
927
- "description": "Unité de l'âge (ex: \"ans\", \"mois\")"
928
- }
929
- ],
930
- "description": "Modifie l'âge du patient dans la ressource Patient du Bundle FHIR"
931
- },
932
- {
933
- "kind": "function",
934
- "name": "getPatientWeight",
935
- "return": {
936
- "type": {
937
- "text": ""
938
- }
939
- },
940
- "parameters": [
594
+ "default": "[]"
595
+ },
941
596
  {
942
- "name": "bundle",
597
+ "kind": "field",
598
+ "name": "imc",
943
599
  "type": {
944
- "text": "Bundle | undefined"
600
+ "text": "number"
945
601
  },
946
- "description": "Bundle Patient FHIR"
947
- }
948
- ],
949
- "description": "Extrait le poids du patient depuis la ressource Observation concernée"
950
- },
951
- {
952
- "kind": "function",
953
- "name": "getPatientWeightWithUnit",
954
- "return": {
955
- "type": {
956
- "text": ""
957
- }
958
- },
959
- "parameters": [
602
+ "default": "0"
603
+ },
960
604
  {
961
- "name": "bundle",
605
+ "kind": "field",
606
+ "name": "sizeInput",
962
607
  "type": {
963
- "text": "Bundle | undefined"
608
+ "text": "HTMLElement & { value: string }"
964
609
  },
965
- "description": "Bundle Patient FHIR"
966
- }
967
- ],
968
- "description": "Extrait le poids du patient (avec l'unité correspondante) depuis la ressource Observation concernée"
969
- },
970
- {
971
- "kind": "function",
972
- "name": "setPatientWeight",
973
- "return": {
974
- "type": {
975
- "text": "void"
976
- }
977
- },
978
- "parameters": [
610
+ "privacy": "private"
611
+ },
979
612
  {
980
- "name": "bundle",
613
+ "kind": "field",
614
+ "name": "ageInput",
981
615
  "type": {
982
- "text": "Bundle"
983
- }
616
+ "text": "HTMLElement & { value: string }"
617
+ },
618
+ "privacy": "private"
984
619
  },
985
620
  {
986
- "name": "weight",
987
- "type": {
988
- "text": "number"
989
- }
990
- }
991
- ],
992
- "description": "Modifie le poids du patient dans le Bundle FHIR du patient"
993
- },
994
- {
995
- "kind": "function",
996
- "name": "getPatientHeight",
997
- "return": {
998
- "type": {
999
- "text": ""
1000
- }
1001
- },
1002
- "parameters": [
1003
- {
1004
- "name": "bundle",
621
+ "kind": "field",
622
+ "name": "weightInput",
1005
623
  "type": {
1006
- "text": "Bundle | undefined"
624
+ "text": "HTMLElement & { value: string }"
1007
625
  },
1008
- "description": "Bundle Patient FHIR"
1009
- }
1010
- ],
1011
- "description": "Extrait la taille du patient depuis la ressource Observation concernée"
1012
- },
1013
- {
1014
- "kind": "function",
1015
- "name": "getPatientHeightWithUnit",
1016
- "return": {
1017
- "type": {
1018
- "text": ""
1019
- }
1020
- },
1021
- "parameters": [
626
+ "privacy": "private"
627
+ },
1022
628
  {
1023
- "name": "bundle",
629
+ "kind": "field",
630
+ "name": "creatinineUmolInput",
1024
631
  "type": {
1025
- "text": "Bundle | undefined"
632
+ "text": "HTMLElement & { value: string }"
1026
633
  },
1027
- "description": "Bundle Patient FHIR"
1028
- }
1029
- ],
1030
- "description": "Extrait la taille du patient (avec l'unité correspondante) depuis la ressource Observation concernée"
1031
- },
1032
- {
1033
- "kind": "function",
1034
- "name": "setPatientHeight",
1035
- "return": {
1036
- "type": {
1037
- "text": "void"
1038
- }
1039
- },
1040
- "parameters": [
634
+ "privacy": "private"
635
+ },
1041
636
  {
1042
- "name": "bundle",
637
+ "kind": "field",
638
+ "name": "creatinineMgLInput",
1043
639
  "type": {
1044
- "text": "Bundle"
1045
- }
640
+ "text": "HTMLElement & { value: string }"
641
+ },
642
+ "privacy": "private"
1046
643
  },
1047
644
  {
1048
- "name": "height",
645
+ "kind": "field",
646
+ "name": "clairanceCreatinineInput",
1049
647
  "type": {
1050
- "text": "number"
1051
- }
1052
- }
1053
- ],
1054
- "description": "Modifie la taille du patient dans le Bundle FHIR du patient"
1055
- },
1056
- {
1057
- "kind": "function",
1058
- "name": "getPatientPregnancyStatus",
1059
- "return": {
1060
- "type": {
1061
- "text": ""
1062
- }
1063
- },
1064
- "parameters": [
648
+ "text": "HTMLElement & { value: string }"
649
+ },
650
+ "privacy": "private"
651
+ },
1065
652
  {
1066
- "name": "bundle",
653
+ "kind": "field",
654
+ "name": "editionModalElement",
1067
655
  "type": {
1068
- "text": "Bundle | undefined"
656
+ "text": "HTMLElement & { open: () => void; close: () => void }"
1069
657
  },
1070
- "description": "Bundle Patient FHIR"
1071
- }
1072
- ],
1073
- "description": "Extrait le statut de grossesse du patient depuis la ressource Observation ou Condition concernée"
1074
- },
1075
- {
1076
- "kind": "function",
1077
- "name": "setPatientPregnancyStatus",
1078
- "return": {
1079
- "type": {
1080
- "text": "void"
1081
- }
1082
- },
1083
- "parameters": [
658
+ "privacy": "private"
659
+ },
1084
660
  {
1085
- "name": "bundle",
661
+ "kind": "field",
662
+ "name": "dfgInput",
1086
663
  "type": {
1087
- "text": "Bundle"
1088
- }
664
+ "text": "HTMLElement & { value: string }"
665
+ },
666
+ "privacy": "private"
1089
667
  },
1090
668
  {
1091
- "name": "isPregnant",
669
+ "kind": "field",
670
+ "name": "genderSelect",
1092
671
  "type": {
1093
- "text": "boolean"
1094
- }
1095
- }
1096
- ],
1097
- "description": "Modifie le statut de grossesse du patient dans le Bundle FHIR du patient"
1098
- },
1099
- {
1100
- "kind": "function",
1101
- "name": "getPatientAmenorrheaStatus",
1102
- "return": {
1103
- "type": {
1104
- "text": ""
1105
- }
1106
- },
1107
- "parameters": [
672
+ "text": "HTMLElement & { value: string }"
673
+ },
674
+ "privacy": "private"
675
+ },
1108
676
  {
1109
- "name": "bundle",
677
+ "kind": "field",
678
+ "name": "gestationalWeeksInput",
1110
679
  "type": {
1111
- "text": "Bundle | undefined"
680
+ "text": "HTMLElement & { value: string }"
1112
681
  },
1113
- "description": "Bundle Patient FHIR"
1114
- }
1115
- ],
1116
- "description": "Extrait le statut d'aménorrhée du patient depuis la ressource Observation concernée"
1117
- },
1118
- {
1119
- "kind": "function",
1120
- "name": "setPatientAmenorrheaStatus",
1121
- "return": {
1122
- "type": {
1123
- "text": "void"
1124
- }
1125
- },
1126
- "parameters": [
682
+ "privacy": "private"
683
+ },
1127
684
  {
1128
- "name": "bundle",
685
+ "kind": "field",
686
+ "name": "hepaticStadeSelect",
1129
687
  "type": {
1130
- "text": "Bundle"
1131
- }
688
+ "text": "HTMLElement & { value: string }"
689
+ },
690
+ "privacy": "private"
1132
691
  },
1133
692
  {
1134
- "name": "weeks",
693
+ "kind": "field",
694
+ "name": "childPughInput",
1135
695
  "type": {
1136
- "text": "number"
1137
- }
1138
- }
1139
- ],
1140
- "description": "Modifie le statut d'aménorrhée du patient dans le Bundle FHIR du patient"
1141
- },
1142
- {
1143
- "kind": "function",
1144
- "name": "getPatientBreastfeedingStatus",
1145
- "return": {
1146
- "type": {
1147
- "text": ""
1148
- }
1149
- },
1150
- "parameters": [
696
+ "text": "HTMLElement & { value: string }"
697
+ },
698
+ "privacy": "private"
699
+ },
1151
700
  {
1152
- "name": "bundle",
701
+ "kind": "field",
702
+ "name": "ageUnitSelect",
1153
703
  "type": {
1154
- "text": "Bundle | undefined"
704
+ "text": "HTMLElement & { value: string }"
1155
705
  },
1156
- "description": "Bundle Patient FHIR"
1157
- }
1158
- ],
1159
- "description": "Extrait le statut d'allaitement du patient depuis la ressource Observation concernée"
1160
- },
1161
- {
1162
- "kind": "function",
1163
- "name": "setPatientBreastfeedingStatus",
1164
- "return": {
1165
- "type": {
1166
- "text": "void"
1167
- }
1168
- },
1169
- "parameters": [
706
+ "privacy": "private"
707
+ },
1170
708
  {
1171
- "name": "bundle",
1172
- "type": {
1173
- "text": "Bundle"
709
+ "kind": "method",
710
+ "name": "open",
711
+ "privacy": "public",
712
+ "return": {
713
+ "type": {
714
+ "text": "void"
715
+ }
1174
716
  }
1175
717
  },
1176
718
  {
1177
- "name": "isBreastfeeding",
1178
- "type": {
1179
- "text": "boolean"
719
+ "kind": "method",
720
+ "name": "modifyGender",
721
+ "privacy": "private",
722
+ "return": {
723
+ "type": {
724
+ "text": "void"
725
+ }
1180
726
  }
1181
- }
1182
- ],
1183
- "description": "Modifie le statut d'allaitement du patient dans le Bundle FHIR du patient"
1184
- },
1185
- {
1186
- "kind": "function",
1187
- "name": "getPatientRenalInsufficiencyStatus",
1188
- "return": {
1189
- "type": {
1190
- "text": "PatientRenalStatus"
1191
- }
1192
- },
1193
- "parameters": [
727
+ },
1194
728
  {
1195
- "name": "bundle",
1196
- "type": {
1197
- "text": "Bundle | undefined"
729
+ "kind": "method",
730
+ "name": "verifyAgeInput",
731
+ "privacy": "private",
732
+ "return": {
733
+ "type": {
734
+ "text": "void"
735
+ }
1198
736
  }
1199
- }
1200
- ]
1201
- },
1202
- {
1203
- "kind": "function",
1204
- "name": "setPatientClearance",
1205
- "return": {
1206
- "type": {
1207
- "text": "void"
1208
- }
1209
- },
1210
- "parameters": [
737
+ },
1211
738
  {
1212
- "name": "bundle",
1213
- "type": {
1214
- "text": "Bundle"
739
+ "kind": "method",
740
+ "name": "handleAgeUnit",
741
+ "privacy": "private",
742
+ "return": {
743
+ "type": {
744
+ "text": "void"
745
+ }
1215
746
  }
1216
747
  },
1217
748
  {
1218
- "name": "clearance",
1219
- "type": {
1220
- "text": "number"
749
+ "kind": "method",
750
+ "name": "verifySizeInput",
751
+ "privacy": "private",
752
+ "return": {
753
+ "type": {
754
+ "text": "void"
755
+ }
1221
756
  }
1222
- }
1223
- ],
1224
- "description": "Modifie le clairance rénale du patient dans le Bundle FHIR du patient"
1225
- },
1226
- {
1227
- "kind": "function",
1228
- "name": "setPatientGFRByBSA",
1229
- "return": {
1230
- "type": {
1231
- "text": "void"
1232
- }
1233
- },
1234
- "parameters": [
757
+ },
1235
758
  {
1236
- "name": "bundle",
1237
- "type": {
1238
- "text": "Bundle"
759
+ "kind": "method",
760
+ "name": "verifyWeightInput",
761
+ "privacy": "private",
762
+ "return": {
763
+ "type": {
764
+ "text": "void"
765
+ }
1239
766
  }
1240
767
  },
1241
768
  {
1242
- "name": "gfr",
1243
- "type": {
1244
- "text": "number"
1245
- }
1246
- }
1247
- ]
1248
- },
1249
- {
1250
- "kind": "function",
1251
- "name": "computeCreatinineFromClearance",
1252
- "return": {
1253
- "type": {
1254
- "text": "Quantity[]"
1255
- }
1256
- },
1257
- "parameters": [
769
+ "kind": "method",
770
+ "name": "getPatientSexFromProfile",
771
+ "privacy": "private"
772
+ },
1258
773
  {
1259
- "name": "clearance",
1260
- "type": {
1261
- "text": "number"
1262
- }
774
+ "kind": "method",
775
+ "name": "getPatientHepaticStadeFromProfile",
776
+ "privacy": "private"
1263
777
  },
1264
778
  {
1265
- "name": "age",
1266
- "type": {
1267
- "text": "number"
1268
- }
779
+ "kind": "method",
780
+ "name": "handlePregnancy",
781
+ "privacy": "private",
782
+ "return": {
783
+ "type": {
784
+ "text": "void"
785
+ }
786
+ },
787
+ "parameters": [
788
+ {
789
+ "name": "event",
790
+ "type": {
791
+ "text": "CustomEvent"
792
+ }
793
+ }
794
+ ]
1269
795
  },
1270
796
  {
1271
- "name": "weight",
1272
- "type": {
1273
- "text": "number"
1274
- }
797
+ "kind": "method",
798
+ "name": "handleBreastfeeding",
799
+ "privacy": "private",
800
+ "return": {
801
+ "type": {
802
+ "text": "void"
803
+ }
804
+ },
805
+ "parameters": [
806
+ {
807
+ "name": "event",
808
+ "type": {
809
+ "text": "CustomEvent"
810
+ }
811
+ }
812
+ ]
1275
813
  },
1276
814
  {
1277
- "name": "isFemale",
1278
- "type": {
1279
- "text": "boolean"
815
+ "kind": "method",
816
+ "name": "recalculateRenalValues",
817
+ "privacy": "private",
818
+ "return": {
819
+ "type": {
820
+ "text": "void"
821
+ }
1280
822
  }
1281
- }
1282
- ]
1283
- },
1284
- {
1285
- "kind": "function",
1286
- "name": "getCreatinine",
1287
- "return": {
1288
- "type": {
1289
- "text": "Quantity[]"
1290
- }
1291
- },
1292
- "parameters": [
823
+ },
1293
824
  {
1294
- "name": "bundle",
1295
- "type": {
1296
- "text": "Bundle | undefined"
825
+ "kind": "method",
826
+ "name": "setFormWithCreatinineUmol",
827
+ "privacy": "private",
828
+ "return": {
829
+ "type": {
830
+ "text": "void"
831
+ }
1297
832
  }
1298
- }
1299
- ]
1300
- },
1301
- {
1302
- "kind": "function",
1303
- "name": "setCreatinineBymgL",
1304
- "return": {
1305
- "type": {
1306
- "text": "void"
1307
- }
1308
- },
1309
- "parameters": [
833
+ },
1310
834
  {
1311
- "name": "bundle",
1312
- "type": {
1313
- "text": "Bundle"
835
+ "kind": "method",
836
+ "name": "setFormWithCreatinineMgL",
837
+ "privacy": "private",
838
+ "return": {
839
+ "type": {
840
+ "text": "void"
841
+ }
1314
842
  }
1315
843
  },
1316
844
  {
1317
- "name": "mgL",
1318
- "type": {
1319
- "text": "number"
845
+ "kind": "method",
846
+ "name": "setFormWithClairance",
847
+ "privacy": "private",
848
+ "return": {
849
+ "type": {
850
+ "text": "void"
851
+ }
1320
852
  }
1321
- }
1322
- ]
1323
- },
1324
- {
1325
- "kind": "function",
1326
- "name": "setCreatinineByUmolL",
1327
- "return": {
1328
- "type": {
1329
- "text": "void"
1330
- }
1331
- },
1332
- "parameters": [
853
+ },
1333
854
  {
1334
- "name": "bundle",
1335
- "type": {
1336
- "text": "Bundle"
855
+ "kind": "method",
856
+ "name": "setFormWithDFG",
857
+ "privacy": "private",
858
+ "return": {
859
+ "type": {
860
+ "text": "void"
861
+ }
1337
862
  }
1338
863
  },
1339
864
  {
1340
- "name": "umolL",
1341
- "type": {
1342
- "text": "number"
1343
- }
1344
- }
1345
- ]
1346
- },
1347
- {
1348
- "kind": "function",
1349
- "name": "getPatientHepaticInsufficiencyScore",
1350
- "return": {
1351
- "type": {
1352
- "text": "number | null"
1353
- }
1354
- },
1355
- "parameters": [
865
+ "kind": "method",
866
+ "name": "apiReturntoSelectOption",
867
+ "privacy": "private",
868
+ "return": {
869
+ "type": {
870
+ "text": "ISelectOption"
871
+ }
872
+ },
873
+ "parameters": [
874
+ {
875
+ "name": "pathology",
876
+ "type": {
877
+ "text": "IApiReturn"
878
+ }
879
+ }
880
+ ]
881
+ },
1356
882
  {
1357
- "name": "bundle",
1358
- "type": {
1359
- "text": "Bundle | undefined"
1360
- }
1361
- }
1362
- ]
1363
- },
1364
- {
1365
- "kind": "function",
1366
- "name": "getPatientHepaticInsufficiencyStade",
1367
- "return": {
1368
- "type": {
1369
- "text": "string"
1370
- }
1371
- },
1372
- "parameters": [
883
+ "kind": "method",
884
+ "name": "searchPathologies",
885
+ "privacy": "private",
886
+ "return": {
887
+ "type": {
888
+ "text": "void"
889
+ }
890
+ },
891
+ "parameters": [
892
+ {
893
+ "name": "event",
894
+ "type": {
895
+ "text": "CustomEvent"
896
+ }
897
+ }
898
+ ]
899
+ },
1373
900
  {
1374
- "name": "bundle",
1375
- "type": {
1376
- "text": "Bundle | undefined"
1377
- }
1378
- }
1379
- ]
1380
- },
1381
- {
1382
- "kind": "function",
1383
- "name": "setPatientHepaticInsufficiencyStatus",
1384
- "return": {
1385
- "type": {
1386
- "text": "void"
1387
- }
1388
- },
1389
- "parameters": [
901
+ "kind": "method",
902
+ "name": "updatePathologies",
903
+ "privacy": "private",
904
+ "return": {
905
+ "type": {
906
+ "text": "void"
907
+ }
908
+ },
909
+ "parameters": [
910
+ {
911
+ "name": "event",
912
+ "type": {
913
+ "text": "CustomEvent"
914
+ }
915
+ }
916
+ ]
917
+ },
1390
918
  {
1391
- "name": "bundle",
1392
- "type": {
1393
- "text": "Bundle"
1394
- }
919
+ "kind": "method",
920
+ "name": "searchAllergies",
921
+ "privacy": "private",
922
+ "return": {
923
+ "type": {
924
+ "text": "void"
925
+ }
926
+ },
927
+ "parameters": [
928
+ {
929
+ "name": "event",
930
+ "type": {
931
+ "text": "CustomEvent"
932
+ }
933
+ }
934
+ ]
1395
935
  },
1396
936
  {
1397
- "name": "stade",
1398
- "optional": true,
1399
- "type": {
1400
- "text": "\"A\" | \"B\" | \"C\""
937
+ "kind": "method",
938
+ "name": "updateAllergies",
939
+ "privacy": "private",
940
+ "return": {
941
+ "type": {
942
+ "text": "void"
943
+ }
944
+ },
945
+ "parameters": [
946
+ {
947
+ "name": "event",
948
+ "type": {
949
+ "text": "CustomEvent"
950
+ }
951
+ }
952
+ ]
953
+ },
954
+ {
955
+ "kind": "method",
956
+ "name": "handleHepaticStade",
957
+ "privacy": "private",
958
+ "return": {
959
+ "type": {
960
+ "text": "void"
961
+ }
1401
962
  }
1402
963
  },
1403
964
  {
1404
- "name": "score",
1405
- "optional": true,
1406
- "type": {
1407
- "text": "number"
965
+ "kind": "method",
966
+ "name": "handleHepaticScore",
967
+ "privacy": "private",
968
+ "return": {
969
+ "type": {
970
+ "text": "void"
971
+ }
1408
972
  }
1409
- }
1410
- ]
1411
- },
1412
- {
1413
- "kind": "function",
1414
- "name": "deletePatientHepaticInsufficiencyStatus",
1415
- "return": {
1416
- "type": {
1417
- "text": "void"
1418
- }
1419
- },
1420
- "parameters": [
973
+ },
1421
974
  {
1422
- "name": "bundle",
1423
- "type": {
1424
- "text": "Bundle"
975
+ "kind": "method",
976
+ "name": "validateForm",
977
+ "privacy": "private",
978
+ "return": {
979
+ "type": {
980
+ "text": "void"
981
+ }
1425
982
  }
1426
983
  }
1427
- ]
1428
- },
1429
- {
1430
- "kind": "function",
1431
- "name": "getPatientConditions",
1432
- "return": {
1433
- "type": {
1434
- "text": ""
1435
- }
1436
- },
1437
- "parameters": [
984
+ ],
985
+ "events": [
1438
986
  {
1439
- "name": "patient",
987
+ "name": "editPatientProfile",
1440
988
  "type": {
1441
- "text": "Bundle | undefined"
1442
- },
1443
- "description": "Bundle Patient FHIR"
989
+ "text": "CustomEvent"
990
+ }
1444
991
  }
1445
992
  ],
1446
- "description": "Extrait les conditions médicales/terrains du patient depuis les extensions FHIR"
1447
- },
1448
- {
1449
- "kind": "function",
1450
- "name": "getPatientConditionsWithCode",
1451
- "return": {
1452
- "type": {
1453
- "text": ""
1454
- }
1455
- },
1456
- "parameters": [
993
+ "attributes": [
1457
994
  {
1458
- "name": "patient",
995
+ "name": "patient-profile",
1459
996
  "type": {
1460
997
  "text": "Bundle | undefined"
1461
998
  },
1462
- "description": "Bundle Patient FHIR"
1463
- }
1464
- ],
1465
- "description": "Extrait les conditions médicales/terrains du patient et leurs codes respectifs depuis les extensions FHIR"
1466
- },
1467
- {
1468
- "kind": "function",
1469
- "name": "setPatientConditions",
1470
- "return": {
1471
- "type": {
1472
- "text": "void"
1473
- }
1474
- },
1475
- "parameters": [
999
+ "fieldName": "patientProfile"
1000
+ },
1476
1001
  {
1477
- "name": "patient",
1002
+ "name": "api-url",
1478
1003
  "type": {
1479
- "text": "Bundle"
1480
- }
1004
+ "text": "string | undefined"
1005
+ },
1006
+ "fieldName": "apiUrl"
1481
1007
  },
1482
1008
  {
1483
- "name": "conditions",
1009
+ "name": "api-key",
1484
1010
  "type": {
1485
- "text": "ISelectOption[]"
1486
- }
1487
- }
1488
- ]
1489
- },
1490
- {
1491
- "kind": "function",
1492
- "name": "getPatientAllergies",
1493
- "return": {
1494
- "type": {
1495
- "text": ""
1496
- }
1497
- },
1498
- "parameters": [
1011
+ "text": "string | undefined"
1012
+ },
1013
+ "fieldName": "apiKey"
1014
+ },
1499
1015
  {
1500
- "name": "patient",
1016
+ "name": "preferences",
1501
1017
  "type": {
1502
- "text": "Bundle | undefined"
1018
+ "text": "PatientProfilePreferences | undefined"
1503
1019
  },
1504
- "description": "Bundle Patient FHIR"
1020
+ "fieldName": "preferences"
1505
1021
  }
1506
1022
  ],
1507
- "description": "Extrait les allergies du patient depuis les extensions FHIR"
1508
- },
1509
- {
1510
- "kind": "function",
1511
- "name": "getPatientAllergiesWithCode",
1512
- "return": {
1513
- "type": {
1514
- "text": "ISelectOption[]"
1515
- }
1023
+ "superclass": {
1024
+ "name": "LitElement",
1025
+ "package": "lit"
1516
1026
  },
1517
- "parameters": [
1518
- {
1519
- "name": "patient",
1520
- "type": {
1521
- "text": "Bundle | undefined"
1522
- }
1523
- }
1524
- ]
1027
+ "tagName": "bcb-patient-profile-edition",
1028
+ "customElement": true
1029
+ }
1030
+ ],
1031
+ "exports": [
1032
+ {
1033
+ "kind": "js",
1034
+ "name": "PatientProfileEdition",
1035
+ "declaration": {
1036
+ "name": "PatientProfileEdition",
1037
+ "module": "src/patient-profile/patient-profile-edition/patient-profile-edition.ts"
1038
+ }
1525
1039
  },
1526
1040
  {
1527
- "kind": "function",
1528
- "name": "setPatientAllergies",
1529
- "return": {
1530
- "type": {
1531
- "text": "void"
1532
- }
1533
- },
1534
- "parameters": [
1535
- {
1536
- "name": "patient",
1537
- "type": {
1538
- "text": "Bundle"
1539
- }
1540
- },
1541
- {
1542
- "name": "allergies",
1543
- "type": {
1544
- "text": "ISelectOption[]"
1545
- }
1546
- }
1547
- ]
1548
- },
1549
- {
1550
- "kind": "function",
1551
- "name": "getPatientAdverseEvents",
1552
- "return": {
1553
- "type": {
1554
- "text": "string[]"
1555
- }
1556
- },
1557
- "parameters": [
1558
- {
1559
- "name": "patient",
1560
- "type": {
1561
- "text": "Bundle | undefined"
1562
- }
1563
- }
1564
- ]
1565
- },
1566
- {
1567
- "kind": "function",
1568
- "name": "getPatientDemographics",
1569
- "return": {
1570
- "type": {
1571
- "text": ""
1572
- }
1573
- },
1574
- "parameters": [
1575
- {
1576
- "name": "bundle",
1577
- "type": {
1578
- "text": "Bundle | undefined"
1579
- },
1580
- "description": "Bundle FHIR"
1581
- }
1582
- ],
1583
- "description": "Extrait les informations démographiques complètes du patient"
1584
- },
1585
- {
1586
- "kind": "function",
1587
- "name": "childPughScore",
1588
- "return": {
1589
- "type": {
1590
- "text": "string"
1591
- }
1592
- },
1593
- "parameters": [
1594
- {
1595
- "name": "score",
1596
- "type": {
1597
- "text": "number"
1598
- }
1599
- }
1600
- ]
1601
- },
1602
- {
1603
- "kind": "function",
1604
- "name": "calculateGFRFromCreatinine",
1605
- "return": {
1606
- "type": {
1607
- "text": ""
1608
- }
1609
- },
1610
- "parameters": [
1611
- {
1612
- "name": "age",
1613
- "type": {
1614
- "text": "number"
1615
- },
1616
- "description": "Âge du patient"
1617
- },
1618
- {
1619
- "name": "isFemale",
1620
- "type": {
1621
- "text": "boolean"
1622
- },
1623
- "description": "Vrai si le patient est de sexe féminin, sinon faux"
1624
- },
1625
- {
1626
- "name": "creatinine",
1627
- "type": {
1628
- "text": "number"
1629
- },
1630
- "description": "Créatinine sérique en"
1631
- }
1632
- ],
1633
- "description": "Calcul de la DFG à partir de la créatinine, de l'âge, et du sexe en utilisant la formule MDRD"
1634
- },
1041
+ "kind": "custom-element-definition",
1042
+ "name": "bcb-patient-profile-edition",
1043
+ "declaration": {
1044
+ "name": "PatientProfileEdition",
1045
+ "module": "src/patient-profile/patient-profile-edition/patient-profile-edition.ts"
1046
+ }
1047
+ }
1048
+ ]
1049
+ },
1050
+ {
1051
+ "kind": "javascript-module",
1052
+ "path": "src/shared/constants/edition-options.ts",
1053
+ "declarations": [
1635
1054
  {
1636
- "kind": "function",
1637
- "name": "calculateCreatinineFromGFR",
1638
- "return": {
1639
- "type": {
1640
- "text": ""
1641
- }
1055
+ "kind": "variable",
1056
+ "name": "sexOptions",
1057
+ "type": {
1058
+ "text": "{ value: string, label: string }[]"
1642
1059
  },
1643
- "parameters": [
1644
- {
1645
- "name": "age",
1646
- "type": {
1647
- "text": "number"
1648
- },
1649
- "description": "Âge du patient"
1650
- },
1651
- {
1652
- "name": "isFemale",
1653
- "type": {
1654
- "text": "boolean"
1655
- },
1656
- "description": "Vrai si le patient est de sexe féminin, sinon faux"
1657
- },
1658
- {
1659
- "name": "gfr",
1660
- "type": {
1661
- "text": "number"
1662
- },
1663
- "description": "DFG en mL/min/1.73.m2"
1664
- }
1665
- ],
1666
- "description": "Calcul de la créatinine à partir de la DFG, de l'âge, et du sexe en utilisant la formule MDRD inversée"
1060
+ "default": "[\n { value: \"male\", label: \"Masculin\" },\n { value: \"female\", label: \"Féminin\" },\n { value: \"unknown\", label: \"Inconnu\" },\n]"
1667
1061
  },
1668
1062
  {
1669
- "kind": "function",
1670
- "name": "getPatientMedicalInfo",
1671
- "return": {
1672
- "type": {
1673
- "text": ""
1674
- }
1063
+ "kind": "variable",
1064
+ "name": "hepaticStadeOptions",
1065
+ "type": {
1066
+ "text": "{ value: string, label: string }[]"
1675
1067
  },
1676
- "parameters": [
1677
- {
1678
- "name": "patient",
1679
- "type": {
1680
- "text": "Bundle | undefined"
1681
- },
1682
- "description": "Bundle Patient FHIR"
1683
- }
1684
- ],
1685
- "description": "Extrait les informations médicales complètes du patient"
1068
+ "default": "[\n { value: \"A\", label: \"Stade A\" },\n { value: \"B\", label: \"Stade B\" },\n { value: \"C\", label: \"Stade C\" },\n]"
1686
1069
  },
1687
1070
  {
1688
- "kind": "function",
1689
- "name": "getPatientInfo",
1690
- "return": {
1691
- "type": {
1692
- "text": ""
1693
- }
1071
+ "kind": "variable",
1072
+ "name": "ageOptions",
1073
+ "type": {
1074
+ "text": "{ value: string, label: string }[]"
1694
1075
  },
1695
- "parameters": [
1696
- {
1697
- "name": "bundle",
1698
- "type": {
1699
- "text": "Bundle | undefined"
1700
- },
1701
- "description": "Bundle FHIR"
1702
- }
1703
- ],
1704
- "description": "Extrait toutes les informations du patient (démographiques + médicales)"
1076
+ "default": "[\n { value: \"ans\", label: \"Ans\" },\n { value: \"mois\", label: \"Mois\" },\n]"
1705
1077
  }
1706
1078
  ],
1707
1079
  "exports": [
1708
1080
  {
1709
1081
  "kind": "js",
1710
- "name": "getPatientGender",
1082
+ "name": "sexOptions",
1711
1083
  "declaration": {
1712
- "name": "getPatientGender",
1713
- "module": "src/shared/utils/patient-fhir-utils.ts"
1084
+ "name": "sexOptions",
1085
+ "module": "src/shared/constants/edition-options.ts"
1714
1086
  }
1715
1087
  },
1716
1088
  {
1717
1089
  "kind": "js",
1718
- "name": "setPatientGender",
1090
+ "name": "hepaticStadeOptions",
1719
1091
  "declaration": {
1720
- "name": "setPatientGender",
1721
- "module": "src/shared/utils/patient-fhir-utils.ts"
1092
+ "name": "hepaticStadeOptions",
1093
+ "module": "src/shared/constants/edition-options.ts"
1722
1094
  }
1723
1095
  },
1724
1096
  {
1725
1097
  "kind": "js",
1726
- "name": "getPatientName",
1098
+ "name": "ageOptions",
1727
1099
  "declaration": {
1728
- "name": "getPatientName",
1729
- "module": "src/shared/utils/patient-fhir-utils.ts"
1100
+ "name": "ageOptions",
1101
+ "module": "src/shared/constants/edition-options.ts"
1730
1102
  }
1731
- },
1103
+ }
1104
+ ]
1105
+ },
1106
+ {
1107
+ "kind": "javascript-module",
1108
+ "path": "src/shared/constants/loinc.ts",
1109
+ "declarations": [
1732
1110
  {
1733
- "kind": "js",
1734
- "name": "getPatientAge",
1735
- "declaration": {
1736
- "name": "getPatientAge",
1737
- "module": "src/shared/utils/patient-fhir-utils.ts"
1738
- }
1111
+ "kind": "variable",
1112
+ "name": "acceptedLoincCodesForRenalClearance",
1113
+ "type": {
1114
+ "text": "string[]"
1115
+ },
1116
+ "default": "[\n \"2163-4\",\n \"2164-2\",\n \"13441-1\",\n \"13442-9\",\n \"13443-7\",\n \"13446-0\",\n \"13447-8\",\n \"13449-4\",\n \"13450-2\",\n \"26752-6\",\n \"35591-7\",\n \"35594-1\",\n \"50380-5\",\n \"50381-3\",\n \"104805-7\",\n]"
1739
1117
  },
1740
1118
  {
1741
- "kind": "js",
1742
- "name": "getPatientBirthDate",
1743
- "declaration": {
1744
- "name": "getPatientBirthDate",
1745
- "module": "src/shared/utils/patient-fhir-utils.ts"
1746
- }
1747
- },
1119
+ "kind": "variable",
1120
+ "name": "acceptedLoincCodesForRenalGFRPerBSA",
1121
+ "type": {
1122
+ "text": "string[]"
1123
+ },
1124
+ "default": "[\n \"69405-9\",\n \"70969-1\",\n \"48642-3\",\n \"48643-1\",\n \"50044-7\",\n \"50210-4\",\n \"50384-7\",\n \"62238-1\",\n \"77147-7\",\n \"78006-4\",\n \"88293-6\",\n \"88294-4\",\n \"94677-2\",\n \"96591-3\",\n \"96592-1\",\n \"98979-8\",\n \"98980-6\",\n \"102097-3\",\n]"
1125
+ }
1126
+ ],
1127
+ "exports": [
1748
1128
  {
1749
1129
  "kind": "js",
1750
- "name": "setPatientAge",
1130
+ "name": "acceptedLoincCodesForRenalClearance",
1751
1131
  "declaration": {
1752
- "name": "setPatientAge",
1753
- "module": "src/shared/utils/patient-fhir-utils.ts"
1132
+ "name": "acceptedLoincCodesForRenalClearance",
1133
+ "module": "src/shared/constants/loinc.ts"
1754
1134
  }
1755
1135
  },
1756
1136
  {
1757
1137
  "kind": "js",
1758
- "name": "getPatientWeight",
1138
+ "name": "acceptedLoincCodesForRenalGFRPerBSA",
1759
1139
  "declaration": {
1760
- "name": "getPatientWeight",
1761
- "module": "src/shared/utils/patient-fhir-utils.ts"
1762
- }
1763
- },
1764
- {
1765
- "kind": "js",
1766
- "name": "getPatientWeightWithUnit",
1767
- "declaration": {
1768
- "name": "getPatientWeightWithUnit",
1769
- "module": "src/shared/utils/patient-fhir-utils.ts"
1140
+ "name": "acceptedLoincCodesForRenalGFRPerBSA",
1141
+ "module": "src/shared/constants/loinc.ts"
1770
1142
  }
1771
- },
1143
+ }
1144
+ ]
1145
+ },
1146
+ {
1147
+ "kind": "javascript-module",
1148
+ "path": "src/shared/constants/settings.ts",
1149
+ "declarations": [
1772
1150
  {
1773
- "kind": "js",
1774
- "name": "setPatientWeight",
1775
- "declaration": {
1776
- "name": "setPatientWeight",
1777
- "module": "src/shared/utils/patient-fhir-utils.ts"
1778
- }
1779
- },
1151
+ "kind": "variable",
1152
+ "name": "PREFIX",
1153
+ "type": {
1154
+ "text": "string"
1155
+ },
1156
+ "default": "\"claudebernard\""
1157
+ }
1158
+ ],
1159
+ "exports": [
1780
1160
  {
1781
1161
  "kind": "js",
1782
- "name": "getPatientHeight",
1162
+ "name": "PREFIX",
1783
1163
  "declaration": {
1784
- "name": "getPatientHeight",
1785
- "module": "src/shared/utils/patient-fhir-utils.ts"
1164
+ "name": "PREFIX",
1165
+ "module": "src/shared/constants/settings.ts"
1786
1166
  }
1787
- },
1167
+ }
1168
+ ]
1169
+ },
1170
+ {
1171
+ "kind": "javascript-module",
1172
+ "path": "src/shared/constants/snomed.ts",
1173
+ "declarations": [
1788
1174
  {
1789
- "kind": "js",
1790
- "name": "getPatientHeightWithUnit",
1791
- "declaration": {
1792
- "name": "getPatientHeightWithUnit",
1793
- "module": "src/shared/utils/patient-fhir-utils.ts"
1794
- }
1175
+ "kind": "variable",
1176
+ "name": "snomedToChildPughStadeMap",
1177
+ "type": {
1178
+ "text": "object"
1179
+ },
1180
+ "default": "{\n \"710065009\": \"Stade A\",\n \"710066005\": \"Stade B\",\n \"710067001\": \"Stade C\",\n}"
1795
1181
  },
1796
1182
  {
1797
- "kind": "js",
1798
- "name": "setPatientHeight",
1799
- "declaration": {
1800
- "name": "setPatientHeight",
1801
- "module": "src/shared/utils/patient-fhir-utils.ts"
1802
- }
1803
- },
1183
+ "kind": "variable",
1184
+ "name": "childPughStadeToSnomedMap",
1185
+ "type": {
1186
+ "text": "object"
1187
+ },
1188
+ "default": "{\n \"A\": \"710065009\",\n \"B\": \"710066005\",\n \"C\": \"710067001\",\n}"
1189
+ }
1190
+ ],
1191
+ "exports": [
1804
1192
  {
1805
1193
  "kind": "js",
1806
- "name": "getPatientPregnancyStatus",
1194
+ "name": "snomedToChildPughStadeMap",
1807
1195
  "declaration": {
1808
- "name": "getPatientPregnancyStatus",
1809
- "module": "src/shared/utils/patient-fhir-utils.ts"
1196
+ "name": "snomedToChildPughStadeMap",
1197
+ "module": "src/shared/constants/snomed.ts"
1810
1198
  }
1811
1199
  },
1812
1200
  {
1813
1201
  "kind": "js",
1814
- "name": "setPatientPregnancyStatus",
1202
+ "name": "childPughStadeToSnomedMap",
1815
1203
  "declaration": {
1816
- "name": "setPatientPregnancyStatus",
1817
- "module": "src/shared/utils/patient-fhir-utils.ts"
1204
+ "name": "childPughStadeToSnomedMap",
1205
+ "module": "src/shared/constants/snomed.ts"
1818
1206
  }
1819
- },
1207
+ }
1208
+ ]
1209
+ },
1210
+ {
1211
+ "kind": "javascript-module",
1212
+ "path": "src/shared/interfaces/api-return.interface.ts",
1213
+ "declarations": [],
1214
+ "exports": []
1215
+ },
1216
+ {
1217
+ "kind": "javascript-module",
1218
+ "path": "src/shared/interfaces/patient.ts",
1219
+ "declarations": [],
1220
+ "exports": []
1221
+ },
1222
+ {
1223
+ "kind": "javascript-module",
1224
+ "path": "src/shared/mocks/pathologies.mock.ts",
1225
+ "declarations": [
1820
1226
  {
1821
- "kind": "js",
1822
- "name": "getPatientAmenorrheaStatus",
1823
- "declaration": {
1824
- "name": "getPatientAmenorrheaStatus",
1825
- "module": "src/shared/utils/patient-fhir-utils.ts"
1826
- }
1827
- },
1227
+ "kind": "variable",
1228
+ "name": "mockPathologies",
1229
+ "type": {
1230
+ "text": "object"
1231
+ },
1232
+ "default": "{\n \"content\": [\n {\n \"code\": \"0000011731\",\n \"label\": \"Abaissement des bicarbonates sanguins\",\n \"labelHtml\": \"Abaissement des bicarbonates sanguins\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"K63.0\",\n \"label\": \"Abces de l'intestin\",\n \"labelHtml\": \"Abc&egrave;s de l&rsquo;intestin\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Q55.0\",\n \"label\": \"Absence (congenitale) et aplasie du testicule\",\n \"labelHtml\": \"Absence (cong&eacute;nitale) et aplasie du testicule\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000030994\",\n \"label\": \"Absence de test de grossesse negatif a l'initiation du traitement\",\n \"labelHtml\": \"Absence de test de grossesse n&eacute;gatif &agrave; l&rsquo;initiation du traitement\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"Q41.8\",\n \"label\": \"Absence. atresie et stenose congenitales d'autres localisations precisees de l'intestin grele\",\n \"labelHtml\": \"Absence, atr&eacute;sie et st&eacute;nose cong&eacute;nitales d&rsquo;autres localisations pr&eacute;cis&eacute;es de l&rsquo;intestin gr&ecirc;le\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Q41\",\n \"label\": \"Absence. atresie et stenose congenitales de l'intestin grele\",\n \"labelHtml\": \"Absence, atr&eacute;sie et st&eacute;nose cong&eacute;nitales de l&rsquo;intestin gr&ecirc;le\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Q41.9\",\n \"label\": \"Absence. atresie et stenose congenitales de l'intestin grele. sans precision de localisation\",\n \"labelHtml\": \"Absence, atr&eacute;sie et st&eacute;nose cong&eacute;nitales de l&rsquo;intestin gr&ecirc;le, sans pr&eacute;cision de localisation\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E10.9L83\",\n \"label\": \"Acanthosis nigricans au cours du diabete sucre de type 1 sans complication\",\n \"labelHtml\": \"Acanthosis nigricans au cours du diab&egrave;te sucr&eacute; de type 1 sans complication\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E11.9L83\",\n \"label\": \"Acanthosis nigricans au cours du diabete sucre de type 2 sans complication\",\n \"labelHtml\": \"Acanthosis nigricans au cours du diab&egrave;te sucr&eacute; de type 2 sans complication\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"R70.0\",\n \"label\": \"Acceleration de la vitesse de sedimentation\",\n \"labelHtml\": \"Acc&eacute;l&eacute;ration de la vitesse de s&eacute;dimentation\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"R70\",\n \"label\": \"Acceleration de la vitesse de sedimentation et anomalies de la viscosite plasmatique\",\n \"labelHtml\": \"Acc&eacute;l&eacute;ration de la vitesse de s&eacute;dimentation et anomalies de la viscosit&eacute; plasmatique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000012730\",\n \"label\": \"Acceleration du transit intestinal\",\n \"labelHtml\": \"Acc&eacute;l&eacute;ration du transit intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"V95\",\n \"label\": \"Accident d'aeronef a moteur dans lequel un occupant est blesse\",\n \"labelHtml\": \"Accident d&rsquo;a&eacute;ronef &agrave; moteur dans lequel un occupant est bless&eacute;\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"V96\",\n \"label\": \"Accident d'aeronef sans moteur dans lequel un occupant est blesse\",\n \"labelHtml\": \"Accident d&rsquo;a&eacute;ronef sans moteur dans lequel un occupant est bless&eacute;\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"G45\",\n \"label\": \"Accidents ischemiques cerebraux transitoires et syndromes apparentes\",\n \"labelHtml\": \"Accidents isch&eacute;miques c&eacute;r&eacute;braux transitoires et syndromes apparent&eacute;s\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Y88\",\n \"label\": \"Actes medicaux et chirurgicaux consideres comme cause externe de sequelles\",\n \"labelHtml\": \"Actes m&eacute;dicaux et chirurgicaux consid&eacute;r&eacute;s comme cause externe de s&eacute;quelles\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"F52.7\",\n \"label\": \"Activite sexuelle excessive\",\n \"labelHtml\": \"Activit&eacute; sexuelle excessive\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000007838\",\n \"label\": \"Activite sportive intense\",\n \"labelHtml\": \"Activit&eacute; sportive intense\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"K56.5\",\n \"label\": \"Adherences de l'intestin (brides). avec occlusion\",\n \"labelHtml\": \"Adh&eacute;rences de l&rsquo;intestin (brides), avec occlusion\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000034881\",\n \"label\": \"Administration d'eau et d'electrolytes avec une faible quantite d'hydrates de carbone\",\n \"labelHtml\": \"Administration d&rsquo;eau et d&rsquo;&eacute;lectrolytes avec une faible quantit&eacute; d&rsquo;hydrates de carbone\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000024719\",\n \"label\": \"Administration d'heparine au cours des 48h precedant l'AVC avec un temps de thromboplastine > limite superieure de la normale\",\n \"labelHtml\": \"Administration d&rsquo;h&eacute;parine au cours des 48h pr&eacute;c&eacute;dant l&rsquo;AVC avec un temps de thromboplastine > limite sup&eacute;rieure de la normale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"J70.4Y43.1\",\n \"label\": \"Affection pulmonaire interstitielle due aux antimetabolites antitumoraux\",\n \"labelHtml\": \"Affection pulmonaire interstitielle due aux antim&eacute;tabolites antitumoraux\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D57.2\",\n \"label\": \"Affections a hematies falciformes [drepanocytaires] heterozygotes doubles\",\n \"labelHtml\": \"Affections &agrave; h&eacute;maties falciformes [dr&eacute;panocytaires] h&eacute;t&eacute;rozygotes doubles\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E13.6M73.8\",\n \"label\": \"Affections des tissus mous au cours d'autres diabetes sucres precises\",\n \"labelHtml\": \"Affections des tissus mous au cours d&rsquo;autres diab&egrave;tes sucr&eacute;s pr&eacute;cis&eacute;s\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E12.6M73.8\",\n \"label\": \"Affections des tissus mous au cours du diabete sucre de malnutrition\",\n \"labelHtml\": \"Affections des tissus mous au cours du diab&egrave;te sucr&eacute; de malnutrition\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E11.6M73.8\",\n \"label\": \"Affections des tissus mous au cours du diabete sucre de type 2 \",\n \"labelHtml\": \"Affections des tissus mous au cours du diab&egrave;te sucr&eacute; de type 2 \",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E10.6M73.8\",\n \"label\": \"Affections des tissus mous au cours du diabete sucre insulinodependant\",\n \"labelHtml\": \"Affections des tissus mous au cours du diab&egrave;te sucr&eacute; insulinod&eacute;pendant\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E14.6M73.8\",\n \"label\": \"Affections des tissus mous au cours du diabete sucre. sans precision\",\n \"labelHtml\": \"Affections des tissus mous au cours du diab&egrave;te sucr&eacute;, sans pr&eacute;cision\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"N51.1\",\n \"label\": \"Affections du testicule et de l'epididyme au cours de maladies classees ailleurs\",\n \"labelHtml\": \"Affections du testicule et de l&rsquo;&eacute;pididyme au cours de maladies class&eacute;es ailleurs\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"N49.1\",\n \"label\": \"Affections inflammatoires du cordon spermatique. de la tunique vaginale du testicule et du canal deferent\",\n \"labelHtml\": \"Affections inflammatoires du cordon spermatique, de la tunique vaginale du testicule et du canal d&eacute;f&eacute;rent\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000035151\",\n \"label\": \"Agressivite persistante dans le trouble des conduites\",\n \"labelHtml\": \"Agressivit&eacute; persistante dans le trouble des conduites\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"Z04.0\",\n \"label\": \"Alcootest et recherche de substances pharmacologiques dans le sang\",\n \"labelHtml\": \"Alcootest et recherche de substances pharmacologiques dans le sang\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000012717\",\n \"label\": \"Allongement des tests de coagulation\",\n \"labelHtml\": \"Allongement des tests de coagulation\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000000587\",\n \"label\": \"Amibiase intestinale\",\n \"labelHtml\": \"Amibiase intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"A06.1\",\n \"label\": \"Amibiase intestinale chronique\",\n \"labelHtml\": \"Amibiase intestinale chronique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"A06.3\",\n \"label\": \"Amoebome (de l'intestin)\",\n \"labelHtml\": \"Amoebome (de l&rsquo;intestin)\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"S08.8\",\n \"label\": \"Amputation traumatique d'autres parties de la tete\",\n \"labelHtml\": \"Amputation traumatique d&rsquo;autres parties de la t&ecirc;te\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"S08\",\n \"label\": \"Amputation traumatique d'une partie de la tete\",\n \"labelHtml\": \"Amputation traumatique d&rsquo;une partie de la t&ecirc;te\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"G12\",\n \"label\": \"Amyotrophie spinale et syndromes apparentes\",\n \"labelHtml\": \"Amyotrophie spinale et syndromes apparent&eacute;s\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000034195\",\n \"label\": \"Analgesie de courte duree des actes douloureux\",\n \"labelHtml\": \"Analg&eacute;sie de courte dur&eacute;e des actes douloureux\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000020159\",\n \"label\": \"Anemie liee aux maladies inflammatoires chroniques de l'intestin\",\n \"labelHtml\": \"An&eacute;mie li&eacute;e aux maladies inflammatoires chroniques de l&rsquo;intestin\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"D52.1Y43.1\",\n \"label\": \"Anemie par carence en acide folique due aux antimetabolites tumoraux\",\n \"labelHtml\": \"An&eacute;mie par carence en acide folique due aux antim&eacute;tabolites tumoraux\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D46.2\",\n \"label\": \"Anemie refractaire avec exces de blastes [AREB]\",\n \"labelHtml\": \"An&eacute;mie r&eacute;fractaire avec exc&egrave;s de blastes [AREB]\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000015863\",\n \"label\": \"Anemie refractaire avec exces de blastes en transformation\",\n \"labelHtml\": \"An&eacute;mie r&eacute;fractaire avec exc&egrave;s de blastes en transformation\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"D46.3\",\n \"label\": \"Anemie refractaire avec exces de blastes en transformation\",\n \"labelHtml\": \"An&eacute;mie r&eacute;fractaire avec exc&egrave;s de blastes en transformation\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D46.1\",\n \"label\": \"Anemie refractaire avec sideroblastes en couronne\",\n \"labelHtml\": \"An&eacute;mie r&eacute;fractaire avec sid&eacute;roblastes en couronne\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D46.0\",\n \"label\": \"Anemie refractaire sans sideroblastes en couronne. ainsi precisee\",\n \"labelHtml\": \"An&eacute;mie r&eacute;fractaire sans sid&eacute;roblastes en couronne, ainsi pr&eacute;cis&eacute;e\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000035332\",\n \"label\": \"Anesthesie des petites interventions\",\n \"labelHtml\": \"Anesth&eacute;sie des petites interventions\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"F44.6\",\n \"label\": \"Anesthesie dissociative et atteintes sensorielles\",\n \"labelHtml\": \"Anesth&eacute;sie dissociative et atteintes sensorielles\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000029304\",\n \"label\": \"Anesthesie locale des extremites\",\n \"labelHtml\": \"Anesth&eacute;sie locale des extr&eacute;mit&eacute;s\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"M31.6I72.9\",\n \"label\": \"Anevrisme au cours d'autres arterites a cellules geante\",\n \"labelHtml\": \"An&eacute;vrisme au cours d&rsquo;autres art&eacute;rites &agrave; cellules g&eacute;ante\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000016647\",\n \"label\": \"Angio oedeme intestinal\",\n \"labelHtml\": \"Angio-oed&egrave;me intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"K55.3\",\n \"label\": \"Angiodysplasie de l'intestin grele\",\n \"labelHtml\": \"Angiodysplasie de l&rsquo;intestin gr&ecirc;le\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"E11.5I79.2\",\n \"label\": \"Angiopathie peripherique au cours du diabete sucre de type 2 \",\n \"labelHtml\": \"Angiopathie p&eacute;riph&eacute;rique au cours du diab&egrave;te sucr&eacute; de type 2 \",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"B81.3\",\n \"label\": \"Angiostrongyloidose [angiostrongylose] intestinale\",\n \"labelHtml\": \"Angiostrongylo&iuml;dose [angiostrongylose] intestinale\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000032547\",\n \"label\": \"Angor intestinal\",\n \"labelHtml\": \"Angor intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000007686\",\n \"label\": \"Anguillulose gastro intestinale\",\n \"labelHtml\": \"Anguillulose gastro-intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"B78.0\",\n \"label\": \"Anguillulose intestinale\",\n \"labelHtml\": \"Anguillulose intestinale\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D72.9\",\n \"label\": \"Anomalie des leucocytes. sans precision\",\n \"labelHtml\": \"Anomalie des leucocytes, sans pr&eacute;cision\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000017715\",\n \"label\": \"Anomalie des plaquettes\",\n \"labelHtml\": \"Anomalie des plaquettes\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"E74.9\",\n \"label\": \"Anomalie du metabolisme des hydrates de carbone. sans precision\",\n \"labelHtml\": \"Anomalie du m&eacute;tabolisme des hydrates de carbone, sans pr&eacute;cision\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D71\",\n \"label\": \"Anomalies fonctionnelles des granulocytes neutrophiles\",\n \"labelHtml\": \"Anomalies fonctionnelles des granulocytes neutrophiles\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D72.0\",\n \"label\": \"Anomalies genetiques des leucocytes\",\n \"labelHtml\": \"Anomalies g&eacute;n&eacute;tiques des leucocytes\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"K07.0\",\n \"label\": \"Anomalies importantes de dimension des machoires\",\n \"labelHtml\": \"Anomalies importantes de dimension des m&acirc;choires\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Y54.1\",\n \"label\": \"Antagonistes de mineralocorticoides ayant provoque des effets indesirables au cours de leur usage therapeutique\",\n \"labelHtml\": \"Antagonistes de min&eacute;ralocortico&iuml;des ayant provoqu&eacute; des effets ind&eacute;sirables au cours de leur usage th&eacute;rapeutique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Y44.3\",\n \"label\": \"Antagonistes des anticoagulants. Vit K et autres coagulants ayant provoque des effets indesirables au cours de leur usage therap\",\n \"labelHtml\": \"Antagonistes des anticoagulants, Vit K et autres coagulants ayant provoqu&eacute; des effets ind&eacute;sirables au cours de leur usage th&eacute;rap\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000007843\",\n \"label\": \"Antecedent d'anastomose intestinale\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent d&rsquo;anastomose intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000007281\",\n \"label\": \"Antecedent d'hepatite severe medicamenteuse\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent d&rsquo;h&eacute;patite s&eacute;v&egrave;re m&eacute;dicamenteuse\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000011646\",\n \"label\": \"Antecedent d'occlusion gastro intestinale\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent d&rsquo;occlusion gastro-intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000008470\",\n \"label\": \"Antecedent d'ulcere gastro intestinal\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent d&rsquo;ulc&egrave;re gastro-intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000017966\",\n \"label\": \"Antecedent de colite secondaire aux antibiotiques\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de colite secondaire aux antibiotiques\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000022549\",\n \"label\": \"Antecedent de perforation gastro intestinale\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de perforation gastro-intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000021331\",\n \"label\": \"Antecedent de photosensibilisation par des fibrates\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de photosensibilisation par des fibrates\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000021330\",\n \"label\": \"Antecedent de reaction phototoxique par des fibrates\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de r&eacute;action phototoxique par des fibrates\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000015141\",\n \"label\": \"Antecedent de resection chirurgicale de l'intestin grele\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de r&eacute;section chirurgicale de l&rsquo;intestin gr&ecirc;le\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000011898\",\n \"label\": \"Antecedent de resection intestinale chez le mucoviscidosique\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de r&eacute;section intestinale chez le mucoviscidosique\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000016978\",\n \"label\": \"Antecedent de saignement gastro intestinal\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de saignement gastro-intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000032656\",\n \"label\": \"Antecedent de saignement ou d'ulcere gastrointestinal au cours d'un traitement par AINS\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de saignement ou d&rsquo;ulc&egrave;re gastrointestinal au cours d&rsquo;un traitement par AINS\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000031320\",\n \"label\": \"Antecedent de thrombopenie sous pentosane polysulfate sodique\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de thrombop&eacute;nie sous pentosane polysulfate sodique\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000012561\",\n \"label\": \"Antecedent de torsades de pointes\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent de torsades de pointes\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000000717\",\n \"label\": \"Antecedent familial d'hepatite severe\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent familial d&rsquo;h&eacute;patite s&eacute;v&egrave;re\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000012810\",\n \"label\": \"Antecedent gastro intestinal\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent gastro-intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000023815\",\n \"label\": \"Antecedent pulmonaire associe aux agonistes dopaminergiques\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dent pulmonaire associ&eacute; aux agonistes dopaminergiques\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000024346\",\n \"label\": \"Antecedents d'infections recurrentes\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents d&rsquo;infections r&eacute;currentes\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"Z82.8\",\n \"label\": \"Antecedents familiaux d'autres incapacites et maladies chroniques conduisant a l'invalidite. non classees ailleurs\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents familiaux d&rsquo;autres incapacit&eacute;s et maladies chroniques conduisant &agrave; l&rsquo;invalidit&eacute;, non class&eacute;es ailleurs\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Z80.7\",\n \"label\": \"Antecedents familiaux d'autres tumeurs des tissus lymphoide. hematopoietique et apparentes\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents familiaux d&rsquo;autres tumeurs des tissus lympho&iuml;de, h&eacute;matopo&iuml;&eacute;tique et apparent&eacute;s\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Z82\",\n \"label\": \"Antecedents familiaux de certaines incapacites et maladies chroniques conduisant a l'invalidite\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents familiaux de certaines incapacit&eacute;s et maladies chroniques conduisant &agrave; l&rsquo;invalidit&eacute;\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Z83.3\",\n \"label\": \"Antecedents familiaux de diabete sucre\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents familiaux de diab&egrave;te sucr&eacute;\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Z85.7\",\n \"label\": \"Antecedents personnels d'autres tumeurs malignes des tissus lymphoide. hematopoietique et apparentes\",\n \"labelHtml\": \"Ant&eacute;c&eacute;dents personnels d&rsquo;autres tumeurs malignes des tissus lympho&iuml;de, h&eacute;matopo&iuml;&eacute;tique et apparent&eacute;s\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000032625\",\n \"label\": \"Anticorps anti cytoplasme des polynucleaires neutrophiles (ANCA) augmentes\",\n \"labelHtml\": \"Anticorps anti-cytoplasme des polynucl&eacute;aires neutrophiles (ANCA) augment&eacute;s\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"Y57.2\",\n \"label\": \"Antidotes et chelateurs ayant provoque des effets indesirables lors de leur usage therapeutique\",\n \"labelHtml\": \"Antidotes et ch&eacute;lateurs ayant provoqu&eacute; des effets ind&eacute;sirables lors de leur usage th&eacute;rapeutique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Y43.1\",\n \"label\": \"Antimetabolites tumoraux ayant provoque des effets indesirables au cours de leur usage therapeutique\",\n \"labelHtml\": \"Antim&eacute;tabolites tumoraux ayant provoqu&eacute; des effets ind&eacute;sirables au cours de leur usage th&eacute;rapeutique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000026742\",\n \"label\": \"Anxiete sociale\",\n \"labelHtml\": \"Anxi&eacute;t&eacute; sociale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"F93.2\",\n \"label\": \"Anxiete sociale de l'enfance\",\n \"labelHtml\": \"Anxi&eacute;t&eacute; sociale de l&rsquo;enfance\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"M31.6I79.1\",\n \"label\": \"Aortite au cours d'autres arterites a cellules geantes\",\n \"labelHtml\": \"Aortite au cours d&rsquo;autres art&eacute;rites &agrave; cellules g&eacute;antes\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"A52.0I79.1\",\n \"label\": \"Aortite syphilitique\",\n \"labelHtml\": \"Aortite syphilitique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"K12.0\",\n \"label\": \"Aphtes buccaux recidivants\",\n \"labelHtml\": \"Aphtes buccaux r&eacute;cidivants\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D61.1Y44.1\",\n \"label\": \"Aplasie medullaire due a vitamine B12. acide folique et autres preparations prescrites dans les anemies megaloblastiques\",\n \"labelHtml\": \"Aplasie m&eacute;dullaire due &agrave; vitamine B12, acide folique et autres pr&eacute;parations prescrites dans les an&eacute;mies m&eacute;galoblastiques\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D61.1Y43.1\",\n \"label\": \"Aplasie medullaire due aux antimetabolites tumoraux\",\n \"labelHtml\": \"Aplasie m&eacute;dullaire due aux antim&eacute;tabolites tumoraux\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Y81\",\n \"label\": \"Appareils utilises en chirurgie generale et esthetique. associes a des accidents\",\n \"labelHtml\": \"Appareils utilis&eacute;s en chirurgie g&eacute;n&eacute;rale et esth&eacute;tique, associ&eacute;s &agrave; des accidents\",\n \"subType\": \"CIM10\",\n },\n ],\n \"pageable\": {\n \"sort\": {\n \"sorted\": true,\n \"unsorted\": false,\n \"empty\": false,\n },\n \"pageSize\": 100,\n \"pageNumber\": 0,\n \"offset\": 0,\n \"paged\": true,\n \"unpaged\": false,\n },\n \"totalElements\": 1365,\n \"totalPages\": 14,\n \"last\": false,\n \"sort\": {\n \"sorted\": true,\n \"unsorted\": false,\n \"empty\": false,\n },\n \"first\": true,\n \"numberOfElements\": 100,\n \"number\": 0,\n \"size\": 100,\n \"empty\": false,\n}"
1233
+ }
1234
+ ],
1235
+ "exports": [
1828
1236
  {
1829
1237
  "kind": "js",
1830
- "name": "setPatientAmenorrheaStatus",
1238
+ "name": "mockPathologies",
1831
1239
  "declaration": {
1832
- "name": "setPatientAmenorrheaStatus",
1833
- "module": "src/shared/utils/patient-fhir-utils.ts"
1240
+ "name": "mockPathologies",
1241
+ "module": "src/shared/mocks/pathologies.mock.ts"
1834
1242
  }
1835
- },
1243
+ }
1244
+ ]
1245
+ },
1246
+ {
1247
+ "kind": "javascript-module",
1248
+ "path": "src/shared/mocks/patient-profile.mock.ts",
1249
+ "declarations": [
1836
1250
  {
1837
- "kind": "js",
1838
- "name": "getPatientBreastfeedingStatus",
1839
- "declaration": {
1840
- "name": "getPatientBreastfeedingStatus",
1841
- "module": "src/shared/utils/patient-fhir-utils.ts"
1842
- }
1251
+ "kind": "variable",
1252
+ "name": "patientComplete",
1253
+ "type": {
1254
+ "text": "Bundle"
1255
+ },
1256
+ "default": "{\n resourceType: \"Bundle\",\n id: \"patient-complete\",\n type: \"document\",\n entry: [\n {\n fullUrl: \"Composition/2a480f2a-27eb-43d6-943e-576588f9087e\",\n resource: {\n resourceType: \"Composition\", // On a Bundle of type document, the first entry must be a Composition\n id: \"2a480f2a-27eb-43d6-943e-576588f9087e\",\n status: \"final\",\n type: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"34133-9\",\n display: \"Summary of episode note\",\n },\n ],\n },\n subject: [{ reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" }],\n date: \"2025-09-02\",\n title: \"Patient complete composition\",\n author: [{ reference: \"Practitioner/dr-martin\" }],\n },\n },\n {\n fullUrl: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\",\n resource: {\n resourceType: \"Patient\",\n id: \"f5181376-2137-4724-8797-c57a453f7d1a\",\n gender: \"female\", // sex at birth\n birthDate: \"1984-01-01\", // birthDate used to calculate age\n name: [\n {\n family: \"Dupont\",\n given: [\"Marie\"],\n },\n ],\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-gestational-age\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"18185-9\",\n display: \"Gestational age\", // Most used Loinc code for gestational age / number of weeks of amenorrhea\n },\n ],\n text: \"Âge gestationnel\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 20,\n unit: \"weeks\",\n system: \"http://unitsofmeasure.org\",\n code: \"wk\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine-clearance\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"2164-2\",\n display: \"Creatinine renal clearance in 24 hour Urine and Serum or Plasma\", // Most used Loinc code for creatinine clearance\n },\n ],\n text: \"Clairance de la créatinine\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 71,\n unit: \"mL/min\",\n system: \"http://unitsofmeasure.org\",\n code: \"mL/min\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"15051-6\",\n display: \"Creatinine [Moles/volume] in Serum or Plasma\", // LOINC code for serum creatinine in μmol/L\n },\n ],\n text: \"Créatininémie\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 121,\n unit: \"μmol/L\",\n system: \"http://unitsofmeasure.org\",\n code: \"umol/L\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"2160-0\",\n display: \"Creatinine [Mass/volume] in Serum or Plasma\", // Most used Loinc code for serum creatinine\n },\n ],\n text: \"Créatininémie\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 1.4,\n unit: \"mg/dL\",\n system: \"http://unitsofmeasure.org\",\n code: \"mg/dL\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-dfg\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"48642-3\",\n \n display: \"Glomerular filtration rate [Volume Rate/Area] in Serum, Plasma or Blood by Creatinine-based formula (MDRD)/1.73 sq M\",\n },\n ],\n text: \"DFG\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 45,\n unit: \"mL/min/1.73.m2\",\n system: \"http://unitsofmeasure.org\",\n code: \"mL/min/1.73.m2\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-child-pugh-score\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"98152-2\",\n display: \"Total score [Child-Pugh]\",\n },\n ],\n text: \"Score total Child-Pugh\",\n },\n subject: {\n \"reference\": \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\",\n },\n valueQuantity: {\n value: 7,\n unit: \"score\",\n system: \"http://unitsofmeasure.org\",\n code: \"{score}\",\n },\n valueCodeableConcept: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"710066005\",\n display: \"Child-Pugh score class B\",\n },\n ],\n text: \"Stade B\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-body-weight\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"29463-7\",\n display: \"Body weight\", // Most used Loinc code for body weight\n },\n ],\n text: \"Poids corporel\",\n },\n subject: {\n reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\",\n },\n valueQuantity: {\n value: 84,\n unit: \"kg\",\n system: \"http://unitsofmeasure.org\",\n code: \"kg\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-body-height\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"8302-2\",\n display: \"Body height\", // Most used Loinc code for body height\n },\n ],\n text: \"Taille corporelle\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueQuantity: {\n value: 170,\n unit: \"cm\",\n system: \"http://unitsofmeasure.org\",\n code: \"cm\",\n },\n },\n },\n {\n resource: {\n resourceType: \"AdverseEvent\", // Resource used to specify adverse events like drug side effects the patient is experiencing\n id: \"adverseevent-amoxicillin-rash\",\n actuality: \"actual\",\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n status: \"unknown\",\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"271807003\",\n display: \"Rash\",\n },\n ],\n text: \"Éruption cutanée\",\n },\n suspectEntity: [ // Link to the medication request that supposedly or certainly caused the adverse event\n {\n instanceReference: {\n reference: \"MedicationRequest/req-cardensiel\",\n },\n causality: {\n assessmentMethod: {\n coding: [\n {\n system: \"http://terminology.hl7.org/CodeSystem/adverse-event-causality-assess\",\n code: \"certain\",\n display: \"Certain\",\n },\n ],\n },\n },\n },\n ],\n seriousness: {\n coding: [\n {\n system: \"http://terminology.hl7.org/CodeSystem/adverse-event-seriousness\",\n code: \"non-serious\",\n display: \"Non-serious\",\n },\n ],\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-pregnancy-status\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"82810-3\",\n display: \"Pregnancy status\", // Most used Loinc code for pregnancy status\n },\n ],\n text: \"Statut de grossesse\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueCodeableConcept: { // result of the observation meaning the patient is currently pregnant (it can also be represented more simply by a Condition resource with the same snomed code)\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"77386006\",\n display: \"Pregnant\",\n },\n ],\n text: \"Grossesse\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-breastfeeding-status\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"63895-7\",\n display: \"Breastfeeding status\", // Most used Loinc code for breastfeeding status\n },\n ],\n text: \"Statut d'allaitement\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n valueCodeableConcept: { // result of the observation meaning the patient is currently breastfeeding (it can also be represented more simply by a Condition resource with the same snomed code)\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"69840006\",\n display: \"Breastfeeding\",\n },\n ],\n text: \"Allaitement\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Condition\", // Resources of type Condition are used to specify pathologies\n id: \"hepatic-insufficiency\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"59927004\",\n display: \"Hepatic failure\",\n },\n ],\n text: \"Insuffisance hépatique\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-medical-terrain\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"723189000\",\n display: \"Insuffisance rénale aigüe\",\n },\n ],\n text: \"Insuffisance rénale aigüe\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-medical-terrain\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"723188000\",\n display: \"Insuffisance hépatique modérée\",\n },\n ],\n text: \"Insuffisance hépatique modérée\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-followed-pathology\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"84114007\",\n display: \"Insuffisance cardiaque\",\n },\n ],\n text: \"Insuffisance cardiaque\",\n },\n subject: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n },\n },\n {\n resource: {\n resourceType: \"AllergyIntolerance\", // Resource used to specify allergies or intolerances the patient has\n id: \"allergy-paracetamol\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"293584003\",\n display: \"Allergie au paracétamol\",\n },\n ],\n text: \"Allergie au paracétamol\",\n },\n patient: { reference: \"Patient/f5181376-2137-4724-8797-c57a453f7d1a\" },\n },\n },\n ],\n}"
1843
1257
  },
1844
1258
  {
1845
- "kind": "js",
1846
- "name": "setPatientBreastfeedingStatus",
1847
- "declaration": {
1848
- "name": "setPatientBreastfeedingStatus",
1849
- "module": "src/shared/utils/patient-fhir-utils.ts"
1850
- }
1851
- },
1259
+ "kind": "variable",
1260
+ "name": "patientProfileEmpty",
1261
+ "type": {
1262
+ "text": "object"
1263
+ },
1264
+ "default": "{}"
1265
+ }
1266
+ ],
1267
+ "exports": [
1852
1268
  {
1853
1269
  "kind": "js",
1854
- "name": "getPatientRenalInsufficiencyStatus",
1270
+ "name": "patientComplete",
1855
1271
  "declaration": {
1856
- "name": "getPatientRenalInsufficiencyStatus",
1857
- "module": "src/shared/utils/patient-fhir-utils.ts"
1272
+ "name": "patientComplete",
1273
+ "module": "src/shared/mocks/patient-profile.mock.ts"
1858
1274
  }
1859
1275
  },
1860
1276
  {
1861
1277
  "kind": "js",
1862
- "name": "setPatientClearance",
1278
+ "name": "patientProfileEmpty",
1863
1279
  "declaration": {
1864
- "name": "setPatientClearance",
1865
- "module": "src/shared/utils/patient-fhir-utils.ts"
1280
+ "name": "patientProfileEmpty",
1281
+ "module": "src/shared/mocks/patient-profile.mock.ts"
1866
1282
  }
1867
- },
1283
+ }
1284
+ ]
1285
+ },
1286
+ {
1287
+ "kind": "javascript-module",
1288
+ "path": "src/shared/services/api-search.service.ts",
1289
+ "declarations": [
1868
1290
  {
1869
- "kind": "js",
1870
- "name": "setPatientGFRByBSA",
1871
- "declaration": {
1872
- "name": "setPatientGFRByBSA",
1873
- "module": "src/shared/utils/patient-fhir-utils.ts"
1874
- }
1291
+ "kind": "function",
1292
+ "name": "fetchPathologiesByTerm",
1293
+ "parameters": [
1294
+ {
1295
+ "name": "term",
1296
+ "type": {
1297
+ "text": "string"
1298
+ }
1299
+ },
1300
+ {
1301
+ "name": "typePathology",
1302
+ "type": {
1303
+ "text": "\"AMM\" | \"CIM10\" | \"\""
1304
+ }
1305
+ },
1306
+ {
1307
+ "name": "params",
1308
+ "type": {
1309
+ "text": "SearchRequestBody"
1310
+ }
1311
+ },
1312
+ {
1313
+ "name": "apiUrl",
1314
+ "type": {
1315
+ "text": "string"
1316
+ }
1317
+ }
1318
+ ]
1875
1319
  },
1876
1320
  {
1877
- "kind": "js",
1878
- "name": "computeCreatinineFromClearance",
1879
- "declaration": {
1880
- "name": "computeCreatinineFromClearance",
1881
- "module": "src/shared/utils/patient-fhir-utils.ts"
1882
- }
1883
- },
1321
+ "kind": "function",
1322
+ "name": "fetchMoleculesByTerm",
1323
+ "parameters": [
1324
+ {
1325
+ "name": "term",
1326
+ "type": {
1327
+ "text": "string"
1328
+ }
1329
+ },
1330
+ {
1331
+ "name": "params",
1332
+ "type": {
1333
+ "text": "SearchRequestBody"
1334
+ }
1335
+ },
1336
+ {
1337
+ "name": "apiUrl",
1338
+ "type": {
1339
+ "text": "string"
1340
+ }
1341
+ }
1342
+ ]
1343
+ }
1344
+ ],
1345
+ "exports": [
1884
1346
  {
1885
1347
  "kind": "js",
1886
- "name": "getCreatinine",
1348
+ "name": "fetchPathologiesByTerm",
1887
1349
  "declaration": {
1888
- "name": "getCreatinine",
1889
- "module": "src/shared/utils/patient-fhir-utils.ts"
1350
+ "name": "fetchPathologiesByTerm",
1351
+ "module": "src/shared/services/api-search.service.ts"
1890
1352
  }
1891
1353
  },
1892
1354
  {
1893
1355
  "kind": "js",
1894
- "name": "setCreatinineBymgL",
1356
+ "name": "fetchMoleculesByTerm",
1895
1357
  "declaration": {
1896
- "name": "setCreatinineBymgL",
1897
- "module": "src/shared/utils/patient-fhir-utils.ts"
1358
+ "name": "fetchMoleculesByTerm",
1359
+ "module": "src/shared/services/api-search.service.ts"
1898
1360
  }
1899
- },
1361
+ }
1362
+ ]
1363
+ },
1364
+ {
1365
+ "kind": "javascript-module",
1366
+ "path": "src/shared/utils/formula-utils.ts",
1367
+ "declarations": [
1900
1368
  {
1901
- "kind": "js",
1902
- "name": "setCreatinineByUmolL",
1903
- "declaration": {
1904
- "name": "setCreatinineByUmolL",
1905
- "module": "src/shared/utils/patient-fhir-utils.ts"
1906
- }
1369
+ "kind": "function",
1370
+ "name": "calculateBMI",
1371
+ "return": {
1372
+ "type": {
1373
+ "text": ""
1374
+ }
1375
+ },
1376
+ "parameters": [
1377
+ {
1378
+ "name": "weight",
1379
+ "type": {
1380
+ "text": "number"
1381
+ },
1382
+ "description": "Poids en kilogrammes"
1383
+ },
1384
+ {
1385
+ "name": "height",
1386
+ "type": {
1387
+ "text": "number"
1388
+ },
1389
+ "description": "Taille en centimètres"
1390
+ }
1391
+ ],
1392
+ "description": "Calcule l'IMC à partir du poids et de la taille"
1907
1393
  },
1908
1394
  {
1909
- "kind": "js",
1910
- "name": "getPatientHepaticInsufficiencyScore",
1911
- "declaration": {
1912
- "name": "getPatientHepaticInsufficiencyScore",
1913
- "module": "src/shared/utils/patient-fhir-utils.ts"
1914
- }
1395
+ "kind": "function",
1396
+ "name": "calculateCreatinineClearance",
1397
+ "return": {
1398
+ "type": {
1399
+ "text": ""
1400
+ }
1401
+ },
1402
+ "parameters": [
1403
+ {
1404
+ "name": "age",
1405
+ "type": {
1406
+ "text": "number"
1407
+ },
1408
+ "description": "Age du patient en années"
1409
+ },
1410
+ {
1411
+ "name": "weight",
1412
+ "type": {
1413
+ "text": "number"
1414
+ },
1415
+ "description": "Poids en kilogrammes"
1416
+ },
1417
+ {
1418
+ "name": "scrMgdl",
1419
+ "type": {
1420
+ "text": "number"
1421
+ },
1422
+ "description": "Créatinine sérique en mg/dL"
1423
+ },
1424
+ {
1425
+ "name": "isFemale",
1426
+ "type": {
1427
+ "text": "boolean"
1428
+ },
1429
+ "description": "true si le patient est une femme, false sinon"
1430
+ }
1431
+ ],
1432
+ "description": "Calcule la clairance de la créatinine selon la formule de Cockcroft-Gault"
1915
1433
  },
1916
1434
  {
1917
- "kind": "js",
1918
- "name": "getPatientHepaticInsufficiencyStade",
1919
- "declaration": {
1920
- "name": "getPatientHepaticInsufficiencyStade",
1921
- "module": "src/shared/utils/patient-fhir-utils.ts"
1922
- }
1435
+ "kind": "function",
1436
+ "name": "convertCreatinineUmolToMgdL",
1437
+ "return": {
1438
+ "type": {
1439
+ "text": ""
1440
+ }
1441
+ },
1442
+ "parameters": [
1443
+ {
1444
+ "name": "creatinineUmolL",
1445
+ "type": {
1446
+ "text": "number"
1447
+ },
1448
+ "description": "Créatinine en μmol/L"
1449
+ }
1450
+ ],
1451
+ "description": "Convertit la créatinine de μmol/L en mg/dL"
1923
1452
  },
1924
1453
  {
1925
- "kind": "js",
1926
- "name": "setPatientHepaticInsufficiencyStatus",
1927
- "declaration": {
1928
- "name": "setPatientHepaticInsufficiencyStatus",
1929
- "module": "src/shared/utils/patient-fhir-utils.ts"
1930
- }
1454
+ "kind": "function",
1455
+ "name": "convertCreatinineMgdLToUmol",
1456
+ "return": {
1457
+ "type": {
1458
+ "text": ""
1459
+ }
1460
+ },
1461
+ "parameters": [
1462
+ {
1463
+ "name": "creatinineMgdL",
1464
+ "type": {
1465
+ "text": "number"
1466
+ },
1467
+ "description": "Créatinine en mg/dL"
1468
+ }
1469
+ ],
1470
+ "description": "Convertit la créatinine de mg/dL en μmol/L"
1931
1471
  },
1932
1472
  {
1933
- "kind": "js",
1934
- "name": "deletePatientHepaticInsufficiencyStatus",
1935
- "declaration": {
1936
- "name": "deletePatientHepaticInsufficiencyStatus",
1937
- "module": "src/shared/utils/patient-fhir-utils.ts"
1938
- }
1473
+ "kind": "function",
1474
+ "name": "convertCreatinineMgdLToMgL",
1475
+ "return": {
1476
+ "type": {
1477
+ "text": ""
1478
+ }
1479
+ },
1480
+ "parameters": [
1481
+ {
1482
+ "name": "creatinineMgdL",
1483
+ "type": {
1484
+ "text": "number"
1485
+ },
1486
+ "description": "Créatinine en mg/dL"
1487
+ }
1488
+ ],
1489
+ "description": "Convertit la créatinine de mg/dL en mg/L"
1939
1490
  },
1491
+ {
1492
+ "kind": "function",
1493
+ "name": "convertCreatinineMgLToMgdL",
1494
+ "return": {
1495
+ "type": {
1496
+ "text": ""
1497
+ }
1498
+ },
1499
+ "parameters": [
1500
+ {
1501
+ "name": "creatinineMgL",
1502
+ "type": {
1503
+ "text": "number"
1504
+ },
1505
+ "description": "Créatinine en mg/L"
1506
+ }
1507
+ ],
1508
+ "description": "Convertit la créatinine de mg/L en mg/dL"
1509
+ }
1510
+ ],
1511
+ "exports": [
1940
1512
  {
1941
1513
  "kind": "js",
1942
- "name": "getPatientConditions",
1514
+ "name": "calculateBMI",
1943
1515
  "declaration": {
1944
- "name": "getPatientConditions",
1945
- "module": "src/shared/utils/patient-fhir-utils.ts"
1516
+ "name": "calculateBMI",
1517
+ "module": "src/shared/utils/formula-utils.ts"
1946
1518
  }
1947
1519
  },
1948
1520
  {
1949
1521
  "kind": "js",
1950
- "name": "getPatientConditionsWithCode",
1522
+ "name": "calculateCreatinineClearance",
1951
1523
  "declaration": {
1952
- "name": "getPatientConditionsWithCode",
1953
- "module": "src/shared/utils/patient-fhir-utils.ts"
1524
+ "name": "calculateCreatinineClearance",
1525
+ "module": "src/shared/utils/formula-utils.ts"
1954
1526
  }
1955
1527
  },
1956
1528
  {
1957
1529
  "kind": "js",
1958
- "name": "setPatientConditions",
1530
+ "name": "convertCreatinineUmolToMgdL",
1959
1531
  "declaration": {
1960
- "name": "setPatientConditions",
1961
- "module": "src/shared/utils/patient-fhir-utils.ts"
1532
+ "name": "convertCreatinineUmolToMgdL",
1533
+ "module": "src/shared/utils/formula-utils.ts"
1962
1534
  }
1963
1535
  },
1964
1536
  {
1965
1537
  "kind": "js",
1966
- "name": "getPatientAllergies",
1538
+ "name": "convertCreatinineMgdLToUmol",
1967
1539
  "declaration": {
1968
- "name": "getPatientAllergies",
1969
- "module": "src/shared/utils/patient-fhir-utils.ts"
1540
+ "name": "convertCreatinineMgdLToUmol",
1541
+ "module": "src/shared/utils/formula-utils.ts"
1970
1542
  }
1971
1543
  },
1972
1544
  {
1973
1545
  "kind": "js",
1974
- "name": "getPatientAllergiesWithCode",
1546
+ "name": "convertCreatinineMgdLToMgL",
1975
1547
  "declaration": {
1976
- "name": "getPatientAllergiesWithCode",
1977
- "module": "src/shared/utils/patient-fhir-utils.ts"
1548
+ "name": "convertCreatinineMgdLToMgL",
1549
+ "module": "src/shared/utils/formula-utils.ts"
1978
1550
  }
1979
1551
  },
1980
1552
  {
1981
1553
  "kind": "js",
1982
- "name": "setPatientAllergies",
1554
+ "name": "convertCreatinineMgLToMgdL",
1983
1555
  "declaration": {
1984
- "name": "setPatientAllergies",
1985
- "module": "src/shared/utils/patient-fhir-utils.ts"
1556
+ "name": "convertCreatinineMgLToMgdL",
1557
+ "module": "src/shared/utils/formula-utils.ts"
1986
1558
  }
1559
+ }
1560
+ ]
1561
+ },
1562
+ {
1563
+ "kind": "javascript-module",
1564
+ "path": "src/shared/utils/patient-fhir-utils.ts",
1565
+ "declarations": [
1566
+ {
1567
+ "kind": "function",
1568
+ "name": "generateUUID",
1569
+ "return": {
1570
+ "type": {
1571
+ "text": "string"
1572
+ }
1573
+ },
1574
+ "description": "Génère un UUID v4 aléatoire"
1987
1575
  },
1988
1576
  {
1989
- "kind": "js",
1990
- "name": "getPatientAdverseEvents",
1991
- "declaration": {
1992
- "name": "getPatientAdverseEvents",
1993
- "module": "src/shared/utils/patient-fhir-utils.ts"
1994
- }
1577
+ "kind": "function",
1578
+ "name": "getPatientFullUrl",
1579
+ "return": {
1580
+ "type": {
1581
+ "text": "string"
1582
+ }
1583
+ },
1584
+ "parameters": [
1585
+ {
1586
+ "name": "bundle",
1587
+ "type": {
1588
+ "text": "Bundle"
1589
+ }
1590
+ }
1591
+ ],
1592
+ "description": "Retourne le fullUrl de la ressource Patient dans le bundle.\nSi aucun fullUrl n'est défini sur l'entry, construit \"Patient/{id}\"."
1995
1593
  },
1996
1594
  {
1997
- "kind": "js",
1998
- "name": "getPatientDemographics",
1999
- "declaration": {
2000
- "name": "getPatientDemographics",
2001
- "module": "src/shared/utils/patient-fhir-utils.ts"
1595
+ "kind": "function",
1596
+ "name": "setInitialPatientProfile",
1597
+ "return": {
1598
+ "type": {
1599
+ "text": "Bundle"
1600
+ }
2002
1601
  }
2003
1602
  },
2004
1603
  {
2005
- "kind": "js",
2006
- "name": "childPughScore",
2007
- "declaration": {
2008
- "name": "childPughScore",
2009
- "module": "src/shared/utils/patient-fhir-utils.ts"
2010
- }
2011
- },
2012
- {
2013
- "kind": "js",
2014
- "name": "calculateGFRFromCreatinine",
2015
- "declaration": {
2016
- "name": "calculateGFRFromCreatinine",
2017
- "module": "src/shared/utils/patient-fhir-utils.ts"
2018
- }
2019
- },
2020
- {
2021
- "kind": "js",
2022
- "name": "calculateCreatinineFromGFR",
2023
- "declaration": {
2024
- "name": "calculateCreatinineFromGFR",
2025
- "module": "src/shared/utils/patient-fhir-utils.ts"
2026
- }
2027
- },
2028
- {
2029
- "kind": "js",
2030
- "name": "getPatientMedicalInfo",
2031
- "declaration": {
2032
- "name": "getPatientMedicalInfo",
2033
- "module": "src/shared/utils/patient-fhir-utils.ts"
2034
- }
1604
+ "kind": "function",
1605
+ "name": "getPatientGender",
1606
+ "return": {
1607
+ "type": {
1608
+ "text": ""
1609
+ }
1610
+ },
1611
+ "parameters": [
1612
+ {
1613
+ "name": "bundle",
1614
+ "type": {
1615
+ "text": "Bundle | undefined"
1616
+ },
1617
+ "description": "Bundle Patient FHIR"
1618
+ }
1619
+ ],
1620
+ "description": "Extrait le sexe du patient FHIR"
2035
1621
  },
2036
1622
  {
2037
- "kind": "js",
2038
- "name": "getPatientInfo",
2039
- "declaration": {
2040
- "name": "getPatientInfo",
2041
- "module": "src/shared/utils/patient-fhir-utils.ts"
2042
- }
2043
- }
2044
- ]
2045
- },
2046
- {
2047
- "kind": "javascript-module",
2048
- "path": "src/patient-profile/patient-profile-edition/patient-profile-edition.stories.ts",
2049
- "declarations": [
2050
- {
2051
- "kind": "variable",
2052
- "name": "meta",
2053
- "type": {
2054
- "text": "Meta<PatientProfileEdition>"
1623
+ "kind": "function",
1624
+ "name": "setPatientGender",
1625
+ "return": {
1626
+ "type": {
1627
+ "text": "void"
1628
+ }
2055
1629
  },
2056
- "default": "{\n component: \"bcb-commentary-modal\",\n parameters: {\n deepControls: { enabled: true },\n },\n tags: [\"autodocs\"],\n render: (args: PatientProfileEdition) => html`\n <div style=\"height: 400px;\">\n <bcbd-button \n @click=${(event: Event) => {\n const button = event.target as HTMLElement;\n const modal = button.parentElement?.querySelector(\"bcb-patient-profile-edition\") as PatientProfileEdition;\n if (modal) {\n modal.open();\n }\n }}\n >\n Ouvrir la modal\n </bcbd-button>\n <bcb-patient-profile-edition .patientProfile=${args.patientProfile}\n .apiUrl=${args.apiUrl}\n .apiKey=${args.apiKey}></bcb-patient-profile-edition>\n </div>\n `,\n argTypes: {\n apiUrl: {\n description: \"URL de l'API pour récupérer et sauvegarder le profil patient\",\n control: { type: \"text\" },\n },\n apiKey: {\n description: \"Clé API pour authentifier les requêtes vers l'API\",\n control: { type: \"text\" },\n },\n patientProfile: {\n description: \"Profil du patient à éditer\",\n control: { type: \"object\" },\n },\n },\n}"
1630
+ "parameters": [
1631
+ {
1632
+ "name": "bundle",
1633
+ "type": {
1634
+ "text": "Bundle"
1635
+ }
1636
+ },
1637
+ {
1638
+ "name": "gender",
1639
+ "type": {
1640
+ "text": "\"male\" | \"female\" | \"other\" | \"unknown\""
1641
+ }
1642
+ }
1643
+ ]
2057
1644
  },
2058
1645
  {
2059
- "kind": "variable",
2060
- "name": "Base",
2061
- "type": {
2062
- "text": "Story"
1646
+ "kind": "function",
1647
+ "name": "getPatientName",
1648
+ "return": {
1649
+ "type": {
1650
+ "text": ""
1651
+ }
2063
1652
  },
2064
- "default": "{\n args: {\n patientProfile: patientComplete,\n apiUrl: \"https://api-dev.claudebernard.fr\",\n },\n play: async({ canvasElement, step }) => {\n const component = canvasElement.querySelector(\"bcb-patient-profile-edition\") as PatientProfileEdition | null;\n const modal = component?.shadowRoot?.querySelector(\"bcbd-modal\") as HTMLElement | null;\n const openButton = canvasElement.querySelector(\"bcbd-button\") as HTMLElement | null;\n openButton?.click();\n const modalTitle = modal?.shadowRoot?.querySelector(\"div.claudebernard-modal__header\") as HTMLElement | null;\n\n await step(\"Verify the modal is opened and well displayed\", () => {\n expect(modal).toBeVisible();\n expect(modalTitle?.textContent).toContain(\"Édition du profil patient\");\n expect(component?.shadowRoot?.querySelectorAll(\"bcbd-input\").length).toBe(10);\n expect(component?.shadowRoot?.querySelectorAll(\"bcbd-select\").length).toBe(6);\n expect(component?.shadowRoot?.querySelectorAll(\"bcbd-checkbox\").length).toBe(2);\n expect(component?.shadowRoot?.querySelectorAll(\".claudebernard-edition-modal-subtitle\")?.[0]?.textContent).toContain(\"Insuffisance rénale\");\n expect(component?.shadowRoot?.querySelectorAll(\".claudebernard-edition-modal-subtitle\")?.[1]?.textContent).toContain(\"Insuffisance hépatique\");\n const saveButton = component?.shadowRoot?.querySelector(\"bcbd-button[data-test-id=\\\"save-button\\\"]\");\n const cancelButton = component?.shadowRoot?.querySelector(\"bcbd-button[data-test-id=\\\"cancel-button\\\"]\");\n\n expect(saveButton).not.toBeNull();\n expect(cancelButton).not.toBeNull();\n });\n\n // eslint-disable-next-line complexity\n await step(\"Verify all the patient information is here\", () => {\n const nameSelect = component?.shadowRoot?.querySelector(\"bcbd-select[data-test-id=\\\"name-select\\\"]\") as HTMLElement | null;\n expect(nameSelect?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Marie Dupont\");\n\n const sexSelect = component?.shadowRoot?.querySelector(\"bcbd-select[data-test-id=\\\"sex-select\\\"]\") as HTMLElement | null;\n expect(sexSelect?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Féminin\");\n\n const sizeInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"size-input\\\"]\") as HTMLElement | null;\n expect(sizeInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"170\");\n\n const ageInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"age-input\\\"]\") as HTMLElement | null;\n expect(ageInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"42\");\n\n const ageUnitSelect = component?.shadowRoot?.querySelector(\"bcbd-select[data-test-id=\\\"age-unit-select\\\"]\") as HTMLElement | null;\n expect(ageUnitSelect?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Ans\");\n\n const weightInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"weight-input\\\"]\") as HTMLElement | null;\n expect(weightInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"84\");\n\n const pregnancyCheckbox = component?.shadowRoot?.querySelector(\"bcbd-checkbox[data-test-id=\\\"pregnancy-checkbox\\\"]\") as HTMLElement | null;\n expect(pregnancyCheckbox?.shadowRoot?.querySelector(\"input\")?.checked).toBe(true);\n\n const gestationalInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"gestational-input\\\"]\") as HTMLElement | null;\n expect(gestationalInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"20\");\n\n const breastfeedingCheckbox = component?.shadowRoot\n ?.querySelector(\"bcbd-checkbox[data-test-id=\\\"breastfeeding-checkbox\\\"]\") as HTMLElement | null;\n expect(breastfeedingCheckbox?.shadowRoot?.querySelector(\"input\")?.checked).toBe(true);\n\n const pathologiesSelect = component?.shadowRoot?.querySelector(\"bcbd-select[data-test-id=\\\"pathologies-select\\\"]\") as HTMLElement | null;\n const pathologiesValues = pathologiesSelect?.shadowRoot?.querySelectorAll(\"bcbd-badge\");\n expect(pathologiesValues?.length).toBe(4);\n expect(pathologiesValues?.[0]?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Insuffisance hépatique\");\n expect(pathologiesValues?.[1]?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Insuffisance rénale aigüe\");\n expect(pathologiesValues?.[2]?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Insuffisance hépatique modérée\");\n expect(pathologiesValues?.[3]?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Insuffisance cardiaque\");\n\n const allergiesSelect = component?.shadowRoot?.querySelector(\"bcbd-select[data-test-id=\\\"allergies-select\\\"]\") as HTMLElement | null;\n const allergiesValues = allergiesSelect?.shadowRoot?.querySelectorAll(\"bcbd-badge\");\n expect(allergiesValues?.length).toBe(1);\n expect(allergiesValues?.[0]?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Allergie au paracétamol\");\n\n const creatinineByUmolInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"creatinine-umol-input\\\"]\") as HTMLElement | null;\n expect(creatinineByUmolInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"121\");\n\n const creatinineBymglInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"creatinine-mgl-input\\\"]\") as HTMLElement | null;\n expect(creatinineBymglInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"14\");\n\n const clearanceInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"clearance-input\\\"]\") as HTMLElement | null;\n expect(clearanceInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"71\");\n\n const dfgInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"dfg-input\\\"]\") as HTMLElement | null;\n expect(dfgInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"45\");\n\n const hepaticStadeSelect = component?.shadowRoot?.querySelector(\"bcbd-select[data-test-id=\\\"hepatic-stade-select\\\"]\") as HTMLElement | null;\n expect(hepaticStadeSelect?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Stade B\");\n\n const hepaticScoreInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"hepatic-score-input\\\"]\") as HTMLElement | null;\n expect(hepaticScoreInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"7\");\n });\n\n await step(\"Verify if error message goes well displayed on size input\", async() => {\n const sizeInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"size-input\\\"]\") as HTMLElement;\n const validateButton = component?.shadowRoot?.querySelector(\"bcbd-button[data-test-id=\\\"save-button\\\"]\") as HTMLElement;\n expect(validateButton.getAttribute(\"disabled\")).toBe(null);\n expect(sizeInput?.getAttribute(\"warning-msg\")).toBe(\"\");\n const sizeInputField = sizeInput?.shadowRoot?.querySelector(\"input\") as HTMLInputElement;\n //Test invalid size\n sizeInputField.value = \"0\";\n sizeInputField.dispatchEvent(new Event(\"input\", { bubbles: true, composed: true }));\n expect(sizeInput?.getAttribute(\"warning-msg\")).toBe(\"La taille n'est pas valide\");\n\n await new Promise(requestAnimationFrame);\n await new Promise((resolve) => setTimeout(resolve, 0));\n\n sizeInputField.value = \"400\";\n sizeInputField.dispatchEvent(new Event(\"input\", { bubbles: true, composed: true }));\n expect(sizeInput?.getAttribute(\"warning-msg\")).toBe(\"La taille n'est pas valide\");\n expect(validateButton.getAttribute(\"disabled\")).not.toBe(null);\n\n //Test valid size\n sizeInputField.value = \"170\";\n sizeInputField.dispatchEvent(new Event(\"input\", { bubbles: true, composed: true }));\n expect(sizeInput?.getAttribute(\"warning-msg\")).toBe(\"\");\n await new Promise(requestAnimationFrame);\n await new Promise((resolve) => setTimeout(resolve, 0));\n expect(validateButton.getAttribute(\"disabled\")).toBe(null);\n });\n\n await step(\"Verify if error message goes well displayed on age input\", async() => {\n const ageInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"age-input\\\"]\") as HTMLElement;\n const validateButton = component?.shadowRoot?.querySelector(\"bcbd-button[data-test-id=\\\"save-button\\\"]\") as HTMLElement;\n expect(validateButton.getAttribute(\"disabled\")).toBe(null);\n expect(ageInput?.getAttribute(\"warning-msg\")).toBe(\"\");\n const ageInputField = ageInput?.shadowRoot?.querySelector(\"input\") as HTMLInputElement;\n //Test invalid age\n ageInputField.value = \"1\";\n ageInputField.dispatchEvent(new Event(\"input\", { bubbles: true, composed: true }));\n expect(ageInput?.getAttribute(\"warning-msg\")).toBe(\"L'âge doit être exprimé en mois si inférieur à 2 ans\");\n await new Promise(requestAnimationFrame);\n await new Promise((resolve) => setTimeout(resolve, 0));\n expect(validateButton.getAttribute(\"disabled\")).not.toBe(null);\n\n ageInputField.value = \"300\";\n ageInputField.dispatchEvent(new Event(\"input\", { bubbles: true, composed: true }));\n expect(ageInput?.getAttribute(\"warning-msg\")).toBe(\"L'âge ne doit pas dépasser 150 ans\");\n\n //Test valid age\n ageInputField.value = \"41\";\n ageInputField.dispatchEvent(new Event(\"input\", { bubbles: true, composed: true }));\n expect(ageInput?.getAttribute(\"warning-msg\")).toBe(\"\");\n await new Promise(requestAnimationFrame);\n await new Promise((resolve) => setTimeout(resolve, 0));\n expect(validateButton.getAttribute(\"disabled\")).toBe(null);\n\n //Change unit to months and test invalid age\n const ageUnitSelect = component?.shadowRoot?.querySelector(\"bcbd-select[data-test-id=\\\"age-unit-select\\\"]\") as HTMLElement;\n expect(ageUnitSelect).not.toBeNull();\n ageUnitSelect!.click();\n let shadowRoot = (ageUnitSelect as any).shadowRoot as ShadowRoot;\n expect(shadowRoot).not.toBeNull();\n const optionMois = shadowRoot.querySelector<HTMLElement>(\"div[data-test-id=\\\"select-option-mois\\\"]\") as HTMLElement;\n optionMois.click();\n\n expect(ageInput?.getAttribute(\"warning-msg\")).toBe(\"L'âge en mois ne doit pas dépasser 23 mois, veuillez compter en années\");\n\n //Go back like initial state\n ageUnitSelect.click();\n await new Promise(requestAnimationFrame);\n await new Promise((resolve) => setTimeout(resolve, 0));\n shadowRoot = (ageUnitSelect as any).shadowRoot as ShadowRoot;\n const optionAns = shadowRoot.querySelector<HTMLElement>(\"div[data-test-id=\\\"select-option-ans\\\"]\") as HTMLElement;\n optionAns.click();\n });\n\n await step(\"Verify if error message goes well displayed on weight input\", async() => {\n const weightInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"weight-input\\\"]\") as HTMLElement;\n const validateButton = component?.shadowRoot?.querySelector(\"bcbd-button[data-test-id=\\\"save-button\\\"]\") as HTMLElement;\n expect(validateButton.getAttribute(\"disabled\")).toBe(null);\n expect(weightInput?.getAttribute(\"warning-msg\")).toBe(\"\");\n const weightInputField = weightInput?.shadowRoot?.querySelector(\"input\") as HTMLInputElement;\n //Test invalid weight\n weightInputField.value = \"320\";\n weightInputField.dispatchEvent(new Event(\"input\", { bubbles: true, composed: true }));\n expect(weightInput?.getAttribute(\"warning-msg\")).toBe(\"Le poids ne doit pas dépasser 300kg\");\n await new Promise(requestAnimationFrame);\n await new Promise((resolve) => setTimeout(resolve, 0));\n expect(validateButton.getAttribute(\"disabled\")).not.toBe(null);\n\n //Test valid weight\n weightInputField.value = \"84\";\n weightInputField.dispatchEvent(new Event(\"input\", { bubbles: true, composed: true }));\n expect(weightInput?.getAttribute(\"warning-msg\")).toBe(\"\");\n await new Promise(requestAnimationFrame);\n await new Promise((resolve) => setTimeout(resolve, 0));\n expect(validateButton.getAttribute(\"disabled\")).toBe(null);\n });\n },\n}"
2065
- }
2066
- ],
2067
- "exports": [
2068
- {
2069
- "kind": "js",
2070
- "name": "default",
2071
- "declaration": {
2072
- "name": "meta",
2073
- "module": "src/patient-profile/patient-profile-edition/patient-profile-edition.stories.ts"
2074
- }
1653
+ "parameters": [
1654
+ {
1655
+ "name": "bundle",
1656
+ "type": {
1657
+ "text": "Bundle | undefined"
1658
+ },
1659
+ "description": "Bundle Patient FHIR"
1660
+ }
1661
+ ],
1662
+ "description": "Extrait le nom du patient FHIR"
2075
1663
  },
2076
1664
  {
2077
- "kind": "js",
2078
- "name": "Base",
2079
- "declaration": {
2080
- "name": "Base",
2081
- "module": "src/patient-profile/patient-profile-edition/patient-profile-edition.stories.ts"
2082
- }
2083
- }
2084
- ]
2085
- },
2086
- {
2087
- "kind": "javascript-module",
2088
- "path": "src/patient-profile/patient-profile-edition/patient-profile-edition.ts",
2089
- "declarations": [
2090
- {
2091
- "kind": "class",
2092
- "description": "",
2093
- "name": "PatientProfileEdition",
2094
- "members": [
1665
+ "kind": "function",
1666
+ "name": "getPatientAge",
1667
+ "return": {
1668
+ "type": {
1669
+ "text": ""
1670
+ }
1671
+ },
1672
+ "parameters": [
2095
1673
  {
2096
- "kind": "field",
2097
- "name": "patientProfile",
1674
+ "name": "bundle",
2098
1675
  "type": {
2099
1676
  "text": "Bundle | undefined"
2100
1677
  },
2101
- "attribute": "patient-profile"
2102
- },
1678
+ "description": "Bundle Patient FHIR"
1679
+ }
1680
+ ],
1681
+ "description": "Calcule l'âge du patient à partir de sa date de naissance"
1682
+ },
1683
+ {
1684
+ "kind": "function",
1685
+ "name": "getPatientBirthDate",
1686
+ "return": {
1687
+ "type": {
1688
+ "text": ""
1689
+ }
1690
+ },
1691
+ "parameters": [
2103
1692
  {
2104
- "kind": "field",
2105
- "name": "apiUrl",
1693
+ "name": "bundle",
2106
1694
  "type": {
2107
- "text": "string | undefined"
1695
+ "text": "Bundle | undefined"
2108
1696
  },
2109
- "attribute": "api-url"
2110
- },
1697
+ "description": "Bundle Patient FHIR"
1698
+ }
1699
+ ],
1700
+ "description": "Calcule l'âge du patient à partir de sa date de naissance"
1701
+ },
1702
+ {
1703
+ "kind": "function",
1704
+ "name": "setPatientAge",
1705
+ "return": {
1706
+ "type": {
1707
+ "text": "void"
1708
+ }
1709
+ },
1710
+ "parameters": [
2111
1711
  {
2112
- "kind": "field",
2113
- "name": "apiKey",
1712
+ "name": "bundle",
2114
1713
  "type": {
2115
- "text": "string | undefined"
1714
+ "text": "Bundle"
2116
1715
  },
2117
- "attribute": "api-key"
1716
+ "description": "Bundle Patient FHIR"
2118
1717
  },
2119
1718
  {
2120
- "kind": "field",
2121
- "name": "patientAge",
1719
+ "name": "age",
2122
1720
  "type": {
2123
1721
  "text": "number"
2124
1722
  },
2125
- "default": "0"
1723
+ "description": "Nouvel âge du patient"
2126
1724
  },
2127
1725
  {
2128
- "kind": "field",
2129
- "name": "patientUnitAge",
1726
+ "name": "ageUnit",
2130
1727
  "type": {
2131
1728
  "text": "string"
2132
1729
  },
2133
- "default": "\"ans\""
2134
- },
1730
+ "description": "Unité de l'âge (ex: \"ans\", \"mois\")"
1731
+ }
1732
+ ],
1733
+ "description": "Modifie l'âge du patient dans la ressource Patient du Bundle FHIR"
1734
+ },
1735
+ {
1736
+ "kind": "function",
1737
+ "name": "getPatientWeight",
1738
+ "return": {
1739
+ "type": {
1740
+ "text": ""
1741
+ }
1742
+ },
1743
+ "parameters": [
2135
1744
  {
2136
- "kind": "field",
2137
- "name": "patientWeight",
1745
+ "name": "bundle",
2138
1746
  "type": {
2139
- "text": "number"
1747
+ "text": "Bundle | undefined"
2140
1748
  },
2141
- "default": "0"
2142
- },
1749
+ "description": "Bundle Patient FHIR"
1750
+ }
1751
+ ],
1752
+ "description": "Extrait le poids du patient depuis la ressource Observation concernée"
1753
+ },
1754
+ {
1755
+ "kind": "function",
1756
+ "name": "getPatientWeightWithUnit",
1757
+ "return": {
1758
+ "type": {
1759
+ "text": ""
1760
+ }
1761
+ },
1762
+ "parameters": [
2143
1763
  {
2144
- "kind": "field",
2145
- "name": "patientHeight",
1764
+ "name": "bundle",
2146
1765
  "type": {
2147
- "text": "number"
1766
+ "text": "Bundle | undefined"
2148
1767
  },
2149
- "default": "0"
2150
- },
1768
+ "description": "Bundle Patient FHIR"
1769
+ }
1770
+ ],
1771
+ "description": "Extrait le poids du patient (avec l'unité correspondante) depuis la ressource Observation concernée"
1772
+ },
1773
+ {
1774
+ "kind": "function",
1775
+ "name": "setPatientWeight",
1776
+ "return": {
1777
+ "type": {
1778
+ "text": "void"
1779
+ }
1780
+ },
1781
+ "parameters": [
2151
1782
  {
2152
- "kind": "field",
2153
- "name": "creatinineByMg",
1783
+ "name": "bundle",
2154
1784
  "type": {
2155
- "text": "number"
2156
- },
2157
- "default": "0"
1785
+ "text": "Bundle"
1786
+ }
2158
1787
  },
2159
1788
  {
2160
- "kind": "field",
2161
- "name": "creatinineByUmol",
1789
+ "name": "weight",
2162
1790
  "type": {
2163
1791
  "text": "number"
2164
- },
2165
- "default": "0"
2166
- },
1792
+ }
1793
+ }
1794
+ ],
1795
+ "description": "Modifie le poids du patient dans le Bundle FHIR du patient"
1796
+ },
1797
+ {
1798
+ "kind": "function",
1799
+ "name": "getPatientHeight",
1800
+ "return": {
1801
+ "type": {
1802
+ "text": ""
1803
+ }
1804
+ },
1805
+ "parameters": [
2167
1806
  {
2168
- "kind": "field",
2169
- "name": "clairanceCreatinine",
1807
+ "name": "bundle",
2170
1808
  "type": {
2171
- "text": "number"
1809
+ "text": "Bundle | undefined"
2172
1810
  },
2173
- "default": "0"
2174
- },
1811
+ "description": "Bundle Patient FHIR"
1812
+ }
1813
+ ],
1814
+ "description": "Extrait la taille du patient depuis la ressource Observation concernée"
1815
+ },
1816
+ {
1817
+ "kind": "function",
1818
+ "name": "getPatientHeightWithUnit",
1819
+ "return": {
1820
+ "type": {
1821
+ "text": ""
1822
+ }
1823
+ },
1824
+ "parameters": [
2175
1825
  {
2176
- "kind": "field",
2177
- "name": "dfg",
1826
+ "name": "bundle",
2178
1827
  "type": {
2179
- "text": "number"
1828
+ "text": "Bundle | undefined"
2180
1829
  },
2181
- "default": "0"
2182
- },
1830
+ "description": "Bundle Patient FHIR"
1831
+ }
1832
+ ],
1833
+ "description": "Extrait la taille du patient (avec l'unité correspondante) depuis la ressource Observation concernée"
1834
+ },
1835
+ {
1836
+ "kind": "function",
1837
+ "name": "setPatientHeight",
1838
+ "return": {
1839
+ "type": {
1840
+ "text": "void"
1841
+ }
1842
+ },
1843
+ "parameters": [
2183
1844
  {
2184
- "kind": "field",
2185
- "name": "defaultPatientUnitAge",
1845
+ "name": "bundle",
2186
1846
  "type": {
2187
- "text": "{ value?: string; label?: string }"
2188
- },
2189
- "default": "{}"
1847
+ "text": "Bundle"
1848
+ }
2190
1849
  },
2191
1850
  {
2192
- "kind": "field",
2193
- "name": "defaultPatientSex",
1851
+ "name": "height",
2194
1852
  "type": {
2195
- "text": "{ value?: string; label?: string }"
2196
- },
2197
- "default": "{}"
2198
- },
1853
+ "text": "number"
1854
+ }
1855
+ }
1856
+ ],
1857
+ "description": "Modifie la taille du patient dans le Bundle FHIR du patient"
1858
+ },
1859
+ {
1860
+ "kind": "function",
1861
+ "name": "getPatientPregnancyStatus",
1862
+ "return": {
1863
+ "type": {
1864
+ "text": ""
1865
+ }
1866
+ },
1867
+ "parameters": [
2199
1868
  {
2200
- "kind": "field",
2201
- "name": "defaultHepaticStade",
1869
+ "name": "bundle",
2202
1870
  "type": {
2203
- "text": "{ value?: string; label?: string }"
1871
+ "text": "Bundle | undefined"
2204
1872
  },
2205
- "default": "{}"
2206
- },
1873
+ "description": "Bundle Patient FHIR"
1874
+ }
1875
+ ],
1876
+ "description": "Extrait le statut de grossesse du patient depuis la ressource Observation ou Condition concernée"
1877
+ },
1878
+ {
1879
+ "kind": "function",
1880
+ "name": "setPatientPregnancyStatus",
1881
+ "return": {
1882
+ "type": {
1883
+ "text": "void"
1884
+ }
1885
+ },
1886
+ "parameters": [
2207
1887
  {
2208
- "kind": "field",
2209
- "name": "isPregnancyDivVisible",
1888
+ "name": "bundle",
2210
1889
  "type": {
2211
- "text": "boolean"
2212
- },
2213
- "default": "false"
1890
+ "text": "Bundle"
1891
+ }
2214
1892
  },
2215
1893
  {
2216
- "kind": "field",
2217
1894
  "name": "isPregnant",
2218
1895
  "type": {
2219
1896
  "text": "boolean"
2220
- },
2221
- "default": "false"
2222
- },
2223
- {
2224
- "kind": "field",
2225
- "name": "breastfeeding",
2226
- "type": {
2227
- "text": "boolean"
2228
- },
2229
- "default": "false"
2230
- },
2231
- {
2232
- "kind": "field",
2233
- "name": "ageErrorMessageInput",
2234
- "type": {
2235
- "text": "string"
2236
- },
2237
- "default": "\"\""
2238
- },
1897
+ }
1898
+ }
1899
+ ],
1900
+ "description": "Modifie le statut de grossesse du patient dans le Bundle FHIR du patient"
1901
+ },
1902
+ {
1903
+ "kind": "function",
1904
+ "name": "getPatientAmenorrheaStatus",
1905
+ "return": {
1906
+ "type": {
1907
+ "text": ""
1908
+ }
1909
+ },
1910
+ "parameters": [
2239
1911
  {
2240
- "kind": "field",
2241
- "name": "sizeErrorMessageInput",
1912
+ "name": "bundle",
2242
1913
  "type": {
2243
- "text": "string"
1914
+ "text": "Bundle | undefined"
2244
1915
  },
2245
- "default": "\"\""
2246
- },
1916
+ "description": "Bundle Patient FHIR"
1917
+ }
1918
+ ],
1919
+ "description": "Extrait le statut d'aménorrhée du patient depuis la ressource Observation concernée"
1920
+ },
1921
+ {
1922
+ "kind": "function",
1923
+ "name": "setPatientAmenorrheaStatus",
1924
+ "return": {
1925
+ "type": {
1926
+ "text": "void"
1927
+ }
1928
+ },
1929
+ "parameters": [
2247
1930
  {
2248
- "kind": "field",
2249
- "name": "weightErrorMessageInput",
1931
+ "name": "bundle",
2250
1932
  "type": {
2251
- "text": "string"
2252
- },
2253
- "default": "\"\""
1933
+ "text": "Bundle"
1934
+ }
2254
1935
  },
2255
1936
  {
2256
- "kind": "field",
2257
- "name": "pathologiesApiErrorMessage",
1937
+ "name": "weeks",
2258
1938
  "type": {
2259
- "text": "string"
2260
- },
2261
- "default": "\"\""
2262
- },
1939
+ "text": "number"
1940
+ }
1941
+ }
1942
+ ],
1943
+ "description": "Modifie le statut d'aménorrhée du patient dans le Bundle FHIR du patient"
1944
+ },
1945
+ {
1946
+ "kind": "function",
1947
+ "name": "getPatientBreastfeedingStatus",
1948
+ "return": {
1949
+ "type": {
1950
+ "text": ""
1951
+ }
1952
+ },
1953
+ "parameters": [
2263
1954
  {
2264
- "kind": "field",
2265
- "name": "allergiesApiErrorMessage",
1955
+ "name": "bundle",
2266
1956
  "type": {
2267
- "text": "string"
1957
+ "text": "Bundle | undefined"
2268
1958
  },
2269
- "default": "\"\""
2270
- },
1959
+ "description": "Bundle Patient FHIR"
1960
+ }
1961
+ ],
1962
+ "description": "Extrait le statut d'allaitement du patient depuis la ressource Observation concernée"
1963
+ },
1964
+ {
1965
+ "kind": "function",
1966
+ "name": "setPatientBreastfeedingStatus",
1967
+ "return": {
1968
+ "type": {
1969
+ "text": "void"
1970
+ }
1971
+ },
1972
+ "parameters": [
2271
1973
  {
2272
- "kind": "field",
2273
- "name": "pathologyOptions",
1974
+ "name": "bundle",
2274
1975
  "type": {
2275
- "text": "ISelectOption[]"
2276
- },
2277
- "default": "[]"
1976
+ "text": "Bundle"
1977
+ }
2278
1978
  },
2279
1979
  {
2280
- "kind": "field",
2281
- "name": "allergyOptions",
1980
+ "name": "isBreastfeeding",
2282
1981
  "type": {
2283
- "text": "ISelectOption[]"
2284
- },
2285
- "default": "[]"
2286
- },
1982
+ "text": "boolean"
1983
+ }
1984
+ }
1985
+ ],
1986
+ "description": "Modifie le statut d'allaitement du patient dans le Bundle FHIR du patient"
1987
+ },
1988
+ {
1989
+ "kind": "function",
1990
+ "name": "getPatientRenalInsufficiencyStatus",
1991
+ "return": {
1992
+ "type": {
1993
+ "text": "PatientRenalStatus"
1994
+ }
1995
+ },
1996
+ "parameters": [
2287
1997
  {
2288
- "kind": "field",
2289
- "name": "selectedPathologyOptions",
1998
+ "name": "bundle",
2290
1999
  "type": {
2291
- "text": "ISelectOption[]"
2292
- },
2293
- "default": "[]"
2294
- },
2000
+ "text": "Bundle | undefined"
2001
+ }
2002
+ }
2003
+ ]
2004
+ },
2005
+ {
2006
+ "kind": "function",
2007
+ "name": "setPatientClearance",
2008
+ "return": {
2009
+ "type": {
2010
+ "text": "void"
2011
+ }
2012
+ },
2013
+ "parameters": [
2295
2014
  {
2296
- "kind": "field",
2297
- "name": "selectedAllergyOptions",
2015
+ "name": "bundle",
2298
2016
  "type": {
2299
- "text": "ISelectOption[]"
2300
- },
2301
- "default": "[]"
2017
+ "text": "Bundle"
2018
+ }
2302
2019
  },
2303
2020
  {
2304
- "kind": "field",
2305
- "name": "imc",
2021
+ "name": "clearance",
2306
2022
  "type": {
2307
2023
  "text": "number"
2308
- },
2309
- "default": "0"
2310
- },
2024
+ }
2025
+ }
2026
+ ],
2027
+ "description": "Modifie le clairance rénale du patient dans le Bundle FHIR du patient"
2028
+ },
2029
+ {
2030
+ "kind": "function",
2031
+ "name": "setPatientGFRByBSA",
2032
+ "return": {
2033
+ "type": {
2034
+ "text": "void"
2035
+ }
2036
+ },
2037
+ "parameters": [
2311
2038
  {
2312
- "kind": "field",
2313
- "name": "sizeInput",
2039
+ "name": "bundle",
2314
2040
  "type": {
2315
- "text": "HTMLElement & { value: string }"
2316
- },
2317
- "privacy": "private"
2041
+ "text": "Bundle"
2042
+ }
2318
2043
  },
2319
2044
  {
2320
- "kind": "field",
2321
- "name": "ageInput",
2045
+ "name": "gfr",
2322
2046
  "type": {
2323
- "text": "HTMLElement & { value: string }"
2324
- },
2325
- "privacy": "private"
2326
- },
2047
+ "text": "number"
2048
+ }
2049
+ }
2050
+ ]
2051
+ },
2052
+ {
2053
+ "kind": "function",
2054
+ "name": "computeCreatinineFromClearance",
2055
+ "return": {
2056
+ "type": {
2057
+ "text": "Quantity[]"
2058
+ }
2059
+ },
2060
+ "parameters": [
2327
2061
  {
2328
- "kind": "field",
2329
- "name": "weightInput",
2062
+ "name": "clearance",
2330
2063
  "type": {
2331
- "text": "HTMLElement & { value: string }"
2332
- },
2333
- "privacy": "private"
2064
+ "text": "number"
2065
+ }
2334
2066
  },
2335
2067
  {
2336
- "kind": "field",
2337
- "name": "creatinineUmolInput",
2068
+ "name": "age",
2338
2069
  "type": {
2339
- "text": "HTMLElement & { value: string }"
2340
- },
2341
- "privacy": "private"
2070
+ "text": "number"
2071
+ }
2342
2072
  },
2343
2073
  {
2344
- "kind": "field",
2345
- "name": "creatinineMgLInput",
2074
+ "name": "weight",
2346
2075
  "type": {
2347
- "text": "HTMLElement & { value: string }"
2348
- },
2349
- "privacy": "private"
2076
+ "text": "number"
2077
+ }
2350
2078
  },
2351
2079
  {
2352
- "kind": "field",
2353
- "name": "clairanceCreatinineInput",
2080
+ "name": "isFemale",
2354
2081
  "type": {
2355
- "text": "HTMLElement & { value: string }"
2356
- },
2357
- "privacy": "private"
2358
- },
2082
+ "text": "boolean"
2083
+ }
2084
+ }
2085
+ ]
2086
+ },
2087
+ {
2088
+ "kind": "function",
2089
+ "name": "getCreatinine",
2090
+ "return": {
2091
+ "type": {
2092
+ "text": "Quantity[]"
2093
+ }
2094
+ },
2095
+ "parameters": [
2359
2096
  {
2360
- "kind": "field",
2361
- "name": "editionModalElement",
2097
+ "name": "bundle",
2362
2098
  "type": {
2363
- "text": "HTMLElement & { open: () => void; close: () => void }"
2364
- },
2365
- "privacy": "private"
2366
- },
2099
+ "text": "Bundle | undefined"
2100
+ }
2101
+ }
2102
+ ]
2103
+ },
2104
+ {
2105
+ "kind": "function",
2106
+ "name": "setCreatinineBymgL",
2107
+ "return": {
2108
+ "type": {
2109
+ "text": "void"
2110
+ }
2111
+ },
2112
+ "parameters": [
2367
2113
  {
2368
- "kind": "field",
2369
- "name": "dfgInput",
2114
+ "name": "bundle",
2370
2115
  "type": {
2371
- "text": "HTMLElement & { value: string }"
2372
- },
2373
- "privacy": "private"
2116
+ "text": "Bundle"
2117
+ }
2374
2118
  },
2375
2119
  {
2376
- "kind": "field",
2377
- "name": "genderSelect",
2120
+ "name": "mgL",
2378
2121
  "type": {
2379
- "text": "HTMLElement & { value: string }"
2380
- },
2381
- "privacy": "private"
2382
- },
2122
+ "text": "number"
2123
+ }
2124
+ }
2125
+ ]
2126
+ },
2127
+ {
2128
+ "kind": "function",
2129
+ "name": "setCreatinineByUmolL",
2130
+ "return": {
2131
+ "type": {
2132
+ "text": "void"
2133
+ }
2134
+ },
2135
+ "parameters": [
2383
2136
  {
2384
- "kind": "field",
2385
- "name": "gestationalWeeksInput",
2137
+ "name": "bundle",
2386
2138
  "type": {
2387
- "text": "HTMLElement & { value: string }"
2388
- },
2389
- "privacy": "private"
2139
+ "text": "Bundle"
2140
+ }
2390
2141
  },
2391
2142
  {
2392
- "kind": "field",
2393
- "name": "hepaticStadeSelect",
2143
+ "name": "umolL",
2394
2144
  "type": {
2395
- "text": "HTMLElement & { value: string }"
2396
- },
2397
- "privacy": "private"
2398
- },
2145
+ "text": "number"
2146
+ }
2147
+ }
2148
+ ]
2149
+ },
2150
+ {
2151
+ "kind": "function",
2152
+ "name": "getPatientHepaticInsufficiencyScore",
2153
+ "return": {
2154
+ "type": {
2155
+ "text": "number | null"
2156
+ }
2157
+ },
2158
+ "parameters": [
2399
2159
  {
2400
- "kind": "field",
2401
- "name": "childPughInput",
2160
+ "name": "bundle",
2402
2161
  "type": {
2403
- "text": "HTMLElement & { value: string }"
2404
- },
2405
- "privacy": "private"
2406
- },
2162
+ "text": "Bundle | undefined"
2163
+ }
2164
+ }
2165
+ ]
2166
+ },
2167
+ {
2168
+ "kind": "function",
2169
+ "name": "getPatientHepaticInsufficiencyStade",
2170
+ "return": {
2171
+ "type": {
2172
+ "text": "string"
2173
+ }
2174
+ },
2175
+ "parameters": [
2407
2176
  {
2408
- "kind": "field",
2409
- "name": "ageUnitSelect",
2177
+ "name": "bundle",
2410
2178
  "type": {
2411
- "text": "HTMLElement & { value: string }"
2412
- },
2413
- "privacy": "private"
2179
+ "text": "Bundle | undefined"
2180
+ }
2181
+ }
2182
+ ]
2183
+ },
2184
+ {
2185
+ "kind": "function",
2186
+ "name": "setPatientHepaticInsufficiencyStatus",
2187
+ "return": {
2188
+ "type": {
2189
+ "text": "void"
2190
+ }
2191
+ },
2192
+ "parameters": [
2193
+ {
2194
+ "name": "bundle",
2195
+ "type": {
2196
+ "text": "Bundle"
2197
+ }
2414
2198
  },
2415
2199
  {
2416
- "kind": "method",
2417
- "name": "open",
2418
- "privacy": "public",
2419
- "return": {
2420
- "type": {
2421
- "text": "void"
2422
- }
2200
+ "name": "stade",
2201
+ "optional": true,
2202
+ "type": {
2203
+ "text": "\"A\" | \"B\" | \"C\""
2423
2204
  }
2424
2205
  },
2425
2206
  {
2426
- "kind": "method",
2427
- "name": "modifyGender",
2428
- "privacy": "private",
2429
- "return": {
2430
- "type": {
2431
- "text": "void"
2432
- }
2207
+ "name": "score",
2208
+ "optional": true,
2209
+ "type": {
2210
+ "text": "number"
2433
2211
  }
2434
- },
2212
+ }
2213
+ ]
2214
+ },
2215
+ {
2216
+ "kind": "function",
2217
+ "name": "deletePatientHepaticInsufficiencyStatus",
2218
+ "return": {
2219
+ "type": {
2220
+ "text": "void"
2221
+ }
2222
+ },
2223
+ "parameters": [
2435
2224
  {
2436
- "kind": "method",
2437
- "name": "verifyAgeInput",
2438
- "privacy": "private",
2439
- "return": {
2440
- "type": {
2441
- "text": "void"
2442
- }
2225
+ "name": "bundle",
2226
+ "type": {
2227
+ "text": "Bundle"
2443
2228
  }
2444
- },
2229
+ }
2230
+ ]
2231
+ },
2232
+ {
2233
+ "kind": "function",
2234
+ "name": "getPatientConditions",
2235
+ "return": {
2236
+ "type": {
2237
+ "text": ""
2238
+ }
2239
+ },
2240
+ "parameters": [
2445
2241
  {
2446
- "kind": "method",
2447
- "name": "handleAgeUnit",
2448
- "privacy": "private",
2449
- "return": {
2450
- "type": {
2451
- "text": "void"
2452
- }
2453
- }
2454
- },
2242
+ "name": "patient",
2243
+ "type": {
2244
+ "text": "Bundle | undefined"
2245
+ },
2246
+ "description": "Bundle Patient FHIR"
2247
+ }
2248
+ ],
2249
+ "description": "Extrait les conditions médicales/terrains du patient depuis les extensions FHIR"
2250
+ },
2251
+ {
2252
+ "kind": "function",
2253
+ "name": "getPatientConditionsWithCode",
2254
+ "return": {
2255
+ "type": {
2256
+ "text": ""
2257
+ }
2258
+ },
2259
+ "parameters": [
2455
2260
  {
2456
- "kind": "method",
2457
- "name": "verifySizeInput",
2458
- "privacy": "private",
2459
- "return": {
2460
- "type": {
2461
- "text": "void"
2462
- }
2463
- }
2464
- },
2261
+ "name": "patient",
2262
+ "type": {
2263
+ "text": "Bundle | undefined"
2264
+ },
2265
+ "description": "Bundle Patient FHIR"
2266
+ }
2267
+ ],
2268
+ "description": "Extrait les conditions médicales/terrains du patient et leurs codes respectifs depuis les extensions FHIR"
2269
+ },
2270
+ {
2271
+ "kind": "function",
2272
+ "name": "setPatientConditions",
2273
+ "return": {
2274
+ "type": {
2275
+ "text": "void"
2276
+ }
2277
+ },
2278
+ "parameters": [
2465
2279
  {
2466
- "kind": "method",
2467
- "name": "verifyWeightInput",
2468
- "privacy": "private",
2469
- "return": {
2470
- "type": {
2471
- "text": "void"
2472
- }
2280
+ "name": "patient",
2281
+ "type": {
2282
+ "text": "Bundle"
2473
2283
  }
2474
2284
  },
2475
2285
  {
2476
- "kind": "method",
2477
- "name": "getPatientSexFromProfile",
2478
- "privacy": "private"
2479
- },
2480
- {
2481
- "kind": "method",
2482
- "name": "getPatientHepaticStadeFromProfile",
2483
- "privacy": "private"
2484
- },
2485
- {
2486
- "kind": "method",
2487
- "name": "handlePregnancy",
2488
- "privacy": "private",
2489
- "return": {
2490
- "type": {
2491
- "text": "void"
2492
- }
2493
- },
2494
- "parameters": [
2495
- {
2496
- "name": "event",
2497
- "type": {
2498
- "text": "CustomEvent"
2499
- }
2500
- }
2501
- ]
2502
- },
2286
+ "name": "conditions",
2287
+ "type": {
2288
+ "text": "ISelectOption[]"
2289
+ }
2290
+ }
2291
+ ]
2292
+ },
2293
+ {
2294
+ "kind": "function",
2295
+ "name": "getPatientAllergies",
2296
+ "return": {
2297
+ "type": {
2298
+ "text": ""
2299
+ }
2300
+ },
2301
+ "parameters": [
2503
2302
  {
2504
- "kind": "method",
2505
- "name": "handleBreastfeeding",
2506
- "privacy": "private",
2507
- "return": {
2508
- "type": {
2509
- "text": "void"
2510
- }
2303
+ "name": "patient",
2304
+ "type": {
2305
+ "text": "Bundle | undefined"
2511
2306
  },
2512
- "parameters": [
2513
- {
2514
- "name": "event",
2515
- "type": {
2516
- "text": "CustomEvent"
2517
- }
2518
- }
2519
- ]
2520
- },
2307
+ "description": "Bundle Patient FHIR"
2308
+ }
2309
+ ],
2310
+ "description": "Extrait les allergies du patient depuis les extensions FHIR"
2311
+ },
2312
+ {
2313
+ "kind": "function",
2314
+ "name": "getPatientAllergiesWithCode",
2315
+ "return": {
2316
+ "type": {
2317
+ "text": "ISelectOption[]"
2318
+ }
2319
+ },
2320
+ "parameters": [
2521
2321
  {
2522
- "kind": "method",
2523
- "name": "setFormWithCreatinineUmol",
2524
- "privacy": "private",
2525
- "return": {
2526
- "type": {
2527
- "text": "void"
2528
- }
2322
+ "name": "patient",
2323
+ "type": {
2324
+ "text": "Bundle | undefined"
2529
2325
  }
2530
- },
2326
+ }
2327
+ ]
2328
+ },
2329
+ {
2330
+ "kind": "function",
2331
+ "name": "setPatientAllergies",
2332
+ "return": {
2333
+ "type": {
2334
+ "text": "void"
2335
+ }
2336
+ },
2337
+ "parameters": [
2531
2338
  {
2532
- "kind": "method",
2533
- "name": "setFormWithCreatinineMgL",
2534
- "privacy": "private",
2535
- "return": {
2536
- "type": {
2537
- "text": "void"
2538
- }
2339
+ "name": "patient",
2340
+ "type": {
2341
+ "text": "Bundle"
2539
2342
  }
2540
2343
  },
2541
2344
  {
2542
- "kind": "method",
2543
- "name": "setFormWithClairance",
2544
- "privacy": "private",
2545
- "return": {
2546
- "type": {
2547
- "text": "void"
2548
- }
2345
+ "name": "allergies",
2346
+ "type": {
2347
+ "text": "ISelectOption[]"
2549
2348
  }
2550
- },
2349
+ }
2350
+ ]
2351
+ },
2352
+ {
2353
+ "kind": "function",
2354
+ "name": "getPatientAdverseEvents",
2355
+ "return": {
2356
+ "type": {
2357
+ "text": "string[]"
2358
+ }
2359
+ },
2360
+ "parameters": [
2551
2361
  {
2552
- "kind": "method",
2553
- "name": "setFormWithDFG",
2554
- "privacy": "private",
2555
- "return": {
2556
- "type": {
2557
- "text": "void"
2558
- }
2362
+ "name": "patient",
2363
+ "type": {
2364
+ "text": "Bundle | undefined"
2559
2365
  }
2560
- },
2561
- {
2562
- "kind": "method",
2563
- "name": "apiReturntoSelectOption",
2564
- "privacy": "private",
2565
- "return": {
2566
- "type": {
2567
- "text": "ISelectOption"
2568
- }
2569
- },
2570
- "parameters": [
2571
- {
2572
- "name": "pathology",
2573
- "type": {
2574
- "text": "IApiReturn"
2575
- }
2576
- }
2577
- ]
2578
- },
2366
+ }
2367
+ ]
2368
+ },
2369
+ {
2370
+ "kind": "function",
2371
+ "name": "getPatientDemographics",
2372
+ "return": {
2373
+ "type": {
2374
+ "text": ""
2375
+ }
2376
+ },
2377
+ "parameters": [
2579
2378
  {
2580
- "kind": "method",
2581
- "name": "searchPathologies",
2582
- "privacy": "private",
2583
- "return": {
2584
- "type": {
2585
- "text": "void"
2586
- }
2379
+ "name": "bundle",
2380
+ "type": {
2381
+ "text": "Bundle | undefined"
2587
2382
  },
2588
- "parameters": [
2589
- {
2590
- "name": "event",
2591
- "type": {
2592
- "text": "CustomEvent"
2593
- }
2594
- }
2595
- ]
2596
- },
2383
+ "description": "Bundle FHIR"
2384
+ }
2385
+ ],
2386
+ "description": "Extrait les informations démographiques complètes du patient"
2387
+ },
2388
+ {
2389
+ "kind": "function",
2390
+ "name": "childPughScore",
2391
+ "return": {
2392
+ "type": {
2393
+ "text": "string"
2394
+ }
2395
+ },
2396
+ "parameters": [
2597
2397
  {
2598
- "kind": "method",
2599
- "name": "updatePathologies",
2600
- "privacy": "private",
2601
- "return": {
2602
- "type": {
2603
- "text": "void"
2604
- }
2605
- },
2606
- "parameters": [
2607
- {
2608
- "name": "event",
2609
- "type": {
2610
- "text": "CustomEvent"
2611
- }
2612
- }
2613
- ]
2614
- },
2398
+ "name": "score",
2399
+ "type": {
2400
+ "text": "number"
2401
+ }
2402
+ }
2403
+ ]
2404
+ },
2405
+ {
2406
+ "kind": "function",
2407
+ "name": "calculateGFRFromCreatinine",
2408
+ "return": {
2409
+ "type": {
2410
+ "text": ""
2411
+ }
2412
+ },
2413
+ "parameters": [
2615
2414
  {
2616
- "kind": "method",
2617
- "name": "searchAllergies",
2618
- "privacy": "private",
2619
- "return": {
2620
- "type": {
2621
- "text": "void"
2622
- }
2415
+ "name": "age",
2416
+ "type": {
2417
+ "text": "number"
2623
2418
  },
2624
- "parameters": [
2625
- {
2626
- "name": "event",
2627
- "type": {
2628
- "text": "CustomEvent"
2629
- }
2630
- }
2631
- ]
2419
+ "description": "Âge du patient"
2632
2420
  },
2633
2421
  {
2634
- "kind": "method",
2635
- "name": "updateAllergies",
2636
- "privacy": "private",
2637
- "return": {
2638
- "type": {
2639
- "text": "void"
2640
- }
2422
+ "name": "isFemale",
2423
+ "type": {
2424
+ "text": "boolean"
2641
2425
  },
2642
- "parameters": [
2643
- {
2644
- "name": "event",
2645
- "type": {
2646
- "text": "CustomEvent"
2647
- }
2648
- }
2649
- ]
2426
+ "description": "Vrai si le patient est de sexe féminin, sinon faux"
2650
2427
  },
2651
2428
  {
2652
- "kind": "method",
2653
- "name": "handleHepaticStade",
2654
- "privacy": "private",
2655
- "return": {
2656
- "type": {
2657
- "text": "void"
2658
- }
2429
+ "name": "creatinine",
2430
+ "type": {
2431
+ "text": "number"
2659
2432
  },
2660
- "parameters": [
2661
- {
2662
- "name": "event",
2663
- "type": {
2664
- "text": "CustomEvent"
2665
- }
2666
- }
2667
- ]
2668
- },
2669
- {
2670
- "kind": "method",
2671
- "name": "handleHepaticScore",
2672
- "privacy": "private",
2673
- "return": {
2674
- "type": {
2675
- "text": "void"
2676
- }
2677
- }
2678
- },
2679
- {
2680
- "kind": "method",
2681
- "name": "validateForm",
2682
- "privacy": "private",
2683
- "return": {
2684
- "type": {
2685
- "text": "void"
2686
- }
2687
- }
2433
+ "description": "Créatinine sérique en"
2688
2434
  }
2689
2435
  ],
2690
- "events": [
2691
- {
2692
- "name": "editPatientProfile",
2693
- "type": {
2694
- "text": "CustomEvent"
2695
- }
2436
+ "description": "Calcul de la DFG à partir de la créatinine, de l'âge, et du sexe en utilisant la formule MDRD"
2437
+ },
2438
+ {
2439
+ "kind": "function",
2440
+ "name": "calculateCreatinineFromGFR",
2441
+ "return": {
2442
+ "type": {
2443
+ "text": ""
2696
2444
  }
2697
- ],
2698
- "attributes": [
2445
+ },
2446
+ "parameters": [
2699
2447
  {
2700
- "name": "patient-profile",
2448
+ "name": "age",
2701
2449
  "type": {
2702
- "text": "Bundle | undefined"
2450
+ "text": "number"
2703
2451
  },
2704
- "fieldName": "patientProfile"
2452
+ "description": "Âge du patient"
2705
2453
  },
2706
2454
  {
2707
- "name": "api-url",
2455
+ "name": "isFemale",
2708
2456
  "type": {
2709
- "text": "string | undefined"
2457
+ "text": "boolean"
2710
2458
  },
2711
- "fieldName": "apiUrl"
2459
+ "description": "Vrai si le patient est de sexe féminin, sinon faux"
2712
2460
  },
2713
2461
  {
2714
- "name": "api-key",
2462
+ "name": "gfr",
2715
2463
  "type": {
2716
- "text": "string | undefined"
2464
+ "text": "number"
2717
2465
  },
2718
- "fieldName": "apiKey"
2466
+ "description": "DFG en mL/min/1.73.m2"
2719
2467
  }
2720
2468
  ],
2721
- "superclass": {
2722
- "name": "LitElement",
2723
- "package": "lit"
2469
+ "description": "Calcul de la créatinine à partir de la DFG, de l'âge, et du sexe en utilisant la formule MDRD inversée"
2470
+ },
2471
+ {
2472
+ "kind": "function",
2473
+ "name": "getPatientMedicalInfo",
2474
+ "return": {
2475
+ "type": {
2476
+ "text": ""
2477
+ }
2724
2478
  },
2725
- "tagName": "bcb-patient-profile-edition",
2726
- "customElement": true
2479
+ "parameters": [
2480
+ {
2481
+ "name": "patient",
2482
+ "type": {
2483
+ "text": "Bundle | undefined"
2484
+ },
2485
+ "description": "Bundle Patient FHIR"
2486
+ }
2487
+ ],
2488
+ "description": "Extrait les informations médicales complètes du patient"
2489
+ },
2490
+ {
2491
+ "kind": "function",
2492
+ "name": "getPatientInfo",
2493
+ "return": {
2494
+ "type": {
2495
+ "text": ""
2496
+ }
2497
+ },
2498
+ "parameters": [
2499
+ {
2500
+ "name": "bundle",
2501
+ "type": {
2502
+ "text": "Bundle | undefined"
2503
+ },
2504
+ "description": "Bundle FHIR"
2505
+ }
2506
+ ],
2507
+ "description": "Extrait toutes les informations du patient (démographiques + médicales)"
2727
2508
  }
2728
2509
  ],
2729
2510
  "exports": [
2730
2511
  {
2731
2512
  "kind": "js",
2732
- "name": "PatientProfileEdition",
2513
+ "name": "generateUUID",
2733
2514
  "declaration": {
2734
- "name": "PatientProfileEdition",
2735
- "module": "src/patient-profile/patient-profile-edition/patient-profile-edition.ts"
2515
+ "name": "generateUUID",
2516
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2736
2517
  }
2737
2518
  },
2738
2519
  {
2739
- "kind": "custom-element-definition",
2740
- "name": "bcb-patient-profile-edition",
2520
+ "kind": "js",
2521
+ "name": "getPatientFullUrl",
2741
2522
  "declaration": {
2742
- "name": "PatientProfileEdition",
2743
- "module": "src/patient-profile/patient-profile-edition/patient-profile-edition.ts"
2523
+ "name": "getPatientFullUrl",
2524
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2525
+ }
2526
+ },
2527
+ {
2528
+ "kind": "js",
2529
+ "name": "setInitialPatientProfile",
2530
+ "declaration": {
2531
+ "name": "setInitialPatientProfile",
2532
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2533
+ }
2534
+ },
2535
+ {
2536
+ "kind": "js",
2537
+ "name": "getPatientGender",
2538
+ "declaration": {
2539
+ "name": "getPatientGender",
2540
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2541
+ }
2542
+ },
2543
+ {
2544
+ "kind": "js",
2545
+ "name": "setPatientGender",
2546
+ "declaration": {
2547
+ "name": "setPatientGender",
2548
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2549
+ }
2550
+ },
2551
+ {
2552
+ "kind": "js",
2553
+ "name": "getPatientName",
2554
+ "declaration": {
2555
+ "name": "getPatientName",
2556
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2557
+ }
2558
+ },
2559
+ {
2560
+ "kind": "js",
2561
+ "name": "getPatientAge",
2562
+ "declaration": {
2563
+ "name": "getPatientAge",
2564
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2565
+ }
2566
+ },
2567
+ {
2568
+ "kind": "js",
2569
+ "name": "getPatientBirthDate",
2570
+ "declaration": {
2571
+ "name": "getPatientBirthDate",
2572
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2573
+ }
2574
+ },
2575
+ {
2576
+ "kind": "js",
2577
+ "name": "setPatientAge",
2578
+ "declaration": {
2579
+ "name": "setPatientAge",
2580
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2581
+ }
2582
+ },
2583
+ {
2584
+ "kind": "js",
2585
+ "name": "getPatientWeight",
2586
+ "declaration": {
2587
+ "name": "getPatientWeight",
2588
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2589
+ }
2590
+ },
2591
+ {
2592
+ "kind": "js",
2593
+ "name": "getPatientWeightWithUnit",
2594
+ "declaration": {
2595
+ "name": "getPatientWeightWithUnit",
2596
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2597
+ }
2598
+ },
2599
+ {
2600
+ "kind": "js",
2601
+ "name": "setPatientWeight",
2602
+ "declaration": {
2603
+ "name": "setPatientWeight",
2604
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2605
+ }
2606
+ },
2607
+ {
2608
+ "kind": "js",
2609
+ "name": "getPatientHeight",
2610
+ "declaration": {
2611
+ "name": "getPatientHeight",
2612
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2613
+ }
2614
+ },
2615
+ {
2616
+ "kind": "js",
2617
+ "name": "getPatientHeightWithUnit",
2618
+ "declaration": {
2619
+ "name": "getPatientHeightWithUnit",
2620
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2621
+ }
2622
+ },
2623
+ {
2624
+ "kind": "js",
2625
+ "name": "setPatientHeight",
2626
+ "declaration": {
2627
+ "name": "setPatientHeight",
2628
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2629
+ }
2630
+ },
2631
+ {
2632
+ "kind": "js",
2633
+ "name": "getPatientPregnancyStatus",
2634
+ "declaration": {
2635
+ "name": "getPatientPregnancyStatus",
2636
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2637
+ }
2638
+ },
2639
+ {
2640
+ "kind": "js",
2641
+ "name": "setPatientPregnancyStatus",
2642
+ "declaration": {
2643
+ "name": "setPatientPregnancyStatus",
2644
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2645
+ }
2646
+ },
2647
+ {
2648
+ "kind": "js",
2649
+ "name": "getPatientAmenorrheaStatus",
2650
+ "declaration": {
2651
+ "name": "getPatientAmenorrheaStatus",
2652
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2653
+ }
2654
+ },
2655
+ {
2656
+ "kind": "js",
2657
+ "name": "setPatientAmenorrheaStatus",
2658
+ "declaration": {
2659
+ "name": "setPatientAmenorrheaStatus",
2660
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2661
+ }
2662
+ },
2663
+ {
2664
+ "kind": "js",
2665
+ "name": "getPatientBreastfeedingStatus",
2666
+ "declaration": {
2667
+ "name": "getPatientBreastfeedingStatus",
2668
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2669
+ }
2670
+ },
2671
+ {
2672
+ "kind": "js",
2673
+ "name": "setPatientBreastfeedingStatus",
2674
+ "declaration": {
2675
+ "name": "setPatientBreastfeedingStatus",
2676
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2677
+ }
2678
+ },
2679
+ {
2680
+ "kind": "js",
2681
+ "name": "getPatientRenalInsufficiencyStatus",
2682
+ "declaration": {
2683
+ "name": "getPatientRenalInsufficiencyStatus",
2684
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2685
+ }
2686
+ },
2687
+ {
2688
+ "kind": "js",
2689
+ "name": "setPatientClearance",
2690
+ "declaration": {
2691
+ "name": "setPatientClearance",
2692
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2693
+ }
2694
+ },
2695
+ {
2696
+ "kind": "js",
2697
+ "name": "setPatientGFRByBSA",
2698
+ "declaration": {
2699
+ "name": "setPatientGFRByBSA",
2700
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2701
+ }
2702
+ },
2703
+ {
2704
+ "kind": "js",
2705
+ "name": "computeCreatinineFromClearance",
2706
+ "declaration": {
2707
+ "name": "computeCreatinineFromClearance",
2708
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2709
+ }
2710
+ },
2711
+ {
2712
+ "kind": "js",
2713
+ "name": "getCreatinine",
2714
+ "declaration": {
2715
+ "name": "getCreatinine",
2716
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2717
+ }
2718
+ },
2719
+ {
2720
+ "kind": "js",
2721
+ "name": "setCreatinineBymgL",
2722
+ "declaration": {
2723
+ "name": "setCreatinineBymgL",
2724
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2725
+ }
2726
+ },
2727
+ {
2728
+ "kind": "js",
2729
+ "name": "setCreatinineByUmolL",
2730
+ "declaration": {
2731
+ "name": "setCreatinineByUmolL",
2732
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2733
+ }
2734
+ },
2735
+ {
2736
+ "kind": "js",
2737
+ "name": "getPatientHepaticInsufficiencyScore",
2738
+ "declaration": {
2739
+ "name": "getPatientHepaticInsufficiencyScore",
2740
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2741
+ }
2742
+ },
2743
+ {
2744
+ "kind": "js",
2745
+ "name": "getPatientHepaticInsufficiencyStade",
2746
+ "declaration": {
2747
+ "name": "getPatientHepaticInsufficiencyStade",
2748
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2749
+ }
2750
+ },
2751
+ {
2752
+ "kind": "js",
2753
+ "name": "setPatientHepaticInsufficiencyStatus",
2754
+ "declaration": {
2755
+ "name": "setPatientHepaticInsufficiencyStatus",
2756
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2757
+ }
2758
+ },
2759
+ {
2760
+ "kind": "js",
2761
+ "name": "deletePatientHepaticInsufficiencyStatus",
2762
+ "declaration": {
2763
+ "name": "deletePatientHepaticInsufficiencyStatus",
2764
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2765
+ }
2766
+ },
2767
+ {
2768
+ "kind": "js",
2769
+ "name": "getPatientConditions",
2770
+ "declaration": {
2771
+ "name": "getPatientConditions",
2772
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2773
+ }
2774
+ },
2775
+ {
2776
+ "kind": "js",
2777
+ "name": "getPatientConditionsWithCode",
2778
+ "declaration": {
2779
+ "name": "getPatientConditionsWithCode",
2780
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2781
+ }
2782
+ },
2783
+ {
2784
+ "kind": "js",
2785
+ "name": "setPatientConditions",
2786
+ "declaration": {
2787
+ "name": "setPatientConditions",
2788
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2789
+ }
2790
+ },
2791
+ {
2792
+ "kind": "js",
2793
+ "name": "getPatientAllergies",
2794
+ "declaration": {
2795
+ "name": "getPatientAllergies",
2796
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2797
+ }
2798
+ },
2799
+ {
2800
+ "kind": "js",
2801
+ "name": "getPatientAllergiesWithCode",
2802
+ "declaration": {
2803
+ "name": "getPatientAllergiesWithCode",
2804
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2805
+ }
2806
+ },
2807
+ {
2808
+ "kind": "js",
2809
+ "name": "setPatientAllergies",
2810
+ "declaration": {
2811
+ "name": "setPatientAllergies",
2812
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2813
+ }
2814
+ },
2815
+ {
2816
+ "kind": "js",
2817
+ "name": "getPatientAdverseEvents",
2818
+ "declaration": {
2819
+ "name": "getPatientAdverseEvents",
2820
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2821
+ }
2822
+ },
2823
+ {
2824
+ "kind": "js",
2825
+ "name": "getPatientDemographics",
2826
+ "declaration": {
2827
+ "name": "getPatientDemographics",
2828
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2829
+ }
2830
+ },
2831
+ {
2832
+ "kind": "js",
2833
+ "name": "childPughScore",
2834
+ "declaration": {
2835
+ "name": "childPughScore",
2836
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2837
+ }
2838
+ },
2839
+ {
2840
+ "kind": "js",
2841
+ "name": "calculateGFRFromCreatinine",
2842
+ "declaration": {
2843
+ "name": "calculateGFRFromCreatinine",
2844
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2845
+ }
2846
+ },
2847
+ {
2848
+ "kind": "js",
2849
+ "name": "calculateCreatinineFromGFR",
2850
+ "declaration": {
2851
+ "name": "calculateCreatinineFromGFR",
2852
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2853
+ }
2854
+ },
2855
+ {
2856
+ "kind": "js",
2857
+ "name": "getPatientMedicalInfo",
2858
+ "declaration": {
2859
+ "name": "getPatientMedicalInfo",
2860
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2861
+ }
2862
+ },
2863
+ {
2864
+ "kind": "js",
2865
+ "name": "getPatientInfo",
2866
+ "declaration": {
2867
+ "name": "getPatientInfo",
2868
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2744
2869
  }
2745
2870
  }
2746
2871
  ]