src/applications/ezr/config/chapters/insuranceInformation/medicare.js
import {
yesNoUI,
yesNoSchema,
} from 'platform/forms-system/src/js/web-component-patterns';
import MedicarePartADescription from '../../../components/FormDescriptions/MedicarePartADescription';
import content from '../../../locales/en/content.json';
export default {
uiSchema: {
'view:isEnrolledMedicarePartA': {
'ui:title': MedicarePartADescription,
isEnrolledMedicarePartA: yesNoUI(content['insurance-medicare-title']),
},
},
schema: {
type: 'object',
properties: {
'view:isEnrolledMedicarePartA': {
type: 'object',
required: ['isEnrolledMedicarePartA'],
properties: {
isEnrolledMedicarePartA: yesNoSchema,
},
},
},
},
};