department-of-veterans-affairs/vets-website

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

Summary

Maintainability
B
4 hrs
Test Coverage
export const generateMedicalEventsContent = record => {
  return {
    title: record.medicalEvent,
    details: [
      {
        items: [
          {
            title: 'Start date',
            value: record.startDate,
            inline: true,
          },
          {
            title: 'Stop date',
            value: record.stopDate,
            inline: true,
          },
          {
            title: 'Response',
            value: record.response,
            inline: true,
          },
          {
            title: 'Comments',
            value: record.comments,
            inline: true,
          },
        ],
      },
    ],
  };
};