src/applications/pensions/config/chapters/03-health-and-employment-information/federalTreatmentHistory.js
import {
titleUI,
yesNoUI,
} from 'platform/forms-system/src/js/web-component-patterns';
import fullSchemaPensions from 'vets-json-schema/dist/21P-527EZ-schema.json';
import { showMultiplePageResponse } from '../../../helpers';
const { federalTreatmentHistory } = fullSchemaPensions.properties;
/** @type {PageSchema} */
export default {
title: 'Treatment from federal medical facilities',
path: 'medical/history/federal-treatment',
depends: () => !showMultiplePageResponse(),
uiSchema: {
...titleUI('Treatment from federal medical facilities'),
federalTreatmentHistory: yesNoUI({
title:
'Have you received treatment from any non-VA federal medical facilities within the past year?',
hint:
'Examples of federal medical facilities include military bases and prisons',
classNames: 'vads-u-margin-bottom--2',
}),
},
schema: {
type: 'object',
required: ['federalTreatmentHistory'],
properties: {
federalTreatmentHistory,
},
},
};