Saltar al contenido principal
Esta página no tiene versión en español, así que te la mostramos en inglés.

Config for fhir-opensrp

Jobs that use the fhir-opensrp adaptor may require authentication. A "credential" for the fhir-opensrp adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration​

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"clientId": "some-client-id",
"clientSecret": "some-client-secret"
}

Full Schema​

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"baseUrl": {
"title": "Base URL",
"type": "string",
"description": "The Ona HAPI base URL",
"format": "uri",
"minLength": 1,
"default": "https://echis-ref.dataforimplementation.org",
"examples": [
"https://echis-ref.dataforimplementation.org"
]
},
"clientId": {
"title": "Client ID",
"type": "string",
"description": "Client ID",
"examples": [
"some-client-id"
]
},
"clientSecret": {
"title": "Client Secret",
"type": "string",
"description": "Client Secret",
"writeOnly": true,
"examples": [
"some-client-secret"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"clientId",
"clientSecret"
]
}