@claudebernard/prescription-alerts-element
Version:
An element providing some custom stuff.
1,648 lines (1,647 loc) • 113 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/sam/bcb-prescription-alerts-sam"
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./alerts/ipc/bcb-prescription-alerts-ipc"
}
}
]
},
{
"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/alerts/allergy/bcb-prescription-alerts-allergy.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n title: 'Allergy',\n render: (args: any) => html`\n <bcb-prescription-alerts-allergy\n .apiUrl=${args.apiUrl}\n .apiKey=${args.apiKey}\n .products=${args.products}\n .patient= ${args.patient}\n .productId=${args.productId}></bcb-prescription-alerts-allergy>`,\n} satisfies Meta<BcbPrescriptionAlertsProps>"
},
{
"kind": "variable",
"name": "Allergy",
"type": {
"text": "Story"
},
"default": "{\n args: {\n apiUrl: 'https://dev.claudebernard.fr',\n apiKey: '',\n products: products,\n patient: patientAllergy,\n productId: 30441,\n },\n}"
}
],
"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": "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": "isNewApiEnabled",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "isNewApiEnabled"
},
{
"kind": "field",
"name": "products",
"type": {
"text": "IProduct[]"
},
"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": "isAlertsVisible",
"type": {
"text": "boolean"
},
"default": "true",
"attribute": "isAlertsVisible"
},
{
"kind": "field",
"name": "alertVisibility",
"type": {
"text": "object"
},
"default": "{\n interactionsLv1: true,\n interactionsLv2: true,\n interactionsLv3: true,\n interactionsLv4: 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: false,\n posologies: true,\n ipc: true,\n }",
"attribute": "alertVisibility"
},
{
"kind": "field",
"name": "productAlerts",
"type": {
"text": "{ [productId: number]: IProductAlert }"
}
},
{
"kind": "field",
"name": "isModalOpen",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "field",
"name": "currentAlert",
"type": {
"text": "IAlertChapter[]"
}
},
{
"kind": "method",
"name": "fetchData"
},
{
"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": "isNewApiEnabled",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "isNewApiEnabled"
},
{
"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": "isAlertsVisible",
"type": {
"text": "boolean"
},
"default": "true",
"fieldName": "isAlertsVisible"
},
{
"name": "alertVisibility",
"type": {
"text": "object"
},
"default": "{\n interactionsLv1: true,\n interactionsLv2: true,\n interactionsLv3: true,\n interactionsLv4: 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: false,\n posologies: true,\n ipc: true,\n }",
"fieldName": "alertVisibility"
}
],
"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/contraindication/bcb-prescription-alerts-ci-ci.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n title: 'Contraindication',\n render: (args) => html`\n <bcb-prescription-alerts-ci\n .apiUrl=${args.apiUrl}\n .apiKey=${args.apiKey}\n .products=${args.products}\n .patient= ${args.patient}\n .productId=${args.productId}></bcb-prescription-alerts-ci>`,\n} satisfies Meta<BcbPrescriptionAlertsProps>"
},
{
"kind": "variable",
"name": "Contraindicated",
"type": {
"text": "Story"
},
"default": "{\n args: {\n apiUrl: 'https://dev.claudebernard.fr',\n apiKey: '',\n products: products,\n patient: patientCI,\n productId: 30016,\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/alerts/contraindication/bcb-prescription-alerts-ci-ci.stories.ts"
}
},
{
"kind": "js",
"name": "Contraindicated",
"declaration": {
"name": "Contraindicated",
"module": "src/alerts/contraindication/bcb-prescription-alerts-ci-ci.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/contraindication/bcb-prescription-alerts-ci-nr.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n title: 'Contraindication',\n render: (args) => html`\n <bcb-prescription-alerts-ci\n .apiUrl=${args.apiUrl}\n .apiKey=${args.apiKey}\n .products=${args.products}\n .patient= ${args.patient}\n .productId=${args.productId}></bcb-prescription-alerts-ci>`,\n} satisfies Meta<BcbPrescriptionAlertsProps>"
},
{
"kind": "variable",
"name": "NotRecommended",
"type": {
"text": "Story"
},
"default": "{\n args: {\n apiUrl: 'https://dev.claudebernard.fr',\n apiKey: '',\n products: products,\n patient: patientCI,\n productId: 30441,\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/alerts/contraindication/bcb-prescription-alerts-ci-nr.stories.ts"
}
},
{
"kind": "js",
"name": "NotRecommended",
"declaration": {
"name": "NotRecommended",
"module": "src/alerts/contraindication/bcb-prescription-alerts-ci-nr.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/contraindication/bcb-prescription-alerts-ci.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "BcbPrescriptionAlertsCI",
"members": [
{
"kind": "field",
"name": "apiUrl",
"type": {
"text": "string"
},
"default": "\"\"",
"attribute": "apiUrl"
},
{
"kind": "field",
"name": "apiKey",
"type": {
"text": "string"
},
"default": "\"\"",
"attribute": "apiKey"
},
{
"kind": "field",
"name": "isNewApiEnabled",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "isNewApiEnabled"
},
{
"kind": "field",
"name": "products",
"type": {
"text": "IProduct[]"
},
"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": "isAlertsVisible",
"type": {
"text": "boolean"
},
"default": "true",
"attribute": "isAlertsVisible"
},
{
"kind": "field",
"name": "alertVisibility",
"type": {
"text": "object"
},
"default": "{\n interactionsLv1: true,\n interactionsLv2: true,\n interactionsLv3: true,\n interactionsLv4: 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: false,\n posologies: true,\n ipc: true\n }",
"attribute": "alertVisibility"
},
{
"kind": "field",
"name": "productAlerts",
"type": {
"text": "{ [productId: number]: IProductAlert }"
}
},
{
"kind": "field",
"name": "alertsCount",
"type": {
"text": "number"
}
},
{
"kind": "field",
"name": "isModalOpen",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "field",
"name": "currentAlert",
"type": {
"text": "IAlertChapter[]"
}
},
{
"kind": "method",
"name": "fetchData"
},
{
"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": "isNewApiEnabled",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "isNewApiEnabled"
},
{
"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": "isAlertsVisible",
"type": {
"text": "boolean"
},
"default": "true",
"fieldName": "isAlertsVisible"
},
{
"name": "alertVisibility",
"type": {
"text": "object"
},
"default": "{\n interactionsLv1: true,\n interactionsLv2: true,\n interactionsLv3: true,\n interactionsLv4: 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: false,\n posologies: true,\n ipc: true\n }",
"fieldName": "alertVisibility"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "bcb-prescription-alerts-ci",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "BcbPrescriptionAlertsCI",
"declaration": {
"name": "BcbPrescriptionAlertsCI",
"module": "src/alerts/contraindication/bcb-prescription-alerts-ci.ts"
}
},
{
"kind": "custom-element-definition",
"name": "bcb-prescription-alerts-ci",
"declaration": {
"name": "BcbPrescriptionAlertsCI",
"module": "src/alerts/contraindication/bcb-prescription-alerts-ci.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/interaction/bcb-prescription-alerts-interactions-1.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n title: 'Interactions',\n render: (args) => html`\n <bcb-prescription-alerts-interaction\n .apiUrl=${args.apiUrl}\n .apiKey=${args.apiKey}\n .products=${args.products}\n .patient= ${args.patient}\n .productId=${args.productId}></bcb-prescription-alerts-interaction>`,\n} satisfies Meta<BcbPrescriptionAlertsProps>"
},
{
"kind": "variable",
"name": "Level1",
"type": {
"text": "Story"
},
"default": "{\n args: {\n apiUrl: 'https://dev.claudebernard.fr',\n apiKey: '',\n products: productsInteractionLvl1,\n patient: patient\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/alerts/interaction/bcb-prescription-alerts-interactions-1.stories.ts"
}
},
{
"kind": "js",
"name": "Level1",
"declaration": {
"name": "Level1",
"module": "src/alerts/interaction/bcb-prescription-alerts-interactions-1.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/interaction/bcb-prescription-alerts-interactions-2.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n title: 'Interactions',\n render: (args) => html`\n <bcb-prescription-alerts-interaction\n .apiUrl=${args.apiUrl}\n .apiKey=${args.apiKey}\n .products=${args.products}\n .patient= ${args.patient}\n .productId=${args.productId}></bcb-prescription-alerts-interaction>`,\n} satisfies Meta<BcbPrescriptionAlertsProps>"
},
{
"kind": "variable",
"name": "Level2",
"type": {
"text": "Story"
},
"default": "{\n args: {\n apiUrl: 'https://dev.claudebernard.fr',\n apiKey: '',\n products: productsInteractionLvl2,\n patient: patient\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/alerts/interaction/bcb-prescription-alerts-interactions-2.stories.ts"
}
},
{
"kind": "js",
"name": "Level2",
"declaration": {
"name": "Level2",
"module": "src/alerts/interaction/bcb-prescription-alerts-interactions-2.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/interaction/bcb-prescription-alerts-interactions-3.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n title: 'Interactions',\n render: (args) => html`\n <bcb-prescription-alerts-interaction\n .apiUrl=${args.apiUrl}\n .apiKey=${args.apiKey}\n .products=${args.products}\n .patient= ${args.patient}\n .productId=${args.productId}></bcb-prescription-alerts-interaction>`,\n} satisfies Meta<BcbPrescriptionAlertsProps>"
},
{
"kind": "variable",
"name": "Level3",
"type": {
"text": "Story"
},
"default": "{\n args: {\n apiUrl: 'https://dev.claudebernard.fr',\n apiKey: '',\n products: productsInteractionLvl3,\n patient: patient\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/alerts/interaction/bcb-prescription-alerts-interactions-3.stories.ts"
}
},
{
"kind": "js",
"name": "Level3",
"declaration": {
"name": "Level3",
"module": "src/alerts/interaction/bcb-prescription-alerts-interactions-3.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/interaction/bcb-prescription-alerts-interactions-4.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n title: 'Interactions',\n render: (args) => html`\n <bcb-prescription-alerts-interaction\n .apiUrl=${args.apiUrl}\n .apiKey=${args.apiKey}\n .products=${args.products}\n .patient= ${args.patient}\n .productId=${args.productId}></bcb-prescription-alerts-interaction>`,\n} satisfies Meta<BcbPrescriptionAlertsProps>"
},
{
"kind": "variable",
"name": "Level4",
"type": {
"text": "Story"
},
"default": "{\n args: {\n apiUrl: 'https://dev.claudebernard.fr',\n apiKey: '',\n products: productsInteractionLvl4,\n patient: patient\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/alerts/interaction/bcb-prescription-alerts-interactions-4.stories.ts"
}
},
{
"kind": "js",
"name": "Level4",
"declaration": {
"name": "Level4",
"module": "src/alerts/interaction/bcb-prescription-alerts-interactions-4.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/interaction/bcb-prescription-alerts-interactions.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "BcbPrescriptionAlertsInteractions",
"members": [
{
"kind": "field",
"name": "apiUrl",
"type": {
"text": "string"
},
"default": "\"\"",
"attribute": "apiUrl"
},
{
"kind": "field",
"name": "apiKey",
"type": {
"text": "string"
},
"default": "\"\"",
"attribute": "apiKey"
},
{
"kind": "field",
"name": "isNewApiEnabled",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "isNewApiEnabled"
},
{
"kind": "field",
"name": "products",
"type": {
"text": "IProduct[]"
}
},
{
"kind": "field",
"name": "patient",
"type": {
"text": "any"
},
"default": "null",
"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": "isAlertsVisible",
"type": {
"text": "boolean"
},
"default": "true",
"attribute": "isAlertsVisible"
},
{
"kind": "field",
"name": "alertVisibility",
"type": {
"text": "object"
},
"default": "{\n interactionsLv1: true,\n interactionsLv2: true,\n interactionsLv3: true,\n interactionsLv4: 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: false,\n posologies: true,\n ipc: true,\n }",
"attribute": "alertVisibility"
},
{
"kind": "field",
"name": "productAlerts",
"type": {
"text": "{ [productId: number]: IProductAlert }"
}
},
{
"kind": "field",
"name": "isInteractionToggled",
"type": {
"text": "boolean"
},
"default": "true"
},
{
"kind": "field",
"name": "isModalOpen",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "field",
"name": "currentAlert",
"type": {
"text": "IPrescriptionAlert"
}
},
{
"kind": "field",
"name": "interactionColorMap",
"type": {
"text": "object"
},
"default": "{\n 1: 'info',\n 2: 'warning',\n 3: 'orange',\n 4: 'danger',\n }"
},
{
"kind": "method",
"name": "fetchData"
},
{
"kind": "method",
"name": "countAlerts"
},
{
"kind": "method",
"name": "handleClick",
"parameters": [
{
"name": "alertDetails",
"type": {
"text": "IPrescriptionAlert"
}
}
]
},
{
"kind": "method",
"name": "renderAlerts",
"return": {
"type": {
"text": "TemplateResult | TemplateResult[]"
}
}
},
{
"kind": "method",
"name": "generateCards",
"return": {
"type": {
"text": "TemplateResult"
}
},
"parameters": [
{
"name": "product",
"type": {
"text": "IProductAlert"
}
},
{
"name": "productId",
"type": {
"text": "string | number"
}
}
]
},
{
"kind": "method",
"name": "renderModal",
"parameters": [
{
"name": "alertDetails",
"type": {
"text": "IPrescriptionAlert"
}
}
]
},
{
"kind": "method",
"name": "decodeHtml",
"parameters": [
{
"name": "html",
"type": {
"text": "string"
}
}
]
},
{
"kind": "field",
"name": "isInteractionToggledMap",
"type": {
"text": "{ [key: string]: boolean }"
},
"default": "{}"
},
{
"kind": "method",
"name": "toggleInteraction",
"parameters": [
{
"name": "productId",
"type": {
"text": "string | number"
}
}
]
},
{
"kind": "method",
"name": "getInteractionTitle",
"return": {
"type": {
"text": "string"
}
},
"parameters": [
{
"name": "productId",
"type": {
"text": "string | number"
}
}
]
},
{
"kind": "method",
"name": "getInteractionProducts",
"return": {
"type": {
"text": "any[]"
}
},
"parameters": [
{
"name": "alerts",
"type": {
"text": "IPrescriptionAlert[]"
}
},
{
"name": "productId",
"type": {
"text": "string | number"
}
}
]
},
{
"kind": "method",
"name": "buildInteractions",
"parameters": [
{
"name": "alerts",
"type": {
"text": "any"
}
}
]
}
],
"attributes": [
{
"name": "apiUrl",
"type": {
"text": "string"
},
"default": "\"\"",
"fieldName": "apiUrl"
},
{
"name": "apiKey",
"type": {
"text": "string"
},
"default": "\"\"",
"fieldName": "apiKey"
},
{
"name": "isNewApiEnabled",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "isNewApiEnabled"
},
{
"name": "patient",
"type": {
"text": "any"
},
"default": "null",
"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": "isAlertsVisible",
"type": {
"text": "boolean"
},
"default": "true",
"fieldName": "isAlertsVisible"
},
{
"name": "alertVisibility",
"type": {
"text": "object"
},
"default": "{\n interactionsLv1: true,\n interactionsLv2: true,\n interactionsLv3: true,\n interactionsLv4: 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: false,\n posologies: true,\n ipc: true,\n }",
"fieldName": "alertVisibility"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "bcb-prescription-alerts-interaction",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "BcbPrescriptionAlertsInteractions",
"declaration": {
"name": "BcbPrescriptionAlertsInteractions",
"module": "src/alerts/interaction/bcb-prescription-alerts-interactions.ts"
}
},
{
"kind": "custom-element-definition",
"name": "bcb-prescription-alerts-interaction",
"declaration": {
"name": "BcbPrescriptionAlertsInteractions",
"module": "src/alerts/interaction/bcb-prescription-alerts-interactions.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/ipc/bcb-prescription-alerts-ipc.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n title: 'IPC',\n render: (args) => html`\n <bcb-prescription-alerts-ipc\n .apiUrl=${args.apiUrl}\n .apiKey=${args.apiKey}\n .products=${args.products}\n .patient= ${args.patient}\n .productId=${args.productId}></bcb-prescription-alerts-ipc>`,\n} satisfies Meta<BcbPrescriptionAlertsProps>"
},
{
"kind": "variable",
"name": "IPC",
"type": {
"text": "Story"
},
"default": "{\n args: {\n apiUrl: 'https://dev.claudebernard.fr',\n apiKey: '',\n products: products,\n patient: patient,\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/alerts/ipc/bcb-prescription-alerts-ipc.stories.ts"
}
},
{
"kind": "js",
"name": "IPC",
"declaration": {
"name": "IPC",
"module": "src/alerts/ipc/bcb-prescription-alerts-ipc.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/alerts/ipc/bcb-prescription-alerts-ipc.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "BcbPrescriptionAlertsIpc",
"members": [
{
"kind": "field",
"name": "apiUrl",
"type": {
"text": "string"
},
"default": "\"\"",
"attribute": "apiUrl"
},
{
"kind": "field",
"name": "apiKey",
"type": {
"text": "string"
},
"default": "\"\"",
"attribute": "apiKey"
},
{
"kind": "field",
"name": "isNewApiEnabled",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "isNewApiEnabled"
},
{
"kind": "field",
"name": "products",
"type": {
"text": "IProduct[]"
}
},
{
"kind": "field",
"name": "patient",
"type": {
"text": "any"
},
"default": "null",
"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": "isAlertsVisible",
"type": {
"text": "boolean"
},
"default": "true",
"attribute": "isAlertsVisible"
},
{
"kind": "field",
"name": "alertVisibility",
"type": {
"text": "object"
},
"default": "{\n interactionsLv1: true,\n interactionsLv2: true,\n interactionsLv3: true,\n interactionsLv4: 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: false,\n posologies: true,\n ipc: true,\n }",
"attribute": "alertVisibility"
},
{
"kind": "field",
"name": "productAlerts",
"type": {
"text": "{ [productId: number]: IProductAlert }"
}
},
{
"kind": "field",
"name": "isModalOpen",
"type": {
"text": "boolean"
},
"default": "false"
},
{
"kind": "field",
"name": "currentAlert",
"type": {
"text": "IPrescriptionAlert"
}
},
{
"kind": "method",
"name": "fetchData"
},
{
"kind": "method",
"name": "countAlerts"
},
{
"kind": "method",
"name": "handleClick",
"parameters": [
{
"name": "alertDetails",
"type": {
"text": "IPrescriptionAlert"
}
},
{
"name": "productId",
"type": {
"text": "number"
}
}
]
},
{
"kind": "method",
"name": "renderAlerts",
"return": {
"type": {
"text": "TemplateResult | TemplateResult[]"
}
}
},
{
"kind": "method",
"name": "generateCards",
"return": {
"type": {
"text": "TemplateResult"
}
},
"parameters": [
{
"name": "product",
"type": {
"text": "IProductAlert"
}
},
{
"name": "productId",
"type": {
"text": "string | number"
}
}
]
},
{
"kind": "method",
"name": "renderModal",
"parameters": [
{
"name": "alertDetails",
"type": {
"text": "IPrescriptionAlert"
}
}
]
},
{
"kind": "method",
"name": "decodeHtml",
"parameters": [
{
"name": "html",
"type": {
"text": "string"
}
}
]
},
{
"kind": "field",
"name": "isInteractionToggledMap",
"type": {
"text": "{ [key: string]: boolean }"
},
"default": "{}"
},
{
"kind": "method",
"name": "toggleInteraction",
"parameters": [
{
"name": "productId",
"type": {
"text": "string | number"
}
}
]
},
{
"kind": "method",
"name": "getInteractionTitle",
"return": {
"type": {
"text": "string"
}
},
"parameters": [
{
"name": "productId",
"type": {
"text": "string | number"
}
}
]
},
{
"kind": "method",
"name": "getInteractionProducts",
"return": {
"type": {
"text": "any[]"
}
},
"parameters": [
{
"name": "alerts",
"type": {
"text": "IPrescriptionAlert[]"
}
},
{
"name": "productId",
"type": {
"text": "string | number"
}
}
]
},
{
"kind": "method",
"name": "buildInteractions",
"parameters": [
{
"name": "alerts",
"type": {
"text": "any"
}
}
]
}
],
"attributes": [
{
"name": "apiUrl",
"type": {
"text": "string"
},
"default": "\"\"",
"fieldName": "apiUrl"
},
{
"name": "apiKey",
"type": {
"text": "string"
},
"default": "\"\"",
"fieldName": "apiKey"
},
{
"name": "isNewApiEnabled",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "isNewApiEnabled"
},
{
"name": "patient",
"type": {
"text": "any"
},
"default": "null",
"fieldName": "patient"
},
{
"name": "productId",
"type": {
"text": "number"
},
"default": "null",
"fieldName": "productId"
},
{
"name": "lang",
"type": {
"text": "string"
},
"default": "\"fr-FR\"",
"fieldName": "lang"
},
{