1.0.1 • Published 3 years ago

@asteen3/cds-hooks v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

CDS Hooks

Welcome to the CDS Hooks NPM.

Install

To start, run the following to install the package: npm i @asteen3/cds-hook Install packages to link them to the project

Implement

Implementation is fairly straightforward. Import the class into the file and then instantiate a new class:

const cdsHook = new CdsHook("https://fhir-service.example.com");

Then use the methods to be able to make the calls to services:

...
const response = await exampleHook.getServices(headers);
...

Methods

getServices(options)

Returns the CDS services from a CDS hook.

PARAMDESCRIPTIONREQUIRED?
optionsadditional headers for a requestN

getHookIdList(options)

Returns the CDS services from a CDS hook.

PARAMDESCRIPTIONREQUIRED?
optionsadditional headers for a requestN

hook(hookId, body, options)

Returns the CDS services from a CDS hook.

PARAMDESCRIPTIONREQUIRED?
hookidstring value of the hook nameY
bodybody value for the hook requestY
optionsadditional headers for a requestN

getCmester(options)

Returns the CDS services from a CDS hook.

PARAMDESCRIPTIONREQUIRED?
optionsadditional headers for a requestN
1.0.1

3 years ago

1.0.0

4 years ago

0.0.35

4 years ago

0.0.34

4 years ago

0.0.33

4 years ago

0.0.32

4 years ago

0.0.31

4 years ago

0.0.30

4 years ago

0.0.29

4 years ago

0.0.28

4 years ago

0.0.27

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.23

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago