@claudebernard/patient-profile-element 0.3.4 → 0.3.5

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