-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
174 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,20 @@ import { | |
import { v4 as uuidv4 } from "uuid"; | ||
import * as QMR from "components"; | ||
import { useEditCoreSet, useGetMeasure, useUpdateMeasure } from "hooks/api"; | ||
import { AutoCompletedMeasures, CoreSetAbbr, MeasureStatus } from "types"; | ||
import { | ||
AnyObject, | ||
AutoCompletedMeasures, | ||
CoreSetAbbr, | ||
MeasureStatus, | ||
} from "types"; | ||
import { areSomeRatesCompleted } from "utils/form"; | ||
import * as DC from "dataConstants"; | ||
import { CoreSetTableItem } from "components/Table/types"; | ||
import { useUser } from "hooks/authHooks"; | ||
import { measureDescriptions } from "measures/measureDescriptions"; | ||
import { CompleteCoreSets } from "./complete"; | ||
import SharedContext from "shared/SharedContext"; | ||
import * as Labels from "labels/Labels"; | ||
|
||
const LastModifiedBy = ({ user }: { user: string | undefined }) => { | ||
if (!user) return null; | ||
|
@@ -142,6 +149,10 @@ export const MeasureWrapper = ({ | |
[] | ||
); | ||
|
||
//WIP: this code will be replaced with a dynamic import onces we refactored enough files | ||
const shared: AnyObject = | ||
Labels[`CQ${year}` as "CQ2021" | "CQ2022" | "CQ2023" | "CQ2024"]; | ||
|
||
// setup default values for core set, as delivery system uses this to pregen the labeled portion of the table | ||
const coreSet = (params.coreSetId?.split("_")?.[0] ?? | ||
params.coreSetId ?? | ||
|
@@ -451,16 +462,17 @@ export const MeasureWrapper = ({ | |
to [email protected]. | ||
</CUI.Text> | ||
)} | ||
<Measure | ||
measure={measure} | ||
name={name} | ||
detailedDescription={detailedDescription} | ||
year={year} | ||
measureId={measureId} | ||
setValidationFunctions={setValidationFunctions} | ||
handleSave={handleSave} | ||
/> | ||
|
||
<SharedContext.Provider value={shared}> | ||
<Measure | ||
measure={measure} | ||
name={name} | ||
detailedDescription={detailedDescription} | ||
year={year} | ||
measureId={measureId} | ||
setValidationFunctions={setValidationFunctions} | ||
handleSave={handleSave} | ||
/> | ||
</SharedContext.Provider> | ||
{/* Core set qualifiers use a slightly different submission button layout */} | ||
{!!(!autocompleteOnCreation && !defaultData) && ( | ||
<QMR.CompleteMeasureFooter | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const commonQuestionsLabel = { | ||
AdditonalNotes: { | ||
header: "Additional Notes/Comments on the measure (optional)", | ||
section: | ||
"Please add any additional notes or comments on the measure not otherwise captured above:", | ||
upload: | ||
"If you need additional space to include comments or supplemental information, please attach further documentation below.", | ||
}, | ||
}; | ||
|
||
export default commonQuestionsLabel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const commonQuestionsLabel = { | ||
AdditonalNotes: { | ||
header: "Additional Notes/Comments on the measure (optional)", | ||
section: | ||
"Please add any additional notes or comments on the measure not otherwise captured above:", | ||
upload: | ||
"If you need additional space to include comments or supplemental information, please attach further documentation below.", | ||
}, | ||
}; | ||
|
||
export default commonQuestionsLabel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const commonQuestionsLabel = { | ||
AdditonalNotes: { | ||
header: "Additional Notes/Comments on the measure (optional)", | ||
section: | ||
"Please add any additional notes or comments on the measure not otherwise captured above (<em>text in this field is included in publicly-reported state-specific comments</em>):", | ||
upload: | ||
"If you need additional space to include comments or supplemental information, please attach further documentation below.", | ||
}, | ||
}; | ||
|
||
export default commonQuestionsLabel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const commonQuestionsLabel = { | ||
AdditonalNotes: { | ||
header: "Additional Notes/Comments on the measure (optional)", | ||
section: | ||
"Please add any additional notes or comments on the measure not otherwise captured above (<em>text in this field is included in publicly-reported state-specific comments</em>):", | ||
upload: | ||
"If you need additional space to include comments or supplemental information, please attach further documentation below.", | ||
}, | ||
}; | ||
|
||
export default commonQuestionsLabel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export { commonQuestionsLabel as CQ2021 } from "labels/2021/commonQuestionsLabel"; | ||
export { commonQuestionsLabel as CQ2022 } from "labels/2022/commonQuestionsLabel"; | ||
export { commonQuestionsLabel as CQ2023 } from "labels/2023/commonQuestionsLabel"; | ||
export { commonQuestionsLabel as CQ2024 } from "labels/2024/commonQuestionsLabel"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,5 +102,3 @@ export namespace Measure { | |
ACAGroupRate: AggregateRate; | ||
} | ||
} | ||
|
||
export type FormData = Types.DefaultFormData; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
services/ui-src/src/measures/2021/CommonQuestions/AdditionalNotes/index.test.tsx
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
services/ui-src/src/measures/2021/CommonQuestions/AdditionalNotes/index.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
services/ui-src/src/measures/2022/shared/CommonQuestions/AdditionalNotes/index.test.tsx
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
services/ui-src/src/measures/2022/shared/CommonQuestions/AdditionalNotes/index.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 0 additions & 59 deletions
59
services/ui-src/src/measures/2023/shared/CommonQuestions/AdditionalNotes/index.test.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.