Skip to main content

fhir@1.1.1

Adaptor

Adaptor.execute(operations) ⇒ Operation

Execute a sequence of operations. Wraps language-common/execute, and prepends initial state for http.

Kind: static method of Adaptor

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

execute(
create('foo'),
delete('bar')
)(state)

Adaptor.create(path, params, callback) ⇒ Operation

Creates a resource in a destination system using a POST request

Kind: static method of Adaptor
Access: public

ParamTypeDescription
pathstringPath to resource
paramsobjectdata to create the new resource
callbackfunction(Optional) callback function

Example

create("/endpoint", {"foo": "bar"})

Adaptor.createTransactionBundle(params, callback) ⇒ Operation

Creates a transactionBundle for HAPI FHIR

Kind: static method of Adaptor
Access: public

ParamTypeDescription
paramsobjectdata to create the new transaction
callbackfunction(Optional) callback function

Example

createTransactionBundle( {"entry": [{...},, {...}]})