Skip to main content

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​

KeyTypeDescriptionNotes
detailsConfirmedBooleanFlag used to keep track of if the user has already confirmed their Details at the start of the Health and Care flowFlips to true after successfully saving with POST /healthAndCare/details
climateObjectContains the value of the option selected for ClimateSee GET /healthAndCare for possible values
surroundingsObjectContains the value of the string provided by the User for Surroundings
hobbiesObjectContains the selections and customSelections arrays provided by the user for HobbiesSee GET /healthAndCare for possible values
travelObjectContains the value of the option selected for TravelSee GET /healthAndCare for possible values
foodObjectContains the selections and customSelections arrays provided by the user for Food & DrinkSee GET /healthAndCare for possible values
restObjectContains the selections and customSelections arrays provided by the user for Rest & RelaxationSee GET /healthAndCare for possible values
lastScreenObjectContains the screen that the User last interacted withPossible screen names are: 'details', 'climate', 'surroundings', 'hobbies', 'travel', 'food', 'rest'
familyArrayAn array containing all the family members added to the user's Health and Care plan