@claudebernard/prescription-scanner-element
Version:
An element providing a medical prescription scanner and analyzer.
1,711 lines • 495 kB
JSON
{
"schemaVersion": "1.0.0",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "src/index.ts",
"declarations": [],
"exports": [
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "\"./prescription-scanner/prescription-scanner\""
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "\"./prescription-scanner/prescription-scanner.event\""
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "\"./prescription-scanner/prescription-scanner.function\""
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "\"./shared/medical-documents-api/generated/graphql\""
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "\"./prescription-scanner/actions-bar\""
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/prescription-scanner.event.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "BundleEvent",
"members": [
{
"kind": "field",
"name": "bundle",
"type": {
"text": "Bundle"
},
"default": "bundle"
}
],
"superclass": {
"name": "Event",
"module": "src/prescription-scanner/prescription-scanner.event.ts"
}
},
{
"kind": "class",
"description": "",
"name": "BundlesEvent",
"members": [
{
"kind": "field",
"name": "bundles",
"type": {
"text": "Bundle[]"
},
"default": "bundles"
}
],
"superclass": {
"name": "Event",
"module": "src/prescription-scanner/prescription-scanner.event.ts"
}
}
],
"exports": [
{
"kind": "js",
"name": "BundleEvent",
"declaration": {
"name": "BundleEvent",
"module": "src/prescription-scanner/prescription-scanner.event.ts"
}
},
{
"kind": "js",
"name": "BundlesEvent",
"declaration": {
"name": "BundlesEvent",
"module": "src/prescription-scanner/prescription-scanner.event.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/prescription-scanner.function.ts",
"declarations": [],
"exports": [
{
"kind": "js",
"name": "FindMedicationFunction",
"declaration": {
"name": "FindMedicationFunction",
"module": "\"./medication/find-medication.function\""
}
},
{
"kind": "js",
"name": "FormatMedicationLabelFunction",
"declaration": {
"name": "FormatMedicationLabelFunction",
"module": "\"./medication/format-medication-label.function\""
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/prescription-scanner.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n tags: [\"autodocs\"],\n render: (args) => html`<div style=\"height: 96vh; width: 100%; margin: auto; overflow: auto\">\n <bcb-prescription-scanner\n lang=${ifDefined(args.lang)}\n apiUrl=${args.apiUrl}\n apiKey=${ifDefined(args.apiKey)}\n .model=${args.model}\n ?add-medication-button-visible=${args.addMedicationButtonVisible}\n ?prescription-item-deletion-disabled=${args.prescriptionItemDeletionDisabled}\n ?analysis-fixing-disabled=${args.analysisFixingDisabled}\n ?dosage-edition-disabled=${args.dosageEditionDisabled}\n ?selection-disabled=${args.selectionDisabled}\n ?highlight-visible=${args.highlightVisible}\n >\n </bcb-prescription-scanner>\n </div>`,\n\n argTypes: {\n lang: { type: \"string\" },\n apiUrl: { type: \"string\" },\n apiKey: { type: \"string\" },\n model: { type: \"string\" },\n addMedicationButtonVisible: { type: \"boolean\" },\n prescriptionItemDeletionDisabled: { type: \"boolean\" },\n analysisFixingDisabled: { type: \"boolean\" },\n dosageEditionDisabled: { type: \"boolean\" },\n selectionDisabled: { type: \"boolean\" },\n highlightVisible: { type: \"boolean\" },\n },\n args: {\n lang: \"fr-FR\",\n apiUrl: \"https://apim-gw-dev-int.cegedim-sante.com/pim/medical-documents\",\n apiKey: \"\",\n model: Model.Phealing,\n addMedicationButtonVisible: true,\n prescriptionItemDeletionDisabled: false,\n analysisFixingDisabled: false,\n dosageEditionDisabled: false,\n selectionDisabled: false,\n highlightVisible: false,\n },\n} satisfies Meta<PrescriptionScannerProps>"
},
{
"kind": "variable",
"name": "Base",
"type": {
"text": "Story"
},
"default": "{\n args: {\n addMedicationButtonVisible: true,\n apiUrl: \"https://apim-gw-dev-int.cegedim-sante.com/pim/medical-documents\",\n apiKey: \"\",\n },\n}"
},
{
"kind": "variable",
"name": "With_Highlight",
"type": {
"text": "Story"
},
"default": "{\n args: {\n ...Base.args,\n highlightVisible: true,\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/prescription-scanner/prescription-scanner.stories.ts"
}
},
{
"kind": "js",
"name": "Base",
"declaration": {
"name": "Base",
"module": "src/prescription-scanner/prescription-scanner.stories.ts"
}
},
{
"kind": "js",
"name": "With_Highlight",
"declaration": {
"name": "With_Highlight",
"module": "src/prescription-scanner/prescription-scanner.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/prescription-scanner.ts",
"declarations": [
{
"kind": "variable",
"name": "{ setLocale, getLocale }"
},
{
"kind": "class",
"description": "An element providing a medical prescription scanner and analyzer.",
"name": "PrescriptionScanner",
"slots": [
{
"description": "Custom actions. Better to directly use <bcb-actions-buttons> that already has the correct slot property.",
"name": "actions-buttons"
}
],
"members": [
{
"kind": "field",
"name": "apiUrl",
"type": {
"text": "string"
},
"default": "\"https://platform.claudebernard.fr/api/medical-documents\"",
"attribute": "apiUrl"
},
{
"kind": "field",
"name": "apiKey",
"type": {
"text": "string | undefined"
},
"attribute": "apiKey"
},
{
"kind": "field",
"name": "model",
"type": {
"text": "Model | undefined"
},
"attribute": "model"
},
{
"kind": "field",
"name": "fileUploadId",
"type": {
"text": "string | undefined"
},
"attribute": "fileUploadId"
},
{
"kind": "field",
"name": "lang",
"type": {
"text": "string"
},
"default": "\"fr-FR\"",
"attribute": "lang"
},
{
"kind": "field",
"name": "selectionDisabled",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "selection-disabled"
},
{
"kind": "field",
"name": "dosageEditionDisabled",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "dosage-edition-disabled"
},
{
"kind": "field",
"name": "analysisFixingDisabled",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "analysis-fixing-disabled"
},
{
"kind": "field",
"name": "prescriptionItemDeletionDisabled",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "prescription-item-deletion-disabled"
},
{
"kind": "field",
"name": "findMedication",
"type": {
"text": "FindMedicationFunction"
}
},
{
"kind": "field",
"name": "formatMedicationLabel",
"type": {
"text": "FormatMedicationLabelFunction"
}
},
{
"kind": "field",
"name": "addMedicationButtonVisible",
"type": {
"text": "boolean | undefined"
},
"default": "true",
"attribute": "add-medication-button-visible"
},
{
"kind": "field",
"name": "highlightVisible",
"type": {
"text": "boolean | undefined"
},
"default": "false",
"attribute": "highlight-visible"
},
{
"kind": "field",
"name": "_onMobileInterface",
"type": {
"text": "boolean"
},
"privacy": "private",
"default": "false"
},
{
"kind": "field",
"name": "_activeMobileSection",
"type": {
"text": "number"
},
"privacy": "private",
"default": "0"
},
{
"kind": "field",
"name": "_boundIsUserOnMobileInterface",
"type": {
"text": "() => void"
},
"privacy": "private"
},
{
"kind": "field",
"name": "selectedFileAnalysis",
"type": {
"text": "FileAnalysis | undefined"
},
"privacy": "private"
},
{
"kind": "field",
"name": "analysis",
"type": {
"text": "Analysis"
},
"privacy": "private",
"default": "{ fileAnalysis: [], ignoredResourceIds: [] }"
},
{
"kind": "field",
"name": "errorMessage",
"type": {
"text": "string"
},
"privacy": "private",
"default": "\"\""
},
{
"kind": "field",
"name": "highlightMedicationsList",
"type": {
"text": "HighlightMedicationListByDocument[]"
},
"privacy": "private",
"default": "[]"
},
{
"kind": "field",
"name": "_events",
"type": {
"text": "object"
},
"privacy": "private",
"static": true,
"default": "{\n NEW_BUNDLE: \"new-bundle\",\n BUNDLES_FILTERED: \"bundles-filtered\",\n BUNDLES_UPDATED: \"bundles-updated\",\n }"
},
{
"kind": "method",
"name": "_isUserOnMobileInterface",
"privacy": "private",
"return": {
"type": {
"text": "void"
}
}
},
{
"kind": "method",
"name": "updateHighlightMedicationsList",
"privacy": "private",
"return": {
"type": {
"text": "void"
}
}
},
{
"kind": "method",
"name": "removeHighlightMedicationsList",
"privacy": "private",
"parameters": [
{
"name": "file",
"type": {
"text": "File"
}
}
]
},
{
"kind": "field",
"name": "bundles",
"type": {
"text": "Bundle[]"
},
"privacy": "public",
"readonly": true
},
{
"kind": "method",
"name": "handleMobileNavigation",
"parameters": [
{
"name": "event",
"type": {
"text": "CustomEvent"
}
}
]
},
{
"kind": "method",
"name": "_withLocale",
"privacy": "private",
"parameters": [
{
"name": "template",
"type": {
"text": "() => TemplateResult"
}
}
]
},
{
"kind": "method",
"name": "_renderErrorMessage",
"privacy": "private"
},
{
"kind": "method",
"name": "_isAnalysisLoading",
"privacy": "private",
"return": {
"type": {
"text": "boolean"
}
}
},
{
"kind": "method",
"name": "_addPrescriptionItem",
"privacy": "private",
"parameters": [
{
"name": "event",
"type": {
"text": "PrescriptionItemEvent"
}
}
]
},
{
"kind": "method",
"name": "_prescriptionItemDeleted",
"privacy": "private",
"parameters": [
{
"name": "event",
"type": {
"text": "PrescriptionItemEvent"
}
}
]
},
{
"kind": "method",
"name": "_medicationRequestUpdated",
"privacy": "private",
"parameters": [
{
"name": "event",
"type": {
"text": "MedicationRequestEvent"
}
}
]
},
{
"kind": "method",
"name": "_medicationUpdated",
"privacy": "private",
"parameters": [
{
"name": "event",
"type": {
"text": "MedicationEvent"
}
}
]
},
{
"kind": "method",
"name": "_mapBundleEntriesToInputResources",
"privacy": "private",
"return": {
"type": {
"text": "ResourcesInput"
}
},
"parameters": [
{
"name": "entries",
"type": {
"text": "BundleEntry[]"
}
}
]
},
{
"kind": "method",
"name": "_fileUploadIdProvided",
"privacy": "private",
"parameters": [
{
"name": "fileUploadId",
"type": {
"text": "string"
}
}
]
},
{
"kind": "method",
"name": "_filesUploaded",
"privacy": "private",
"parameters": [
{
"name": "e",
"type": {
"text": "FilesEvent"
}
}
]
},
{
"kind": "method",
"name": "_fileSelected",
"privacy": "private",
"parameters": [
{
"name": "fileEvent",
"type": {
"text": "FileEvent"
}
}
]
},
{
"kind": "method",
"name": "_fileDeleted",
"privacy": "private",
"parameters": [
{
"name": "e",
"type": {
"text": "FileEvent"
}
}
]
},
{
"kind": "method",
"name": "_updateSelectedPrescriptionItems",
"privacy": "private",
"parameters": [
{
"name": "e",
"type": {
"text": "PrescriptionItemSelectionEvent"
}
}
]
},
{
"kind": "method",
"name": "_getFilteredBundles",
"privacy": "private",
"return": {
"type": {
"text": "Bundle[]"
}
}
},
{
"kind": "method",
"name": "dispatchEvent",
"return": {
"type": {
"text": "boolean"
}
},
"parameters": [
{
"name": "event",
"type": {
"text": "Event"
}
}
]
},
{
"kind": "method",
"name": "_updateAnalysis",
"privacy": "private",
"return": {
"type": {
"text": "void"
}
}
},
{
"kind": "method",
"name": "_runAnalysis",
"privacy": "private",
"parameters": [
{
"name": "fileAnalysis",
"type": {
"text": "FileAnalysis"
}
},
{
"name": "fileUploadId",
"optional": true,
"type": {
"text": "string"
}
}
]
},
{
"kind": "method",
"name": "_extractReasons",
"privacy": "private",
"parameters": [
{
"name": "bundle",
"type": {
"text": "Bundle"
}
}
]
},
{
"kind": "field",
"name": "apiUrlChanged",
"static": true,
"readonly": true
},
{
"kind": "field",
"name": "apiKeyChanged",
"static": true,
"readonly": true
}
],
"events": [
{
"type": {
"text": "BundleEvent"
}
},
{
"type": {
"text": "BundleEvent"
},
"description": "new bundle analyzed",
"name": "new-bundle"
},
{
"type": {
"text": "BundlesEvent"
},
"description": "user selected or unselected some prescription items",
"name": "bundles-filtered"
},
{
"type": {
"text": "BundlesEvent"
},
"description": "user edited the content of bundles",
"name": "bundles-updated"
}
],
"attributes": [
{
"name": "apiUrl",
"type": {
"text": "string"
},
"default": "\"https://platform.claudebernard.fr/api/medical-documents\"",
"fieldName": "apiUrl"
},
{
"name": "apiKey",
"type": {
"text": "string | undefined"
},
"fieldName": "apiKey"
},
{
"name": "model",
"type": {
"text": "Model | undefined"
},
"fieldName": "model"
},
{
"name": "fileUploadId",
"type": {
"text": "string | undefined"
},
"fieldName": "fileUploadId"
},
{
"name": "lang",
"type": {
"text": "string"
},
"default": "\"fr-FR\"",
"fieldName": "lang"
},
{
"name": "selection-disabled",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "selectionDisabled"
},
{
"name": "dosage-edition-disabled",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "dosageEditionDisabled"
},
{
"name": "analysis-fixing-disabled",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "analysisFixingDisabled"
},
{
"name": "prescription-item-deletion-disabled",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "prescriptionItemDeletionDisabled"
},
{
"name": "add-medication-button-visible",
"type": {
"text": "boolean | undefined"
},
"default": "true",
"fieldName": "addMedicationButtonVisible"
},
{
"name": "highlight-visible",
"type": {
"text": "boolean | undefined"
},
"default": "false",
"fieldName": "highlightVisible"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "bcb-prescription-scanner",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "\"../index\""
}
},
{
"kind": "js",
"name": "{ setLocale, getLocale }",
"declaration": {
"name": "{ setLocale, getLocale }",
"module": "src/prescription-scanner/prescription-scanner.ts"
}
},
{
"kind": "js",
"name": "PrescriptionScanner",
"declaration": {
"name": "PrescriptionScanner",
"module": "src/prescription-scanner/prescription-scanner.ts"
}
},
{
"kind": "custom-element-definition",
"name": "bcb-prescription-scanner",
"declaration": {
"name": "PrescriptionScanner",
"module": "src/prescription-scanner/prescription-scanner.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/service/prescription-data-holder.ts",
"declarations": [
{
"kind": "variable",
"name": "prescriptionDataHolder",
"default": "new PrescriptionDataHolder()"
}
],
"exports": [
{
"kind": "js",
"name": "prescriptionDataHolder",
"declaration": {
"name": "prescriptionDataHolder",
"module": "src/service/prescription-data-holder.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/actions-bar/actions-bar.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "ActionsBar",
"slots": [
{
"description": "Actions elements (e.g buttons)",
"name": ""
}
],
"members": [],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "bcb-actions-bar",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "ActionsBar",
"declaration": {
"name": "ActionsBar",
"module": "src/prescription-scanner/actions-bar/actions-bar.ts"
}
},
{
"kind": "custom-element-definition",
"name": "bcb-actions-bar",
"declaration": {
"name": "ActionsBar",
"module": "src/prescription-scanner/actions-bar/actions-bar.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/actions-bar/actions-buttons.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "ActionsButtons",
"slots": [
{
"description": "Custom actions. Can be <bcb-action-button> or anything else.",
"name": ""
}
],
"members": [
{
"kind": "field",
"name": "slot",
"type": {
"text": "string"
},
"default": "\"actions-buttons\"",
"attribute": "slot",
"reflects": true
}
],
"attributes": [
{
"name": "slot",
"type": {
"text": "string"
},
"default": "\"actions-buttons\"",
"fieldName": "slot"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "bcb-actions-buttons",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "ActionsButtons",
"declaration": {
"name": "ActionsButtons",
"module": "src/prescription-scanner/actions-bar/actions-buttons.ts"
}
},
{
"kind": "custom-element-definition",
"name": "bcb-actions-buttons",
"declaration": {
"name": "ActionsButtons",
"module": "src/prescription-scanner/actions-bar/actions-buttons.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/actions-bar/actions.utils.ts",
"declarations": [
{
"kind": "function",
"name": "renderBundleRawText",
"return": {
"type": {
"text": "Promise<string>"
}
},
"parameters": [
{
"name": "bundle",
"type": {
"text": "Bundle"
}
}
]
}
],
"exports": [
{
"kind": "js",
"name": "renderMedicationRequestLabel",
"declaration": {
"name": "renderMedicationRequestLabel",
"module": "\"../medication/medication-request/format-medication-request-label.function\""
}
},
{
"kind": "js",
"name": "renderMedicationLabel",
"declaration": {
"name": "renderMedicationLabel",
"module": "\"../medication/format-medication-label.function\""
}
},
{
"kind": "js",
"name": "renderBundleRawText",
"declaration": {
"name": "renderBundleRawText",
"module": "src/prescription-scanner/actions-bar/actions.utils.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/actions-bar/index.ts",
"declarations": [],
"exports": [
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "\"./actions-buttons\""
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "\"./action-button/action-button\""
}
},
{
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "\"./actions.utils\""
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/actions-menu/actions-menu.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n tags: [\"autodocs\"],\n render: (args) => html`<div style=\"height: 20vh; margin-left: 200px; margin-top: 10px\">\n <actions-menu\n .items=${args.items}\n >\n <bcbd-icon icon=\"ellipsis-vertical\" data-test-id=\"menu-button\"></bcbd-icon>\n </actions-menu>\n </div>`,\n\n argTypes: {\n },\n args: {\n items: [\n {\n label: \"Modifier la posologie\",\n icon: \"pencil\",\n onClick: () => {\n console.log(\"Edit\");\n },\n },\n {\n label: \"Corriger l'analyse\",\n icon: \"prescription-bottle\",\n onClick: () => {\n console.log(\"Fix the analysis\");\n },\n },\n {\n label: \"Supprimer\",\n icon: \"trash-can\",\n onClick: () => {\n console.log(\"Delete\");\n },\n },\n ],\n },\n} satisfies Meta<ActionsMenuProps>"
},
{
"kind": "variable",
"name": "Base",
"type": {
"text": "Story"
},
"default": "{\n args: {\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/prescription-scanner/actions-menu/actions-menu.stories.ts"
}
},
{
"kind": "js",
"name": "Base",
"declaration": {
"name": "Base",
"module": "src/prescription-scanner/actions-menu/actions-menu.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/actions-menu/actions-menu.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "ActionsMenu",
"members": [
{
"kind": "field",
"name": "items",
"type": {
"text": "MenuItem[]"
},
"default": "[]",
"attribute": "items"
},
{
"kind": "field",
"name": "menuVisible",
"type": {
"text": "boolean"
},
"privacy": "private",
"default": "false"
},
{
"kind": "method",
"name": "handleClick",
"privacy": "private"
},
{
"kind": "field",
"name": "handleDocumentClick",
"privacy": "private"
},
{
"kind": "method",
"name": "handleItemClick",
"privacy": "private",
"parameters": [
{
"name": "onClick",
"type": {
"text": "() => void"
}
},
{
"name": "event",
"type": {
"text": "MouseEvent"
}
}
]
},
{
"kind": "method",
"name": "closeMenu",
"privacy": "private"
},
{
"kind": "method",
"name": "renderOptionList",
"privacy": "private"
}
],
"attributes": [
{
"name": "items",
"type": {
"text": "MenuItem[]"
},
"default": "[]",
"fieldName": "items"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "actions-menu",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "ActionsMenu",
"declaration": {
"name": "ActionsMenu",
"module": "src/prescription-scanner/actions-menu/actions-menu.ts"
}
},
{
"kind": "custom-element-definition",
"name": "actions-menu",
"declaration": {
"name": "ActionsMenu",
"module": "src/prescription-scanner/actions-menu/actions-menu.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/documents/documents.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n tags: [\"autodocs\"],\n render: (args) => html`\n <bcb-documents\n ?acceptTextFiles=${args.acceptTextFiles}\n ?loading=${args.loading}\n >\n </bcb-documents>`,\n\n argTypes: {\n acceptTextFiles: { type: \"boolean\" },\n loading: { type: \"boolean\" },\n },\n args: {\n loading: false,\n acceptTextFiles: false,\n files: [],\n selectedFile: undefined,\n highlightMedicationsList: [],\n },\n} satisfies Meta<DocumentsProps>"
},
{
"kind": "variable",
"name": "Base",
"type": {
"text": "Story"
},
"default": "{\n args: {\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/prescription-scanner/documents/documents.stories.ts"
}
},
{
"kind": "js",
"name": "Base",
"declaration": {
"name": "Base",
"module": "src/prescription-scanner/documents/documents.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/documents/documents.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "Documents",
"members": [
{
"kind": "field",
"name": "acceptTextFiles",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "acceptTextFiles"
},
{
"kind": "field",
"name": "loading",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "loading"
},
{
"kind": "field",
"name": "files",
"type": {
"text": "File[]"
},
"default": "[]"
},
{
"kind": "field",
"name": "selectedFile",
"type": {
"text": "File | undefined"
}
},
{
"kind": "field",
"name": "highlightMedicationsList",
"type": {
"text": "HighlightMedicationListByDocument[]"
},
"default": "[]"
},
{
"kind": "field",
"name": "events",
"type": {
"text": "object"
},
"static": true,
"readonly": true,
"default": "{\n FILE_SELECTED: \"file-selected\",\n FILES_UPLOADED: \"files-uploaded\",\n FILE_DELETED: \"file-deleted\",\n }"
},
{
"kind": "method",
"name": "_renderFilePreview",
"privacy": "private"
},
{
"kind": "method",
"name": "_triggerFileUpload",
"privacy": "private"
},
{
"kind": "method",
"name": "_renderFileViewer",
"privacy": "private"
},
{
"kind": "method",
"name": "_filesUploaded",
"privacy": "private",
"parameters": [
{
"name": "e",
"type": {
"text": "FilesEvent | InputEvent"
}
}
]
},
{
"kind": "method",
"name": "_fileSelected",
"privacy": "private",
"parameters": [
{
"name": "fileEvent",
"type": {
"text": "FileEvent"
}
}
]
},
{
"kind": "method",
"name": "_fileDeleted",
"privacy": "private",
"parameters": [
{
"name": "e",
"type": {
"text": "FileEvent"
}
}
]
}
],
"events": [
{
"type": {
"text": "FilesEvent"
}
}
],
"attributes": [
{
"name": "acceptTextFiles",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "acceptTextFiles"
},
{
"name": "loading",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "loading"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "bcb-documents",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "Documents",
"declaration": {
"name": "Documents",
"module": "src/prescription-scanner/documents/documents.ts"
}
},
{
"kind": "custom-element-definition",
"name": "bcb-documents",
"declaration": {
"name": "Documents",
"module": "src/prescription-scanner/documents/documents.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/documents/files.event.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "FileEvent",
"members": [
{
"kind": "field",
"name": "file",
"type": {
"text": "File"
},
"default": "file"
}
],
"superclass": {
"name": "Event",
"module": "src/prescription-scanner/documents/files.event.ts"
}
},
{
"kind": "class",
"description": "",
"name": "FilesEvent",
"members": [
{
"kind": "field",
"name": "files",
"type": {
"text": "File[]"
}
}
],
"superclass": {
"name": "Event",
"module": "src/prescription-scanner/documents/files.event.ts"
}
}
],
"exports": [
{
"kind": "js",
"name": "FileEvent",
"declaration": {
"name": "FileEvent",
"module": "src/prescription-scanner/documents/files.event.ts"
}
},
{
"kind": "js",
"name": "FilesEvent",
"declaration": {
"name": "FilesEvent",
"module": "src/prescription-scanner/documents/files.event.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/loading-container/loading-container.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n tags: [\"autodocs\"],\n render: (args) => html`<div style=\"height: 20vh;margin-top: 100px\">\n <loading-container\n ?loading=${args.loading}\n loadingText=${args.loadingText}\n >\n Page content\n </loading-container>\n </div>`,\n\n argTypes: {\n loading: { type: \"boolean\" },\n loadingText: { type: \"string\" },\n },\n args: {\n loading: true,\n loadingText: \"Loading Text\",\n },\n} satisfies Meta<LoadingContainerProps>"
},
{
"kind": "variable",
"name": "Base",
"type": {
"text": "Story"
},
"default": "{\n args: {\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/prescription-scanner/loading-container/loading-container.stories.ts"
}
},
{
"kind": "js",
"name": "Base",
"declaration": {
"name": "Base",
"module": "src/prescription-scanner/loading-container/loading-container.stories.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/loading-container/loading-container.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "LoadingContainer",
"members": [
{
"kind": "field",
"name": "loading",
"type": {
"text": "boolean"
},
"default": "false",
"attribute": "loading"
},
{
"kind": "field",
"name": "loadingText",
"type": {
"text": "string"
},
"default": "\"\"",
"attribute": "loadingText"
}
],
"attributes": [
{
"name": "loading",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "loading"
},
{
"name": "loadingText",
"type": {
"text": "string"
},
"default": "\"\"",
"fieldName": "loadingText"
}
],
"superclass": {
"name": "LitElement",
"package": "lit"
},
"tagName": "loading-container",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "LoadingContainer",
"declaration": {
"name": "LoadingContainer",
"module": "src/prescription-scanner/loading-container/loading-container.ts"
}
},
{
"kind": "custom-element-definition",
"name": "loading-container",
"declaration": {
"name": "LoadingContainer",
"module": "src/prescription-scanner/loading-container/loading-container.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/medication/find-medication.function.ts",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/medication/format-medication-label.function.ts",
"declarations": [
{
"kind": "function",
"name": "renderMedicationLabel",
"return": {
"type": {
"text": "string | undefined"
}
},
"parameters": [
{
"name": "medication",
"type": {
"text": "Medication"
}
}
]
}
],
"exports": [
{
"kind": "js",
"name": "renderMedicationLabel",
"declaration": {
"name": "renderMedicationLabel",
"module": "src/prescription-scanner/medication/format-medication-label.function.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/medication/medication.event.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "MedicationEvent",
"members": [
{
"kind": "field",
"name": "medication",
"type": {
"text": "Medication"
},
"default": "medication"
},
{
"kind": "field",
"name": "originalId",
"type": {
"text": "string | undefined"
},
"default": "originalId"
}
],
"superclass": {
"name": "Event",
"module": "src/prescription-scanner/medication/medication.event.ts"
}
}
],
"exports": [
{
"kind": "js",
"name": "MedicationEvent",
"declaration": {
"name": "MedicationEvent",
"module": "src/prescription-scanner/medication/medication.event.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/medication/reason.event.ts",
"declarations": [
{
"kind": "class",
"description": "",
"name": "ReasonEvent",
"members": [
{
"kind": "field",
"name": "reason",
"type": {
"text": "string"
},
"default": "reason"
}
],
"superclass": {
"name": "Event",
"module": "src/prescription-scanner/medication/reason.event.ts"
}
}
],
"exports": [
{
"kind": "js",
"name": "ReasonEvent",
"declaration": {
"name": "ReasonEvent",
"module": "src/prescription-scanner/medication/reason.event.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/prescription-scanner/mobile-nav/mobile-nav.stories.ts",
"declarations": [
{
"kind": "variable",
"name": "meta",
"default": "{\n tags: [\"autodocs\"],\n render: (args) => html`\n <bcb-mobile-nav activeButton=${args.activeButton}>\n </bcb-mobile-nav>`,\n\n argTypes: {\n activeButton: { type: \"string\" },\n },\n args: {\n activeButton: \"Documents\",\n },\n} satisfies Meta<MobileNav>"
},
{
"kind": "variable",
"name": "Base",
"type": {
"text": "Story"
},
"default": "{\n args: {\n },\n}"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "meta",
"module": "src/prescriptio