department-of-veterans-affairs/vets-website

View on GitHub
src/platform/utilities/cerner/index.js

Summary

Maintainability
A
0 mins
Test Coverage
// Relative imports.
import environment from 'platform/utilities/environment';

export const getCernerURL = (path, useSingleLogoutPaths = false) => {
  const host = environment.isProduction()
    ? 'https://patientportal.myhealth.va.gov'
    : 'https://staging-patientportal.myhealth.va.gov';

  if (useSingleLogoutPaths) {
    return `${host}${path}?authenticated=true`;
  }

  return `${host}${path}?authenticated=true`;
};

export const appointmentsToolLink = '/my-health/appointments';