0.0.95 • Published 12 months ago

@claudebernard/prescription-alerts-element v0.0.95

Weekly downloads
-
License
-
Repository
-
Last release
12 months 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.84

1 year ago

0.0.85

1 year ago

0.0.86

1 year ago

0.0.87

1 year ago

0.0.88

12 months ago

0.0.80

1 year ago

0.0.81

1 year ago

0.0.82

1 year ago

0.0.73

1 year ago

0.0.74

1 year ago

0.0.75

1 year ago

0.0.76

1 year ago

0.0.77

1 year ago

0.0.78

1 year ago

0.0.79

1 year ago

0.0.70

1 year ago

0.0.71

1 year ago

0.0.72

1 year ago

0.0.62

1 year ago

0.0.63

1 year ago

0.0.64

1 year ago

0.0.65

1 year ago

0.0.66

1 year ago

0.0.67

1 year ago

0.0.68

1 year ago

0.0.69

1 year ago

0.0.60

1 year ago

0.0.61

1 year ago

0.0.95

12 months ago

0.0.90

12 months ago

0.0.91

12 months ago

0.0.92

12 months ago

0.0.93

12 months ago

0.0.94

12 months ago

0.0.59

1 year ago

0.0.52

1 year ago

0.0.53

1 year ago

0.0.54

1 year ago

0.0.55

1 year ago

0.0.56

1 year ago

0.0.57

1 year ago

0.0.58

1 year ago

0.0.51

1 year ago

0.0.50

1 year ago

0.0.48

1 year ago

0.0.49

1 year ago

0.0.47

1 year ago

0.0.46

1 year ago

0.0.45

1 year ago

0.0.43

1 year ago

0.0.44

1 year ago

0.0.40

1 year ago

0.0.41

1 year ago

0.0.42

1 year ago

0.0.39

1 year ago

0.0.37

1 year ago

0.0.32

1 year ago

0.0.33

1 year ago

0.0.34

1 year ago

0.0.35

1 year ago

0.0.36

1 year ago

0.0.30

1 year ago

0.0.31

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.27

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.25

1 year ago

0.0.19

1 year ago

0.0.26

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago