@claudebernard/prescription-alerts-element
Version:
An element providing some custom stuff.
1,845 lines (1,844 loc) • 159 kB
JSON
{
"schemaVersion": "1.0.0",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "src/bcb-prescription-alerts.ts",
"declarations": [],
"exports": [
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/contraindication/bcb-prescription-alerts-ci"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/precaution-for-use/bcb-prescription-alerts-pe"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/allergy/bcb-prescription-alerts-allergy"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/stopp/bcb-prescription-alerts-stopp"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/redundancy/bcb-prescription-alerts-redundancy"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/posology/bcb-prescription-alerts-poso"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/interaction/bcb-prescription-alerts-interactions"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/anticholinergic/bcb-prescription-alerts-anticholinergic"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/sam/bcb-prescription-alerts-sam"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/ipc/bcb-prescription-alerts-ipc"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./headband/bcb-prescription-alerts-headband-counter"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./counter/bcb-prescription-alerts-counter"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/bcb-prescription-alerts-hidden-tags"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./interfaces/alerts/IAlertCounters.interface"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./shared/enums/EAlertLevel.enum"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/bcb-prescription-alerts-hidden-tags.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"type": {
"text": "WebComponentsMeta<MultiAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "AllVisible",
"type": {
"text": "WebComponentsStory<MultiAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "SomeHidden",
"type": {
"text": "WebComponentsStory<MultiAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "AllHidden",
"type": {
"text": "WebComponentsStory<MultiAlertsProps, any>"
}
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/alerts/bcb-prescription-alerts-hidden-tags.stories.ts"
}
},
{
"kind": "js",
"name": "AllVisible",
"declaration": {
"name": "AllVisible",
"module": "src/alerts/bcb-prescription-alerts-hidden-tags.stories.ts"
}
},
{
"kind": "js",
"name": "SomeHidden",
"declaration": {
"name": "SomeHidden",
"module": "src/alerts/bcb-prescription-alerts-hidden-tags.stories.ts"
}
},
{
"kind": "js",
"name": "AllHidden",
"declaration": {
"name": "AllHidden",
"module": "src/alerts/bcb-prescription-alerts-hidden-tags.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/bcb-prescription-alerts-hidden-tags.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "BcbPrescriptionAlertsHiddenTags",
"members": [
{
"kind": "field",
"name": "productId",
"type": {
"text": "number"
},
"default": "null",
"attribute": "productId"
}
],
"attributes": [
{
"name": "productId",
"type": {
"text": "number"
},
"default": "null",
"fieldName": "productId"
}
],
"mixins": [
{
"name": "SignalWatcher",
"package": "@lit-labs/signals"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "bcb-prescription-alerts-hidden-tags",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "BcbPrescriptionAlertsHiddenTags",
"declaration": {
"name": "BcbPrescriptionAlertsHiddenTags",
"module": "src/alerts/bcb-prescription-alerts-hidden-tags.ts"
}
},
{
"kind": "custom-element-definition",
"name": "bcb-prescription-alerts-hidden-tags",
"declaration": {
"name": "BcbPrescriptionAlertsHiddenTags",
"module": "src/alerts/bcb-prescription-alerts-hidden-tags.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/interfaces/IPosology.interface.ts",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "src/interfaces/IPosologyMessage.interface.ts",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "src/counter/bcb-prescription-alerts-counter.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"type": {
"text": "WebComponentsMeta<BcbPrescriptionAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "Counter",
"type": {
"text": "WebComponentsStory<BcbPrescriptionAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "CounterEmpty",
"type": {
"text": "WebComponentsStory<BcbPrescriptionAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "CounterSkeleton",
"type": {
"text": "WebComponentsStory<BcbPrescriptionAlertsProps, any>"
}
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/counter/bcb-prescription-alerts-counter.stories.ts"
}
},
{
"kind": "js",
"name": "Counter",
"declaration": {
"name": "Counter",
"module": "src/counter/bcb-prescription-alerts-counter.stories.ts"
}
},
{
"kind": "js",
"name": "CounterEmpty",
"declaration": {
"name": "CounterEmpty",
"module": "src/counter/bcb-prescription-alerts-counter.stories.ts"
}
},
{
"kind": "js",
"name": "CounterSkeleton",
"declaration": {
"name": "CounterSkeleton",
"module": "src/counter/bcb-prescription-alerts-counter.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/counter/bcb-prescription-alerts-counter.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "BcbPrescriptionAlertsCounter",
"members": [
{
"kind": "field",
"name": "lang",
"type": {
"text": "string"
},
"default": "\"fr-FR\"",
"attribute": "lang"
},
{
"kind": "field",
"name": "productId",
"type": {
"text": "number"
},
"default": "0",
"attribute": "productId"
},
{
"kind": "field",
"name": "isAlertsVisible",
"type": {
"text": "boolean"
},
"default": "true"
},
{
"kind": "method",
"name": "toggleAlertsVisibility"
},
{
"kind": "method",
"name": "generateSkeleton",
"return": {
"type": {
"text": "TemplateResult"
}
}
}
],
"events": [
{
"name": "toggle-alerts-visibility",
"type": {
"text": "CustomEvent"
}
}
],
"attributes": [
{
"name": "lang",
"type": {
"text": "string"
},
"default": "\"fr-FR\"",
"fieldName": "lang"
},
{
"name": "productId",
"type": {
"text": "number"
},
"default": "0",
"fieldName": "productId"
}
],
"mixins": [
{
"name": "SignalWatcher",
"package": "@lit-labs/signals"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "bcb-prescription-alerts-counter",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "BcbPrescriptionAlertsCounter",
"declaration": {
"name": "BcbPrescriptionAlertsCounter",
"module": "src/counter/bcb-prescription-alerts-counter.ts"
}
},
{
"kind": "custom-element-definition",
"name": "bcb-prescription-alerts-counter",
"declaration": {
"name": "BcbPrescriptionAlertsCounter",
"module": "src/counter/bcb-prescription-alerts-counter.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/headband/bcb-prescription-alerts-headband-counter.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta"
},
{
"kind": "variable",
"name": "WithProductsFromSignal",
"description": "With real products and alerts from signal\nCette story reproduit un cas réel avec des vrais produits et alertes issus des mocks existants"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/headband/bcb-prescription-alerts-headband-counter.stories.ts"
}
},
{
"kind": "js",
"name": "WithProductsFromSignal",
"declaration": {
"name": "WithProductsFromSignal",
"module": "src/headband/bcb-prescription-alerts-headband-counter.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/headband/bcb-prescription-alerts-headband-counter.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "BcbPrescriptionAlertsHeadbandCounter",
"members": [],
"mixins": [
{
"name": "SignalWatcher",
"package": "@lit-labs/signals"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "BcbPrescriptionAlertsHeadbandCounter",
"declaration": {
"name": "BcbPrescriptionAlertsHeadbandCounter",
"module": "src/headband/bcb-prescription-alerts-headband-counter.ts"
}
},
{
"kind": "custom-element-definition",
"declaration": {
"name": "BcbPrescriptionAlertsHeadbandCounter",
"module": "src/headband/bcb-prescription-alerts-headband-counter.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/signals/alerts-signals.ts",
"declarations": [
{
"kind": "variable",
"name": "allAlerts"
},
{
"kind": "function",
"name": "setAllAlerts",
"parameters": [
{
"name": "alerts",
"type": {
"text": "any"
}
}
]
},
{
"kind": "function",
"name": "clearAllAlerts"
},
{
"kind": "variable",
"name": "hasAlerts"
},
{
"kind": "variable",
"name": "getAllProductIds"
},
{
"kind": "function",
"name": "getMaxLevelAlertsByProduct",
"parameters": [
{
"name": "productId",
"type": {
"text": "number"
}
}
]
},
{
"kind": "function",
"name": "getAlertsByProduct",
"parameters": [
{
"name": "productId",
"type": {
"text": "number"
}
}
]
},
{
"kind": "function",
"name": "getPosoAlertLevel",
"return": {
"type": {
"text": "string"
}
},
"parameters": [
{
"name": "product",
"type": {
"text": "IProductAlert"
}
}
]
},
{
"kind": "function",
"name": "getAlertsCountByProduct",
"parameters": [
{
"name": "productId",
"type": {
"text": "number"
}
}
]
}
],
"exports": [
{
"kind": "js",
"name": "allAlerts",
"declaration": {
"name": "allAlerts",
"module": "src/signals/alerts-signals.ts"
}
},
{
"kind": "js",
"name": "setAllAlerts",
"declaration": {
"name": "setAllAlerts",
"module": "src/signals/alerts-signals.ts"
}
},
{
"kind": "js",
"name": "clearAllAlerts",
"declaration": {
"name": "clearAllAlerts",
"module": "src/signals/alerts-signals.ts"
}
},
{
"kind": "js",
"name": "hasAlerts",
"declaration": {
"name": "hasAlerts",
"module": "src/signals/alerts-signals.ts"
}
},
{
"kind": "js",
"name": "getAllProductIds",
"declaration": {
"name": "getAllProductIds",
"module": "src/signals/alerts-signals.ts"
}
},
{
"kind": "js",
"name": "getMaxLevelAlertsByProduct",
"declaration": {
"name": "getMaxLevelAlertsByProduct",
"module": "src/signals/alerts-signals.ts"
}
},
{
"kind": "js",
"name": "getAlertsByProduct",
"declaration": {
"name": "getAlertsByProduct",
"module": "src/signals/alerts-signals.ts"
}
},
{
"kind": "js",
"name": "getPosoAlertLevel",
"declaration": {
"name": "getPosoAlertLevel",
"module": "src/signals/alerts-signals.ts"
}
},
{
"kind": "js",
"name": "getAlertsCountByProduct",
"declaration": {
"name": "getAlertsCountByProduct",
"module": "src/signals/alerts-signals.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/signals/hidden-alerts-signals.ts",
"declarations": [
{
"kind": "variable",
"name": "hiddenAlertsSignal"
},
{
"kind": "variable",
"name": "hiddenAlertsDetailsSignal"
},
{
"kind": "function",
"name": "addHiddenAlert",
"return": {
"type": {
"text": "void"
}
},
"parameters": [
{
"name": "productId",
"type": {
"text": "number"
}
},
{
"name": "testId",
"type": {
"text": "string"
}
},
{
"name": "label",
"type": {
"text": "string"
}
}
],
"description": "Ajouter une alerte masquée (ne met à jour que si l'alerte n'existe pas déjà)"
},
{
"kind": "function",
"name": "removeHiddenAlert",
"return": {
"type": {
"text": "void"
}
},
"parameters": [
{
"name": "productId",
"type": {
"text": "number"
}
},
{
"name": "testId",
"type": {
"text": "string"
}
}
],
"description": "Retirer une alerte masquée (ne met à jour que si l'alerte existe)"
},
{
"kind": "function",
"name": "getHiddenAlertsForProduct",
"return": {
"type": {
"text": "HiddenAlert[]"
}
},
"parameters": [
{
"name": "productId",
"type": {
"text": "number"
}
}
],
"description": "Obtenir toutes les alertes masquées pour un produit"
},
{
"kind": "function",
"name": "getAllHiddenAlerts",
"return": {
"type": {
"text": "HiddenAlert[]"
}
},
"description": "Obtenir toutes les alertes masquées (tous produits confondus)"
},
{
"kind": "function",
"name": "clearHiddenAlerts",
"return": {
"type": {
"text": "void"
}
},
"description": "Réinitialiser toutes les alertes masquées"
},
{
"kind": "function",
"name": "clearHiddenAlertsForProduct",
"return": {
"type": {
"text": "void"
}
},
"parameters": [
{
"name": "productId",
"type": {
"text": "number"
}
}
],
"description": "Réinitialiser les alertes masquées pour un produit spécifique"
}
],
"exports": [
{
"kind": "js",
"name": "hiddenAlertsSignal",
"declaration": {
"name": "hiddenAlertsSignal",
"module": "src/signals/hidden-alerts-signals.ts"
}
},
{
"kind": "js",
"name": "hiddenAlertsDetailsSignal",
"declaration": {
"name": "hiddenAlertsDetailsSignal",
"module": "src/signals/hidden-alerts-signals.ts"
}
},
{
"kind": "js",
"name": "addHiddenAlert",
"declaration": {
"name": "addHiddenAlert",
"module": "src/signals/hidden-alerts-signals.ts"
}
},
{
"kind": "js",
"name": "removeHiddenAlert",
"declaration": {
"name": "removeHiddenAlert",
"module": "src/signals/hidden-alerts-signals.ts"
}
},
{
"kind": "js",
"name": "getHiddenAlertsForProduct",
"declaration": {
"name": "getHiddenAlertsForProduct",
"module": "src/signals/hidden-alerts-signals.ts"
}
},
{
"kind": "js",
"name": "getAllHiddenAlerts",
"declaration": {
"name": "getAllHiddenAlerts",
"module": "src/signals/hidden-alerts-signals.ts"
}
},
{
"kind": "js",
"name": "clearHiddenAlerts",
"declaration": {
"name": "clearHiddenAlerts",
"module": "src/signals/hidden-alerts-signals.ts"
}
},
{
"kind": "js",
"name": "clearHiddenAlertsForProduct",
"declaration": {
"name": "clearHiddenAlertsForProduct",
"module": "src/signals/hidden-alerts-signals.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/signals/loading-signals.ts",
"declarations": [
{
"kind": "variable",
"name": "prescriptionAlertRequestStatusByAlertType"
},
{
"kind": "variable",
"name": "posologyAlertRequestStatus"
},
{
"kind": "variable",
"name": "stoppAlertRequestStatus"
},
{
"kind": "function",
"name": "setPrescriptionAlertRequestStatusByAlertType",
"parameters": [
{
"name": "status",
"type": {
"text": "number"
}
},
{
"name": "alertType",
"type": {
"text": "number"
}
}
]
},
{
"kind": "function",
"name": "getPrescriptionAlertRequestStatusByAlertType",
"parameters": [
{
"name": "alertType",
"type": {
"text": "number"
}
}
]
},
{
"kind": "variable",
"name": "isPrescriptionAlertRequestStatusFinished"
},
{
"kind": "function",
"name": "setPosologyAlertRequestStatus",
"parameters": [
{
"name": "status",
"type": {
"text": "number"
}
}
]
},
{
"kind": "function",
"name": "setStoppAlertRequestStatus",
"parameters": [
{
"name": "status",
"type": {
"text": "number"
}
}
]
}
],
"exports": [
{
"kind": "js",
"name": "prescriptionAlertRequestStatusByAlertType",
"declaration": {
"name": "prescriptionAlertRequestStatusByAlertType",
"module": "src/signals/loading-signals.ts"
}
},
{
"kind": "js",
"name": "posologyAlertRequestStatus",
"declaration": {
"name": "posologyAlertRequestStatus",
"module": "src/signals/loading-signals.ts"
}
},
{
"kind": "js",
"name": "stoppAlertRequestStatus",
"declaration": {
"name": "stoppAlertRequestStatus",
"module": "src/signals/loading-signals.ts"
}
},
{
"kind": "js",
"name": "setPrescriptionAlertRequestStatusByAlertType",
"declaration": {
"name": "setPrescriptionAlertRequestStatusByAlertType",
"module": "src/signals/loading-signals.ts"
}
},
{
"kind": "js",
"name": "getPrescriptionAlertRequestStatusByAlertType",
"declaration": {
"name": "getPrescriptionAlertRequestStatusByAlertType",
"module": "src/signals/loading-signals.ts"
}
},
{
"kind": "js",
"name": "isPrescriptionAlertRequestStatusFinished",
"declaration": {
"name": "isPrescriptionAlertRequestStatusFinished",
"module": "src/signals/loading-signals.ts"
}
},
{
"kind": "js",
"name": "setPosologyAlertRequestStatus",
"declaration": {
"name": "setPosologyAlertRequestStatus",
"module": "src/signals/loading-signals.ts"
}
},
{
"kind": "js",
"name": "setStoppAlertRequestStatus",
"declaration": {
"name": "setStoppAlertRequestStatus",
"module": "src/signals/loading-signals.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/signals/visibility-signals.ts",
"declarations": [
{
"kind": "variable",
"name": "productVisibilitySignal"
},
{
"kind": "function",
"name": "getProductVisibility",
"return": {
"type": {
"text": "boolean"
}
},
"parameters": [
{
"name": "productId",
"type": {
"text": "number"
}
}
],
"description": "Obtenir la visibilité d'un produit spécifique"
},
{
"kind": "function",
"name": "setProductVisibility",
"return": {
"type": {
"text": "void"
}
},
"parameters": [
{
"name": "productId",
"type": {
"text": "number"
}
},
{
"name": "isVisible",
"type": {
"text": "boolean"
}
}
],
"description": "Définir la visibilité d'un produit spécifique"
}
],
"exports": [
{
"kind": "js",
"name": "productVisibilitySignal",
"declaration": {
"name": "productVisibilitySignal",
"module": "src/signals/visibility-signals.ts"
}
},
{
"kind": "js",
"name": "getProductVisibility",
"declaration": {
"name": "getProductVisibility",
"module": "src/signals/visibility-signals.ts"
}
},
{
"kind": "js",
"name": "setProductVisibility",
"declaration": {
"name": "setProductVisibility",
"module": "src/signals/visibility-signals.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/allergy/bcb-prescription-alerts-allergy.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"type": {
"text": "WebComponentsMeta<BcbPrescriptionAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "Allergy",
"type": {
"text": "WebComponentsStory<BcbPrescriptionAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "AllergyHidden",
"type": {
"text": "WebComponentsStory<BcbPrescriptionAlertsProps, any>"
}
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/alerts/allergy/bcb-prescription-alerts-allergy.stories.ts"
}
},
{
"kind": "js",
"name": "Allergy",
"declaration": {
"name": "Allergy",
"module": "src/alerts/allergy/bcb-prescription-alerts-allergy.stories.ts"
}
},
{
"kind": "js",
"name": "AllergyHidden",
"declaration": {
"name": "AllergyHidden",
"module": "src/alerts/allergy/bcb-prescription-alerts-allergy.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/allergy/bcb-prescription-alerts-allergy.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "BcbPrescriptionAlertsAllergy",
"members": [
{
"kind": "field",
"name": "apiUrl",
"type": {
"text": "string"
},
"default": "\"\"",
"attribute": "apiUrl"
},
{
"kind": "field",
"name": "apiKey",
"type": {
"text": "string"
},
"default": "\"\"",
"attribute": "apiKey"
},
{
"kind": "field",
"name": "products",
"type": {
"text": "Bundle[]"
},
"default": "[]"
},
{
"kind": "field",
"name": "patient",
"type": {
"text": "object"
},
"default": "{}",
"attribute": "patient"
},
{
"kind": "field",
"name": "productId",
"type": {
"text": "number"
},
"default": "null",
"attribute": "productId"
},
{
"kind": "field",
"name": "lang",
"type": {
"text": "string"
},
"default": "\"fr-FR\"",
"attribute": "lang"
},
{
"kind": "field",
"name": "isPatientActive",
"type": {
"text": "boolean"
},
"default": "true",
"attribute": "isPatientActive"
},
{
"kind": "field",
"name": "_alertVisibility",
"type": {
"text": "object"
},
"privacy": "private",
"default": "{\n interactionsLv1: true,\n interactionsLv2: true,\n interactionsLv3: true,\n interactionsLv4: true,\n anticholinergic: true,\n surdosages: true,\n redondances_composant: true,\n redondances_classe: true,\n precautions_emploi: true,\n contre_indicationsLv3: true,\n contre_indicationsLv4: true,\n allergies: true,\n stopp: true,\n posologies: true,\n ipc: true,\n }"
},
{
"kind": "field",
"name": "alertVisibility",
"attribute": "alertVisibility"
},
{
"kind": "field",
"name": "modalAllergy",
"type": {
"text": "HTMLElement & { open: () => void; close: () => void }"
},
"privacy": "private"
},
{
"kind": "field",
"name": "currentAlert",
"type": {
"text": "IAlertChapter[]"
}
},
{
"kind": "method",
"name": "fetchData"
},
{
"kind": "method",
"name": "checkHiddenAlerts",
"privacy": "private"
},
{
"kind": "method",
"name": "countAlerts"
},
{
"kind": "method",
"name": "handleClick",
"parameters": [
{
"name": "chapter",
"type": {
"text": "string"
}
},
{
"name": "level",
"type": {
"text": "string"
}
},
{
"name": "product",
"type": {
"text": "IProductAlert"
}
}
]
},
{
"kind": "method",
"name": "renderAlerts"
},
{
"kind": "method",
"name": "renderModal",
"parameters": [
{
"name": "alertDetails",
"type": {
"text": "IAlertChapter[]"
}
}
]
}
],
"attributes": [
{
"name": "apiUrl",
"type": {
"text": "string"
},
"default": "\"\"",
"fieldName": "apiUrl"
},
{
"name": "apiKey",
"type": {
"text": "string"
},
"default": "\"\"",
"fieldName": "apiKey"
},
{
"name": "patient",
"type": {
"text": "object"
},
"default": "{}",
"fieldName": "patient"
},
{
"name": "productId",
"type": {
"text": "number"
},
"default": "null",
"fieldName": "productId"
},
{
"name": "lang",
"type": {
"text": "string"
},
"default": "\"fr-FR\"",
"fieldName": "lang"
},
{
"name": "isPatientActive",
"type": {
"text": "boolean"
},
"default": "true",
"fieldName": "isPatientActive"
},
{
"name": "alertVisibility",
"fieldName": "alertVisibility"
}
],
"mixins": [
{
"name": "SignalWatcher",
"package": "@lit-labs/signals"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "bcb-prescription-alerts-allergy",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "BcbPrescriptionAlertsAllergy",
"declaration": {
"name": "BcbPrescriptionAlertsAllergy",
"module": "src/alerts/allergy/bcb-prescription-alerts-allergy.ts"
}
},
{
"kind": "custom-element-definition",
"name": "bcb-prescription-alerts-allergy",
"declaration": {
"name": "BcbPrescriptionAlertsAllergy",
"module": "src/alerts/allergy/bcb-prescription-alerts-allergy.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/anticholinergic/bcb-prescription-alerts-anticholinergic.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"type": {
"text": "WebComponentsMeta<BcbPrescriptionAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "Level1",
"type": {
"text": "WebComponentsStory<BcbPrescriptionAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "NoAlerts",
"type": {
"text": "WebComponentsStory<BcbPrescriptionAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "HiddenAlerts",
"type": {
"text": "WebComponentsStory<BcbPrescriptionAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "AnticholinergicError",
"type": {
"text": "WebComponentsStory<BcbPrescriptionAlertsProps, any>"
}
},
{
"kind": "variable",
"name": "AnticholinergicAllProducts",
"type": {
"text": "WebComponentsStory<BcbPrescriptionAlertsProps, any>"
}
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/alerts/anticholinergic/bcb-prescription-alerts-anticholinergic.stories.ts"
}
},
{
"kind": "js",
"name": "Level1",
"declaration": {
"name": "Level1",
"module": "src/alerts/anticholinergic/bcb-prescription-alerts-anticholinergic.stories.ts"
}
},
{
"kind": "js",
"name": "NoAlerts",
"declaration": {
"name": "NoAlerts",
"module": "src/alerts/anticholinergic/bcb-prescription-alerts-anticholinergic.stories.ts"
}
},
{
"kind": "js",
"name": "HiddenAlerts",
"declaration": {
"name": "HiddenAlerts",
"module": "src/alerts/anticholinergic/bcb-prescription-alerts-anticholinergic.stories.ts"
}
},
{
"kind": "js",
"name": "AnticholinergicError",
"declaration": {
"name": "AnticholinergicError",
"module": "src/alerts/anticholinergic/bcb-prescription-alerts-anticholinergic.stories.ts"
}
},
{
"kind": "js",
"name": "AnticholinergicAllProducts",
"declaration": {
"name": "AnticholinergicAllProducts",
"module": "src/alerts/anticholinergic/bcb-prescription-alerts-anticholinergic.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/anticholinergic/bcb-prescription-alerts-anticholinergic.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "BcbPrescriptionAlertsAnticholinergic",
"members": [
{
"kind": "field",
"name": "apiUrl",
"type": {
"text": "string"
},
"default": "\"\"",
"attribute": "apiUrl"
},
{
"kind": "field",
"name": "apiKey",
"type": {
"text": "string"
},
"default": "\"\"",
"attribute": "apiKey"
},
{
"kind": "field",
"name": "products",
"type": {
"text": "Bundle[]"
},
"default": "[]"
},
{
"kind": "field",
"name": "patient",
"type": {
"text": "any"
},
"default": "null",
"attribute": "patient"
},
{
"kind": "field",
"name": "productId",
"type": {
"text": "number | null"
},
"default": "null",
"attribute": "productId"
},
{
"kind": "field",
"name": "lang",
"type": {
"text": "string"
},
"default": "\"fr-FR\"",
"attribute": "lang"
},
{
"kind": "field",
"name": "isPatientActive",
"type": {
"text": "boolean"
},
"default": "true",
"attribute": "isPatientActive"
},
{
"kind": "field",
"name": "_alertVisibility",
"type": {
"text": "object"
},
"privacy": "private",
"default": "{\n interactionsLv1: true,\n interactionsLv2: true,\n interactionsLv3: true,\n interactionsLv4: true,\n anticholinergic: true,\n surdosages: true,\n redondances_composant: true,\n redondances_classe: true,\n precautions_emploi: true,\n contre_indicationsLv3: true,\n contre_indicationsLv4: true,\n allergies: true,\n stopp: true,\n posologies: true,\n ipc: true,\n }"
},
{
"kind": "field",
"name": "alertVisibility",
"attribute": "alertVisibility"
},
{
"kind": "field",
"name": "modalAnticholinergic",
"type": {
"text": "HTMLElement & {\n open: () => void;\n close: () => void;\n }"
},
"privacy": "private"
},
{
"kind": "field",
"name": "currentAlert",
"type": {
"text": "IPrescriptionAlert"
}
},
{
"kind": "field",
"name": "isAntiCholinergicToggledMap",
"type": {
"text": "{ [key: string]: boolean }"
},
"default": "{}"
},
{
"kind": "field",
"name": "antiCholinergicColorMap",
"type": {
"text": "object"
},
"default": "{\n 1: \"info\",\n 2: \"warning\",\n 3: \"orange\",\n 4: \"danger\",\n }"
},
{
"kind": "method",
"name": "fetchData"
},
{
"kind": "method",
"name": "dispatchRequestStatus"
},
{
"kind": "method",
"name": "dispatchAlertCountEvent",
"parameters": [
{
"name": "productId",
"type": {
"text": "string"
}
},
{
"name": "alertsCount",
"type": {
"text": "number"
}
},
{
"name": "linkedIds",
"type": {
"text": "number[]"
}
}
]
},
{
"kind": "method",
"name": "countAlerts"
},
{
"kind": "method",
"name": "handleClick",
"parameters": [
{
"name": "alertDetails",
"type": {
"text": "IPrescriptionAlert"
}
}
]
},
{
"kind": "method",
"name": "shouldShowWarning",
"privacy": "private",
"return": {
"type": {
"text": "boolean"
}
},
"parameters": [
{
"name": "product",
"optional": true,
"type": {
"text": "IProductAlert"
}
}
]
},
{
"kind": "method",
"name": "renderAlerts",
"return": {
"type": {
"text": "TemplateResult | TemplateResult[]"
}
}
},
{
"kind": "method",
"name": "generateSkeleton",
"return": {
"type": {
"text": "TemplateResult"
}
}
},
{
"kind": "method",
"name": "setHeaderColor",
"parameters": [
{
"name": "anticholinergicData",
"type": {
"text": "any"
}
}
]
},
{
"kind": "method",
"name": "setScoreColor",
"parameters": [
{
"name": "anticholinergicScore",
"type": {
"text": "any"
}
}
]
},
{
"kind": "method",
"name": "setGlobalCiaSCoreColor",
"parameters": [
{
"name": "globalScore",
"type": {
"text": "number"
}
}
]
},
{
"kind": "method",
"name": "setGlobalAcbSCoreColor",
"parameters": [
{
"name": "globalScore",
"type": {
"text": "number"
}
}
]
},
{
"kind": "method",
"name": "generateCards",
"return": {
"type": {
"text": "TemplateResult"
}
},
"parameters": [
{
"name": "product",
"type": {
"text": "IProductAlert"
}
},
{
"name": "productId",
"type": {
"text": "string | number"
}
}
]
},
{
"kind": "method",
"name": "renderModal"
},
{
"kind": "method",
"name": "toggleAlerts",
"parameters": [
{
"name": "productId",
"type": {
"text": "string | number"
}
}
]
},
{
"kind": "method",
"name": "getHeadTitle",
"return": {
"type": {
"text": "string"
}
},
"parameters": [
{
"name": "productId",
"type": {
"text": "string | number"
}
},
{
"name": "alerts",
"optional": true,
"type": {
"text": "IPrescriptionAlert[]"
}
}
]
},
{
"kind": "method",
"name": "getLinkedProducts",
"return": {
"type": {
"text": "any[]"
}
},
"parameters": [
{
"name": "alerts",
"type": {
"text": "any[]"
}
},
{
"name": "productId",
"type": {
"text": "string | number"
}
}
]
},
{
"kind": "method",
"name": "buildAlerts",
"parameters": [
{
"name": "alerts",
"type": {
"text": "any"
}
}
]
}
],
"attributes": [
{
"name": "apiUrl",
"type": {
"text": "string"
},
"default": "\"\"",
"fieldName": "apiUrl"
},
{
"name": "apiKey",