Skip to main content

openimis@1.1.1

Functions

cleanupState(state)
getFHIR(path, params, callback)
login(state)

The following functions are exported from the common adaptor:

alterState()
dataPath()
dataValue()
dateFns()
each()
field()
fields()
fn()
fnIf()
http()
lastReferenceValue()
merge()
sourceValue()

cleanupState

cleanupState(state) ⇒ State

Discards the auth token from state.

Returns: State - state - but with a "token" removed from the configuration key.

ParamTypeDescription
stateStateRuntime state.

Example

cleanupState(state)

getFHIR

getFHIR(path, params, callback) ⇒ Operation

Get FHIR resources from OpenIMIS

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

Example

getFHIR("Patient")

login

login(state) ⇒ State

Logs in to OpenIMIS.

Returns: State - state - but with a "token" added to the configuration key.

ParamTypeDescription
stateStateRuntime state.

Example

login(state)