1.0.94 • Published 5 years ago

bdt105vidal v1.0.94

Weekly downloads
3
License
ISC
Repository
github
Last release
5 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

5 years ago

1.0.93

5 years ago

1.0.92

5 years ago

1.0.91

5 years ago

1.0.90

5 years ago

1.0.89

5 years ago

1.0.88

5 years ago

1.0.87

5 years ago

1.0.86

5 years ago

1.0.85

5 years ago

1.0.84

5 years ago

1.0.83

5 years ago

1.0.82

5 years ago

1.0.81

5 years ago

1.0.80

5 years ago

1.0.79

5 years ago

1.0.78

5 years ago

1.0.77

5 years ago

1.0.76

5 years ago

1.0.75

5 years ago

1.0.74

5 years ago

1.0.73

5 years ago

1.0.72

5 years ago

1.0.71

5 years ago

1.0.70

5 years ago

1.0.69

5 years ago

1.0.68

5 years ago

1.0.67

5 years ago

1.0.66

5 years ago

1.0.65

5 years ago

1.0.64

6 years ago

1.0.63

6 years ago

1.0.62

6 years ago

1.0.61

6 years ago

1.0.60

6 years ago

1.0.59

6 years ago

1.0.58

6 years ago

1.0.57

6 years ago

1.0.56

6 years ago

1.0.55

6 years ago

1.0.54

6 years ago

1.0.53

6 years ago

1.0.52

6 years ago

1.0.51

6 years ago

1.0.50

6 years ago

1.0.49

6 years ago

1.0.48

6 years ago

1.0.47

6 years ago

1.0.46

6 years ago

1.0.44

6 years ago

1.0.43

6 years ago

1.0.42

6 years ago

1.0.41

6 years ago

1.0.40

6 years ago

1.0.39

6 years ago

1.0.38

6 years ago

1.0.37

6 years ago

1.0.36

6 years ago

1.0.35

6 years ago

1.0.34

6 years ago

1.0.33

6 years ago

1.0.32

6 years ago

1.0.31

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago