Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[task: EASI-3923] General Characteristics And Basics Readonly Updates #959

Merged
3,068 changes: 1,741 additions & 1,327 deletions src/components/ShareExport/__snapshots__/index.test.tsx.snap

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/components/shared/Tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import React, { forwardRef } from 'react';
import { Tooltip as TrussTooltip } from '@trussworks/react-uswds';
import classNames from 'classnames';

type TooltipProps = {
children: React.ReactNode;
Expand All @@ -28,7 +29,7 @@ const Tooltip = ({
label={label}
asCustom={CustomDiv}
position={position}
className={className}
className={classNames('mint-no-print', className)}
>
{children}
</TrussTooltip>
Expand Down
37 changes: 35 additions & 2 deletions src/i18n/en-US/modelPlan/basics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export const basics: TranslationBasics = {
label: 'Primary model category',
dataType: 'enum',
formType: 'radio',
adjacentPositioning: {
position: 'left',
adjacentField: 'additionalModelCategories'
},
options: {
ACCOUNTABLE_CARE: 'Accountable Care',
DISEASE_SPECIFIC_AND_EPISODIC: 'Disease-Specific & Episode-Based',
Expand Down Expand Up @@ -43,6 +47,10 @@ export const basics: TranslationBasics = {
'If your model doesn’t fall into any additional categories, you can skip this.',
dataType: 'string',
formType: 'checkbox',
adjacentPositioning: {
position: 'right',
adjacentField: 'modelCategory'
},
options: {
ACCOUNTABLE_CARE: 'Accountable Care',
DISEASE_SPECIFIC_AND_EPISODIC: 'Disease-Specific & Episode-Based',
Expand Down Expand Up @@ -90,6 +98,10 @@ export const basics: TranslationBasics = {
label: 'CMS component',
dataType: 'enum',
formType: 'checkbox',
adjacentPositioning: {
position: 'left',
adjacentField: 'cmmiGroups'
},
options: {
CMMI: 'Center for Medicare and Medicaid Innovation (CMMI)',
CENTER_FOR_CLINICAL_STANDARDS_AND_QUALITY:
Expand All @@ -113,6 +125,10 @@ export const basics: TranslationBasics = {
'You only need to select the CMMI group if CMMI is selected as the main CMS component.',
dataType: 'enum',
formType: 'checkbox',
adjacentPositioning: {
position: 'right',
adjacentField: 'cmsCenters'
},
options: {
PATIENT_CARE_MODELS_GROUP: 'Patient Care Models Group (PCMG)',
POLICY_AND_PROGRAMS_GROUP: 'Policy and Programs Group (PPG)',
Expand All @@ -129,13 +145,16 @@ export const basics: TranslationBasics = {
dbField: 'model_type',
label: 'Model Type',
dataType: 'enum',
formType: 'radio',
formType: 'checkbox',
options: {
VOLUNTARY: 'Voluntary',
MANDATORY_NATIONAL: 'Mandatory national',
MANDATORY_REGIONAL_OR_STATE: 'Mandatory regional or state',
OTHER: 'Other'
},
optionsRelatedInfo: {
OTHER: 'modelTypeOther'
},
filterGroups: [
ModelViewFilter.DFSDM,
ModelViewFilter.IPC,
Expand All @@ -150,6 +169,7 @@ export const basics: TranslationBasics = {
label: 'Please specify',
dataType: 'string',
formType: 'textarea',
isOtherType: true,
filterGroups: [
ModelViewFilter.DFSDM,
ModelViewFilter.IPC,
Expand Down Expand Up @@ -263,6 +283,10 @@ export const basics: TranslationBasics = {
label: 'Performance start date',
dataType: 'date',
formType: 'datePicker',
adjacentPositioning: {
position: 'left',
adjacentField: 'performancePeriodEnds'
},
filterGroups: [
ModelViewFilter.CBOSC,
ModelViewFilter.CCW,
Expand All @@ -279,7 +303,15 @@ export const basics: TranslationBasics = {
label: 'Performance end date',
dataType: 'date',
formType: 'datePicker',
filterGroups: [ModelViewFilter.IPC]
adjacentPositioning: {
position: 'right',
adjacentField: 'performancePeriodStarts'
},
filterGroups: [
ModelViewFilter.IPC,
ModelViewFilter.IDDOC,
ModelViewFilter.PBG
]
},
highLevelNote: {
gqlField: 'highLevelNote',
Expand Down Expand Up @@ -308,6 +340,7 @@ export const basics: TranslationBasics = {
'That is, the basic model would start at the earliest possible date but additional facets could be phased in at a later quarter.',
dataType: 'boolean',
formType: 'radio',
isPageStart: true,
options: {
true: 'Yes',
false: 'No'
Expand Down
Loading