src/applications/mhv-landing-page/constants.js
const { entries, freeze, values } = Object;
const HEALTH_TOOL_HEADINGS = freeze({
APPOINTMENTS: 'Appointments',
MESSAGES: 'Messages',
MEDICATIONS: 'Medications',
MEDICAL_RECORDS: 'Medical records',
PAYMENTS: 'Payments',
MEDICAL_SUPPLIES: 'Medical supplies',
});
const HEALTH_TOOL_NAMES = freeze(values(HEALTH_TOOL_HEADINGS));
const HEALTH_TOOL_LINKS = freeze({
APPOINTMENTS: freeze([
{
href: '/my-health/appointments/schedule/type-of-care',
text: 'Schedule a new appointment',
},
{
href: '/health-care/schedule-view-va-appointments/appointments',
text: 'Manage upcoming appointments',
},
]),
MESSAGES: freeze([
{
href: '/my-health/secure-messages/inbox/',
text: 'Go to inbox',
},
{
href: '/my-health/secure-messages/new-message/',
text: 'Start a new message',
},
]),
MEDICATIONS: freeze([
{
href: '/my-health/medications/refill',
text: 'Refill VA prescriptions',
},
{
href: '/my-health/medications',
text: 'Review medications',
},
]),
MEDICAL_RECORDS: freeze([
{
href: '/my-health/medical-records/',
text: 'Get medical records',
},
]),
PAYMENTS: freeze([
{
href: '/manage-va-debt/summary/copay-balances',
text: 'Pay copay bills',
},
{
href: 'https://dvagov-btsss.dynamics365portals.us/signin',
text:
'File a claim for travel reimbursement on the Beneficiary Travel Self-Service System website',
isExternal: true,
},
]),
MEDICAL_SUPPLIES: freeze([
{
href: '/health-care/order-hearing-aid-or-CPAP-supplies-form/introduction',
text: 'Order hearing aid and CPAP supplies',
},
{
href: '/health-care/order-medical-supplies/',
text: 'Learn how to order other medical supplies',
},
]),
});
const HEALTH_TOOLS = entries(HEALTH_TOOL_HEADINGS).map(([key, name]) => ({
name,
links: HEALTH_TOOL_LINKS[key],
}));
module.exports = {
HEALTH_TOOL_HEADINGS,
HEALTH_TOOL_NAMES,
HEALTH_TOOL_LINKS,
HEALTH_TOOLS,
};