@asteen3/cds-hooks v1.0.1
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.
PARAM | DESCRIPTION | REQUIRED? |
---|---|---|
options | additional headers for a request | N |
getHookIdList(options)
Returns the CDS services from a CDS hook.
PARAM | DESCRIPTION | REQUIRED? |
---|---|---|
options | additional headers for a request | N |
hook(hookId, body, options)
Returns the CDS services from a CDS hook.
PARAM | DESCRIPTION | REQUIRED? |
---|---|---|
hookid | string value of the hook name | Y |
body | body value for the hook request | Y |
options | additional headers for a request | N |
getCmester(options)
Returns the CDS services from a CDS hook.
PARAM | DESCRIPTION | REQUIRED? |
---|---|---|
options | additional headers for a request | N |
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago