Delegation-numerique-en-sante / covid19-algorithme-orientation-api

Code source de l'API recevant les réponses au questionnaire d'orientation Covid-19
MIT License
5 stars 4 forks source link

Enlever weight et height qui ne sont pas reçus par l'API ni stockés en base de donnée #42

Closed bzg closed 4 years ago

bonjourmauko commented 4 years ago

Travaillons sur :

{
  "questionnaire": {
    "calculations": {
      "heart_disease_algo": true,
      "fever_algo": true,
      "heart_disease_algo": true,
      "immunosuppressant_disease_algo": true,
      "immunosuppressant_drug_algo": true
    },
    "metadata": {
      "algo_version": "2020-04-04",
      "form_version": "2020-04-04",
      "orientation": "orientation_SAMU"
    },
    "respondent": {
      "age_range": "sup_70",
      "imc": 21.9,
      "postal_code": "75000",
    },
    "risk_factors": {
      "breathing_disease": true,
      "cancer": true,
      "diabetes": true,
      "heart_disease": 1,
      "immunosuppressant_disease": 1,
      "immunosuppressant_drug": 1,
      "kidney_disease": true,
      "liver_disease": true,
      "pregnant": 1
    },
    "symptoms": {
      "agueusia_anosmia": true,
      "breathlessness": true,
      "cough": true,
      "diarrhea": true,
      "feeding_day": true,
      "fever": 999,
      "sore_throat_aches": true,
      "temperature_cat": "35.5-37.7",
      "tiredness": true,
      "tiredness_details": true
    },
  }
}
bzg commented 4 years ago

J'a fait un changement pour orientation: il ne faut pas passer par code, il faut mettre orientation directement avec comme valeur l'une des valeurs d'ici (orientation*).