@claudebernard/patient-profile-element 0.1.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  "type": {
13
13
  "text": "Meta<PatientProfile>"
14
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 ></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 },\n args: {\n patientProfile: patientComplete,\n },\n}"
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}"
16
16
  },
17
17
  {
18
18
  "kind": "variable",
@@ -20,7 +20,7 @@
20
20
  "type": {
21
21
  "text": "Story"
22
22
  },
23
- "default": "{\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(\"41 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 const testInput = component?.shadowRoot?.getElementById(\"test\") as HTMLInputElement | null;\n if (testInput) {\n testInput.value = \"pour\";\n testInput.dispatchEvent(new Event(\"input\")); // Trigger input event if needed\n }\n\n await step(\"Verify the content of more information section\", () => {\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, Insuffisance rénale aigüe, 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(\"60 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(\"51.81 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}"
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(\"41 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 await step(\"Verify the content of more information section\", () => {\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(\"60 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}"
24
24
  },
25
25
  {
26
26
  "kind": "variable",
@@ -28,7 +28,15 @@
28
28
  "type": {
29
29
  "text": "Story"
30
30
  },
31
- "default": "{\n args: {\n patientProfile: patientComplete,\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}"
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}"
32
+ },
33
+ {
34
+ "kind": "variable",
35
+ "name": "BaseTestStory",
36
+ "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 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(\"41 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}"
32
40
  }
33
41
  ],
34
42
  "exports": [
@@ -55,6 +63,14 @@
55
63
  "name": "WithoutEditButton",
56
64
  "module": "src/patient-profile/patient-profile.stories.ts"
57
65
  }
66
+ },
67
+ {
68
+ "kind": "js",
69
+ "name": "BaseTestStory",
70
+ "declaration": {
71
+ "name": "BaseTestStory",
72
+ "module": "src/patient-profile/patient-profile.stories.ts"
73
+ }
58
74
  }
59
75
  ]
60
76
  },
@@ -84,6 +100,23 @@
84
100
  "default": "true",
85
101
  "attribute": "edit-button-visible"
86
102
  },
103
+ {
104
+ "kind": "field",
105
+ "name": "apiUrl",
106
+ "type": {
107
+ "text": "string"
108
+ },
109
+ "default": "\"https://api-dev.claudebernard.fr\"",
110
+ "attribute": "api-url"
111
+ },
112
+ {
113
+ "kind": "field",
114
+ "name": "apiKey",
115
+ "type": {
116
+ "text": "string | undefined"
117
+ },
118
+ "attribute": "api-key"
119
+ },
87
120
  {
88
121
  "kind": "field",
89
122
  "name": "moreInformationVisible",
@@ -92,6 +125,22 @@
92
125
  },
93
126
  "default": "false"
94
127
  },
128
+ {
129
+ "kind": "field",
130
+ "name": "patientAgeUnit",
131
+ "type": {
132
+ "text": "\"ans\" | \"mois\""
133
+ },
134
+ "default": "\"ans\""
135
+ },
136
+ {
137
+ "kind": "field",
138
+ "name": "editionModalElement",
139
+ "type": {
140
+ "text": "HTMLElement & { open: () => void; }"
141
+ },
142
+ "privacy": "private"
143
+ },
95
144
  {
96
145
  "kind": "method",
97
146
  "name": "handleMoreInformation",
@@ -109,6 +158,28 @@
109
158
  "kind": "method",
110
159
  "name": "displayCreatininemieSection"
111
160
  },
161
+ {
162
+ "kind": "method",
163
+ "name": "truncateLabel",
164
+ "privacy": "private",
165
+ "return": {
166
+ "type": {
167
+ "text": "string"
168
+ }
169
+ },
170
+ "parameters": [
171
+ {
172
+ "name": "label",
173
+ "type": {
174
+ "text": "string"
175
+ }
176
+ },
177
+ {
178
+ "name": "maxLength",
179
+ "default": "25"
180
+ }
181
+ ]
182
+ },
112
183
  {
113
184
  "kind": "method",
114
185
  "name": "displayPathologies"
@@ -116,6 +187,46 @@
116
187
  {
117
188
  "kind": "method",
118
189
  "name": "displayAllergies"
190
+ },
191
+ {
192
+ "kind": "method",
193
+ "name": "openEditionModal",
194
+ "return": {
195
+ "type": {
196
+ "text": "void"
197
+ }
198
+ }
199
+ },
200
+ {
201
+ "kind": "method",
202
+ "name": "editProfilePatient",
203
+ "privacy": "private",
204
+ "return": {
205
+ "type": {
206
+ "text": "void"
207
+ }
208
+ },
209
+ "parameters": [
210
+ {
211
+ "name": "event",
212
+ "type": {
213
+ "text": "CustomEvent"
214
+ }
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ "kind": "method",
220
+ "name": "getPatientAge",
221
+ "privacy": "private"
222
+ }
223
+ ],
224
+ "events": [
225
+ {
226
+ "name": "patientProfileUpdated",
227
+ "type": {
228
+ "text": "CustomEvent"
229
+ }
119
230
  }
120
231
  ],
121
232
  "attributes": [
@@ -133,6 +244,21 @@
133
244
  },
134
245
  "default": "true",
135
246
  "fieldName": "editButtonVisible"
247
+ },
248
+ {
249
+ "name": "api-url",
250
+ "type": {
251
+ "text": "string"
252
+ },
253
+ "default": "\"https://api-dev.claudebernard.fr\"",
254
+ "fieldName": "apiUrl"
255
+ },
256
+ {
257
+ "name": "api-key",
258
+ "type": {
259
+ "text": "string | undefined"
260
+ },
261
+ "fieldName": "apiKey"
136
262
  }
137
263
  ],
138
264
  "superclass": {
@@ -164,188 +290,1472 @@
164
290
  },
165
291
  {
166
292
  "kind": "javascript-module",
167
- "path": "src/shared/constants/loinc.ts",
293
+ "path": "src/patient-profile/patient-profile-edition/patient-profile-edition.stories.ts",
168
294
  "declarations": [
169
295
  {
170
296
  "kind": "variable",
171
- "name": "acceptedLoincCodesForRenalClearance",
172
- "type": {
173
- "text": "string[]"
174
- },
175
- "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]"
176
- },
177
- {
178
- "kind": "variable",
179
- "name": "acceptedLoincCodesForRenalGFR",
297
+ "name": "meta",
180
298
  "type": {
181
- "text": "string[]"
299
+ "text": "Meta<PatientProfileEdition>"
182
300
  },
183
- "default": "[\n \"69405-9\",\n \"70969-1\",\n]"
301
+ "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}"
184
302
  },
185
303
  {
186
304
  "kind": "variable",
187
- "name": "acceptedLoincCodesForRenalGFRPerBSA",
305
+ "name": "Base",
188
306
  "type": {
189
- "text": "string[]"
307
+ "text": "Story"
190
308
  },
191
- "default": "[\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]"
309
+ "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(9);\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(\"41\");\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(\"141\");\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(\"16\");\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(\"60\");\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}"
192
310
  }
193
311
  ],
194
312
  "exports": [
195
313
  {
196
314
  "kind": "js",
197
- "name": "acceptedLoincCodesForRenalClearance",
198
- "declaration": {
199
- "name": "acceptedLoincCodesForRenalClearance",
200
- "module": "src/shared/constants/loinc.ts"
201
- }
202
- },
203
- {
204
- "kind": "js",
205
- "name": "acceptedLoincCodesForRenalGFR",
315
+ "name": "default",
206
316
  "declaration": {
207
- "name": "acceptedLoincCodesForRenalGFR",
208
- "module": "src/shared/constants/loinc.ts"
317
+ "name": "meta",
318
+ "module": "src/patient-profile/patient-profile-edition/patient-profile-edition.stories.ts"
209
319
  }
210
320
  },
211
321
  {
212
322
  "kind": "js",
213
- "name": "acceptedLoincCodesForRenalGFRPerBSA",
214
- "declaration": {
215
- "name": "acceptedLoincCodesForRenalGFRPerBSA",
216
- "module": "src/shared/constants/loinc.ts"
217
- }
218
- }
219
- ]
220
- },
221
- {
222
- "kind": "javascript-module",
223
- "path": "src/shared/constants/settings.ts",
224
- "declarations": [
225
- {
226
- "kind": "variable",
227
- "name": "PREFIX",
228
- "type": {
229
- "text": "string"
230
- },
231
- "default": "\"claudebernard\""
232
- }
233
- ],
234
- "exports": [
235
- {
236
- "kind": "js",
237
- "name": "PREFIX",
238
- "declaration": {
239
- "name": "PREFIX",
240
- "module": "src/shared/constants/settings.ts"
241
- }
242
- }
243
- ]
244
- },
245
- {
246
- "kind": "javascript-module",
247
- "path": "src/shared/interfaces/patient.ts",
248
- "declarations": [],
249
- "exports": []
250
- },
251
- {
252
- "kind": "javascript-module",
253
- "path": "src/shared/mocks/patient-profile.mock.ts",
254
- "declarations": [
255
- {
256
- "kind": "variable",
257
- "name": "patientComplete",
258
- "type": {
259
- "text": "Bundle"
260
- },
261
- "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: 60,\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: 141,\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.6,\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: \"48643-1\",\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 among black population\",\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]\", // Most used Loinc code for Child-Pugh score allowing to calculate hepatic insufficiency status\n },\n ],\n text: \"Score total Child-Pugh\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 7,\n unit: \"score\",\n system: \"http://unitsofmeasure.org\",\n code: \"{score}\",\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-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}"
262
- }
263
- ],
264
- "exports": [
265
- {
266
- "kind": "js",
267
- "name": "patientComplete",
323
+ "name": "Base",
268
324
  "declaration": {
269
- "name": "patientComplete",
270
- "module": "src/shared/mocks/patient-profile.mock.ts"
325
+ "name": "Base",
326
+ "module": "src/patient-profile/patient-profile-edition/patient-profile-edition.stories.ts"
271
327
  }
272
328
  }
273
329
  ]
274
330
  },
