0.3.0 • Published 4 years ago
@vidal-community/vidal-side-effect v0.3.0
VidalSideEffect
This project allows visualizing side effects as a tree map.
Install
npm install @vidal-community/vidal-side-effect
Usage
import @vidal-community/vidal-side-effect
Add <vidal-side-effect></vidal-side-effect>
to your HTML page
Access by javascript to the element and set the side effect supplier as an async function.
var vidalSideEffectElement = document.querySelector("vidal-side-effect");
vidalSideEffectElement.sideEffectSupplier = (url) => fetch('yourUrlForSideEffects' + url);
Properties
Name | Type | Usage | default value | Notes |
---|---|---|---|---|
drugIds | string[] | Allows to give vidal drugs ids to the web component | [] | A vidal drug ids is vidal://DRUG_TYPE/drugId |
sideEffectSupplier | (url) => Promise | Allows to override url to call to get side effect tree | (url) => fetch(url) | Call with /rest/side-effect/hierarchy?${(this.drugIds.map(vidalDrugId => 'q=' + vidalDrugId).join('&'))} as Parameter |
0.3.0
4 years ago
0.2.0
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago
0.0.5-6
4 years ago
0.0.5-3
4 years ago
0.0.5-2
4 years ago
0.0.5-1
4 years ago
0.0.5-5
4 years ago
0.0.5-0
4 years ago
0.0.4-1
4 years ago
0.0.4
4 years ago
0.0.4-0
4 years ago
0.0.3
4 years ago
0.0.2-1
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago
0.0.0-1
4 years ago
0.0.0
4 years ago