Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let table = {
- 1: {
- "question_text": "Êtes-vous enceinte?",
- "question_img": "enceinte.png",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg'
- }
- },
- "callback": function (obj, data) {
- if (data === "oui") {
- obj.goto(2);
- }
- if (data === 'non') {
- window.location.href = '#!/'
- }
- }
- },
- 2: {
- "question_text": "Terme?",
- "question_img": "",
- "type": 1,
- "doctor": true,
- "response": {
- '_24SA': {
- 'text': '< 24 SA',
- 'image': ''
- },
- '24SA': {
- 'text': '> 24 SA',
- 'image': ''
- },
- '34SA': {
- 'text': '> 34 SA',
- 'image': ''
- }
- },
- "callback": function (obj, data)
- // Sauvegarde à faire sur le terme, à savoir que sur la question ''Contractions ultérines'' il y aura <34 SA qui n'est pas une réponse ici.
- {
- if (data === "_24SA") {
- obj.goto(3);
- terme = 22;
- }
- if (data === '24SA') {
- obj.goto(3);
- terme = 27;
- }
- if (data === "34SA") {
- obj.goto(3);
- terme = 38;
- }
- }
- },
- 3: {
- "question_text": "Avez-vous des enfants?",
- "question_img": "parite.png",
- "type": 1,
- "doctor": false,
- "response":
- {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif'
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg'
- },
- },
- "callback": function (obj, data) {
- if (data === "oui") {
- obj.goto(4);
- }
- if (data === 'non') {
- obj.goto(5);
- }
- }
- },
- 4: {
- "question_text": "Combien en avez-vous?",
- "question_img": "parite.png",
- "type": 1,
- "doctor": false,
- "response": {
- '1': {
- 'text': 'I',
- 'image': ''
- },
- '2': {
- 'text': 'II',
- 'image': ''
- },
- '3': {
- 'text': 'III',
- 'image': ''
- },
- '4': {
- 'text': 'IIII',
- 'image': ''
- },
- '5': {
- 'text': 'IIIII',
- 'image': ''
- },
- '6': {
- 'text': 'IIIII+',
- 'image': ''
- },
- },
- "callback": function (obj, data)
- // Sauvegarde à faire comme pour terme, il servira pour primapare et multipare! 1 = primapare et 2,3,4,5 et 5+ sera pour multipare (tu me dis si tu comprend pas)
- {
- parite = data;
- obj.goto(5);
- }
- },
- 5: {
- "question_text": "Pouls?",
- "question_img": "",
- "type": 2,
- "doctor": true,
- "response": {},
- "callback": function (obj, data)
- // A marquer dans le résultat, si la température et à plus de >38 et que le pouls est à plus de 100 il sera marquer en orange(3) et en jaune si il est inférieur a 100. Comme pour la temp, si il est a <38° alors la questions est pas posé
- {
- if (data >= 100) {
- obj.manualRespond(data, 3);
- } else {
- obj.manualRespond(data, 2);
- }
- obj.goto(6);
- }
- },
- 6: {
- "question_text": "Température ?",
- "question_img": "",
- "type": 2,
- "doctor": true,
- "response": {},
- "callback": function (obj, data) {
- temperature = parseFloat(data);
- obj.goto(7);
- }
- },
- 7: {
- "question_text": "Tension Systolique",
- "question_img": "",
- "type": 2,
- "doctor": true,
- "response": {},
- "callback": function (obj, data) {
- sys = data;
- obj.goto(8);
- }
- },
- 8: {
- "question_text": "Tention Dyastolique",
- "question_img": "",
- "type": 2,
- "doctor": true,
- "response": {},
- "callback": function (obj, data)
- // 140 et 90 c'est normal c'est sa demande!
- {
- if (sys >= 140 || data >= 90) {
- obj.goto(9);
- } else {
- if (temperature >= 38) {
- obj.goto(14);
- } else {
- obj.goto(15);
- }
- }
- }
- },
- 9: {
- "question_text": "Avez-vous eu des phosphènes?",
- "question_img": "phosphenes.png",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 3
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg',
- 'lvl': 2
- },
- },
- "callback": function (obj, data) {
- obj.goto(10);
- }
- },
- 10: {
- "question_text": "Avez-vous eu des accouphènes?",
- "question_img": "accouphenes.png",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 3
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg',
- 'lvl': 2
- },
- },
- "callback": function (obj, data) {
- obj.goto(11);
- }
- },
- 11: {
- "question_text": "Avez-vous eu une barre épigastrique?",
- "question_img": "epigastrique.png",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 3
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg',
- 'lvl': 2
- },
- },
- "callback": function (obj, data) {
- obj.goto(12);
- }
- },
- 12: {
- "question_text": "Avez-vous des céphalées?",
- "question_img": "cephalees.png",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 3
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg',
- 'lvl': 2
- },
- },
- "callback": function (obj, data) {
- obj.goto(13);
- }
- },
- 13: {
- "question_text": "Vous est-il arrivé d'avoir des oedèmes des membres inférieurs?",
- "question_img": "oedemedemi.gif",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 3
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg',
- 'lvl': 2
- },
- },
- "callback": function (obj, data) {
- if (temperature >= 38) {
- obj.goto(14);
- } else {
- obj.goto(15);
- }
- }
- },
- 14: {
- "question_text": "Ressentez-vous des frissons?",
- "question_img": "frisson.gif",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 3
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg',
- 'lvl': 2
- },
- },
- "callback": function (obj, data) {
- obj.goto(15);
- }
- },
- 15: {
- "question_text": "Sur cette échelle de douleur, où estimeriez-vous la votre?",
- "question_img": "EVA.png",
- "type": 1,
- "doctor": false,
- "response": {
- '1': {
- 'text': '',
- 'image': 'eva1.png'
- },
- '2': {
- 'text': '',
- 'image': 'eva2.png'
- },
- '3': {
- 'text': '',
- 'image': 'eva3.png'
- },
- '4': {
- 'text': '',
- 'image': 'eva4.png'
- },
- '5': {
- 'text': '',
- 'image': 'eva5.png'
- },
- '6': {
- 'text': '',
- 'image': 'eva6.png'
- },
- '7': {
- 'text': '',
- 'image': 'eva7.png'
- },
- },
- "callback": function (obj, data)
- //1= <2 / 2=<4 / 3= < 5 / 4= <6 / 5= <7 / 6= <8 / 7= >8
- {
- if (parseInt(data) === 1) {
- obj.manualRespond('< 2', 0);
- }
- if (parseInt(data) === 2) {
- obj.manualRespond('< 4', 1);
- }
- if (parseInt(data) === 3) {
- obj.manualRespond('< 5', 1);
- }
- if (parseInt(data) === 4) {
- obj.manualRespond('< 6', 1);
- }
- if (parseInt(data) === 5) {
- obj.manualRespond('< 7', 2);
- }
- if (parseInt(data) === 6) {
- obj.manualRespond('< 8', 2);
- }
- if (parseInt(data) === 7) {
- obj.manualRespond('> 8', 4);
- }
- obj.goto(16);
- }
- },
- 16: {
- "question_text": "Avez-vous eu des douleur permanente de début brutale?",
- "question_img": "douleurpermanentel.png",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 4
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg'
- },
- },
- "callback": function (obj, data) {
- obj.goto(17);
- }
- },
- 17: {
- "question_text": "Avez-vous eu envie de pousser?",
- "question_img": "pousser.gif",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 4
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg'
- },
- },
- "callback": function (obj, data) {
- obj.goto(18);
- }
- },
- 18: {
- "question_text": "Vous est-il arrivé de convulsé?",
- "question_img": "convulsions.gif",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 4
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg'
- },
- },
- "callback": function (obj, data) {
- obj.goto(19);
- }
- },
- 19: {
- "question_text": "Avez-vous eu des perte de connaissance?",
- "question_img": "perteconnaissance.png",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 4
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg'
- },
- },
- "callback": function (obj, data) {
- obj.goto(20);
- }
- },
- 20: {
- "question_text": "Avez-vous eu des hémorragies massives",
- "question_img": "hemorragiemassive.png",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 4
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg'
- },
- },
- "callback": function (obj, data) {
- obj.goto(21);
- }
- },
- 21: {
- "question_text": "Avez-vous constaté des métrorragies actives modérées?",
- "question_img": "metroragies.png",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 3
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg'
- },
- },
- "callback": function (obj, data) {
- obj.goto(22);
- }
- },
- 22: {
- "question_text": "Avez-vous eu une rupture prématurée des membranes?",
- "question_img": "rupturepremmemb.png",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif'
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg'
- },
- },
- "callback": function (obj, data)
- // A ajouter au resultat avec les choix choisis plus haut: /!\ JE TE LAISSE FAIRE LA REDIRECTION DU OUI ET DU NON /!\
- // Si elle met oui : avec + de 38° (3) <24 SA (2) >24 SA (3)
- // Si elle met non : >38°(1) <38°(0)
- {
- if (data === "oui") {
- if (temperature > 38) {
- obj.manualRespond('> 38°', 2);
- }
- obj.goto(23);
- if (terme < 24) {
- obj.manualRespond('< 24 SA', 2);
- }
- obj.goto(23);
- if (terme > 24) {
- obj.manualRespond('> 24 SA', 3);
- }
- obj.goto(23);
- }
- if (data === "non") {
- if (temperature > 38) {
- obj.manualRespond('> 38°', 2);
- }
- obj.goto(23);
- if (temperature < 38) {
- obj.manualRespond('< 38°', 0);
- }
- obj.goto(23);
- }
- }
- },
- 23: {
- "question_text": "Vous est-il arrivé d'avoir eu des pertes vaginales non sanglantes?",
- "question_img": "pertesvaginalesnnsang.png",
- "type": 1,
- "doctor": false,
- "response": {
- 'oui': {
- 'text': 'Oui',
- 'image': 'oui.gif',
- 'lvl': 1
- },
- 'non': {
- 'text': 'Non',
- 'image': 'non.jpg'
- }
- },
- "callback": function (obj, data) {
- obj.goto(24)
- }
- },
- 24:
- {
- "question_text":
- "Avez-vous eu des pertes du bouchon muqueux isolé?",
- "question_img":
- "pertebouchon.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- 'lvl':
- 1
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- obj.goto(25);
- }
- }
- ,
- 25:
- {
- "question_text":
- "Avez-vous ressenti des contractions utérines?",
- "question_img":
- "contractulterines.gif",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data)
- // Si oui, il faut savoir si c'est à plus ou à moins de 34 SA, si c'est moins ça demande les fréquences de contractions si c'est à plus de 34 SA alors ça passe à la question d'après
- {
- if (data === "oui") {
- if (terme > 24) {
- obj.manualRespond('entre 24 et 32 SA', 3);
- }
- if (terme > 34) {
- obj.manualRespond('> 34 SA°', 1);
- obj.goto(27);
- } else {
- obj.goto(26);
- }
- }
- if (data === "non") {
- obj.goto(27);
- }
- }
- }
- ,
- 26:
- {
- "question_text":
- "À quelle fréquence arrivent-t'elle?",
- "question_img":
- "contractulterines.gif",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- '5min':
- {
- 'text':
- '5 minutes',
- 'image':
- '5mn.gif',
- }
- ,
- '10min':
- {
- 'text':
- '10 minutes',
- 'image':
- '10mincontract.gif',
- }
- ,
- 'plus10':
- {
- 'text':
- '> 10 minutes',
- 'image':
- '15plus.gif'
- }
- }
- ,
- "callback":
- function (obj, data)
- //Pour les 3 réponses (5/10 et 10+) il faut qu'il récupère la réponse de parité (nombre d'enfants?) et la sauvegarde dans le résultat. A savoir que pour 5 min primapare comme multipare sont orange (3)
- // Pour 10 mins primapare est jaune (2) et multipare orange (3). Pour 10+, primapare et multipare sont jaune
- {
- if (data === "5min") {
- if (parite > 1) {
- obj.manualRespond('5 min Primapare', 3);
- }
- if (parite === 2 || parite === 3 || parite === 4 || parite === 5 || parite === 6) {
- obj.manualRespond('5 min Multipare', 3);
- }
- }
- if (data === "10min") {
- if (parite > 1) {
- obj.manualRespond('10 min Primapare', 2);
- }
- if (parite === 2 || parite === 3 || parite === 4 || parite === 5 || parite === 6) {
- obj.manualRespond('10 min Multipare', 3);
- }
- }
- if (data === "plus10") {
- if (parite > 1) {
- obj.manualRespond('10 min + Primapare', 2);
- }
- if (parite === 2 || parite === 3 || parite === 4 || parite === 5 || parite === 6) {
- obj.manualRespond('10 min + Multipare', 2);
- }
- }
- obj.goto(27);
- }
- }
- ,
- 27:
- {
- "question_text":
- "Avez-vous eu les mouvements actifs fœtaux diminués?",
- "question_img":
- "femme.gif",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- 'lvl':
- 3
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- obj.goto(28);
- }
- }
- ,
- 28:
- {
- "question_text":
- "Avez-vous eu un choc abdominal direct?",
- "question_img":
- "chocabdominaldirect.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- 'lvl':
- 3
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- obj.goto(29);
- }
- }
- ,
- 29:
- {
- "question_text":
- "Avez-vous eu un choc hors localisation abdominale?",
- "question_img":
- "chocsauflocalisationabdominale.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- 'lvl':
- 1
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- obj.goto(30);
- }
- }
- ,
- 30:
- {
- "question_text":
- "Vous est-il arrivé d'avoir eu des dyspnée ne gênant pas la parole?",
- "question_img":
- "dyspneepasparole.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- 'lvl':
- 3
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- obj.goto(31);
- }
- }
- ,
- 31:
- {
- "question_text":
- "Avez-vous eu des nausées?",
- "question_img":
- "nausees.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data)
- // Non= <38° (0) / >38° jaune (2)
- // Oui= <38° jaune (2) / >38° orange (3)
- {
- if (data === "oui") {
- if (temperature > 38) {
- obj.manualRespond('> 38°', 3);
- }
- obj.goto(32);
- if (temperature < 38) {
- obj.manualRespond('< 38°', 2);
- }
- obj.goto(32);
- }
- if (data === "non") {
- if (temperature > 38) {
- obj.manualRespond('> 38°', 2);
- }
- obj.goto(32);
- if (temperature < 38) {
- obj.manualRespond('< 38°', 0);
- }
- obj.goto(32);
- }
- }
- }
- ,
- 32:
- {
- "question_text":
- "Avez-vous eu des vomissements?",
- "question_img":
- "vomissements.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- // Non= <38° (0) / >38° jaune (2)
- // Oui= <38° jaune (2) / >38° orange (3)
- if (data === "oui") {
- if (temperature > 38) {
- obj.manualRespond('> 38°', 3);
- }
- obj.goto(33);
- if (temperature < 38) {
- obj.manualRespond('< 38°', 2);
- }
- obj.goto(33);
- }
- if (data === "non") {
- if (temperature > 38) {
- obj.manualRespond('> 38°', 2);
- }
- obj.goto(33);
- if (temperature < 38) {
- obj.manualRespond('< 38°', 0);
- }
- obj.goto(33);
- }
- }
- }
- ,
- 33:
- {
- "question_text":
- "Avez-vous eu du prurit généralisé?",
- "question_img":
- "pruritgeneralise.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- 'lvl':
- 2
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- obj.goto(34);
- }
- }
- ,
- 34:
- {
- "question_text":
- "Avez-vous eu du prurit vulvaire?",
- "question_img":
- "vulvaire.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- // Non= <38° (0) / >38° jaune (2)
- // Oui= <38° vert (1) / >38° orange (3)
- if (data === "oui"
- ) {
- if (temperature > 38) {
- obj.manualRespond('> 38°', 3);
- }
- obj.goto(35);
- if (temperature < 38) {
- obj.manualRespond('< 38°', 1);
- }
- obj.goto(35);
- }
- if (data === "non") {
- if (temperature > 38) {
- obj.manualRespond('> 38°', 2);
- }
- obj.goto(35);
- if (temperature < 38) {
- obj.manualRespond('< 38°', 0);
- }
- obj.goto(35);
- }
- }
- }
- ,
- 35:
- {
- "question_text":
- "Ressentez-vous des brûlures mictionnelles?",
- "question_img":
- "bruluresmictionnelles.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- // Non= <38° (0) / >38° jaune (2)
- // Oui= <38° vert (1) / >38° orange (3)
- if (data === "oui") {
- if (temperature > 38) {
- obj.manualRespond('> 38°', 3);
- }
- obj.goto(36);
- if (temperature < 38) {
- obj.manualRespond('< 38°', 1);
- }
- obj.goto(36);
- }
- if (data === "non") {
- if (temperature > 38) {
- obj.manualRespond('> 38°', 2);
- }
- obj.goto(36);
- if (temperature < 38) {
- obj.manualRespond('< 38°', 0);
- }
- obj.goto(36);
- }
- }
- }
- ,
- 36:
- {
- "question_text":
- "Avez-vous une envie fréquente d'uriner (pollakiurie)?",
- "question_img":
- "pollakiurie.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- 'lvl':
- 1
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- obj.goto(37);
- }
- }
- ,
- 37:
- {
- "question_text":
- "Avez-vous eu des hémorroïdes?",
- "question_img":
- "hemorroides.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- 'lvl':
- 1
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- obj.goto(38);
- }
- }
- ,
- 38:
- {
- "question_text":
- "Avez-vous été constipé?",
- "question_img":
- "constipation.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- 'lvl':
- 1
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- obj.goto(39);
- }
- }
- ,
- 39:
- {
- "question_text":
- "Avez-vous eu des douleurs lors de rapports sexuels (dyspareunie)?",
- "question_img":
- "dyspareunie.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- 'lvl':
- 1
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- obj.goto(40);
- }
- }
- ,
- 40:
- {
- "question_text":
- "Avez-vous eu un corps étranger dans le vagin?",
- "question_img":
- "corpsetranger.png",
- "type":
- 1,
- "doctor":
- false,
- "response":
- {
- 'oui':
- {
- 'text':
- 'Oui',
- 'image':
- 'oui.gif',
- 'lvl':
- 1
- }
- ,
- 'non':
- {
- 'text':
- 'Non',
- 'image':
- 'non.jpg'
- }
- }
- ,
- "callback":
- function (obj, data) {
- obj.result();
- }
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement