Skip to content

Commit

Permalink
StatusOfData refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
britt-mo committed Mar 25, 2024
1 parent 0a42b37 commit 521f2ae
Show file tree
Hide file tree
Showing 25 changed files with 26 additions and 287 deletions.
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2021/AMRAD/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export namespace Measure {
Type.CombinedRates,
Types.DateRange,
Types.DefinitionOfPopulation,
Types.StatusOfData,
Type.StatusOfData,
Types.DidReport,
Types.WhyAreYouNotReporting,
Types.DataSource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export * from "./DataSourceCahps";
export * from "shared/commonQuestions/AdditionalNotes";
export * from "./OtherPerformanceMeasure";
export * from "./Reporting";
export * from "./StatusOfData";
export * from "shared/commonQuestions/StatusOfData";
export * from "./WhyAreYouNotReporting";
export * from "./OptionalMeasureStrat";
export * from "shared/commonQuestions/MeasurementSpecification";
Expand Down
8 changes: 1 addition & 7 deletions services/ui-src/src/measures/2021/CommonQuestions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { OmsNode } from "./OptionalMeasureStrat/data";
import { PerformanceMeasureData } from "./PerformanceMeasure/data";
import * as DC from "dataConstants";
import * as Types from "shared/types";
import { StatusOfData } from "shared/types";

type YesNo = typeof DC.YES | typeof DC.NO;

Expand Down Expand Up @@ -135,13 +136,6 @@ export interface DidCollect {
[DC.DID_COLLECT]: YesNo;
}

export interface StatusOfData {
[DC.DATA_STATUS]:
| typeof DC.REPORTING_FINAL_DATA
| typeof DC.REPORTING_PROVISIONAL_DATA;
[DC.DATA_STATUS_PROVISIONAL_EXPLAINATION]: string;
}

export interface DataSource {
[DC.DATA_SOURCE]: string[];
[DC.DATA_SOURCE_SELECTIONS]: {
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2021/MSCAD/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as Type from "shared/types";

export interface FormData
extends Types.DefinitionOfPopulation,
Types.StatusOfData,
Type.StatusOfData,
Types.DateRange,
Types.DidReport,
Type.AdditionalNotes,
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2022/AMRAD/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export namespace Measure {
Type.CombinedRates,
Types.DateRange,
Types.DefinitionOfPopulation,
Types.StatusOfData,
Type.StatusOfData,
Types.DidReport,
Types.WhyAreYouNotReporting,
Types.DataSource,
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2022/MSCAD/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as Type from "shared/types";

export interface FormData
extends Types.DefinitionOfPopulation,
Types.StatusOfData,
Type.StatusOfData,
Types.DateRange,
Types.DidReport,
Type.AdditionalNotes,
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export * from "./DataSourceCahps";
export * from "shared/commonQuestions/AdditionalNotes";
export * from "./OtherPerformanceMeasure";
export * from "./Reporting";
export * from "./StatusOfData";
export * from "shared/commonQuestions/StatusOfData";
export * from "./WhyAreYouNotReporting";
export * from "./OptionalMeasureStrat";
export * from "shared/commonQuestions/MeasurementSpecification";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { OmsNode } from "./OptionalMeasureStrat/data";
import { PerformanceMeasureData } from "./PerformanceMeasure/data";
import * as DC from "dataConstants";
import * as Types from "shared/types";
import { StatusOfData } from "shared/types";

type YesNo = typeof DC.YES | typeof DC.NO;

Expand Down Expand Up @@ -135,13 +136,6 @@ export interface DidCollect {
[DC.DID_COLLECT]: YesNo;
}

export interface StatusOfData {
[DC.DATA_STATUS]:
| typeof DC.REPORTING_FINAL_DATA
| typeof DC.REPORTING_PROVISIONAL_DATA;
[DC.DATA_STATUS_PROVISIONAL_EXPLAINATION]: string;
}

export interface DataSource {
[DC.DATA_SOURCE]: string[];
[DC.DATA_SOURCE_SELECTIONS]: {
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2023/AMRAD/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export namespace Measure {
Type.CombinedRates,
Types.DateRange,
Types.DefinitionOfPopulation,
Types.StatusOfData,
Type.StatusOfData,
Types.DidReport,
Types.WhyAreYouNotReporting,
Types.DataSource,
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2023/MSCAD/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as Type from "shared/types";

export interface FormData
extends Types.DefinitionOfPopulation,
Types.StatusOfData,
Type.StatusOfData,
Types.DateRange,
Types.DidReport,
Type.AdditionalNotes,
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export * from "./DataSourceCahps";
export * from "shared/commonQuestions/AdditionalNotes";
export * from "./OtherPerformanceMeasure";
export * from "./Reporting";
export * from "./StatusOfData";
export * from "shared/commonQuestions/StatusOfData";
export * from "./WhyAreYouNotReporting";
export * from "shared/commonQuestions/NotCollectingOMS";
export * from "./OptionalMeasureStrat";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { OmsNode } from "./OptionalMeasureStrat/data";
import { PerformanceMeasureData } from "./PerformanceMeasure/data";
import * as DC from "dataConstants";
import * as Types from "shared/types";
import { StatusOfData } from "shared/types";

type YesNo = typeof DC.YES | typeof DC.NO;

Expand Down Expand Up @@ -138,13 +139,6 @@ export interface DidCollect {
[DC.DID_COLLECT]: YesNo;
}

export interface StatusOfData {
[DC.DATA_STATUS]:
| typeof DC.REPORTING_FINAL_DATA
| typeof DC.REPORTING_PROVISIONAL_DATA;
[DC.DATA_STATUS_PROVISIONAL_EXPLAINATION]: string;
}

export interface DataSource {
[DC.DATA_SOURCE]: string[];
[DC.DATA_SOURCE_SELECTIONS]: {
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/measures/2024/AMRAD/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export namespace Measure {
Type.CombinedRates,
Types.DateRange,
Types.DefinitionOfPopulation,
Types.StatusOfData,
Type.StatusOfData,
Types.DidReport,
Types.WhyAreYouNotReporting,
Types.DataSource,
Expand Down

This file was deleted.

Loading

0 comments on commit 521f2ae

Please sign in to comment.