275
331
  {
276
332
  "kind": "javascript-module",
277
- "path": "src/shared/utils/patient-fhir-utils.ts",
333
+ "path": "src/patient-profile/patient-profile-edition/patient-profile-edition.ts",
278
334
  "declarations": [
279
335
  {
280
- "kind": "function",
281
- "name": "calculateBMI",
282
- "return": {
283
- "type": {
284
- "text": ""
285
- }
286
- },
287
- "parameters": [
336
+ "kind": "class",
337
+ "description": "",
338
+ "name": "PatientProfileEdition",
339
+ "members": [
288
340
  {
289
- "name": "weight",
341
+ "kind": "field",
342
+ "name": "patientProfile",
343
+ "type": {
344
+ "text": "Bundle | undefined"
345
+ },
346
+ "attribute": "patient-profile"
347
+ },
348
+ {
349
+ "kind": "field",
350
+ "name": "apiUrl",
351
+ "type": {
352
+ "text": "string | undefined"
353
+ },
354
+ "attribute": "api-url"
355
+ },
356
+ {
357
+ "kind": "field",
358
+ "name": "apiKey",
359
+ "type": {
360
+ "text": "string | undefined"
361
+ },
362
+ "attribute": "api-key"
363
+ },
364
+ {
365
+ "kind": "field",
366
+ "name": "patientAge",
290
367
  "type": {
291
368
  "text": "number"
292
369
  },
293
- "description": "Poids en kilogrammes"
370
+ "default": "0"
294
371
  },
295
372
  {
296
- "name": "height",
373
+ "kind": "field",
374
+ "name": "patientUnitAge",
375
+ "type": {
376
+ "text": "string"
377
+ },
378
+ "default": "\"ans\""
379
+ },
380
+ {
381
+ "kind": "field",
382
+ "name": "patientWeight",
297
383
  "type": {
298
384
  "text": "number"
299
385
  },
300
- "description": "Taille en centimètres"
301
- }
302
- ],
303
- "description": "Calcule l'IMC à partir du poids et de la taille"
304
- },
305
- {
306
- "kind": "function",
307
- "name": "getPatientGender",
308
- "return": {
309
- "type": {
310
- "text": ""
311
- }
312
- },
313
- "parameters": [
386
+ "default": "0"
387
+ },
314
388
  {
315
- "name": "bundle",
389
+ "kind": "field",
390
+ "name": "patientHeight",
316
391
  "type": {
317
- "text": "Bundle | undefined"
392
+ "text": "number"
318
393
  },
319
- "description": "Bundle Patient FHIR"
320
- }
321
- ],
322
- "description": "Extrait le sexe du patient FHIR"
323
- },
324
- {
325
- "kind": "function",
326
- "name": "getPatientName",
327
- "return": {
328
- "type": {
329
- "text": ""
330
- }
331
- },
332
- "parameters": [
394
+ "default": "0"
395
+ },
333
396
  {
334
- "name": "bundle",
397
+ "kind": "field",
398
+ "name": "creatinineByMg",
335
399
  "type": {
336
- "text": "Bundle | undefined"
400
+ "text": "number"
337
401
  },
338
- "description": "Bundle Patient FHIR"
402
+ "default": "0"
403
+ },
404
+ {
405
+ "kind": "field",
406
+ "name": "creatinineByUmol",
407
+ "type": {
408
+ "text": "number"
409
+ },
410
+ "default": "0"
411
+ },
412
+ {
413
+ "kind": "field",
414
+ "name": "clairanceCreatinine",
415
+ "type": {
416
+ "text": "number"
417
+ },
418
+ "default": "0"
419
+ },
420
+ {
421
+ "kind": "field",
422
+ "name": "dfg",
423
+ "type": {
424
+ "text": "number"
425
+ },
426
+ "default": "0"
427
+ },
428
+ {
429
+ "kind": "field",
430
+ "name": "defaultPatientUnitAge",
431
+ "type": {
432
+ "text": "{ value?: string; label?: string }"
433
+ },
434
+ "default": "{}"
435
+ },
436
+ {
437
+ "kind": "field",
438
+ "name": "defaultPatientSex",
439
+ "type": {
440
+ "text": "{ value?: string; label?: string }"
441
+ },
442
+ "default": "{}"
443
+ },
444
+ {
445
+ "kind": "field",
446
+ "name": "defaultHepaticStade",
447
+ "type": {
448
+ "text": "{ value?: string; label?: string }"
449
+ },
450
+ "default": "{}"
451
+ },
452
+ {
453
+ "kind": "field",
454
+ "name": "isPregnancyDivVisible",
455
+ "type": {
456
+ "text": "boolean"
457
+ },
458
+ "default": "false"
459
+ },
460
+ {
461
+ "kind": "field",
462
+ "name": "isPregnant",
463
+ "type": {
464
+ "text": "boolean"
465
+ },
466
+ "default": "false"
467
+ },
468
+ {
469
+ "kind": "field",
470
+ "name": "breastfeeding",
471
+ "type": {
472
+ "text": "boolean"
473
+ },
474
+ "default": "false"
475
+ },
476
+ {
477
+ "kind": "field",
478
+ "name": "ageErrorMessageInput",
479
+ "type": {
480
+ "text": "string"
481
+ },
482
+ "default": "\"\""
483
+ },
484
+ {
485
+ "kind": "field",
486
+ "name": "sizeErrorMessageInput",
487
+ "type": {
488
+ "text": "string"
489
+ },
490
+ "default": "\"\""
491
+ },
492
+ {
493
+ "kind": "field",
494
+ "name": "weightErrorMessageInput",
495
+ "type": {
496
+ "text": "string"
497
+ },
498
+ "default": "\"\""
499
+ },
500
+ {
501
+ "kind": "field",
502
+ "name": "pathologiesApiErrorMessage",
503
+ "type": {
504
+ "text": "string"
505
+ },
506
+ "default": "\"\""
507
+ },
508
+ {
509
+ "kind": "field",
510
+ "name": "allergiesApiErrorMessage",
511
+ "type": {
512
+ "text": "string"
513
+ },
514
+ "default": "\"\""
515
+ },
516
+ {
517
+ "kind": "field",
518
+ "name": "pathologyOptions",
519
+ "type": {
520
+ "text": "ISelectOption[]"
521
+ },
522
+ "default": "[]"
523
+ },
524
+ {
525
+ "kind": "field",
526
+ "name": "allergyOptions",
527
+ "type": {
528
+ "text": "ISelectOption[]"
529
+ },
530
+ "default": "[]"
531
+ },
532
+ {
533
+ "kind": "field",
534
+ "name": "selectedPathologyOptions",
535
+ "type": {
536
+ "text": "ISelectOption[]"
537
+ },
538
+ "default": "[]"
539
+ },
540
+ {
541
+ "kind": "field",
542
+ "name": "selectedAllergyOptions",
543
+ "type": {
544
+ "text": "ISelectOption[]"
545
+ },
546
+ "default": "[]"
547
+ },
548
+ {
549
+ "kind": "field",
550
+ "name": "sizeInput",
551
+ "type": {
552
+ "text": "HTMLElement & { value: string }"
553
+ },
554
+ "privacy": "private"
555
+ },
556
+ {
557
+ "kind": "field",
558
+ "name": "ageInput",
559
+ "type": {
560
+ "text": "HTMLElement & { value: string }"
561
+ },
562
+ "privacy": "private"
563
+ },
564
+ {
565
+ "kind": "field",
566
+ "name": "weightInput",
567
+ "type": {
568
+ "text": "HTMLElement & { value: string }"
569
+ },
570
+ "privacy": "private"
571
+ },
572
+ {
573
+ "kind": "field",
574
+ "name": "creatinineUmolInput",
575
+ "type": {
576
+ "text": "HTMLElement & { value: string }"
577
+ },
578
+ "privacy": "private"
579
+ },
580
+ {
581
+ "kind": "field",
582
+ "name": "creatinineMgLInput",
583
+ "type": {
584
+ "text": "HTMLElement & { value: string }"
585
+ },
586
+ "privacy": "private"
587
+ },
588
+ {
589
+ "kind": "field",
590
+ "name": "clairanceCreatinineInput",
591
+ "type": {
592
+ "text": "HTMLElement & { value: string }"
593
+ },
594
+ "privacy": "private"
595
+ },
596
+ {
597
+ "kind": "field",
598
+ "name": "editionModalElement",
599
+ "type": {
600
+ "text": "HTMLElement & { open: () => void; close: () => void }"
601
+ },
602
+ "privacy": "private"
603
+ },
604
+ {
605
+ "kind": "field",
606
+ "name": "dfgInput",
607
+ "type": {
608
+ "text": "HTMLElement & { value: string }"
609
+ },
610
+ "privacy": "private"
611
+ },
612
+ {
613
+ "kind": "field",
614
+ "name": "genderSelect",
615
+ "type": {
616
+ "text": "HTMLElement & { value: string }"
617
+ },
618
+ "privacy": "private"
619
+ },
620
+ {
621
+ "kind": "field",
622
+ "name": "gestationalWeeksInput",
623
+ "type": {
624
+ "text": "HTMLElement & { value: string }"
625
+ },
626
+ "privacy": "private"
627
+ },
628
+ {
629
+ "kind": "field",
630
+ "name": "hepaticStadeSelect",
631
+ "type": {
632
+ "text": "HTMLElement & { value: string }"
633
+ },
634
+ "privacy": "private"
635
+ },
636
+ {
637
+ "kind": "field",
638
+ "name": "childPughInput",
639
+ "type": {
640
+ "text": "HTMLElement & { value: string }"
641
+ },
642
+ "privacy": "private"
643
+ },
644
+ {
645
+ "kind": "field",
646
+ "name": "ageUnitSelect",
647
+ "type": {
648
+ "text": "HTMLElement & { value: string }"
649
+ },
650
+ "privacy": "private"
651
+ },
652
+ {
653
+ "kind": "method",
654
+ "name": "open",
655
+ "privacy": "public",
656
+ "return": {
657
+ "type": {
658
+ "text": "void"
659
+ }
660
+ }
661
+ },
662
+ {
663
+ "kind": "method",
664
+ "name": "modifyGender",
665
+ "privacy": "private",
666
+ "return": {
667
+ "type": {
668
+ "text": "void"
669
+ }
670
+ }
671
+ },
672
+ {
673
+ "kind": "method",
674
+ "name": "verifyAgeInput",
675
+ "privacy": "private",
676
+ "return": {
677
+ "type": {
678
+ "text": "void"
679
+ }
680
+ }
681
+ },
682
+ {
683
+ "kind": "method",
684
+ "name": "handleAgeUnit",
685
+ "privacy": "private",
686
+ "return": {
687
+ "type": {
688
+ "text": "void"
689
+ }
690
+ }
691
+ },
692
+ {
693
+ "kind": "method",
694
+ "name": "verifySizeInput",
695
+ "privacy": "private",
696
+ "return": {
697
+ "type": {
698
+ "text": "void"
699
+ }
700
+ }
701
+ },
702
+ {
703
+ "kind": "method",
704
+ "name": "verifyWeightInput",
705
+ "privacy": "private",
706
+ "return": {
707
+ "type": {
708
+ "text": "void"
709
+ }
710
+ }
711
+ },
712
+ {
713
+ "kind": "method",
714
+ "name": "getPatientSexFromProfile",
715
+ "privacy": "private"
716
+ },
717
+ {
718
+ "kind": "method",
719
+ "name": "getPatientHepaticStadeFromProfile",
720
+ "privacy": "private"
721
+ },
722
+ {
723
+ "kind": "method",
724
+ "name": "handlePregnancy",
725
+ "privacy": "private",
726
+ "return": {
727
+ "type": {
728
+ "text": "void"
729
+ }
730
+ },
731
+ "parameters": [
732
+ {
733
+ "name": "event",
734
+ "type": {
735
+ "text": "CustomEvent"
736
+ }
737
+ }
738
+ ]
739
+ },
740
+ {
741
+ "kind": "method",
742
+ "name": "handleBreastfeeding",
743
+ "privacy": "private",
744
+ "return": {
745
+ "type": {
746
+ "text": "void"
747
+ }
748
+ },
749
+ "parameters": [
750
+ {
751
+ "name": "event",
752
+ "type": {
753
+ "text": "CustomEvent"
754
+ }
755
+ }
756
+ ]
757
+ },
758
+ {
759
+ "kind": "method",
760
+ "name": "setFormWithCreatinineUmol",
761
+ "privacy": "private",
762
+ "return": {
763
+ "type": {
764
+ "text": "void"
765
+ }
766
+ }
767
+ },
768
+ {
769
+ "kind": "method",
770
+ "name": "setFormWithCreatinineMgL",
771
+ "privacy": "private",
772
+ "return": {
773
+ "type": {
774
+ "text": "void"
775
+ }
776
+ }
777
+ },
778
+ {
779
+ "kind": "method",
780
+ "name": "setFormWithClairance",
781
+ "privacy": "private",
782
+ "return": {
783
+ "type": {
784
+ "text": "void"
785
+ }
786
+ }
787
+ },
788
+ {
789
+ "kind": "method",
790
+ "name": "apiReturntoSelectOption",
791
+ "privacy": "private",
792
+ "return": {
793
+ "type": {
794
+ "text": "ISelectOption"
795
+ }
796
+ },
797
+ "parameters": [
798
+ {
799
+ "name": "pathology",
800
+ "type": {
801
+ "text": "IApiReturn"
802
+ }
803
+ }
804
+ ]
805
+ },
806
+ {
807
+ "kind": "method",
808
+ "name": "searchPathologies",
809
+ "privacy": "private",
810
+ "return": {
811
+ "type": {
812
+ "text": "void"
813
+ }
814
+ },
815
+ "parameters": [
816
+ {
817
+ "name": "event",
818
+ "type": {
819
+ "text": "CustomEvent"
820
+ }
821
+ }
822
+ ]
823
+ },
824
+ {
825
+ "kind": "method",
826
+ "name": "updatePathologies",
827
+ "privacy": "private",
828
+ "return": {
829
+ "type": {
830
+ "text": "void"
831
+ }
832
+ },
833
+ "parameters": [
834
+ {
835
+ "name": "event",
836
+ "type": {
837
+ "text": "CustomEvent"
838
+ }
839
+ }
840
+ ]
841
+ },
842
+ {
843
+ "kind": "method",
844
+ "name": "searchAllergies",
845
+ "privacy": "private",
846
+ "return": {
847
+ "type": {
848
+ "text": "void"
849
+ }
850
+ },
851
+ "parameters": [
852
+ {
853
+ "name": "event",
854
+ "type": {
855
+ "text": "CustomEvent"
856
+ }
857
+ }
858
+ ]
859
+ },
860
+ {
861
+ "kind": "method",
862
+ "name": "updateAllergies",
863
+ "privacy": "private",
864
+ "return": {
865
+ "type": {
866
+ "text": "void"
867
+ }
868
+ },
869
+ "parameters": [
870
+ {
871
+ "name": "event",
872
+ "type": {
873
+ "text": "CustomEvent"
874
+ }
875
+ }
876
+ ]
877
+ },
878
+ {
879
+ "kind": "method",
880
+ "name": "validateForm",
881
+ "privacy": "private",
882
+ "return": {
883
+ "type": {
884
+ "text": "void"
885
+ }
886
+ }
887
+ }
888
+ ],
889
+ "events": [
890
+ {
891
+ "name": "editPatientProfile",
892
+ "type": {
893
+ "text": "CustomEvent"
894
+ }
895
+ }
896
+ ],
897
+ "attributes": [
898
+ {
899
+ "name": "patient-profile",
900
+ "type": {
901
+ "text": "Bundle | undefined"
902
+ },
903
+ "fieldName": "patientProfile"
904
+ },
905
+ {
906
+ "name": "api-url",
907
+ "type": {
908
+ "text": "string | undefined"
909
+ },
910
+ "fieldName": "apiUrl"
911
+ },
912
+ {
913
+ "name": "api-key",
914
+ "type": {
915
+ "text": "string | undefined"
916
+ },
917
+ "fieldName": "apiKey"
918
+ }
919
+ ],
920
+ "superclass": {
921
+ "name": "LitElement",
922
+ "package": "lit"
923
+ },
924
+ "tagName": "bcb-patient-profile-edition",
925
+ "customElement": true
926
+ }
927
+ ],
928
+ "exports": [
929
+ {
930
+ "kind": "js",
931
+ "name": "PatientProfileEdition",
932
+ "declaration": {
933
+ "name": "PatientProfileEdition",
934
+ "module": "src/patient-profile/patient-profile-edition/patient-profile-edition.ts"
935
+ }
936
+ },
937
+ {
938
+ "kind": "custom-element-definition",
939
+ "name": "bcb-patient-profile-edition",
940
+ "declaration": {
941
+ "name": "PatientProfileEdition",
942
+ "module": "src/patient-profile/patient-profile-edition/patient-profile-edition.ts"
943
+ }
944
+ }
945
+ ]
946
+ },
947
+ {
948
+ "kind": "javascript-module",
949
+ "path": "src/shared/interfaces/api-return.interface.ts",
950
+ "declarations": [],
951
+ "exports": []
952
+ },
953
+ {
954
+ "kind": "javascript-module",
955
+ "path": "src/shared/interfaces/patient.ts",
956
+ "declarations": [],
957
+ "exports": []
958
+ },
959
+ {
960
+ "kind": "javascript-module",
961
+ "path": "src/shared/mocks/pathologies.mock.ts",
962
+ "declarations": [
963
+ {
964
+ "kind": "variable",
965
+ "name": "mockPathologies",
966
+ "type": {
967
+ "text": "object"
968
+ },
969
+ "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}"
970
+ }
971
+ ],
972
+ "exports": [
973
+ {
974
+ "kind": "js",
975
+ "name": "mockPathologies",
976
+ "declaration": {
977
+ "name": "mockPathologies",
978
+ "module": "src/shared/mocks/pathologies.mock.ts"
979
+ }
980
+ }
981
+ ]
982
+ },
983
+ {
984
+ "kind": "javascript-module",
985
+ "path": "src/shared/mocks/patient-profile.mock.ts",
986
+ "declarations": [
987
+ {
988
+ "kind": "variable",
989
+ "name": "patientComplete",
990
+ "type": {
991
+ "text": "Bundle"
992
+ },
993
+ "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: 60,\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: 141,\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.6,\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: \"48643-1\",\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 among black population\",\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}"
994
+ }
995
+ ],
996
+ "exports": [
997
+ {
998
+ "kind": "js",
999
+ "name": "patientComplete",
1000
+ "declaration": {
1001
+ "name": "patientComplete",
1002
+ "module": "src/shared/mocks/patient-profile.mock.ts"
1003
+ }
1004
+ }
1005
+ ]
1006
+ },
1007
+ {
1008
+ "kind": "javascript-module",
1009
+ "path": "src/shared/constants/edition-options.ts",
1010
+ "declarations": [
1011
+ {
1012
+ "kind": "variable",
1013
+ "name": "sexOptions",
1014
+ "type": {
1015
+ "text": "{ value: string, label: string }[]"
1016
+ },
1017
+ "default": "[\n { value: \"male\", label: \"Masculin\" },\n { value: \"female\", label: \"Féminin\" },\n { value: \"unknown\", label: \"Inconnu\" },\n]"
1018
+ },
1019
+ {
1020
+ "kind": "variable",
1021
+ "name": "hepaticStadeOptions",
1022
+ "type": {
1023
+ "text": "{ value: string, label: string }[]"
1024
+ },
1025
+ "default": "[\n { value: \"A\", label: \"Stade A\" },\n { value: \"B\", label: \"Stade B\" },\n { value: \"C\", label: \"Stade C\" },\n]"
1026
+ },
1027
+ {
1028
+ "kind": "variable",
1029
+ "name": "ageOptions",
1030
+ "type": {
1031
+ "text": "{ value: string, label: string }[]"
1032
+ },
1033
+ "default": "[\n { value: \"ans\", label: \"Ans\" },\n { value: \"mois\", label: \"Mois\" },\n]"
1034
+ }
1035
+ ],
1036
+ "exports": [
1037
+ {
1038
+ "kind": "js",
1039
+ "name": "sexOptions",
1040
+ "declaration": {
1041
+ "name": "sexOptions",
1042
+ "module": "src/shared/constants/edition-options.ts"
1043
+ }
1044
+ },
1045
+ {
1046
+ "kind": "js",
1047
+ "name": "hepaticStadeOptions",
1048
+ "declaration": {
1049
+ "name": "hepaticStadeOptions",
1050
+ "module": "src/shared/constants/edition-options.ts"
1051
+ }
1052
+ },
1053
+ {
1054
+ "kind": "js",
1055
+ "name": "ageOptions",
1056
+ "declaration": {
1057
+ "name": "ageOptions",
1058
+ "module": "src/shared/constants/edition-options.ts"
1059
+ }
1060
+ }
1061
+ ]
1062
+ },
1063
+ {
1064
+ "kind": "javascript-module",
1065
+ "path": "src/shared/constants/loinc.ts",
1066
+ "declarations": [
1067
+ {
1068
+ "kind": "variable",
1069
+ "name": "acceptedLoincCodesForRenalClearance",
1070
+ "type": {
1071
+ "text": "string[]"
1072
+ },
1073
+ "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]"
1074
+ },
1075
+ {
1076
+ "kind": "variable",
1077
+ "name": "acceptedLoincCodesForRenalGFRPerBSA",
1078
+ "type": {
1079
+ "text": "string[]"
1080
+ },
1081
+ "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]"
1082
+ }
1083
+ ],
1084
+ "exports": [
1085
+ {
1086
+ "kind": "js",
1087
+ "name": "acceptedLoincCodesForRenalClearance",
1088
+ "declaration": {
1089
+ "name": "acceptedLoincCodesForRenalClearance",
1090
+ "module": "src/shared/constants/loinc.ts"
1091
+ }
1092
+ },
1093
+ {
1094
+ "kind": "js",
1095
+ "name": "acceptedLoincCodesForRenalGFRPerBSA",
1096
+ "declaration": {
1097
+ "name": "acceptedLoincCodesForRenalGFRPerBSA",
1098
+ "module": "src/shared/constants/loinc.ts"
1099
+ }
1100
+ }
1101
+ ]
1102
+ },
1103
+ {
1104
+ "kind": "javascript-module",
1105
+ "path": "src/shared/constants/settings.ts",
1106
+ "declarations": [
1107
+ {
1108
+ "kind": "variable",
1109
+ "name": "PREFIX",
1110
+ "type": {
1111
+ "text": "string"
1112
+ },
1113
+ "default": "\"claudebernard\""
1114
+ }
1115
+ ],
1116
+ "exports": [
1117
+ {
1118
+ "kind": "js",
1119
+ "name": "PREFIX",
1120
+ "declaration": {
1121
+ "name": "PREFIX",
1122
+ "module": "src/shared/constants/settings.ts"
1123
+ }
1124
+ }
1125
+ ]
1126
+ },
1127
+ {
1128
+ "kind": "javascript-module",
1129
+ "path": "src/shared/constants/snomed.ts",
1130
+ "declarations": [
1131
+ {
1132
+ "kind": "variable",
1133
+ "name": "snomedToChildPughStadeMap",
1134
+ "type": {
1135
+ "text": "object"
1136
+ },
1137
+ "default": "{\n \"710065009\": \"Stade A\",\n \"710066005\": \"Stade B\",\n \"710067001\": \"Stade C\",\n}"
1138
+ },
1139
+ {
1140
+ "kind": "variable",
1141
+ "name": "childPughStadeToSnomedMap",
1142
+ "type": {
1143
+ "text": "object"
1144
+ },
1145
+ "default": "{\n \"A\": \"710065009\",\n \"B\": \"710066005\",\n \"C\": \"710067001\",\n}"
1146
+ }
1147
+ ],
1148
+ "exports": [
1149
+ {
1150
+ "kind": "js",
1151
+ "name": "snomedToChildPughStadeMap",
1152
+ "declaration": {
1153
+ "name": "snomedToChildPughStadeMap",
1154
+ "module": "src/shared/constants/snomed.ts"
1155
+ }
1156
+ },
1157
+ {
1158
+ "kind": "js",
1159
+ "name": "childPughStadeToSnomedMap",
1160
+ "declaration": {
1161
+ "name": "childPughStadeToSnomedMap",
1162
+ "module": "src/shared/constants/snomed.ts"
1163
+ }
1164
+ }
1165
+ ]
1166
+ },
1167
+ {
1168
+ "kind": "javascript-module",
1169
+ "path": "src/shared/services/api-search.service.ts",
1170
+ "declarations": [
1171
+ {
1172
+ "kind": "function",
1173
+ "name": "fetchPathologiesByTerm",
1174
+ "parameters": [
1175
+ {
1176
+ "name": "term",
1177
+ "type": {
1178
+ "text": "string"
1179
+ }
1180
+ },
1181
+ {
1182
+ "name": "params",
1183
+ "type": {
1184
+ "text": "SearchRequestBody"
1185
+ }
1186
+ },
1187
+ {
1188
+ "name": "apiUrl",
1189
+ "type": {
1190
+ "text": "string"
1191
+ }
1192
+ }
1193
+ ]
1194
+ },
1195
+ {
1196
+ "kind": "function",
1197
+ "name": "fetchMoleculesByTerm",
1198
+ "parameters": [
1199
+ {
1200
+ "name": "term",
1201
+ "type": {
1202
+ "text": "string"
1203
+ }
1204
+ },
1205
+ {
1206
+ "name": "params",
1207
+ "type": {
1208
+ "text": "SearchRequestBody"
1209
+ }
1210
+ },
1211
+ {
1212
+ "name": "apiUrl",
1213
+ "type": {
1214
+ "text": "string"
1215
+ }
1216
+ }
1217
+ ]
1218
+ }
1219
+ ],
1220
+ "exports": [
1221
+ {
1222
+ "kind": "js",
1223
+ "name": "fetchPathologiesByTerm",
1224
+ "declaration": {
1225
+ "name": "fetchPathologiesByTerm",
1226
+ "module": "src/shared/services/api-search.service.ts"
1227
+ }
1228
+ },
1229
+ {
1230
+ "kind": "js",
1231
+ "name": "fetchMoleculesByTerm",
1232
+ "declaration": {
1233
+ "name": "fetchMoleculesByTerm",
1234
+ "module": "src/shared/services/api-search.service.ts"
1235
+ }
1236
+ }
1237
+ ]
1238
+ },
1239
+ {
1240
+ "kind": "javascript-module",
1241
+ "path": "src/shared/utils/patient-fhir-utils.ts",
1242
+ "declarations": [
1243
+ {
1244
+ "kind": "function",
1245
+ "name": "calculateBMI",
1246
+ "return": {
1247
+ "type": {
1248
+ "text": ""
1249
+ }
1250
+ },
1251
+ "parameters": [
1252
+ {
1253
+ "name": "weight",
1254
+ "type": {
1255
+ "text": "number"
1256
+ },
1257
+ "description": "Poids en kilogrammes"
1258
+ },
1259
+ {
1260
+ "name": "height",
1261
+ "type": {
1262
+ "text": "number"
1263
+ },
1264
+ "description": "Taille en centimètres"
1265
+ }
1266
+ ],
1267
+ "description": "Calcule l'IMC à partir du poids et de la taille"
1268
+ },
1269
+ {
1270
+ "kind": "function",
1271
+ "name": "getPatientGender",
1272
+ "return": {
1273
+ "type": {
1274
+ "text": ""
1275
+ }
1276
+ },
1277
+ "parameters": [
1278
+ {
1279
+ "name": "bundle",
1280
+ "type": {
1281
+ "text": "Bundle | undefined"
1282
+ },
1283
+ "description": "Bundle Patient FHIR"
1284
+ }
1285
+ ],
1286
+ "description": "Extrait le sexe du patient FHIR"
1287
+ },
1288
+ {
1289
+ "kind": "function",
1290
+ "name": "setPatientGender",
1291
+ "return": {
1292
+ "type": {
1293
+ "text": "void"
1294
+ }
1295
+ },
1296
+ "parameters": [
1297
+ {
1298
+ "name": "bundle",
1299
+ "type": {
1300
+ "text": "Bundle"
1301
+ }
1302
+ },
1303
+ {
1304
+ "name": "gender",
1305
+ "type": {
1306
+ "text": "\"male\" | \"female\" | \"other\" | \"unknown\""
1307
+ }
1308
+ }
1309
+ ]
1310
+ },
1311
+ {
1312
+ "kind": "function",
1313
+ "name": "getPatientName",
1314
+ "return": {
1315
+ "type": {
1316
+ "text": ""
1317
+ }
1318
+ },
1319
+ "parameters": [
1320
+ {
1321
+ "name": "bundle",
1322
+ "type": {
1323
+ "text": "Bundle | undefined"
1324
+ },
1325
+ "description": "Bundle Patient FHIR"
1326
+ }
1327
+ ],
1328
+ "description": "Extrait le nom du patient FHIR"
1329
+ },
1330
+ {
1331
+ "kind": "function",
1332
+ "name": "getPatientAge",
1333
+ "return": {
1334
+ "type": {
1335
+ "text": ""
1336
+ }
1337
+ },
1338
+ "parameters": [
1339
+ {
1340
+ "name": "bundle",
1341
+ "type": {
1342
+ "text": "Bundle | undefined"
1343
+ },
1344
+ "description": "Bundle Patient FHIR"
1345
+ }
1346
+ ],
1347
+ "description": "Calcule l'âge du patient à partir de sa date de naissance"
1348
+ },
1349
+ {
1350
+ "kind": "function",
1351
+ "name": "getPatientBirthDate",
1352
+ "return": {
1353
+ "type": {
1354
+ "text": ""
1355
+ }
1356
+ },
1357
+ "parameters": [
1358
+ {
1359
+ "name": "bundle",
1360
+ "type": {
1361
+ "text": "Bundle | undefined"
1362
+ },
1363
+ "description": "Bundle Patient FHIR"
1364
+ }
1365
+ ],
1366
+ "description": "Calcule l'âge du patient à partir de sa date de naissance"
1367
+ },
1368
+ {
1369
+ "kind": "function",
1370
+ "name": "setPatientAge",
1371
+ "return": {
1372
+ "type": {
1373
+ "text": "void"
1374
+ }
1375
+ },
1376
+ "parameters": [
1377
+ {
1378
+ "name": "bundle",
1379
+ "type": {
1380
+ "text": "Bundle"
1381
+ },
1382
+ "description": "Bundle Patient FHIR"
1383
+ },
1384
+ {
1385
+ "name": "age",
1386
+ "type": {
1387
+ "text": "number"
1388
+ },
1389
+ "description": "Nouvel âge du patient"
1390
+ },
1391
+ {
1392
+ "name": "ageUnit",
1393
+ "type": {
1394
+ "text": "string"
1395
+ },
1396
+ "description": "Unité de l'âge (ex: \"ans\", \"mois\")"
1397
+ }
1398
+ ],
1399
+ "description": "Modifie l'âge du patient dans la ressource Patient du Bundle FHIR"
1400
+ },
1401
+ {
1402
+ "kind": "function",
1403
+ "name": "getPatientWeight",
1404
+ "return": {
1405
+ "type": {
1406
+ "text": ""
1407
+ }
1408
+ },
1409
+ "parameters": [
1410
+ {
1411
+ "name": "bundle",
1412
+ "type": {
1413
+ "text": "Bundle | undefined"
1414
+ },
1415
+ "description": "Bundle Patient FHIR"
1416
+ }
1417
+ ],
1418
+ "description": "Extrait le poids du patient depuis la ressource Observation concernée"
1419
+ },
1420
+ {
1421
+ "kind": "function",
1422
+ "name": "getPatientWeightWithUnit",
1423
+ "return": {
1424
+ "type": {
1425
+ "text": ""
1426
+ }
1427
+ },
1428
+ "parameters": [
1429
+ {
1430
+ "name": "bundle",
1431
+ "type": {
1432
+ "text": "Bundle | undefined"
1433
+ },
1434
+ "description": "Bundle Patient FHIR"
1435
+ }
1436
+ ],
1437
+ "description": "Extrait le poids du patient (avec l'unité correspondante) depuis la ressource Observation concernée"
1438
+ },
1439
+ {
1440
+ "kind": "function",
1441
+ "name": "setPatientWeight",
1442
+ "return": {
1443
+ "type": {
1444
+ "text": "void"
1445
+ }
1446
+ },
1447
+ "parameters": [
1448
+ {
1449
+ "name": "bundle",
1450
+ "type": {
1451
+ "text": "Bundle"
1452
+ }
1453
+ },
1454
+ {
1455
+ "name": "weight",
1456
+ "type": {
1457
+ "text": "number"
1458
+ }
1459
+ }
1460
+ ],
1461
+ "description": "Modifie le poids du patient dans le Bundle FHIR du patient"
1462
+ },
1463
+ {
1464
+ "kind": "function",
1465
+ "name": "getPatientHeight",
1466
+ "return": {
1467
+ "type": {
1468
+ "text": ""
1469
+ }
1470
+ },
1471
+ "parameters": [
1472
+ {
1473
+ "name": "bundle",
1474
+ "type": {
1475
+ "text": "Bundle | undefined"
1476
+ },
1477
+ "description": "Bundle Patient FHIR"
1478
+ }
1479
+ ],
1480
+ "description": "Extrait la taille du patient depuis la ressource Observation concernée"
1481
+ },
1482
+ {
1483
+ "kind": "function",
1484
+ "name": "getPatientHeightWithUnit",
1485
+ "return": {
1486
+ "type": {
1487
+ "text": ""
1488
+ }
1489
+ },
1490
+ "parameters": [
1491
+ {
1492
+ "name": "bundle",
1493
+ "type": {
1494
+ "text": "Bundle | undefined"
1495
+ },
1496
+ "description": "Bundle Patient FHIR"
1497
+ }
1498
+ ],
1499
+ "description": "Extrait la taille du patient (avec l'unité correspondante) depuis la ressource Observation concernée"
1500
+ },
1501
+ {
1502
+ "kind": "function",
1503
+ "name": "setPatientHeight",
1504
+ "return": {
1505
+ "type": {
1506
+ "text": "void"
1507
+ }
1508
+ },
1509
+ "parameters": [
1510
+ {
1511
+ "name": "bundle",
1512
+ "type": {
1513
+ "text": "Bundle"
1514
+ }
1515
+ },
1516
+ {
1517
+ "name": "height",
1518
+ "type": {
1519
+ "text": "number"
1520
+ }
1521
+ }
1522
+ ],
1523
+ "description": "Modifie la taille du patient dans le Bundle FHIR du patient"
1524
+ },
1525
+ {
1526
+ "kind": "function",
1527
+ "name": "getPatientPregnancyStatus",
1528
+ "return": {
1529
+ "type": {
1530
+ "text": ""
1531
+ }
1532
+ },
1533
+ "parameters": [
1534
+ {
1535
+ "name": "bundle",
1536
+ "type": {
1537
+ "text": "Bundle | undefined"
1538
+ },
1539
+ "description": "Bundle Patient FHIR"
1540
+ }
1541
+ ],
1542
+ "description": "Extrait le statut de grossesse du patient depuis la ressource Observation ou Condition concernée"
1543
+ },
1544
+ {
1545
+ "kind": "function",
1546
+ "name": "setPatientPregnancyStatus",
1547
+ "return": {
1548
+ "type": {
1549
+ "text": "void"
1550
+ }
1551
+ },
1552
+ "parameters": [
1553
+ {
1554
+ "name": "bundle",
1555
+ "type": {
1556
+ "text": "Bundle"
1557
+ }
1558
+ },
1559
+ {
1560
+ "name": "isPregnant",
1561
+ "type": {
1562
+ "text": "boolean"
1563
+ }
1564
+ }
1565
+ ],
1566
+ "description": "Modifie le statut de grossesse du patient dans le Bundle FHIR du patient"
1567
+ },
1568
+ {
1569
+ "kind": "function",
1570
+ "name": "getPatientAmenorrheaStatus",
1571
+ "return": {
1572
+ "type": {
1573
+ "text": ""
1574
+ }
1575
+ },
1576
+ "parameters": [
1577
+ {
1578
+ "name": "bundle",
1579
+ "type": {
1580
+ "text": "Bundle | undefined"
1581
+ },
1582
+ "description": "Bundle Patient FHIR"
1583
+ }
1584
+ ],
1585
+ "description": "Extrait le statut d'aménorrhée du patient depuis la ressource Observation concernée"
1586
+ },
1587
+ {
1588
+ "kind": "function",
1589
+ "name": "setPatientAmenorrheaStatus",
1590
+ "return": {
1591
+ "type": {
1592
+ "text": "void"
1593
+ }
1594
+ },
1595
+ "parameters": [
1596
+ {
1597
+ "name": "bundle",
1598
+ "type": {
1599
+ "text": "Bundle"
1600
+ }
1601
+ },
1602
+ {
1603
+ "name": "weeks",
1604
+ "type": {
1605
+ "text": "number"
1606
+ }
1607
+ }
1608
+ ],
1609
+ "description": "Modifie le statut d'aménorrhée du patient dans le Bundle FHIR du patient"
1610
+ },
1611
+ {
1612
+ "kind": "function",
1613
+ "name": "getPatientBreastfeedingStatus",
1614
+ "return": {
1615
+ "type": {
1616
+ "text": ""
1617
+ }
1618
+ },
1619
+ "parameters": [
1620
+ {
1621
+ "name": "bundle",
1622
+ "type": {
1623
+ "text": "Bundle | undefined"
1624
+ },
1625
+ "description": "Bundle Patient FHIR"
1626
+ }
1627
+ ],
1628
+ "description": "Extrait le statut d'allaitement du patient depuis la ressource Observation concernée"
1629
+ },
1630
+ {
1631
+ "kind": "function",
1632
+ "name": "setPatientBreastfeedingStatus",
1633
+ "return": {
1634
+ "type": {
1635
+ "text": "void"
1636
+ }
1637
+ },
1638
+ "parameters": [
1639
+ {
1640
+ "name": "bundle",
1641
+ "type": {
1642
+ "text": "Bundle"
1643
+ }
1644
+ },
1645
+ {
1646
+ "name": "isBreastfeeding",
1647
+ "type": {
1648
+ "text": "boolean"
1649
+ }
1650
+ }
1651
+ ],
1652
+ "description": "Modifie le statut d'allaitement du patient dans le Bundle FHIR du patient"
1653
+ },
1654
+ {
1655
+ "kind": "function",
1656
+ "name": "getPatientRenalInsufficiencyStatus",
1657
+ "return": {
1658
+ "type": {
1659
+ "text": "PatientRenalStatus"
1660
+ }
1661
+ },
1662
+ "parameters": [
1663
+ {
1664
+ "name": "bundle",
1665
+ "type": {
1666
+ "text": "Bundle | undefined"
1667
+ }
1668
+ }
1669
+ ]
1670
+ },
1671
+ {
1672
+ "kind": "function",
1673
+ "name": "setPatientClearance",
1674
+ "return": {
1675
+ "type": {
1676
+ "text": "void"
1677
+ }
1678
+ },
1679
+ "parameters": [
1680
+ {
1681
+ "name": "bundle",
1682
+ "type": {
1683
+ "text": "Bundle"
1684
+ }
1685
+ },
1686
+ {
1687
+ "name": "clearance",
1688
+ "type": {
1689
+ "text": "number"
1690
+ }
1691
+ }
1692
+ ],
1693
+ "description": "Modifie le clairance rénale du patient dans le Bundle FHIR du patient"
1694
+ },
1695
+ {
1696
+ "kind": "function",
1697
+ "name": "setPatientGFRByBSA",
1698
+ "return": {
1699
+ "type": {
1700
+ "text": "void"
1701
+ }
1702
+ },
1703
+ "parameters": [
1704
+ {
1705
+ "name": "bundle",
1706
+ "type": {
1707
+ "text": "Bundle"
1708
+ }
1709
+ },
1710
+ {
1711
+ "name": "gfr",
1712
+ "type": {
1713
+ "text": "number"
1714
+ }
1715
+ }
1716
+ ]
1717
+ },
1718
+ {
1719
+ "kind": "function",
1720
+ "name": "computeCreatinineFromClearance",
1721
+ "return": {
1722
+ "type": {
1723
+ "text": "Quantity[]"
1724
+ }
1725
+ },
1726
+ "parameters": [
1727
+ {
1728
+ "name": "clearance",
1729
+ "type": {
1730
+ "text": "number"
1731
+ }
1732
+ },
1733
+ {
1734
+ "name": "age",
1735
+ "type": {
1736
+ "text": "number"
1737
+ }
1738
+ },
1739
+ {
1740
+ "name": "weight",
1741
+ "type": {
1742
+ "text": "number"
1743
+ }
1744
+ },
1745
+ {
1746
+ "name": "isFemale",
1747
+ "type": {
1748
+ "text": "boolean"
1749
+ }
339
1750
  }
340
- ],
341
- "description": "Extrait le nom du patient FHIR"
1751
+ ]
342
1752
  },
343
1753
  {
344
1754
  "kind": "function",
345
- "name": "getPatientAge",
1755
+ "name": "getCreatinine",
346
1756
  "return": {
347
1757
  "type": {
348
- "text": ""
1758
+ "text": "Quantity[]"
349
1759
  }
350
1760
  },
351
1761
  "parameters": [
@@ -353,56 +1763,62 @@
353
1763
  "name": "bundle",
354
1764
  "type": {
355
1765
  "text": "Bundle | undefined"
356
- },
357
- "description": "Bundle Patient FHIR"
1766
+ }
358
1767
  }
359
- ],
360
- "description": "Calcule l'âge du patient à partir de sa date de naissance"
1768
+ ]
361
1769
  },
362
1770
  {
363
1771
  "kind": "function",
364
- "name": "getPatientWeight",
1772
+ "name": "setCreatinineBymgL",
365
1773
  "return": {
366
1774
  "type": {
367
- "text": ""
1775
+ "text": "void"
368
1776
  }
369
1777
  },
370
1778
  "parameters": [
371
1779
  {
372
1780
  "name": "bundle",
373
1781
  "type": {
374
- "text": "Bundle | undefined"
375
- },
376
- "description": "Bundle Patient FHIR"
1782
+ "text": "Bundle"
1783
+ }
1784
+ },
1785
+ {
1786
+ "name": "mgL",
1787
+ "type": {
1788
+ "text": "number"
1789
+ }
377
1790
  }
378
- ],
379
- "description": "Extrait le poids du patient depuis la ressource Observation concernée"
1791
+ ]
380
1792
  },
381
1793
  {
382
1794
  "kind": "function",
383
- "name": "getPatientWeightWithUnit",
1795
+ "name": "setCreatinineByUmolL",
384
1796
  "return": {
385
1797
  "type": {
386
- "text": ""
1798
+ "text": "void"
387
1799
  }
388
1800
  },
389
1801
  "parameters": [
390
1802
  {
391
1803
  "name": "bundle",
392
1804
  "type": {
393
- "text": "Bundle | undefined"
394
- },
395
- "description": "Bundle Patient FHIR"
1805
+ "text": "Bundle"
1806
+ }
1807
+ },
1808
+ {
1809
+ "name": "umolL",
1810
+ "type": {
1811
+ "text": "number"
1812
+ }
396
1813
  }
397
- ],
398
- "description": "Extrait le poids du patient (avec l'unité correspondante) depuis la ressource Observation concernée"
1814
+ ]
399
1815
  },
