Skip to content

Instantly share code, notes, and snippets.

@lucnat
Last active March 24, 2020 15:44
Show Gist options
  • Save lucnat/6578adccc0b68594df8a1c575a35b46f to your computer and use it in GitHub Desktop.
Save lucnat/6578adccc0b68594df8a1c575a35b46f to your computer and use it in GitHub Desktop.
// Fragebogen v2.0
let example = {
// Are you a Man / a Woman?
'sex': 'female', // one of: 'male', 'female', 'other'
// Age
'yearOfBirth': 1992,
// Zip code
'zip': '8708',
// Last for digits
'phoneDigits': '9404', // als string! Sonst Probleme wenn Null zuerst
// Feeling healthy?
'feelsHealthy': false, // true or false
// Have you been tested for covid-19?
'hasBeenTested': true,
'whereTested': 'Kantonsspital Zürich', // just text, max 30 characters
'whenTested': '<timestamp>',
// Do you work in health?
'worksInHealth': 'no', // one of: 'No', 'hospital','privatePractice', 'EMS', 'other'
// Have you been abroad in the last 14 days?
'wasAbroad': 'Italy', // one of: 'No', 'Italy', 'Spain', 'France', 'Germany', 'other'
// Have you been in contact with a covid-19 positive case?`
'wasInContactWithCase': true, // one of true/false
'dateContacted': '<timestamp', // <timestamp>
// Do you suffer from a chronic condition?
'chronicCondition': 'no', // one of: 'No' 'heart', 'lung', 'diabetes', 'other'
// Fever? How many days?
'fever': true,
'feverSince': 3, // amount of days
// Coughing? How many days?
'coughing': true,
'coughingSince': 5, // amount of days
// Breathing difficulties? How many days?
'dyspnea': false,
'dyspneaSince': 0, // amount of days
// Feeling very tired? How many days?
'tiredness': false,
'tirednessSince': 0, // amount of days
// Have soar throat? How many days?
'throat': false,
'throatSince': 0 // amount of days
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment