Health And Care
Below is the model for just user.healthAndCare.
Model​
user.healthAndCare
healthAndCare: {
detailsConfirmed: Boolean,
climate: { value: Number },
surroundings: { value: String },
hobbies: {
selections: [{ id: Number, title: String }],
customSelections: [{ title: String }]
},
travel: { value: Number },
food: {
selections: [{ id: Number, title: String }],
customSelections: [{ title: String }]
},
rest: {
selections: [{ id: Number, title: String }],
customSelections: [{ title: String }]
},
lastScreen: {
screen: {
type: String,
enum: ['details', 'climate', 'surroundings', 'hobbies', 'travel', 'food', 'rest']
},
date: Date
},
family: [
{
_id: String / ObjectId,
name: {
first: String,
last: String,
middle: String
},
image: String,
phone: Number,
email: String,
shellEmail: String,
inviteUrl: String,
preneed: {
...userInfo
}
}
]
}
Data​
| Key | Type | Description | Notes |
|---|---|---|---|
| detailsConfirmed | Boolean | Flag used to keep track of if the user has already confirmed their Details at the start of the Health and Care flow | Flips to true after successfully saving with POST /healthAndCare/details |
| climate | Object | Contains the value of the option selected for Climate | See GET /healthAndCare for possible values |
| surroundings | Object | Contains the value of the string provided by the User for Surroundings | |
| hobbies | Object | Contains the selections and customSelections arrays provided by the user for Hobbies | See GET /healthAndCare for possible values |
| travel | Object | Contains the value of the option selected for Travel | See GET /healthAndCare for possible values |
| food | Object | Contains the selections and customSelections arrays provided by the user for Food & Drink | See GET /healthAndCare for possible values |
| rest | Object | Contains the selections and customSelections arrays provided by the user for Rest & Relaxation | See GET /healthAndCare for possible values |
| lastScreen | Object | Contains the screen that the User last interacted with | Possible screen names are: 'details', 'climate', 'surroundings', 'hobbies', 'travel', 'food', 'rest' |
| family | Array | An array containing all the family members added to the user's Health and Care plan |