400
1816
  {
401
1817
  "kind": "function",
402
- "name": "getPatientHeight",
1818
+ "name": "getPatientHepaticInsufficiencyScore",
403
1819
  "return": {
404
1820
  "type": {
405
- "text": ""
1821
+ "text": "number | null"
406
1822
  }
407
1823
  },
408
1824
  "parameters": [
@@ -410,18 +1826,16 @@
410
1826
  "name": "bundle",
411
1827
  "type": {
412
1828
  "text": "Bundle | undefined"
413
- },
414
- "description": "Bundle Patient FHIR"
1829
+ }
415
1830
  }
416
- ],
417
- "description": "Extrait la taille du patient depuis la ressource Observation concernée"
1831
+ ]
418
1832
  },
419
1833
  {
420
1834
  "kind": "function",
421
- "name": "getPatientHeightWithUnit",
1835
+ "name": "getPatientHepaticInsufficiencyStade",
422
1836
  "return": {
423
1837
  "type": {
424
- "text": ""
1838
+ "text": "string"
425
1839
  }
426
1840
  },
427
1841
  "parameters": [
@@ -429,34 +1843,44 @@
429
1843
  "name": "bundle",
430
1844
  "type": {
431
1845
  "text": "Bundle | undefined"
432
- },
433
- "description": "Bundle Patient FHIR"
1846
+ }
434
1847
  }
