Skip to content

Commit

Permalink
Merge pull request #812 from CMSgov/QPPA-9025
Browse files Browse the repository at this point in the history
QPPA-9025: migrate clinical clusters to TS
  • Loading branch information
ckawell-sb authored Jul 15, 2024
2 parents 3531864 + b599b38 commit bca99ba
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 111 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion scripts/clinical-clusters/build-clinical-clusters
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

currentPerformanceYear=2024

# compile TypeScript
tsc -p .

# generate EMA cluster data
echo "Generating clinical clusters:"
cat measures/$currentPerformanceYear/measures-data.json | node scripts/clinical-clusters/ema-clinical-cluster-builder.js $currentPerformanceYear ./util/clinical-clusters/$currentPerformanceYear/ClaimsClinical_Cluster.csv ./util/clinical-clusters/$currentPerformanceYear/RegistryClinicalCluster.csv | tee clinical-clusters/$currentPerformanceYear/clinical-clusters.json
node dist/clinical-clusters/ema-clinical-cluster-builder.js $currentPerformanceYear util/clinical-clusters/$currentPerformanceYear/ClaimsClinical_Cluster.csv util/clinical-clusters/$currentPerformanceYear/RegistryClinicalCluster.csv

# validate EMA clusters
echo ""
Expand Down
29 changes: 29 additions & 0 deletions scripts/clinical-clusters/clinical-cluster.types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
export type SpecialtySet = {
name: string,
measureIds: string[]
};

export type SpecialtySetRelation = {
name: string,
action: string,
measureIds: string[]
};

export type ClusterRelations = {
measureId: string,
optionals: string[]
};

export type ClinicalCluster = {
name: string,
measureIds: string[],
};

export type ClusterInfo = {
measureId: string,
submissionMethod: string,
firstPerformanceYear: number,
lastPerformanceYear: number | null,
specialtySets?: SpecialtySet[],
clinicalClusters?: ClinicalCluster[]
}
Loading

0 comments on commit bca99ba

Please sign in to comment.