Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
excludeclass
maxLevel6
minLevel1maxLevel6
include
outlinefalse
indent
exclude
stylecircle
typelist
printablefalse
class

Releases

Environment

Version

URL

Release date

Production

N/A

N/A

N/A

Development

1.0.0

http://openhim-dev.psi-mis.org:5001/c4c/api/v1/run

Nov 21, 2023

...

Info

If gender, futurePregnancy, breastFeeding and age have been asked before or known from any patient record, these can be provided in the first request (in strict order) so the algorithm can start asking factor1.

Example

Code Block
languagejson
{
    "country":"{{country}}",
    "language":"{{language}}",
    "answers":[
      {"question":"gender", "answer":"F"},
      {"question":"futurePregnancy", "answer":"Y"},
      {"question":"breastFeeding", "answer":"N"},
      {"question":"age", "answer":">18"}
    ],
    "useTranslations":true,

    "matomoPID":"{{matomoPID}}",
    "userID":"{{userID}}",
    "sessionID":"{{sessionID}}"
}

Results from C4C

When user reaches the end of the flow, the response from the API will follow the next format:

...