435
- ],
436
- "description": "Extrait la taille du patient (avec l'unité correspondante) depuis la ressource Observation concernée"
1848
+ ]
437
1849
  },
438
1850
  {
439
1851
  "kind": "function",
440
- "name": "getPatientPregnancyStatus",
1852
+ "name": "setPatientHepaticInsufficiencyStatus",
441
1853
  "return": {
442
1854
  "type": {
443
- "text": ""
1855
+ "text": "void"
444
1856
  }
445
1857
  },
446
1858
  "parameters": [
447
1859
  {
448
1860
  "name": "bundle",
449
1861
  "type": {
450
- "text": "Bundle | undefined"
451
- },
452
- "description": "Bundle Patient FHIR"
1862
+ "text": "Bundle"
1863
+ }
1864
+ },
1865
+ {
1866
+ "name": "stade",
1867
+ "optional": true,
1868
+ "type": {
1869
+ "text": "\"A\" | \"B\" | \"C\""
1870
+ }
1871
+ },
1872
+ {
1873
+ "name": "score",
1874
+ "optional": true,
1875
+ "type": {
1876
+ "text": "number"
1877
+ }
453
1878
  }
454
- ],
455
- "description": "Extrait le statut de grossesse du patient depuis la ressource Observation ou Condition concernée"
1879
+ ]
456
1880
  },
457
1881
  {
458
1882
  "kind": "function",
459
- "name": "getPatientAmenorrheaStatus",
1883
+ "name": "getPatientConditions",
460
1884
  "return": {
461
1885
  "type": {
462
1886
  "text": ""
@@ -464,18 +1888,18 @@
464
1888
  },
465
1889
  "parameters": [
466
1890
  {
467
- "name": "bundle",
1891
+ "name": "patient",
468
1892
  "type": {
469
1893
  "text": "Bundle | undefined"
470
1894
  },
471
1895
  "description": "Bundle Patient FHIR"
472
1896
  }
473
1897
  ],
474
- "description": "Extrait le statut d'aménorrhée du patient depuis la ressource Observation concernée"
1898
+ "description": "Extrait les conditions médicales/terrains du patient depuis les extensions FHIR"
475
1899
  },
476
1900
  {
477
1901
  "kind": "function",
478
- "name": "getPatientBreastfeedingStatus",
1902
+ "name": "getPatientConditionsWithCode",
479
1903
  "return": {
480
1904
  "type": {
481
1905
  "text": ""
@@ -483,72 +1907,63 @@
483
1907
  },
484
1908
  "parameters": [
485
1909
  {
486
- "name": "bundle",
1910
+ "name": "patient",
487
1911
  "type": {
488
1912
  "text": "Bundle | undefined"
489
1913
  },
490
1914
  "description": "Bundle Patient FHIR"
491
1915
  }
492
1916
  ],
493
- "description": "Extrait le statut d'allaitement du patient depuis la ressource Observation concernée"
1917
+ "description": "Extrait les conditions médicales/terrains du patient et leurs codes respectifs depuis les extensions FHIR"
494
1918
  },
495
1919
  {
496
1920
  "kind": "function",
497
- "name": "getPatientRenalInsufficiencyStatus",
1921
+ "name": "setPatientConditions",
498
1922
  "return": {
499
1923
  "type": {
500
- "text": "PatientRenalStatus"
1924
+ "text": "void"
501
1925
  }
502
1926
  },
503
1927
  "parameters": [
504
1928
  {
505
- "name": "bundle",
1929
+ "name": "patient",
506
1930
  "type": {
507
- "text": "Bundle | undefined"
1931
+ "text": "Bundle"
508
1932
  }
509
- }
510
- ]
511
- },
512
- {
513
- "kind": "function",
514
- "name": "getCreatinine",
515
- "return": {
516
- "type": {
517
- "text": "Quantity[]"
518
- }
519
- },
520
- "parameters": [
1933
+ },
521
1934
  {
522
- "name": "bundle",
1935
+ "name": "conditions",
523
1936
  "type": {
524
- "text": "Bundle | undefined"
1937
+ "text": "ISelectOption[]"
525
1938
  }
526
1939
  }
527
1940
  ]
528
1941
  },
529
1942
  {
530
1943
  "kind": "function",
531
- "name": "getPatientHepaticInsufficiencyStatus",
1944
+ "name": "getPatientAllergies",
532
1945
  "return": {
533
1946
  "type": {
534
- "text": "string"
1947
+ "text": ""
535
1948
  }
536
1949
  },
537
1950
  "parameters": [
538
1951
  {
539
- "name": "bundle",
1952
+ "name": "patient",
540
1953
  "type": {
541
1954
  "text": "Bundle | undefined"
542
- }
1955
+ },
1956
+ "description": "Bundle Patient FHIR"
543
1957
  }
544
- ]
1958
+ ],
1959
+ "description": "Extrait les allergies du patient depuis les extensions FHIR"
545
1960
  },
