Symptom values must have exclude: false for tests; consistency for defining functions

This commit is contained in:
emelko
2018-09-07 19:49:03 +02:00
parent e2c8292d7f
commit 0b856e298a
3 changed files with 20 additions and 699 deletions
+12 -4
View File
@@ -1,9 +1,17 @@
function convertToSymptoFormat(val) {
const sympto = { date: val.date }
if (val.temperature) sympto.temperature = { value: val.temperature }
if (val.mucus) sympto.mucus = { value: val.mucus }
if (val.bleeding) sympto.bleeding = { value: val.bleeding }
if (val.temperature) sympto.temperature = {
value: val.temperature,
exclude: false
}
if (val.mucus) sympto.mucus = {
value: val.mucus,
exclude: false
}
if (val.bleeding) sympto.bleeding = {
value: val.bleeding,
exclude: false
}
return sympto
}