openimis@1.0.1
Functions
The following functions are exported from the common adaptor:
- alterState()
- dataPath()
- dataValue()
- dateFns()
- each()
- field()
- fields()
- fn()
- 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.
Param | Type | Description |
---|---|---|
state | State | Runtime state. |
Example
cleanupState(state)
getFHIR
getFHIR(path, params, callback) ⇒ Operation
Get FHIR resources from OpenIMIS
Param | Type | Description |
---|---|---|
path | string | Path to resource |
params | object | data to create the new resource |
callback | function | (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.
Param | Type | Description |
---|---|---|
state | State | Runtime state. |
Example
login(state)