546
1961
  {
547
1962
  "kind": "function",
548
- "name": "getPatientConditions",
1963
+ "name": "getPatientAllergiesWithCode",
549
1964
  "return": {
550
1965
  "type": {
551
- "text": ""
1966
+ "text": "ISelectOption[]"
552
1967
  }
553
1968
  },
554
1969
  "parameters": [
@@ -556,30 +1971,32 @@
556
1971
  "name": "patient",
557
1972
  "type": {
558
1973
  "text": "Bundle | undefined"
559
- },
560
- "description": "Bundle Patient FHIR"
1974
+ }
561
1975
  }
562
- ],
563
- "description": "Extrait les conditions médicales/terrains du patient depuis les extensions FHIR"
1976
+ ]
564
1977
  },
565
1978
  {
566
1979
  "kind": "function",
567
- "name": "getPatientAllergies",
1980
+ "name": "setPatientAllergies",
568
1981
  "return": {
569
1982
  "type": {
570
- "text": ""
1983
+ "text": "void"
571
1984
  }
572
1985
  },
573
1986
  "parameters": [
574
1987
  {
575
1988
  "name": "patient",
576
1989
  "type": {
577
- "text": "Bundle | undefined"
578
- },
579
- "description": "Bundle Patient FHIR"
1990
+ "text": "Bundle"
1991
+ }
1992
+ },
1993
+ {
1994
+ "name": "allergies",
1995
+ "type": {
1996
+ "text": "ISelectOption[]"
1997
+ }
580
1998
  }
581
- ],
582
- "description": "Extrait les allergies du patient depuis les extensions FHIR"
1999
+ ]
583
2000
  },
584
2001
  {
585
2002
  "kind": "function",
@@ -673,6 +2090,14 @@
673
2090
  "module": "src/shared/utils/patient-fhir-utils.ts"
674
2091
  }
675
2092
  },
2093
+ {
2094
+ "kind": "js",
2095
+ "name": "setPatientGender",
2096
+ "declaration": {
2097
+ "name": "setPatientGender",
2098
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2099
+ }
2100
+ },
676
2101
  {
677
2102
  "kind": "js",
678
2103
  "name": "getPatientName",
@@ -689,6 +2114,22 @@
689
2114
  "module": "src/shared/utils/patient-fhir-utils.ts"
690
2115
  }
691
2116
  },
2117
+ {
2118
+ "kind": "js",
2119
+ "name": "getPatientBirthDate",
2120
+ "declaration": {
2121
+ "name": "getPatientBirthDate",
2122
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2123
+ }
2124
+ },
2125
+ {
2126
+ "kind": "js",
2127
+ "name": "setPatientAge",
2128
+ "declaration": {
2129
+ "name": "setPatientAge",
2130
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2131
+ }
2132
+ },
692
2133
  {
693
2134
  "kind": "js",
694
2135
  "name": "getPatientWeight",
@@ -705,6 +2146,14 @@
705
2146
  "module": "src/shared/utils/patient-fhir-utils.ts"
706
2147
  }
707
2148
  },
2149
+ {
2150
+ "kind": "js",
2151
+ "name": "setPatientWeight",
2152
+ "declaration": {
2153
+ "name": "setPatientWeight",
2154
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2155
+ }
2156
+ },
708
2157
  {
709
2158
  "kind": "js",
710
2159
  "name": "getPatientHeight",
@@ -721,6 +2170,14 @@
721
2170
  "module": "src/shared/utils/patient-fhir-utils.ts"
722
2171
  }
723
2172
  },
2173
+ {
2174
+ "kind": "js",
2175
+ "name": "setPatientHeight",
2176
+ "declaration": {
2177
+ "name": "setPatientHeight",
2178
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2179
+ }
2180
+ },
724
2181
  {
725
2182
  "kind": "js",
726
2183
  "name": "getPatientPregnancyStatus",
@@ -729,6 +2186,14 @@
729
2186
  "module": "src/shared/utils/patient-fhir-utils.ts"
730
2187
  }
731
2188
  },
2189
+ {
2190
+ "kind": "js",
2191
+ "name": "setPatientPregnancyStatus",
2192
+ "declaration": {
2193
+ "name": "setPatientPregnancyStatus",
2194
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2195
+ }
2196
+ },
732
2197
  {
733
2198
  "kind": "js",
734
2199
  "name": "getPatientAmenorrheaStatus",
@@ -737,6 +2202,14 @@
737
2202
  "module": "src/shared/utils/patient-fhir-utils.ts"
738
2203
  }
739
2204
  },
2205
+ {
2206
+ "kind": "js",
2207
+ "name": "setPatientAmenorrheaStatus",
2208
+ "declaration": {
2209
+ "name": "setPatientAmenorrheaStatus",
2210
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2211
+ }
2212
+ },
740
2213
  {
741
2214
  "kind": "js",
742
2215
  "name": "getPatientBreastfeedingStatus",
@@ -745,6 +2218,14 @@
745
2218
  "module": "src/shared/utils/patient-fhir-utils.ts"
746
2219
  }
747
2220
  },
2221
+ {
2222
+ "kind": "js",
2223
+ "name": "setPatientBreastfeedingStatus",
2224
+ "declaration": {
2225
+ "name": "setPatientBreastfeedingStatus",
2226
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2227
+ }
2228
+ },
748
2229
  {
749
2230
  "kind": "js",
750
2231
  "name": "getPatientRenalInsufficiencyStatus",
@@ -753,6 +2234,30 @@
753
2234
  "module": "src/shared/utils/patient-fhir-utils.ts"
754
2235
  }
755
2236
  },
2237
+ {
2238
+ "kind": "js",
2239
+ "name": "setPatientClearance",
2240
+ "declaration": {
2241
+ "name": "setPatientClearance",
2242
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2243
+ }
2244
+ },
2245
+ {
2246
+ "kind": "js",
2247
+ "name": "setPatientGFRByBSA",
2248
+ "declaration": {
2249
+ "name": "setPatientGFRByBSA",
2250
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2251
+ }
2252
+ },
2253
+ {
2254
+ "kind": "js",
2255
+ "name": "computeCreatinineFromClearance",
2256
+ "declaration": {
2257
+ "name": "computeCreatinineFromClearance",
2258
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2259
+ }
2260
+ },
756
2261
  {
757
2262
  "kind": "js",
758
2263
  "name": "getCreatinine",
@@ -763,9 +2268,41 @@
763
2268
  },
764
2269
  {
765
2270
  "kind": "js",
766
- "name": "getPatientHepaticInsufficiencyStatus",
2271
+ "name": "setCreatinineBymgL",
2272
+ "declaration": {
2273
+ "name": "setCreatinineBymgL",
2274
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2275
+ }
2276
+ },
2277
+ {
2278
+ "kind": "js",
2279
+ "name": "setCreatinineByUmolL",
2280
+ "declaration": {
2281
+ "name": "setCreatinineByUmolL",
2282
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2283
+ }
2284
+ },
2285
+ {
2286
+ "kind": "js",
2287
+ "name": "getPatientHepaticInsufficiencyScore",
2288
+ "declaration": {
2289
+ "name": "getPatientHepaticInsufficiencyScore",
2290
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2291
+ }
2292
+ },
2293
+ {
2294
+ "kind": "js",
2295
+ "name": "getPatientHepaticInsufficiencyStade",
2296
+ "declaration": {
2297
+ "name": "getPatientHepaticInsufficiencyStade",
2298
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2299
+ }
2300
+ },
2301
+ {
2302
+ "kind": "js",
2303
+ "name": "setPatientHepaticInsufficiencyStatus",
767
2304
  "declaration": {
768
- "name": "getPatientHepaticInsufficiencyStatus",
2305
+ "name": "setPatientHepaticInsufficiencyStatus",
769
2306
  "module": "src/shared/utils/patient-fhir-utils.ts"
770
2307
  }
771
2308
  },
@@ -777,6 +2314,22 @@
777
2314
  "module": "src/shared/utils/patient-fhir-utils.ts"
778
2315
  }
779
2316
  },
2317
+ {
2318
+ "kind": "js",
2319
+ "name": "getPatientConditionsWithCode",
2320
+ "declaration": {
2321
+ "name": "getPatientConditionsWithCode",
2322
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2323
+ }
2324
+ },
2325
+ {
2326
+ "kind": "js",
2327
+ "name": "setPatientConditions",
2328
+ "declaration": {
2329
+ "name": "setPatientConditions",
2330
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2331
+ }
2332
+ },
780
2333
  {
781
2334
  "kind": "js",
782
2335
  "name": "getPatientAllergies",
@@ -785,6 +2338,22 @@
785
2338
  "module": "src/shared/utils/patient-fhir-utils.ts"
786
2339
  }
787
2340
  },
2341
+ {
2342
+ "kind": "js",
2343
+ "name": "getPatientAllergiesWithCode",
2344
+ "declaration": {
2345
+ "name": "getPatientAllergiesWithCode",
2346
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2347
+ }
2348
+ },
2349
+ {
2350
+ "kind": "js",
2351
+ "name": "setPatientAllergies",
2352
+ "declaration": {
2353
+ "name": "setPatientAllergies",
2354
+ "module": "src/shared/utils/patient-fhir-utils.ts"
2355
+ }
2356
+ },
788
2357
  {
789
2358
  "kind": "js",
790
2359
  "name": "getPatientAdverseEvents",