...
Table of Contents | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Releases
Environment | Version | URL | Release date |
---|---|---|---|
Production | N/A | N/A | N/A |
Development | 1.0.0 | 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 | ||
---|---|---|
| ||
{
"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:
Code Block | ||
---|---|---|
| ||
{ "next_question": "results", "options": { "EC": {}, "Injectables": {}, "IUS": {}, "IUD": {} }, "next_question_text": ".Great, thanks for telling me more about you! Now I'm ready to recommend some methods that might fit your needs. According to the preferences you have selected, we suggest these methods. You can click on them to learn more.", "options_text": [ "Emergency Contraceptive Pills (ECP)", "Injectables", "Hormonal IUS (IUD)", "IUD" ] } |
...