Add 'unprotected' and 'diaphragm" to contraceptives

This commit is contained in:
emelko
2018-09-20 22:36:21 +02:00
parent 51bbaa9f96
commit b973119321
3 changed files with 10 additions and 0 deletions
+2
View File
@@ -43,6 +43,8 @@ export const sex = {
patch: 'Patch', patch: 'Patch',
ring: 'Ring', ring: 'Ring',
implant: 'Implant', implant: 'Implant',
diaphragm: 'Diaphragm',
unprotected: 'Unprotected',
other: 'Other', other: 'Other',
activityExplainer: 'Were you sexually active today?', activityExplainer: 'Were you sexually active today?',
contraceptiveExplainer: 'Did you use contraceptives?' contraceptiveExplainer: 'Did you use contraceptives?'
+6
View File
@@ -37,6 +37,12 @@ const contraceptiveBoxes = [{
}, { }, {
label: labels.implant, label: labels.implant,
stateKey: 'implant' stateKey: 'implant'
}, {
label: labels.diaphragm,
stateKey: 'diaphragm'
}, {
label: labels.unprotected,
stateKey: 'unprotected'
}, { }, {
label: labels.other, label: labels.other,
stateKey: 'other' stateKey: 'other'
+2
View File
@@ -67,6 +67,8 @@ const SexSchema = {
patch: { type: 'bool', optional: true }, patch: { type: 'bool', optional: true },
ring: { type: 'bool', optional: true }, ring: { type: 'bool', optional: true },
implant: { type: 'bool', optional: true }, implant: { type: 'bool', optional: true },
diaphragm: { type: 'bool', optional: true },
unprotected: { type: 'bool', optional: true },
other: { type: 'bool', optional: true }, other: { type: 'bool', optional: true },
note: { type: 'string', optional: true } note: { type: 'string', optional: true }
} }