@claudebernard/patient-profile-element 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +1763 -216
- package/dist/patient-profile.d.ts +9 -0
- package/dist/patient-profile.es.js +1386 -67
- package/package.json +7 -5
|
@@ -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:
|
|
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
|
|
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:
|
|
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",
|
|
@@ -138,6 +187,46 @@
|
|
|
138
187
|
{
|
|
139
188
|
"kind": "method",
|
|
140
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
|
+
}
|
|
141
230
|
}
|
|
142
231
|
],
|
|
143
232
|
"attributes": [
|
|
@@ -155,6 +244,21 @@
|
|
|
155
244
|
},
|
|
156
245
|
"default": "true",
|
|
157
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"
|
|
158
262
|
}
|
|
159
263
|
],
|
|
160
264
|
"superclass": {
|
|
@@ -186,188 +290,1472 @@
|
|
|
186
290
|
},
|
|
187
291
|
{
|
|
188
292
|
"kind": "javascript-module",
|
|
189
|
-
"path": "src/
|
|
293
|
+
"path": "src/patient-profile/patient-profile-edition/patient-profile-edition.stories.ts",
|
|
190
294
|
"declarations": [
|
|
191
295
|
{
|
|
192
296
|
"kind": "variable",
|
|
193
|
-
"name": "
|
|
194
|
-
"type": {
|
|
195
|
-
"text": "string[]"
|
|
196
|
-
},
|
|
197
|
-
"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]"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"kind": "variable",
|
|
201
|
-
"name": "acceptedLoincCodesForRenalGFR",
|
|
297
|
+
"name": "meta",
|
|
202
298
|
"type": {
|
|
203
|
-
"text": "
|
|
299
|
+
"text": "Meta<PatientProfileEdition>"
|
|
204
300
|
},
|
|
205
|
-
"default": "
|
|
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}"
|
|
206
302
|
},
|
|
207
303
|
{
|
|
208
304
|
"kind": "variable",
|
|
209
|
-
"name": "
|
|
305
|
+
"name": "Base",
|
|
210
306
|
"type": {
|
|
211
|
-
"text": "
|
|
307
|
+
"text": "Story"
|
|
212
308
|
},
|
|
213
|
-
"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}"
|
|
214
310
|
}
|
|
215
311
|
],
|
|
216
312
|
"exports": [
|
|
217
313
|
{
|
|
218
314
|
"kind": "js",
|
|
219
|
-
"name": "
|
|
220
|
-
"declaration": {
|
|
221
|
-
"name": "acceptedLoincCodesForRenalClearance",
|
|
222
|
-
"module": "src/shared/constants/loinc.ts"
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"kind": "js",
|
|
227
|
-
"name": "acceptedLoincCodesForRenalGFR",
|
|
315
|
+
"name": "default",
|
|
228
316
|
"declaration": {
|
|
229
|
-
"name": "
|
|
230
|
-
"module": "src/
|
|
317
|
+
"name": "meta",
|
|
318
|
+
"module": "src/patient-profile/patient-profile-edition/patient-profile-edition.stories.ts"
|
|
231
319
|
}
|
|
232
320
|
},
|
|
233
321
|
{
|
|
234
322
|
"kind": "js",
|
|
235
|
-
"name": "
|
|
236
|
-
"declaration": {
|
|
237
|
-
"name": "acceptedLoincCodesForRenalGFRPerBSA",
|
|
238
|
-
"module": "src/shared/constants/loinc.ts"
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
]
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"kind": "javascript-module",
|
|
245
|
-
"path": "src/shared/constants/settings.ts",
|
|
246
|
-
"declarations": [
|
|
247
|
-
{
|
|
248
|
-
"kind": "variable",
|
|
249
|
-
"name": "PREFIX",
|
|
250
|
-
"type": {
|
|
251
|
-
"text": "string"
|
|
252
|
-
},
|
|
253
|
-
"default": "\"claudebernard\""
|
|
254
|
-
}
|
|
255
|
-
],
|
|
256
|
-
"exports": [
|
|
257
|
-
{
|
|
258
|
-
"kind": "js",
|
|
259
|
-
"name": "PREFIX",
|
|
260
|
-
"declaration": {
|
|
261
|
-
"name": "PREFIX",
|
|
262
|
-
"module": "src/shared/constants/settings.ts"
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
]
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"kind": "javascript-module",
|
|
269
|
-
"path": "src/shared/interfaces/patient.ts",
|
|
270
|
-
"declarations": [],
|
|
271
|
-
"exports": []
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"kind": "javascript-module",
|
|
275
|
-
"path": "src/shared/mocks/patient-profile.mock.ts",
|
|
276
|
-
"declarations": [
|
|
277
|
-
{
|
|
278
|
-
"kind": "variable",
|
|
279
|
-
"name": "patientComplete",
|
|
280
|
-
"type": {
|
|
281
|
-
"text": "Bundle"
|
|
282
|
-
},
|
|
283
|
-
"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-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}"
|
|
284
|
-
}
|
|
285
|
-
],
|
|
286
|
-
"exports": [
|
|
287
|
-
{
|
|
288
|
-
"kind": "js",
|
|
289
|
-
"name": "patientComplete",
|
|
323
|
+
"name": "Base",
|
|
290
324
|
"declaration": {
|
|
291
|
-
"name": "
|
|
292
|
-
"module": "src/
|
|
325
|
+
"name": "Base",
|
|
326
|
+
"module": "src/patient-profile/patient-profile-edition/patient-profile-edition.stories.ts"
|
|
293
327
|
}
|
|
294
328
|
}
|
|
295
329
|
]
|
|
296
330
|
},
|
|
297
331
|
{
|
|
298
332
|
"kind": "javascript-module",
|
|
299
|
-
"path": "src/
|
|
333
|
+
"path": "src/patient-profile/patient-profile-edition/patient-profile-edition.ts",
|
|
300
334
|
"declarations": [
|
|
301
335
|
{
|
|
302
|
-
"kind": "
|
|
303
|
-
"
|
|
304
|
-
"
|
|
305
|
-
|
|
306
|
-
"text": ""
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"parameters": [
|
|
336
|
+
"kind": "class",
|
|
337
|
+
"description": "",
|
|
338
|
+
"name": "PatientProfileEdition",
|
|
339
|
+
"members": [
|
|
310
340
|
{
|
|
311
|
-
"
|
|
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",
|
|
312
367
|
"type": {
|
|
313
368
|
"text": "number"
|
|
314
369
|
},
|
|
315
|
-
"
|
|
370
|
+
"default": "0"
|
|
316
371
|
},
|
|
317
372
|
{
|
|
318
|
-
"
|
|
373
|
+
"kind": "field",
|
|
374
|
+
"name": "patientUnitAge",
|
|
375
|
+
"type": {
|
|
376
|
+
"text": "string"
|
|
377
|
+
},
|
|
378
|
+
"default": "\"ans\""
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"kind": "field",
|
|
382
|
+
"name": "patientWeight",
|
|
319
383
|
"type": {
|
|
320
384
|
"text": "number"
|
|
321
385
|
},
|
|
322
|
-
"
|
|
323
|
-
}
|
|
324
|
-
],
|
|
325
|
-
"description": "Calcule l'IMC à partir du poids et de la taille"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"kind": "function",
|
|
329
|
-
"name": "getPatientGender",
|
|
330
|
-
"return": {
|
|
331
|
-
"type": {
|
|
332
|
-
"text": ""
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
"parameters": [
|
|
386
|
+
"default": "0"
|
|
387
|
+
},
|
|
336
388
|
{
|
|
337
|
-
"
|
|
389
|
+
"kind": "field",
|
|
390
|
+
"name": "patientHeight",
|
|
338
391
|
"type": {
|
|
339
|
-
"text": "
|
|
392
|
+
"text": "number"
|
|
340
393
|
},
|
|
341
|
-
"
|
|
342
|
-
}
|
|
343
|
-
],
|
|
344
|
-
"description": "Extrait le sexe du patient FHIR"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"kind": "function",
|
|
348
|
-
"name": "getPatientName",
|
|
349
|
-
"return": {
|
|
350
|
-
"type": {
|
|
351
|
-
"text": ""
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
"parameters": [
|
|
394
|
+
"default": "0"
|
|
395
|
+
},
|
|
355
396
|
{
|
|
356
|
-
"
|
|
397
|
+
"kind": "field",
|
|
398
|
+
"name": "creatinineByMg",
|
|
357
399
|
"type": {
|
|
358
|
-
"text": "
|
|
400
|
+
"text": "number"
|
|
359
401
|
},
|
|
360
|
-
"
|
|
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/constants/edition-options.ts",
|
|
962
|
+
"declarations": [
|
|
963
|
+
{
|
|
964
|
+
"kind": "variable",
|
|
965
|
+
"name": "sexOptions",
|
|
966
|
+
"type": {
|
|
967
|
+
"text": "{ value: string, label: string }[]"
|
|
968
|
+
},
|
|
969
|
+
"default": "[\n { value: \"male\", label: \"Masculin\" },\n { value: \"female\", label: \"Féminin\" },\n { value: \"unknown\", label: \"Inconnu\" },\n]"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"kind": "variable",
|
|
973
|
+
"name": "hepaticStadeOptions",
|
|
974
|
+
"type": {
|
|
975
|
+
"text": "{ value: string, label: string }[]"
|
|
976
|
+
},
|
|
977
|
+
"default": "[\n { value: \"A\", label: \"Stade A\" },\n { value: \"B\", label: \"Stade B\" },\n { value: \"C\", label: \"Stade C\" },\n]"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"kind": "variable",
|
|
981
|
+
"name": "ageOptions",
|
|
982
|
+
"type": {
|
|
983
|
+
"text": "{ value: string, label: string }[]"
|
|
984
|
+
},
|
|
985
|
+
"default": "[\n { value: \"ans\", label: \"Ans\" },\n { value: \"mois\", label: \"Mois\" },\n]"
|
|
986
|
+
}
|
|
987
|
+
],
|
|
988
|
+
"exports": [
|
|
989
|
+
{
|
|
990
|
+
"kind": "js",
|
|
991
|
+
"name": "sexOptions",
|
|
992
|
+
"declaration": {
|
|
993
|
+
"name": "sexOptions",
|
|
994
|
+
"module": "src/shared/constants/edition-options.ts"
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"kind": "js",
|
|
999
|
+
"name": "hepaticStadeOptions",
|
|
1000
|
+
"declaration": {
|
|
1001
|
+
"name": "hepaticStadeOptions",
|
|
1002
|
+
"module": "src/shared/constants/edition-options.ts"
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"kind": "js",
|
|
1007
|
+
"name": "ageOptions",
|
|
1008
|
+
"declaration": {
|
|
1009
|
+
"name": "ageOptions",
|
|
1010
|
+
"module": "src/shared/constants/edition-options.ts"
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
]
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"kind": "javascript-module",
|
|
1017
|
+
"path": "src/shared/constants/loinc.ts",
|
|
1018
|
+
"declarations": [
|
|
1019
|
+
{
|
|
1020
|
+
"kind": "variable",
|
|
1021
|
+
"name": "acceptedLoincCodesForRenalClearance",
|
|
1022
|
+
"type": {
|
|
1023
|
+
"text": "string[]"
|
|
1024
|
+
},
|
|
1025
|
+
"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]"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"kind": "variable",
|
|
1029
|
+
"name": "acceptedLoincCodesForRenalGFRPerBSA",
|
|
1030
|
+
"type": {
|
|
1031
|
+
"text": "string[]"
|
|
1032
|
+
},
|
|
1033
|
+
"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]"
|
|
1034
|
+
}
|
|
1035
|
+
],
|
|
1036
|
+
"exports": [
|
|
1037
|
+
{
|
|
1038
|
+
"kind": "js",
|
|
1039
|
+
"name": "acceptedLoincCodesForRenalClearance",
|
|
1040
|
+
"declaration": {
|
|
1041
|
+
"name": "acceptedLoincCodesForRenalClearance",
|
|
1042
|
+
"module": "src/shared/constants/loinc.ts"
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"kind": "js",
|
|
1047
|
+
"name": "acceptedLoincCodesForRenalGFRPerBSA",
|
|
1048
|
+
"declaration": {
|
|
1049
|
+
"name": "acceptedLoincCodesForRenalGFRPerBSA",
|
|
1050
|
+
"module": "src/shared/constants/loinc.ts"
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
]
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"kind": "javascript-module",
|
|
1057
|
+
"path": "src/shared/constants/settings.ts",
|
|
1058
|
+
"declarations": [
|
|
1059
|
+
{
|
|
1060
|
+
"kind": "variable",
|
|
1061
|
+
"name": "PREFIX",
|
|
1062
|
+
"type": {
|
|
1063
|
+
"text": "string"
|
|
1064
|
+
},
|
|
1065
|
+
"default": "\"claudebernard\""
|
|
1066
|
+
}
|
|
1067
|
+
],
|
|
1068
|
+
"exports": [
|
|
1069
|
+
{
|
|
1070
|
+
"kind": "js",
|
|
1071
|
+
"name": "PREFIX",
|
|
1072
|
+
"declaration": {
|
|
1073
|
+
"name": "PREFIX",
|
|
1074
|
+
"module": "src/shared/constants/settings.ts"
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
]
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"kind": "javascript-module",
|
|
1081
|
+
"path": "src/shared/constants/snomed.ts",
|
|
1082
|
+
"declarations": [
|
|
1083
|
+
{
|
|
1084
|
+
"kind": "variable",
|
|
1085
|
+
"name": "snomedToChildPughStadeMap",
|
|
1086
|
+
"type": {
|
|
1087
|
+
"text": "object"
|
|
1088
|
+
},
|
|
1089
|
+
"default": "{\n \"710065009\": \"Stade A\",\n \"710066005\": \"Stade B\",\n \"710067001\": \"Stade C\",\n}"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"kind": "variable",
|
|
1093
|
+
"name": "childPughStadeToSnomedMap",
|
|
1094
|
+
"type": {
|
|
1095
|
+
"text": "object"
|
|
1096
|
+
},
|
|
1097
|
+
"default": "{\n \"A\": \"710065009\",\n \"B\": \"710066005\",\n \"C\": \"710067001\",\n}"
|
|
1098
|
+
}
|
|
1099
|
+
],
|
|
1100
|
+
"exports": [
|
|
1101
|
+
{
|
|
1102
|
+
"kind": "js",
|
|
1103
|
+
"name": "snomedToChildPughStadeMap",
|
|
1104
|
+
"declaration": {
|
|
1105
|
+
"name": "snomedToChildPughStadeMap",
|
|
1106
|
+
"module": "src/shared/constants/snomed.ts"
|
|
1107
|
+
}
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"kind": "js",
|
|
1111
|
+
"name": "childPughStadeToSnomedMap",
|
|
1112
|
+
"declaration": {
|
|
1113
|
+
"name": "childPughStadeToSnomedMap",
|
|
1114
|
+
"module": "src/shared/constants/snomed.ts"
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
]
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"kind": "javascript-module",
|
|
1121
|
+
"path": "src/shared/mocks/pathologies.mock.ts",
|
|
1122
|
+
"declarations": [
|
|
1123
|
+
{
|
|
1124
|
+
"kind": "variable",
|
|
1125
|
+
"name": "mockPathologies",
|
|
1126
|
+
"type": {
|
|
1127
|
+
"text": "object"
|
|
1128
|
+
},
|
|
1129
|
+
"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ès de l’intestin\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Q55.0\",\n \"label\": \"Absence (congenitale) et aplasie du testicule\",\n \"labelHtml\": \"Absence (congé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égatif à l’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ésie et sténose congénitales d’autres localisations précisées de l’intestin grêle\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Q41\",\n \"label\": \"Absence. atresie et stenose congenitales de l'intestin grele\",\n \"labelHtml\": \"Absence, atrésie et sténose congénitales de l’intestin grê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ésie et sténose congénitales de l’intestin grêle, sans pré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ète sucré 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ète sucré 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élération de la vitesse de sé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élération de la vitesse de sédimentation et anomalies de la viscosité plasmatique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000012730\",\n \"label\": \"Acceleration du transit intestinal\",\n \"labelHtml\": \"Accélé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’aéronef à moteur dans lequel un occupant est blessé\",\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’aéronef sans moteur dans lequel un occupant est blessé\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"G45\",\n \"label\": \"Accidents ischemiques cerebraux transitoires et syndromes apparentes\",\n \"labelHtml\": \"Accidents ischémiques cérébraux transitoires et syndromes apparenté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édicaux et chirurgicaux considérés comme cause externe de séquelles\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"F52.7\",\n \"label\": \"Activite sexuelle excessive\",\n \"labelHtml\": \"Activité sexuelle excessive\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000007838\",\n \"label\": \"Activite sportive intense\",\n \"labelHtml\": \"Activité sportive intense\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"K56.5\",\n \"label\": \"Adherences de l'intestin (brides). avec occlusion\",\n \"labelHtml\": \"Adhérences de l’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’eau et d’électrolytes avec une faible quantité d’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’héparine au cours des 48h précédant l’AVC avec un temps de thromboplastine > limite supé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étabolites antitumoraux\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D57.2\",\n \"label\": \"Affections a hematies falciformes [drepanocytaires] heterozygotes doubles\",\n \"labelHtml\": \"Affections à hématies falciformes [drépanocytaires] hété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’autres diabètes sucrés précisé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ète sucré 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ète sucré 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ète sucré insulinodé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ète sucré, sans pré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’épididyme au cours de maladies classé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éférent\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000035151\",\n \"label\": \"Agressivite persistante dans le trouble des conduites\",\n \"labelHtml\": \"Agressivité 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’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’autres parties de la tête\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"S08\",\n \"label\": \"Amputation traumatique d'une partie de la tete\",\n \"labelHtml\": \"Amputation traumatique d’une partie de la tête\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"G12\",\n \"label\": \"Amyotrophie spinale et syndromes apparentes\",\n \"labelHtml\": \"Amyotrophie spinale et syndromes apparentés\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000034195\",\n \"label\": \"Analgesie de courte duree des actes douloureux\",\n \"labelHtml\": \"Analgésie de courte duré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émie liée aux maladies inflammatoires chroniques de l’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émie par carence en acide folique due aux antimétabolites tumoraux\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D46.2\",\n \"label\": \"Anemie refractaire avec exces de blastes [AREB]\",\n \"labelHtml\": \"Anémie réfractaire avec excè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émie réfractaire avec excè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émie réfractaire avec excè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émie réfractaire avec sidé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émie réfractaire sans sidéroblastes en couronne, ainsi précisée\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000035332\",\n \"label\": \"Anesthesie des petites interventions\",\n \"labelHtml\": \"Anesthésie des petites interventions\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"F44.6\",\n \"label\": \"Anesthesie dissociative et atteintes sensorielles\",\n \"labelHtml\": \"Anesthésie dissociative et atteintes sensorielles\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000029304\",\n \"label\": \"Anesthesie locale des extremites\",\n \"labelHtml\": \"Anesthésie locale des extrémité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évrisme au cours d’autres artérites à cellules géante\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000016647\",\n \"label\": \"Angio oedeme intestinal\",\n \"labelHtml\": \"Angio-oedème intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"K55.3\",\n \"label\": \"Angiodysplasie de l'intestin grele\",\n \"labelHtml\": \"Angiodysplasie de l’intestin grê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ériphérique au cours du diabète sucré de type 2 \",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"B81.3\",\n \"label\": \"Angiostrongyloidose [angiostrongylose] intestinale\",\n \"labelHtml\": \"Angiostrongyloï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é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étabolisme des hydrates de carbone, sans pré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éné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â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éralocorticoïdes ayant provoqué des effets indésirables au cours de leur usage thé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é des effets indésirables au cours de leur usage thérap\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000007843\",\n \"label\": \"Antecedent d'anastomose intestinale\",\n \"labelHtml\": \"Antécédent d’anastomose intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000007281\",\n \"label\": \"Antecedent d'hepatite severe medicamenteuse\",\n \"labelHtml\": \"Antécédent d’hépatite sévère médicamenteuse\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000011646\",\n \"label\": \"Antecedent d'occlusion gastro intestinale\",\n \"labelHtml\": \"Antécédent d’occlusion gastro-intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000008470\",\n \"label\": \"Antecedent d'ulcere gastro intestinal\",\n \"labelHtml\": \"Antécédent d’ulcère gastro-intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000017966\",\n \"label\": \"Antecedent de colite secondaire aux antibiotiques\",\n \"labelHtml\": \"Antécédent de colite secondaire aux antibiotiques\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000022549\",\n \"label\": \"Antecedent de perforation gastro intestinale\",\n \"labelHtml\": \"Antécédent de perforation gastro-intestinale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000021331\",\n \"label\": \"Antecedent de photosensibilisation par des fibrates\",\n \"labelHtml\": \"Antécé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écédent de ré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écédent de résection chirurgicale de l’intestin grêle\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000011898\",\n \"label\": \"Antecedent de resection intestinale chez le mucoviscidosique\",\n \"labelHtml\": \"Antécédent de résection intestinale chez le mucoviscidosique\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000016978\",\n \"label\": \"Antecedent de saignement gastro intestinal\",\n \"labelHtml\": \"Antécé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écédent de saignement ou d’ulcère gastrointestinal au cours d’un traitement par AINS\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000031320\",\n \"label\": \"Antecedent de thrombopenie sous pentosane polysulfate sodique\",\n \"labelHtml\": \"Antécédent de thrombopénie sous pentosane polysulfate sodique\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000012561\",\n \"label\": \"Antecedent de torsades de pointes\",\n \"labelHtml\": \"Antécédent de torsades de pointes\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000000717\",\n \"label\": \"Antecedent familial d'hepatite severe\",\n \"labelHtml\": \"Antécédent familial d’hépatite sévère\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000012810\",\n \"label\": \"Antecedent gastro intestinal\",\n \"labelHtml\": \"Antécédent gastro-intestinal\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000023815\",\n \"label\": \"Antecedent pulmonaire associe aux agonistes dopaminergiques\",\n \"labelHtml\": \"Antécédent pulmonaire associé aux agonistes dopaminergiques\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"0000024346\",\n \"label\": \"Antecedents d'infections recurrentes\",\n \"labelHtml\": \"Antécédents d’infections ré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écédents familiaux d’autres incapacités et maladies chroniques conduisant à l’invalidité, non classé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écédents familiaux d’autres tumeurs des tissus lymphoïde, hématopoïétique et apparenté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écédents familiaux de certaines incapacités et maladies chroniques conduisant à l’invalidité\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"Z83.3\",\n \"label\": \"Antecedents familiaux de diabete sucre\",\n \"labelHtml\": \"Antécédents familiaux de diabète sucré\",\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écédents personnels d’autres tumeurs malignes des tissus lymphoïde, hématopoïétique et apparenté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éaires neutrophiles (ANCA) augmenté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élateurs ayant provoqué des effets indésirables lors de leur usage thé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étabolites tumoraux ayant provoqué des effets indésirables au cours de leur usage thérapeutique\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"0000026742\",\n \"label\": \"Anxiete sociale\",\n \"labelHtml\": \"Anxiété sociale\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"F93.2\",\n \"label\": \"Anxiete sociale de l'enfance\",\n \"labelHtml\": \"Anxiété sociale de l’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’autres artérites à cellules gé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é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édullaire due à vitamine B12, acide folique et autres préparations prescrites dans les anémies mégaloblastiques\",\n \"subType\": \"CIM10\",\n },\n {\n \"code\": \"D61.1Y43.1\",\n \"label\": \"Aplasie medullaire due aux antimetabolites tumoraux\",\n \"labelHtml\": \"Aplasie médullaire due aux antimé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és en chirurgie générale et esthétique, associés à 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}"
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
"exports": [
|
|
1133
|
+
{
|
|
1134
|
+
"kind": "js",
|
|
1135
|
+
"name": "mockPathologies",
|
|
1136
|
+
"declaration": {
|
|
1137
|
+
"name": "mockPathologies",
|
|
1138
|
+
"module": "src/shared/mocks/pathologies.mock.ts"
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
]
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"kind": "javascript-module",
|
|
1145
|
+
"path": "src/shared/mocks/patient-profile.mock.ts",
|
|
1146
|
+
"declarations": [
|
|
1147
|
+
{
|
|
1148
|
+
"kind": "variable",
|
|
1149
|
+
"name": "patientComplete",
|
|
1150
|
+
"type": {
|
|
1151
|
+
"text": "Bundle"
|
|
1152
|
+
},
|
|
1153
|
+
"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}"
|
|
1154
|
+
}
|
|
1155
|
+
],
|
|
1156
|
+
"exports": [
|
|
1157
|
+
{
|
|
1158
|
+
"kind": "js",
|
|
1159
|
+
"name": "patientComplete",
|
|
1160
|
+
"declaration": {
|
|
1161
|
+
"name": "patientComplete",
|
|
1162
|
+
"module": "src/shared/mocks/patient-profile.mock.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
|
+
}
|
|
361
1750
|
}
|
|
362
|
-
]
|
|
363
|
-
"description": "Extrait le nom du patient FHIR"
|
|
1751
|
+
]
|
|
364
1752
|
},
|
|
365
1753
|
{
|
|
366
1754
|
"kind": "function",
|
|
367
|
-
"name": "
|
|
1755
|
+
"name": "getCreatinine",
|
|
368
1756
|
"return": {
|
|
369
1757
|
"type": {
|
|
370
|
-
"text": ""
|
|
1758
|
+
"text": "Quantity[]"
|
|
371
1759
|
}
|
|
372
1760
|
},
|
|
373
1761
|
"parameters": [
|
|
@@ -375,56 +1763,62 @@
|
|
|
375
1763
|
"name": "bundle",
|
|
376
1764
|
"type": {
|
|
377
1765
|
"text": "Bundle | undefined"
|
|
378
|
-
}
|
|
379
|
-
"description": "Bundle Patient FHIR"
|
|
1766
|
+
}
|
|
380
1767
|
}
|
|
381
|
-
]
|
|
382
|
-
"description": "Calcule l'âge du patient à partir de sa date de naissance"
|
|
1768
|
+
]
|
|
383
1769
|
},
|
|
384
1770
|
{
|
|
385
1771
|
"kind": "function",
|
|
386
|
-
"name": "
|
|
1772
|
+
"name": "setCreatinineBymgL",
|
|
387
1773
|
"return": {
|
|
388
1774
|
"type": {
|
|
389
|
-
"text": ""
|
|
1775
|
+
"text": "void"
|
|
390
1776
|
}
|
|
391
1777
|
},
|
|
392
1778
|
"parameters": [
|
|
393
1779
|
{
|
|
394
1780
|
"name": "bundle",
|
|
395
1781
|
"type": {
|
|
396
|
-
"text": "Bundle
|
|
397
|
-
}
|
|
398
|
-
|
|
1782
|
+
"text": "Bundle"
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"name": "mgL",
|
|
1787
|
+
"type": {
|
|
1788
|
+
"text": "number"
|
|
1789
|
+
}
|
|
399
1790
|
}
|
|
400
|
-
]
|
|
401
|
-
"description": "Extrait le poids du patient depuis la ressource Observation concernée"
|
|
1791
|
+
]
|
|
402
1792
|
},
|
|
403
1793
|
{
|
|
404
1794
|
"kind": "function",
|
|
405
|
-
"name": "
|
|
1795
|
+
"name": "setCreatinineByUmolL",
|
|
406
1796
|
"return": {
|
|
407
1797
|
"type": {
|
|
408
|
-
"text": ""
|
|
1798
|
+
"text": "void"
|
|
409
1799
|
}
|
|
410
1800
|
},
|
|
411
1801
|
"parameters": [
|
|
412
1802
|
{
|
|
413
1803
|
"name": "bundle",
|
|
414
1804
|
"type": {
|
|
415
|
-
"text": "Bundle
|
|
416
|
-
}
|
|
417
|
-
|
|
1805
|
+
"text": "Bundle"
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"name": "umolL",
|
|
1810
|
+
"type": {
|
|
1811
|
+
"text": "number"
|
|
1812
|
+
}
|
|
418
1813
|
}
|
|
419
|
-
]
|
|
420
|
-
"description": "Extrait le poids du patient (avec l'unité correspondante) depuis la ressource Observation concernée"
|
|
1814
|
+
]
|
|
421
1815
|
},
|
|
422
1816
|
{
|
|
423
1817
|
"kind": "function",
|
|
424
|
-
"name": "
|
|
1818
|
+
"name": "getPatientHepaticInsufficiencyScore",
|
|
425
1819
|
"return": {
|
|
426
1820
|
"type": {
|
|
427
|
-
"text": ""
|
|
1821
|
+
"text": "number | null"
|
|
428
1822
|
}
|
|
429
1823
|
},
|
|
430
1824
|
"parameters": [
|
|
@@ -432,18 +1826,16 @@
|
|
|
432
1826
|
"name": "bundle",
|
|
433
1827
|
"type": {
|
|
434
1828
|
"text": "Bundle | undefined"
|
|
435
|
-
}
|
|
436
|
-
"description": "Bundle Patient FHIR"
|
|
1829
|
+
}
|
|
437
1830
|
}
|
|
438
|
-
]
|
|
439
|
-
"description": "Extrait la taille du patient depuis la ressource Observation concernée"
|
|
1831
|
+
]
|
|
440
1832
|
},
|
|
441
1833
|
{
|
|
442
1834
|
"kind": "function",
|
|
443
|
-
"name": "
|
|
1835
|
+
"name": "getPatientHepaticInsufficiencyStade",
|
|
444
1836
|
"return": {
|
|
445
1837
|
"type": {
|
|
446
|
-
"text": ""
|
|
1838
|
+
"text": "string"
|
|
447
1839
|
}
|
|
448
1840
|
},
|
|
449
1841
|
"parameters": [
|
|
@@ -451,34 +1843,44 @@
|
|
|
451
1843
|
"name": "bundle",
|
|
452
1844
|
"type": {
|
|
453
1845
|
"text": "Bundle | undefined"
|
|
454
|
-
}
|
|
455
|
-
"description": "Bundle Patient FHIR"
|
|
1846
|
+
}
|
|
456
1847
|
}
|
|
457
|
-
]
|
|
458
|
-
"description": "Extrait la taille du patient (avec l'unité correspondante) depuis la ressource Observation concernée"
|
|
1848
|
+
]
|
|
459
1849
|
},
|
|
460
1850
|
{
|
|
461
1851
|
"kind": "function",
|
|
462
|
-
"name": "
|
|
1852
|
+
"name": "setPatientHepaticInsufficiencyStatus",
|
|
463
1853
|
"return": {
|
|
464
1854
|
"type": {
|
|
465
|
-
"text": ""
|
|
1855
|
+
"text": "void"
|
|
466
1856
|
}
|
|
467
1857
|
},
|
|
468
1858
|
"parameters": [
|
|
469
1859
|
{
|
|
470
1860
|
"name": "bundle",
|
|
471
1861
|
"type": {
|
|
472
|
-
"text": "Bundle
|
|
473
|
-
}
|
|
474
|
-
|
|
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
|
+
}
|
|
475
1878
|
}
|
|
476
|
-
]
|
|
477
|
-
"description": "Extrait le statut de grossesse du patient depuis la ressource Observation ou Condition concernée"
|
|
1879
|
+
]
|
|
478
1880
|
},
|
|
479
1881
|
{
|
|
480
1882
|
"kind": "function",
|
|
481
|
-
"name": "
|
|
1883
|
+
"name": "getPatientConditions",
|
|
482
1884
|
"return": {
|
|
483
1885
|
"type": {
|
|
484
1886
|
"text": ""
|
|
@@ -486,18 +1888,18 @@
|
|
|
486
1888
|
},
|
|
487
1889
|
"parameters": [
|
|
488
1890
|
{
|
|
489
|
-
"name": "
|
|
1891
|
+
"name": "patient",
|
|
490
1892
|
"type": {
|
|
491
1893
|
"text": "Bundle | undefined"
|
|
492
1894
|
},
|
|
493
1895
|
"description": "Bundle Patient FHIR"
|
|
494
1896
|
}
|
|
495
1897
|
],
|
|
496
|
-
"description": "Extrait
|
|
1898
|
+
"description": "Extrait les conditions médicales/terrains du patient depuis les extensions FHIR"
|
|
497
1899
|
},
|
|
498
1900
|
{
|
|
499
1901
|
"kind": "function",
|
|
500
|
-
"name": "
|
|
1902
|
+
"name": "getPatientConditionsWithCode",
|
|
501
1903
|
"return": {
|
|
502
1904
|
"type": {
|
|
503
1905
|
"text": ""
|
|
@@ -505,72 +1907,63 @@
|
|
|
505
1907
|
},
|
|
506
1908
|
"parameters": [
|
|
507
1909
|
{
|
|
508
|
-
"name": "
|
|
1910
|
+
"name": "patient",
|
|
509
1911
|
"type": {
|
|
510
1912
|
"text": "Bundle | undefined"
|
|
511
1913
|
},
|
|
512
1914
|
"description": "Bundle Patient FHIR"
|
|
513
1915
|
}
|
|
514
1916
|
],
|
|
515
|
-
"description": "Extrait
|
|
1917
|
+
"description": "Extrait les conditions médicales/terrains du patient et leurs codes respectifs depuis les extensions FHIR"
|
|
516
1918
|
},
|
|
517
1919
|
{
|
|
518
1920
|
"kind": "function",
|
|
519
|
-
"name": "
|
|
1921
|
+
"name": "setPatientConditions",
|
|
520
1922
|
"return": {
|
|
521
1923
|
"type": {
|
|
522
|
-
"text": "
|
|
1924
|
+
"text": "void"
|
|
523
1925
|
}
|
|
524
1926
|
},
|
|
525
1927
|
"parameters": [
|
|
526
1928
|
{
|
|
527
|
-
"name": "
|
|
1929
|
+
"name": "patient",
|
|
528
1930
|
"type": {
|
|
529
|
-
"text": "Bundle
|
|
1931
|
+
"text": "Bundle"
|
|
530
1932
|
}
|
|
531
|
-
}
|
|
532
|
-
]
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"kind": "function",
|
|
536
|
-
"name": "getCreatinine",
|
|
537
|
-
"return": {
|
|
538
|
-
"type": {
|
|
539
|
-
"text": "Quantity[]"
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
"parameters": [
|
|
1933
|
+
},
|
|
543
1934
|
{
|
|
544
|
-
"name": "
|
|
1935
|
+
"name": "conditions",
|
|
545
1936
|
"type": {
|
|
546
|
-
"text": "
|
|
1937
|
+
"text": "ISelectOption[]"
|
|
547
1938
|
}
|
|
548
1939
|
}
|
|
549
1940
|
]
|
|
550
1941
|
},
|
|
551
1942
|
{
|
|
552
1943
|
"kind": "function",
|
|
553
|
-
"name": "
|
|
1944
|
+
"name": "getPatientAllergies",
|
|
554
1945
|
"return": {
|
|
555
1946
|
"type": {
|
|
556
|
-
"text": "
|
|
1947
|
+
"text": ""
|
|
557
1948
|
}
|
|
558
1949
|
},
|
|
559
1950
|
"parameters": [
|
|
560
1951
|
{
|
|
561
|
-
"name": "
|
|
1952
|
+
"name": "patient",
|
|
562
1953
|
"type": {
|
|
563
1954
|
"text": "Bundle | undefined"
|
|
564
|
-
}
|
|
1955
|
+
},
|
|
1956
|
+
"description": "Bundle Patient FHIR"
|
|
565
1957
|
}
|
|
566
|
-
]
|
|
1958
|
+
],
|
|
1959
|
+
"description": "Extrait les allergies du patient depuis les extensions FHIR"
|
|
567
1960
|
},
|
|
568
1961
|
{
|
|
569
1962
|
"kind": "function",
|
|
570
|
-
"name": "
|
|
1963
|
+
"name": "getPatientAllergiesWithCode",
|
|
571
1964
|
"return": {
|
|
572
1965
|
"type": {
|
|
573
|
-
"text": ""
|
|
1966
|
+
"text": "ISelectOption[]"
|
|
574
1967
|
}
|
|
575
1968
|
},
|
|
576
1969
|
"parameters": [
|
|
@@ -578,30 +1971,32 @@
|
|
|
578
1971
|
"name": "patient",
|
|
579
1972
|
"type": {
|
|
580
1973
|
"text": "Bundle | undefined"
|
|
581
|
-
}
|
|
582
|
-
"description": "Bundle Patient FHIR"
|
|
1974
|
+
}
|
|
583
1975
|
}
|
|
584
|
-
]
|
|
585
|
-
"description": "Extrait les conditions médicales/terrains du patient depuis les extensions FHIR"
|
|
1976
|
+
]
|
|
586
1977
|
},
|
|
587
1978
|
{
|
|
588
1979
|
"kind": "function",
|
|
589
|
-
"name": "
|
|
1980
|
+
"name": "setPatientAllergies",
|
|
590
1981
|
"return": {
|
|
591
1982
|
"type": {
|
|
592
|
-
"text": ""
|
|
1983
|
+
"text": "void"
|
|
593
1984
|
}
|
|
594
1985
|
},
|
|
595
1986
|
"parameters": [
|
|
596
1987
|
{
|
|
597
1988
|
"name": "patient",
|
|
598
1989
|
"type": {
|
|
599
|
-
"text": "Bundle
|
|
600
|
-
}
|
|
601
|
-
|
|
1990
|
+
"text": "Bundle"
|
|
1991
|
+
}
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
"name": "allergies",
|
|
1995
|
+
"type": {
|
|
1996
|
+
"text": "ISelectOption[]"
|
|
1997
|
+
}
|
|
602
1998
|
}
|
|
603
|
-
]
|
|
604
|
-
"description": "Extrait les allergies du patient depuis les extensions FHIR"
|
|
1999
|
+
]
|
|
605
2000
|
},
|
|
606
2001
|
{
|
|
607
2002
|
"kind": "function",
|
|
@@ -695,6 +2090,14 @@
|
|
|
695
2090
|
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
696
2091
|
}
|
|
697
2092
|
},
|
|
2093
|
+
{
|
|
2094
|
+
"kind": "js",
|
|
2095
|
+
"name": "setPatientGender",
|
|
2096
|
+
"declaration": {
|
|
2097
|
+
"name": "setPatientGender",
|
|
2098
|
+
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
2099
|
+
}
|
|
2100
|
+
},
|
|
698
2101
|
{
|
|
699
2102
|
"kind": "js",
|
|
700
2103
|
"name": "getPatientName",
|
|
@@ -711,6 +2114,22 @@
|
|
|
711
2114
|
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
712
2115
|
}
|
|
713
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
|
+
},
|
|
714
2133
|
{
|
|
715
2134
|
"kind": "js",
|
|
716
2135
|
"name": "getPatientWeight",
|
|
@@ -727,6 +2146,14 @@
|
|
|
727
2146
|
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
728
2147
|
}
|
|
729
2148
|
},
|
|
2149
|
+
{
|
|
2150
|
+
"kind": "js",
|
|
2151
|
+
"name": "setPatientWeight",
|
|
2152
|
+
"declaration": {
|
|
2153
|
+
"name": "setPatientWeight",
|
|
2154
|
+
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
2155
|
+
}
|
|
2156
|
+
},
|
|
730
2157
|
{
|
|
731
2158
|
"kind": "js",
|
|
732
2159
|
"name": "getPatientHeight",
|
|
@@ -743,6 +2170,14 @@
|
|
|
743
2170
|
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
744
2171
|
}
|
|
745
2172
|
},
|
|
2173
|
+
{
|
|
2174
|
+
"kind": "js",
|
|
2175
|
+
"name": "setPatientHeight",
|
|
2176
|
+
"declaration": {
|
|
2177
|
+
"name": "setPatientHeight",
|
|
2178
|
+
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
2179
|
+
}
|
|
2180
|
+
},
|
|
746
2181
|
{
|
|
747
2182
|
"kind": "js",
|
|
748
2183
|
"name": "getPatientPregnancyStatus",
|
|
@@ -751,6 +2186,14 @@
|
|
|
751
2186
|
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
752
2187
|
}
|
|
753
2188
|
},
|
|
2189
|
+
{
|
|
2190
|
+
"kind": "js",
|
|
2191
|
+
"name": "setPatientPregnancyStatus",
|
|
2192
|
+
"declaration": {
|
|
2193
|
+
"name": "setPatientPregnancyStatus",
|
|
2194
|
+
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
754
2197
|
{
|
|
755
2198
|
"kind": "js",
|
|
756
2199
|
"name": "getPatientAmenorrheaStatus",
|
|
@@ -759,6 +2202,14 @@
|
|
|
759
2202
|
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
760
2203
|
}
|
|
761
2204
|
},
|
|
2205
|
+
{
|
|
2206
|
+
"kind": "js",
|
|
2207
|
+
"name": "setPatientAmenorrheaStatus",
|
|
2208
|
+
"declaration": {
|
|
2209
|
+
"name": "setPatientAmenorrheaStatus",
|
|
2210
|
+
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
2211
|
+
}
|
|
2212
|
+
},
|
|
762
2213
|
{
|
|
763
2214
|
"kind": "js",
|
|
764
2215
|
"name": "getPatientBreastfeedingStatus",
|
|
@@ -767,6 +2218,14 @@
|
|
|
767
2218
|
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
768
2219
|
}
|
|
769
2220
|
},
|
|
2221
|
+
{
|
|
2222
|
+
"kind": "js",
|
|
2223
|
+
"name": "setPatientBreastfeedingStatus",
|
|
2224
|
+
"declaration": {
|
|
2225
|
+
"name": "setPatientBreastfeedingStatus",
|
|
2226
|
+
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
2227
|
+
}
|
|
2228
|
+
},
|
|
770
2229
|
{
|
|
771
2230
|
"kind": "js",
|
|
772
2231
|
"name": "getPatientRenalInsufficiencyStatus",
|
|
@@ -775,6 +2234,30 @@
|
|
|
775
2234
|
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
776
2235
|
}
|
|
777
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
|
+
},
|
|
778
2261
|
{
|
|
779
2262
|
"kind": "js",
|
|
780
2263
|
"name": "getCreatinine",
|
|
@@ -785,9 +2268,41 @@
|
|
|
785
2268
|
},
|
|
786
2269
|
{
|
|
787
2270
|
"kind": "js",
|
|
788
|
-
"name": "
|
|
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",
|
|
789
2304
|
"declaration": {
|
|
790
|
-
"name": "
|
|
2305
|
+
"name": "setPatientHepaticInsufficiencyStatus",
|
|
791
2306
|
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
792
2307
|
}
|
|
793
2308
|
},
|
|
@@ -799,6 +2314,22 @@
|
|
|
799
2314
|
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
800
2315
|
}
|
|
801
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
|
+
},
|
|
802
2333
|
{
|
|
803
2334
|
"kind": "js",
|
|
804
2335
|
"name": "getPatientAllergies",
|
|
@@ -807,6 +2338,22 @@
|
|
|
807
2338
|
"module": "src/shared/utils/patient-fhir-utils.ts"
|
|
808
2339
|
}
|
|
809
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
|
+
},
|
|
810
2357
|
{
|
|
811
2358
|
"kind": "js",
|
|
812
2359
|
"name": "getPatientAdverseEvents",
|