0.0.47 • Published 4 days ago

@claudebernard/prescription-alerts-element v0.0.47

Weekly downloads
-
License
-
Repository
-
Last release
4 days ago

\ element

An element which display prescription alerts about a product.

Installation

npm install --save @claudebernard/bcb-prescription-alerts-element

Usage

Script

Import as ES modules:

import "@claudebernard/bcb-prescription-alerts-element";

HTML

There are one custom element by alert type :

Name alertcustom elementDescription
contraindicationbcb-prescription-alerts-ciDisplayed all alerts with type CI for the porductId asked
precaution for usebcb-prescription-alerts-peDisplayed all alerts with type PE for the porductId asked
allergybcb-prescription-alerts-allergyDisplayed all alerts with type allergy for the porductId asked
redundancybcb-prescription-alerts-redundancyDisplayed all alerts with type redundancy for the porductId asked
STOPPbcb-prescription-alerts-stoppDisplayed all alerts with type STOPP for the porductId asked

"*" : The 2 identification characters of the alert

<bcb-prescription-alerts-*
  apiurl="https://api.claudebernard.fr" productId="35410"
></bcb-prescription-alerts-*>

Attributes

NameTypeDefaultDescription
apiurlURLhttps://api.claudebernard.frAPI base URL to call to do some stuff
langStringfr-FRUI display locale. Available : - French (France) : fr-FR - English: en
productsarray[object][]Products array of the prescription
patientobject{}Patient concerned by the prescription
productIdnumber{}Product ID for which to display alerts of the asked type

Events

NameTypeFormatDescription
onAlertClickedarray[object]{ chapter: [ id: string, label: string, text: string, source: string ]}User got detail about alert text clicked

Browser support

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

Custom element checklist

  • Public documentation (docs portal)
  • Functional on Angular, React, Vue
  • Unit tested
  • Code quality
  • Changelog with semantic release
  • Available in offline mode
  • Best practices compliant
  • Validated by QA
  • Publicly available
  • Based on FHIR
  • Example on storybook
  • Available demo
  • i18n
  • Browser support section
  • EOL section

License

Copyright of Cegedim. See LICENSE for details.

0.0.47

4 days ago

0.0.46

17 days ago

0.0.45

1 month ago

0.0.43

1 month ago

0.0.44

1 month ago

0.0.40

1 month ago

0.0.41

1 month ago

0.0.42

1 month ago

0.0.39

1 month ago

0.0.37

2 months ago

0.0.32

2 months ago

0.0.33

2 months ago

0.0.34

2 months ago

0.0.35

2 months ago

0.0.36

2 months ago

0.0.30

2 months ago

0.0.31

2 months ago

0.0.28

2 months ago

0.0.29

2 months ago

0.0.27

2 months ago

0.0.20

2 months ago

0.0.21

2 months ago

0.0.22

2 months ago

0.0.23

2 months ago

0.0.24

2 months ago

0.0.25

2 months ago

0.0.19

2 months ago

0.0.26

2 months ago

0.0.16

2 months ago

0.0.17

2 months ago

0.0.18

2 months ago

0.0.14

2 months ago

0.0.15

2 months ago

0.0.11

3 months ago

0.0.12

3 months ago

0.0.13

3 months ago

0.0.10

3 months ago

0.0.9

3 months ago

0.0.8

3 months ago

0.0.5

3 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.4

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago