1.0.94 • Published 6 years ago

bdt105vidal v1.0.94

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Vidal

This package gives functions to use main vidal APIs

Dependencies

  • bdt105toolbox

How to install?

npm install --save bdt105vidal

How to use?

Create an object Vidal

import { Vidal } from "bdt105vidal/dist";

Configuration

Overide configuration object properties if needed.

public configuration = {
    "baseUrl": "http://api.vidal.fr",
    "urlVigie": "http://dev-vidal-memo.vidal.fr/api/memo-rules/rules",
    "apiDomain": "/rest/api",
    "newsDomain": "/rest/news",
    "pmsiDomain": "/rest/pmsi",
    "cim10": "/cim10",
    "allergies": "/allergies",
    "pathologies": "/pathologies",
    "search": "/search",
    "searchAllergies": "/allergies",
    "searchPathologies": "/pathologies",
    "alerts": "/alerts",
    "alertsFull": "/alerts/full",
    "alertsHtml": "/alerts/html",
    "reco": "/reco",
    "version": "/version",
    "postComplement": "/postComplement",
    "indicationGroup": "/indication-group",
    "prescriptionRecos": "/recos/guidelines",
    "adaptedDrugs": "/adapted-drugs",
    "sideEffectSort": "/side-effect/sort-drugs",
    "app_id": "",
    "app_key": "",
    "alertsStyle": false,
    "alertsHtmlStyle": "#main{max-width: 100%} .jquery_tabs ul.tabs-list{width: 20%} .jquery_tabs .content {width: 79%; border: 0px} #main, #sommaire_summary, .grid, .jquery_tabs .content, td {background: transparent}",
    "alertsHtmlStyleHideSidebar": "",
    "alertsHtmlStyleHideHeader": "body {margin-top: 10px}",
};

Functions

cleanId(id: any, type: string): string;
getApiBaseUrl(): string;
getHtmlStyle(): boolean;
getApp_key(): string;
getApp_id(): string;
getUrlCredentials(prefix: string): string;
search(callback: Function, params: string): void;
searchAllergies(callback: Function, params: string): void;
getProducts(params: string, filter: string): void;
getAllergies(params: string): void;
getPathologies(params: string): void;
searchPathologies(callback: Function, params: string): void;
getFromId(callback: Function, type: string, id: string): void;
getPrescriptionUnits(callback: Function, type: string, id: string): void;
getPrescriptionRoutes(callback: Function, type: string, id: string): void;
getIndications(callback: Function, type: string, id: string): void;
getAlerts(callback: Function, prescription: any, params: any, type: string): void;
assignAlertsToLines(prescription: any, xmlAlerts: any): void;
addStyleToHtml(text: string, hideSidebar: boolean, hideHeader: boolean): string;
getOptDocument(callback: Function, type: string, id: number): void;
getDocuments(callback: Function, type: string, id: number, params: any): void;
getATCClassFromProduct(callback: Function, type: string, id: number): void;
getVIDALClassFromProduct(callback: Function, type: string, id: number): void;
getProduct(callback: Function, type: string, id: number): void;
getVigieAlerts(callback: Function, prescription: any): void;
getNewsFromProduct(callback: Function, type: string, id: number): void;
private getPosologyXml(patient, routeIds, indicationIds);
getPosologyFromProduct(callback: Function, type: string, id: number, patient: any, routeIds: number[], indicationIds: number[], params: any): void;
getUnitIdFromFrequency(stringFrequency: string): number;
getFrequencyFromUnitId(unitId: Number): string;
private getPostComplementXml(drugs, icd10Codes, text);
getPostComplement(callback: Function, drugs: string[], icd10Codes: string[], text: string, params: any): void;
getCim10FromIndicationGroupId(callback: Function, id: number): void;
getRecosFromIndicationGroupId(callback: Function, id: number): void;
getPrescriptionRecos(callback: Function, prescription: any, params: any): void;
getRecoUrl(id: number): string;
getReco(callback: Function, id: number): void;
private getAdaptedDugsXml(vmpId, facets, page, pageSize);
getAdaptedDrugs(callback: Function, vmpId: number, facets: any[], page: number, pageSize: number, params: any): void;
private getSideEffectsXml(drugs, sideEffectId);
getSideEffects(callback: Function, drugs: string[], sideEffectId: number, params: any): void;
getVigieHtml(data: any, title: string): string;
getVersion(callback: Function, params: any, credentials?: any): void;
flattenObject(object: any): any;
1.0.94

6 years ago

1.0.93

6 years ago

1.0.92

6 years ago

1.0.91

6 years ago

1.0.90

6 years ago

1.0.89

6 years ago

1.0.88

6 years ago

1.0.87

6 years ago

1.0.86

6 years ago

1.0.85

6 years ago

1.0.84

6 years ago

1.0.83

6 years ago

1.0.82

6 years ago

1.0.81

6 years ago

1.0.80

6 years ago

1.0.79

6 years ago

1.0.78

6 years ago

1.0.77

6 years ago

1.0.76

6 years ago

1.0.75

6 years ago

1.0.74

6 years ago

1.0.73

6 years ago

1.0.72

6 years ago

1.0.71

6 years ago

1.0.70

6 years ago

1.0.69

6 years ago

1.0.68

6 years ago

1.0.67

6 years ago

1.0.66

6 years ago

1.0.65

6 years ago

1.0.64

7 years ago

1.0.63

7 years ago

1.0.62

7 years ago

1.0.61

7 years ago

1.0.60

7 years ago

1.0.59

7 years ago

1.0.58

7 years ago

1.0.57

7 years ago

1.0.56

7 years ago

1.0.55

7 years ago

1.0.54

7 years ago

1.0.53

7 years ago

1.0.52

7 years ago

1.0.51

7 years ago

1.0.50

7 years ago

1.0.49

7 years ago

1.0.48

7 years ago

1.0.47

7 years ago

1.0.46

7 years ago

1.0.44

7 years ago

1.0.43

7 years ago

1.0.42

7 years ago

1.0.41

7 years ago

1.0.40

7 years ago

1.0.39

7 years ago

1.0.38

7 years ago

1.0.37

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.33

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.29

8 years ago

1.0.28

8 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago