@claudebernard/patient-profile-element 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +73 -63
- package/dist/patient-profile.d.ts +2 -0
- package/dist/patient-profile.es.js +37 -0
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"type": {
|
|
21
21
|
"text": "Story"
|
|
22
22
|
},
|
|
23
|
-
"default": "{\n args: {\n patientProfile: clonePatientProfile(),\n },\n play: async({ canvasElement, step }) => {\n const component = canvasElement.querySelector(\"bcb-patient-profile\") as HTMLElement | null;\n\n await step(\"Verify the patient ID information\", () => {\n const divName = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-name\\\"]\") as HTMLElement | null;\n expect(divName?.textContent).toContain(\"Marie Dupont\");\n\n const divGender = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-gender\\\"]\") as HTMLElement | null;\n expect(divGender?.textContent).toContain(\"Femme\");\n\n const divAge = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-age\\\"]\") as HTMLElement | null;\n expect(divAge?.textContent).toContain(\"
|
|
23
|
+
"default": "{\n args: {\n patientProfile: clonePatientProfile(),\n },\n play: async({ canvasElement, step }) => {\n const component = canvasElement.querySelector(\"bcb-patient-profile\") as HTMLElement | null;\n\n await step(\"Verify the patient ID information\", () => {\n const divName = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-name\\\"]\") as HTMLElement | null;\n expect(divName?.textContent).toContain(\"Marie Dupont\");\n\n const divGender = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-gender\\\"]\") as HTMLElement | null;\n expect(divGender?.textContent).toContain(\"Femme\");\n\n const divAge = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-age\\\"]\") as HTMLElement | null;\n expect(divAge?.textContent).toContain(\"42 ans\");\n });\n\n await step(\"Verify the patient physical information\", () => {\n const divHeight = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-height\\\"]\") as HTMLElement | null;\n const textHeight = divHeight?.textContent ?? \"\";\n expect(textHeight).toContain(\"Taille\");\n expect(textHeight).toContain(\"170\");\n expect(textHeight).toContain(\"cm\");\n\n const divWeight = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-weight\\\"]\") as HTMLElement | null;\n const textWeight = divWeight?.textContent ?? \"\";\n expect(textWeight).toContain(\"Poids\");\n expect(textWeight).toContain(\"84\");\n expect(textWeight).toContain(\"kg\");\n\n const divIMC = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"patient-IMC\\\"]\") as HTMLElement | null;\n expect(divIMC?.textContent).toContain(\"29.1\");\n });\n\n const divActions = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"action-buttons\\\"]\") as HTMLElement | null;\n const modifyButton = divActions?.querySelector(\"bcbd-button[data-test-id=\\\"modify-button\\\"]\") as HTMLElement | null;\n const visibleButton = divActions?.querySelector(\"bcbd-button[data-test-id=\\\"visible-button\\\"]\") as HTMLElement | null;\n\n await step(\"Verify the action buttons and more information section\", async() => {\n await expect(modifyButton).not.toBeNull();\n await expect(visibleButton).not.toBeNull();\n });\n\n const moreInfoDiv = component?.shadowRoot?.querySelector(\"div[data-test-id=\\\"more-information-section\\\"]\") as HTMLElement | null;\n\n await step(\"Verify the more information section is not visible\", () => {\n expect(moreInfoDiv?.className).not.toContain(\"active\");\n expect(moreInfoDiv).not.toBeVisible();\n });\n\n await step(\"Click on the more information button and verify the displayed information\", async() => {\n if (visibleButton) {\n await visibleButton.click();\n }\n expect(moreInfoDiv).toBeVisible();\n });\n\n // eslint-disable-next-line complexity\n await step(\"Verify the content of more information section\", () => {\n const pregnancyDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"pregnancy-section\\\"]\") as HTMLElement | null;\n expect(pregnancyDiv).toBeVisible();\n const textPregnancy = pregnancyDiv?.textContent ?? \"\";\n expect(textPregnancy).toContain(\"Oui - 20 semaine(s)\");\n\n const breastfeedingDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"breastfeeding-section\\\"]\") as HTMLElement | null;\n expect(breastfeedingDiv).toBeVisible();\n const textBreastfeeding = breastfeedingDiv?.textContent ?? \"\";\n expect(textBreastfeeding).toContain(\"Oui\");\n\n const pathologyDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"pathology-section\\\"]\") as HTMLElement | null;\n expect(pathologyDiv).toBeVisible();\n const textPathology = pathologyDiv?.textContent ?? \"\";\n expect(textPathology).toContain(\"Pathologies suivies\");\n expect(textPathology).toContain(\"Insuffisance hépatique\");\n expect(textPathology).toContain(\"Insuffisance rénale aigüe\");\n expect(textPathology).toContain(\"Insuffisance hépatique mo.\");\n expect(textPathology).toContain(\"Insuffisance cardiaque\");\n\n const allergyDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"allergy-section\\\"]\") as HTMLElement | null;\n expect(allergyDiv).toBeVisible();\n const textAllergy = allergyDiv?.textContent ?? \"\";\n expect(textAllergy).toContain(\"Allergies\");\n expect(textAllergy).toContain(\"Allergie au paracétamol\");\n\n const hepaticInsufficiencyDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"hepatic-insufficiency-section\\\"]\") as HTMLElement | null;\n expect(hepaticInsufficiencyDiv).toBeVisible();\n const textHepaticInsufficiency = hepaticInsufficiencyDiv?.textContent ?? \"\";\n expect(textHepaticInsufficiency).toContain(\"Insuffisance hépatique\");\n expect(textHepaticInsufficiency).toContain(\"Stade B\");\n\n const clairanceDiv = moreInfoDiv?.querySelector(\"div[data-test-id=\\\"clearance-section\\\"]\") as HTMLElement | null;\n expect(clairanceDiv).toBeVisible();\n const textClairance = clairanceDiv?.textContent ?? \"\";\n expect(textClairance).toContain(\"Clairance créatinine\");\n expect(textClairance).toContain(\"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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"type": {
|
|
37
37
|
"text": "Story"
|
|
38
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(\"
|
|
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(\"42 ans\");\n });\n\n const editionComponent = component?.shadowRoot?.querySelector(\"bcb-patient-profile-edition\") as HTMLElement | null;\n const editionContent = editionComponent?.shadowRoot?.querySelector(\"div\") as HTMLElement | null;\n\n // eslint-disable-next-line complexity\n await step(\"Basculer en mode édition et modifier les champs\", async() => {\n const actionsDiv = shadow?.querySelector(\"div[data-test-id=\\\"action-buttons\\\"]\") as HTMLElement | null;\n const modifyButton = actionsDiv?.querySelector(\"bcbd-button[data-test-id=\\\"modify-button\\\"]\") as HTMLElement | null;\n await modifyButton?.click();\n\n const sizeInput = editionContent?.querySelector(\"[data-test-id=\\\"size-input\\\"]\") as HTMLInputElement | null;\n const ageInput = editionContent?.querySelector(\"[data-test-id=\\\"age-input\\\"]\") as HTMLInputElement | null;\n const weightInput = editionContent?.querySelector(\"[data-test-id=\\\"weight-input\\\"]\") as HTMLInputElement | null;\n\n if (sizeInput) {\n sizeInput.value = \"\";\n sizeInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n sizeInput.value = \"20\";\n sizeInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n }\n\n if (ageInput) {\n ageInput.value = \"\";\n ageInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n ageInput.value = \"50\";\n ageInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n }\n\n if (weightInput) {\n weightInput.value = \"\";\n weightInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n weightInput.value = \"90\";\n weightInput.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n }\n const pathologieSelect = editionContent?.querySelector(\"[data-test-id=\\\"pathologies-select\\\"]\");\n\n const pathologiesSearch = pathologieSelect?.shadowRoot?.querySelector(\"input[type=\\\"text\\\"]\") as HTMLInputElement | null;\n if (pathologiesSearch) {\n await pathologiesSearch.click();\n pathologiesSearch.value = \"tes\";\n pathologiesSearch.dispatchEvent(new InputEvent(\"input\", { bubbles: true, composed: true }));\n await pathologiesSearch.click();\n }\n const optionSelector = \"div[data-test-id=\\\"select-option-K63\\\\.0\\\"]\";\n if (pathologieSelect instanceof HTMLElement) {\n const optionPatho = await waitForOption(pathologieSelect, optionSelector, 4000);\n await optionPatho.click();\n }\n\n const hepaticSelect = editionContent?.querySelector(\"[data-test-id=\\\"hepatic-stade-select\\\"]\") as HTMLElement | null;\n if (hepaticSelect instanceof HTMLElement) {\n await hepaticSelect?.click();\n\n const optionA = \"div[data-test-id=\\\"select-option-A\\\"]\";\n const optionStade = await waitForOption(hepaticSelect, optionA, 4000);\n await optionStade?.click();\n }\n\n const validateButton = editionContent?.querySelector(\"[data-test-id=\\\"save-button\\\"]\") as HTMLButtonElement | null;\n await validateButton?.click();\n });\n\n await step(\"Vérifier les valeurs modifiées en mode visuel\", () => {\n const pathologyDiv = shadow?.querySelector(\"div[data-test-id=\\\"pathology-section\\\"]\") as HTMLElement | null;\n const heightDiv = shadow?.querySelector(\"div[data-test-id=\\\"patient-height\\\"]\") as HTMLElement | null;\n const weightDiv = shadow?.querySelector(\"div[data-test-id=\\\"patient-weight\\\"]\") as HTMLElement | null;\n const ageDiv = shadow?.querySelector(\"div[data-test-id=\\\"patient-age\\\"]\") as HTMLElement | null;\n\n expect(heightDiv?.textContent ?? \"\").toContain(\"20 cm\");\n expect(weightDiv?.textContent ?? \"\").toContain(\"90 kg\");\n expect(ageDiv?.textContent ?? \"\").toContain(\"50 ans\");\n\n const pathologyText = pathologyDiv?.textContent ?? \"\";\n expect(pathologyText).toContain(\"Abces de l'intestin\");\n });\n } finally {\n restoreFetch();\n }\n },\n}"
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
42
|
"exports": [
|
|
@@ -180,6 +180,16 @@
|
|
|
180
180
|
}
|
|
181
181
|
]
|
|
182
182
|
},
|
|
183
|
+
{
|
|
184
|
+
"kind": "method",
|
|
185
|
+
"name": "displayPregnancy",
|
|
186
|
+
"privacy": "private"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"kind": "method",
|
|
190
|
+
"name": "displayBreastfeeding",
|
|
191
|
+
"privacy": "private"
|
|
192
|
+
},
|
|
183
193
|
{
|
|
184
194
|
"kind": "method",
|
|
185
195
|
"name": "displayPathologies"
|
|
@@ -306,7 +316,7 @@
|
|
|
306
316
|
"type": {
|
|
307
317
|
"text": "Story"
|
|
308
318
|
},
|
|
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}"
|
|
319
|
+
"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(\"42\");\n\n const ageUnitSelect = component?.shadowRoot?.querySelector(\"bcbd-select[data-test-id=\\\"age-unit-select\\\"]\") as HTMLElement | null;\n expect(ageUnitSelect?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Ans\");\n\n const weightInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"weight-input\\\"]\") as HTMLElement | null;\n expect(weightInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"84\");\n\n const pregnancyCheckbox = component?.shadowRoot?.querySelector(\"bcbd-checkbox[data-test-id=\\\"pregnancy-checkbox\\\"]\") as HTMLElement | null;\n expect(pregnancyCheckbox?.shadowRoot?.querySelector(\"input\")?.checked).toBe(true);\n\n const gestationalInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"gestational-input\\\"]\") as HTMLElement | null;\n expect(gestationalInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"20\");\n\n const breastfeedingCheckbox = component?.shadowRoot\n ?.querySelector(\"bcbd-checkbox[data-test-id=\\\"breastfeeding-checkbox\\\"]\") as HTMLElement | null;\n expect(breastfeedingCheckbox?.shadowRoot?.querySelector(\"input\")?.checked).toBe(true);\n\n const pathologiesSelect = component?.shadowRoot?.querySelector(\"bcbd-select[data-test-id=\\\"pathologies-select\\\"]\") as HTMLElement | null;\n const pathologiesValues = pathologiesSelect?.shadowRoot?.querySelectorAll(\"bcbd-badge\");\n expect(pathologiesValues?.length).toBe(4);\n expect(pathologiesValues?.[0]?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Insuffisance hépatique\");\n expect(pathologiesValues?.[1]?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Insuffisance rénale aigüe\");\n expect(pathologiesValues?.[2]?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Insuffisance hépatique modérée\");\n expect(pathologiesValues?.[3]?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Insuffisance cardiaque\");\n\n const allergiesSelect = component?.shadowRoot?.querySelector(\"bcbd-select[data-test-id=\\\"allergies-select\\\"]\") as HTMLElement | null;\n const allergiesValues = allergiesSelect?.shadowRoot?.querySelectorAll(\"bcbd-badge\");\n expect(allergiesValues?.length).toBe(1);\n expect(allergiesValues?.[0]?.shadowRoot?.querySelector(\"span\")).toHaveTextContent(\"Allergie au paracétamol\");\n\n const creatinineByUmolInput = component?.shadowRoot?.querySelector(\"bcbd-input[data-test-id=\\\"creatinine-umol-input\\\"]\") as HTMLElement | null;\n expect(creatinineByUmolInput?.shadowRoot?.querySelector(\"input\")?.value).toBe(\"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}"
|
|
310
320
|
}
|
|
311
321
|
],
|
|
312
322
|
"exports": [
|
|
@@ -944,66 +954,6 @@
|
|
|
944
954
|
}
|
|
945
955
|
]
|
|
946
956
|
},
|
|
947
|
-
{
|
|
948
|
-
"kind": "javascript-module",
|
|
949
|
-
"path": "src/shared/interfaces/api-return.interface.ts",
|
|
950
|
-
"declarations": [],
|
|
951
|
-
"exports": []
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
"kind": "javascript-module",
|
|
955
|
-
"path": "src/shared/interfaces/patient.ts",
|
|
956
|
-
"declarations": [],
|
|
957
|
-
"exports": []
|
|
958
|
-
},
|
|
959
|
-
{
|
|
960
|
-
"kind": "javascript-module",
|
|
961
|
-
"path": "src/shared/mocks/pathologies.mock.ts",
|
|
962
|
-
"declarations": [
|
|
963
|
-
{
|
|
964
|
-
"kind": "variable",
|
|
965
|
-
"name": "mockPathologies",
|
|
966
|
-
"type": {
|
|
967
|
-
"text": "object"
|
|
968
|
-
},
|
|
969
|
-
"default": "{\n \"content\": [\n {\n \"code\": \"0000011731\",\n \"label\": \"Abaissement des bicarbonates sanguins\",\n \"labelHtml\": \"Abaissement des bicarbonates sanguins\",\n \"subType\": \"AMM\",\n },\n {\n \"code\": \"K63.0\",\n \"label\": \"Abces de l'intestin\",\n \"labelHtml\": \"Abcè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}"
|
|
970
|
-
}
|
|
971
|
-
],
|
|
972
|
-
"exports": [
|
|
973
|
-
{
|
|
974
|
-
"kind": "js",
|
|
975
|
-
"name": "mockPathologies",
|
|
976
|
-
"declaration": {
|
|
977
|
-
"name": "mockPathologies",
|
|
978
|
-
"module": "src/shared/mocks/pathologies.mock.ts"
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
]
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
"kind": "javascript-module",
|
|
985
|
-
"path": "src/shared/mocks/patient-profile.mock.ts",
|
|
986
|
-
"declarations": [
|
|
987
|
-
{
|
|
988
|
-
"kind": "variable",
|
|
989
|
-
"name": "patientComplete",
|
|
990
|
-
"type": {
|
|
991
|
-
"text": "Bundle"
|
|
992
|
-
},
|
|
993
|
-
"default": "{\n resourceType: \"Bundle\",\n id: \"patient-complete\",\n type: \"document\",\n entry: [\n {\n resource: {\n resourceType: \"Composition\", // On a Bundle of type document, the first entry must be a Composition\n id: \"composition-complete\",\n status: \"final\",\n type: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"34133-9\",\n display: \"Summary of episode note\",\n },\n ],\n },\n subject: [{ reference: \"Patient/patient-complete\" }],\n date: \"2025-09-02\",\n title: \"Patient complete composition\",\n author: [{ reference: \"Practitioner/dr-martin\" }],\n },\n },\n {\n resource: {\n resourceType: \"Patient\",\n id: \"patient-complete\",\n gender: \"female\", // sex at birth\n birthDate: \"1984-01-01\", // birthDate used to calculate age\n name: [\n {\n family: \"Dupont\",\n given: [\"Marie\"],\n },\n ],\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-gestational-age\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"18185-9\",\n display: \"Gestational age\", // Most used Loinc code for gestational age / number of weeks of amenorrhea\n },\n ],\n text: \"Âge gestationnel\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 20,\n unit: \"weeks\",\n system: \"http://unitsofmeasure.org\",\n code: \"wk\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine-clearance\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"2164-2\",\n display: \"Creatinine renal clearance in 24 hour Urine and Serum or Plasma\", // Most used Loinc code for creatinine clearance\n },\n ],\n text: \"Clairance de la créatinine\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 60,\n unit: \"mL/min\",\n system: \"http://unitsofmeasure.org\",\n code: \"mL/min\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"15051-6\",\n display: \"Creatinine [Moles/volume] in Serum or Plasma\", // LOINC code for serum creatinine in μmol/L\n },\n ],\n text: \"Créatininémie\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 141,\n unit: \"μmol/L\",\n system: \"http://unitsofmeasure.org\",\n code: \"umol/L\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-creatinine\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"2160-0\",\n display: \"Creatinine [Mass/volume] in Serum or Plasma\", // Most used Loinc code for serum creatinine\n },\n ],\n text: \"Créatininémie\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 1.6,\n unit: \"mg/dL\",\n system: \"http://unitsofmeasure.org\",\n code: \"mg/dL\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-dfg\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"48643-1\",\n // eslint-disable-next-line @stylistic/max-len\n display: \"Glomerular filtration rate [Volume Rate/Area] in Serum, Plasma or Blood by Creatinine-based formula (MDRD)/1.73 sq M among black population\",\n },\n ],\n text: \"DFG\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 45,\n unit: \"mL/min/1.73.m2\",\n system: \"http://unitsofmeasure.org\",\n code: \"mL/min/1.73.m2\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-child-pugh-score\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"98152-2\",\n display: \"Total score [Child-Pugh]\",\n },\n ],\n text: \"Score total Child-Pugh\",\n },\n subject: {\n \"reference\": \"Patient/patient-complete\",\n },\n valueQuantity: {\n value: 7,\n unit: \"score\",\n system: \"http://unitsofmeasure.org\",\n code: \"{score}\",\n },\n valueCodeableConcept: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"710066005\",\n display: \"Child-Pugh score class B\",\n },\n ],\n text: \"Stade B\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-body-weight\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"29463-7\",\n display: \"Body weight\", // Most used Loinc code for body weight\n },\n ],\n text: \"Poids corporel\",\n },\n subject: {\n reference: \"Patient/patient-complete\",\n },\n valueQuantity: {\n value: 84,\n unit: \"kg\",\n system: \"http://unitsofmeasure.org\",\n code: \"kg\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-body-height\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"8302-2\",\n display: \"Body height\", // Most used Loinc code for body height\n },\n ],\n text: \"Taille corporelle\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueQuantity: {\n value: 170,\n unit: \"cm\",\n system: \"http://unitsofmeasure.org\",\n code: \"cm\",\n },\n },\n },\n {\n resource: {\n resourceType: \"AdverseEvent\", // Resource used to specify adverse events like drug side effects the patient is experiencing\n id: \"adverseevent-amoxicillin-rash\",\n actuality: \"actual\",\n subject: { reference: \"Patient/patient-complete\" },\n status: \"unknown\",\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"271807003\",\n display: \"Rash\",\n },\n ],\n text: \"Éruption cutanée\",\n },\n suspectEntity: [ // Link to the medication request that supposedly or certainly caused the adverse event\n {\n instanceReference: {\n reference: \"MedicationRequest/req-cardensiel\",\n },\n causality: {\n assessmentMethod: {\n coding: [\n {\n system: \"http://terminology.hl7.org/CodeSystem/adverse-event-causality-assess\",\n code: \"certain\",\n display: \"Certain\",\n },\n ],\n },\n },\n },\n ],\n seriousness: {\n coding: [\n {\n system: \"http://terminology.hl7.org/CodeSystem/adverse-event-seriousness\",\n code: \"non-serious\",\n display: \"Non-serious\",\n },\n ],\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-pregnancy-status\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"82810-3\",\n display: \"Pregnancy status\", // Most used Loinc code for pregnancy status\n },\n ],\n text: \"Statut de grossesse\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueCodeableConcept: { // result of the observation meaning the patient is currently pregnant (it can also be represented more simply by a Condition resource with the same snomed code)\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"77386006\",\n display: \"Pregnant\",\n },\n ],\n text: \"Grossesse\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Observation\",\n id: \"obs-breastfeeding-status\",\n status: \"final\",\n code: {\n coding: [\n {\n system: \"http://loinc.org\",\n code: \"63895-7\",\n display: \"Breastfeeding status\", // Most used Loinc code for breastfeeding status\n },\n ],\n text: \"Statut d'allaitement\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n valueCodeableConcept: { // result of the observation meaning the patient is currently breastfeeding (it can also be represented more simply by a Condition resource with the same snomed code)\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"69840006\",\n display: \"Breastfeeding\",\n },\n ],\n text: \"Allaitement\",\n },\n },\n },\n {\n resource: {\n resourceType: \"Condition\", // Resources of type Condition are used to specify pathologies\n id: \"hepatic-insufficiency\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"59927004\",\n display: \"Hepatic failure\",\n },\n ],\n text: \"Insuffisance hépatique\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-medical-terrain\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"723189000\",\n display: \"Insuffisance rénale aigüe\",\n },\n ],\n text: \"Insuffisance rénale aigüe\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-medical-terrain\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"723188000\",\n display: \"Insuffisance hépatique modérée\",\n },\n ],\n text: \"Insuffisance hépatique modérée\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"Condition\",\n id: \"cond-followed-pathology\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/condition-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"84114007\",\n display: \"Insuffisance cardiaque\",\n },\n ],\n text: \"Insuffisance cardiaque\",\n },\n subject: { reference: \"Patient/patient-complete\" },\n },\n },\n {\n resource: {\n resourceType: \"AllergyIntolerance\", // Resource used to specify allergies or intolerances the patient has\n id: \"allergy-paracetamol\",\n clinicalStatus: { coding: [{ system: \"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical\", code: \"active\" }] },\n code: {\n coding: [\n {\n system: \"http://snomed.info/sct\",\n code: \"293584003\",\n display: \"Allergie au paracétamol\",\n },\n ],\n text: \"Allergie au paracétamol\",\n },\n patient: { reference: \"Patient/patient-complete\" },\n },\n },\n ],\n}"
|
|
994
|
-
}
|
|
995
|
-
],
|
|
996
|
-
"exports": [
|
|
997
|
-
{
|
|
998
|
-
"kind": "js",
|
|
999
|
-
"name": "patientComplete",
|
|
1000
|
-
"declaration": {
|
|
1001
|
-
"name": "patientComplete",
|
|
1002
|
-
"module": "src/shared/mocks/patient-profile.mock.ts"
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
]
|
|
1006
|
-
},
|
|
1007
957
|
{
|
|
1008
958
|
"kind": "javascript-module",
|
|
1009
959
|
"path": "src/shared/constants/edition-options.ts",
|
|
@@ -1164,6 +1114,18 @@
|
|
|
1164
1114
|
}
|
|
1165
1115
|
]
|
|
1166
1116
|
},
|
|
1117
|
+
{
|
|
1118
|
+
"kind": "javascript-module",
|
|
1119
|
+
"path": "src/shared/interfaces/api-return.interface.ts",
|
|
1120
|
+
"declarations": [],
|
|
1121
|
+
"exports": []
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"kind": "javascript-module",
|
|
1125
|
+
"path": "src/shared/interfaces/patient.ts",
|
|
1126
|
+
"declarations": [],
|
|
1127
|
+
"exports": []
|
|
1128
|
+
},
|
|
1167
1129
|
{
|
|
1168
1130
|
"kind": "javascript-module",
|
|
1169
1131
|
"path": "src/shared/services/api-search.service.ts",
|
|
@@ -1236,6 +1198,54 @@
|
|
|
1236
1198
|
}
|
|
1237
1199
|
]
|
|
1238
1200
|
},
|
|
1201
|
+
{
|
|
1202
|
+
"kind": "javascript-module",
|
|
1203
|
+
"path": "src/shared/mocks/pathologies.mock.ts",
|
|
1204
|
+
"declarations": [
|
|
1205
|
+
{
|
|
1206
|
+
"kind": "variable",
|
|
1207
|
+
"name": "mockPathologies",
|
|
1208
|
+
"type": {
|
|
1209
|
+
"text": "object"
|
|
1210
|
+
},
|
|
1211
|
+
"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}"
|
|
1212
|
+
}
|
|
1213
|
+
],
|
|
1214
|
+
"exports": [
|
|
1215
|
+
{
|
|
1216
|
+
"kind": "js",
|
|
1217
|
+
"name": "mockPathologies",
|
|
1218
|
+
"declaration": {
|
|
1219
|
+
"name": "mockPathologies",
|
|
1220
|
+
"module": "src/shared/mocks/pathologies.mock.ts"
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
]
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"kind": "javascript-module",
|
|
1227
|
+
"path": "src/shared/mocks/patient-profile.mock.ts",
|
|
1228
|
+
"declarations": [
|
|
1229
|
+
{
|
|
1230
|
+
"kind": "variable",
|
|
1231
|
+
"name": "patientComplete",
|
|
1232
|
+
"type": {
|
|
1233
|
+
"text": "Bundle"
|
|
1234
|
+
},
|
|
1235
|
+
"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}"
|
|
1236
|
+
}
|
|
1237
|
+
],
|
|
1238
|
+
"exports": [
|
|
1239
|
+
{
|
|
1240
|
+
"kind": "js",
|
|
1241
|
+
"name": "patientComplete",
|
|
1242
|
+
"declaration": {
|
|
1243
|
+
"name": "patientComplete",
|
|
1244
|
+
"module": "src/shared/mocks/patient-profile.mock.ts"
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
]
|
|
1248
|
+
},
|
|
1239
1249
|
{
|
|
1240
1250
|
"kind": "javascript-module",
|
|
1241
1251
|
"path": "src/shared/utils/patient-fhir-utils.ts",
|
|
@@ -15,6 +15,8 @@ export declare class PatientProfile extends LitElement {
|
|
|
15
15
|
displayRenalInsufficiencyStatus(): symbol | TemplateResult<1>;
|
|
16
16
|
displayCreatininemieSection(): TemplateResult<1>;
|
|
17
17
|
private truncateLabel;
|
|
18
|
+
private displayPregnancy;
|
|
19
|
+
private displayBreastfeeding;
|
|
18
20
|
displayPathologies(): TemplateResult<1>;
|
|
19
21
|
displayAllergies(): TemplateResult<1>;
|
|
20
22
|
openEditionModal(): void;
|
|
@@ -1668,6 +1668,8 @@ let PatientProfileEdition = class extends i {
|
|
|
1668
1668
|
this.ageErrorMessageInput = "L'âge ne doit pas dépasser 150 ans";
|
|
1669
1669
|
} else if (age > 23 && this.patientUnitAge === "mois") {
|
|
1670
1670
|
this.ageErrorMessageInput = "L'âge en mois ne doit pas dépasser 23 mois, veuillez compter en années";
|
|
1671
|
+
} else if (age < 1 && this.patientUnitAge === "mois") {
|
|
1672
|
+
this.ageErrorMessageInput = "L'âge est invalide";
|
|
1671
1673
|
} else {
|
|
1672
1674
|
this.ageErrorMessageInput = "";
|
|
1673
1675
|
}
|
|
@@ -2212,6 +2214,38 @@ let PatientProfile = class extends i {
|
|
|
2212
2214
|
}
|
|
2213
2215
|
return `${label.slice(0, maxLength)}.`;
|
|
2214
2216
|
}
|
|
2217
|
+
displayPregnancy() {
|
|
2218
|
+
const gender = getPatientGender(this.patientProfile);
|
|
2219
|
+
if (gender !== "Homme") {
|
|
2220
|
+
const isPregnant = getPatientPregnancyStatus(this.patientProfile);
|
|
2221
|
+
if (isPregnant) {
|
|
2222
|
+
const gestationalMonth = getPatientAmenorrheaStatus(this.patientProfile);
|
|
2223
|
+
const gestationalInfo = gestationalMonth ? `- ${gestationalMonth} semaine(s)` : "";
|
|
2224
|
+
return x`
|
|
2225
|
+
<div class="${PREFIX}-patient-profile__second-info" data-test-id="pregnancy-section">
|
|
2226
|
+
<span class="${PREFIX}-patient-profile__second-info-label">Grossesse </span>
|
|
2227
|
+
<span class="${PREFIX}-patient-profile__second-info-result"> Oui ${gestationalInfo} </span>
|
|
2228
|
+
</div>
|
|
2229
|
+
`;
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
return E;
|
|
2233
|
+
}
|
|
2234
|
+
displayBreastfeeding() {
|
|
2235
|
+
const gender = getPatientGender(this.patientProfile);
|
|
2236
|
+
if (gender !== "Homme") {
|
|
2237
|
+
const isBreastfeeding = getPatientBreastfeedingStatus(this.patientProfile);
|
|
2238
|
+
if (isBreastfeeding) {
|
|
2239
|
+
return x`
|
|
2240
|
+
<div class="${PREFIX}-patient-profile__second-info" data-test-id="breastfeeding-section">
|
|
2241
|
+
<span class="${PREFIX}-patient-profile__second-info-label">Allaitement </span>
|
|
2242
|
+
<span class="${PREFIX}-patient-profile__second-info-result"> Oui </span>
|
|
2243
|
+
</div>
|
|
2244
|
+
`;
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
return E;
|
|
2248
|
+
}
|
|
2215
2249
|
displayPathologies() {
|
|
2216
2250
|
const conditions = getPatientConditions(this.patientProfile);
|
|
2217
2251
|
const items = conditions.map((condition, index) => {
|
|
@@ -2334,6 +2368,9 @@ let PatientProfile = class extends i {
|
|
|
2334
2368
|
</div>
|
|
2335
2369
|
</div>
|
|
2336
2370
|
<div class="${PREFIX}-patient-profile__second-info-container ${this.moreInformationVisible ? "active" : ""}" data-test-id="more-information-section">
|
|
2371
|
+
${this.displayPregnancy()}
|
|
2372
|
+
${this.displayBreastfeeding()}
|
|
2373
|
+
|
|
2337
2374
|
<div class="${PREFIX}-patient-profile__second-info" data-test-id="pathology-section">
|
|
2338
2375
|
<span class="${PREFIX}-patient-profile__second-info-label">Pathologies suivies </span>
|
|
2339
2376
|
<span class="${PREFIX}-patient-profile__second-info-result">${this.displayPathologies()} </span>
|