department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-medical-records/util/pdfHelpers/sei/testEntries.js

Summary

Maintainability
C
7 hrs
Test Coverage
export const generateTestEntriesContent = record => {
  return {
    title: record.testName,
    details: [
      {
        items: [
          {
            title: 'Date',
            value: record.date,
            inline: true,
          },
          {
            title: 'Location performed',
            value: record.locationPerformed,
            inline: true,
          },
          {
            title: 'Provider',
            value: record.provider,
            inline: true,
          },
          {
            title: 'Results',
            value: record.results,
            inline: true,
          },
          {
            title: 'Comments',
            value: record.comments,
            inline: true,
          },
        ],
      },
    ],
  };
};