Passer au contenu principal

fhir@1.1.4

Functions

execute(operations)Operation

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

create(path, params, callback)Operation

Creates a resource in a destination system using a POST request

createTransactionBundle(params, callback)Operation

Creates a transactionBundle for HAPI FHIR

execute(operations) ⇒ Operation

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

Kind: global function

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

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

create(path, params, callback) ⇒ Operation

Creates a resource in a destination system using a POST request

Kind: global function
Access: public

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

Example

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

createTransactionBundle(params, callback) ⇒ Operation

Creates a transactionBundle for HAPI FHIR

Kind: global function
Access: public

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

Example

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