Skip to content

Commit

Permalink
Cmdct 4027 - patient access section under nov macpar release flag (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
britt-mo authored Oct 9, 2024
1 parent 5b5647c commit 8955a56
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
40 changes: 40 additions & 0 deletions services/app-api/forms/mcpar.json
Original file line number Diff line number Diff line change
Expand Up @@ -2061,6 +2061,46 @@
}
]
}
},
{
"name": "XIV: Patient Access / API Usage",
"path": "/mcpar/program-level-indicators/patient-access-api-usage",
"pageType": "standard",
"verbiage": {
"intro": {
"section": "Section C: Program-Level Indicators",
"subsection": "Topic XIV: Patient Access / API Usage",
"spreadsheet": "C1_Program_Set",
"alert": "<b>Beginning June 2026, Indicators C1.XIV.1-2 must be completed. Submission of this data before June 2026 is optional; if you choose not to respond prior to June 2026, enter “N/A”.</b>"
}
},
"form": {
"id": "cpaau",
"fields": [
{
"id": "state_patientAccessNumberOfBeneficiariesOneDataTransfer",
"type": "number",
"validation": "number",
"props": {
"label": "C1.XIV.1 Number of unique beneficiaries with at least one data transfer",
"hint": "Indicate total number of unique beneficiaries covered by this contract (program) whose data were transferred via the Patient Access API to a health app designated by the beneficiary. Enter the numbers for this program for the previous calendar year. If you choose not to respond prior to June 2026, enter “N/A”.",
"mask": "comma-separated",
"decimalPlacesToRoundTo": 0
}
},
{
"id": "state_patientAcessNumberOfBeneficiariesMultipleDataTransfers",
"type": "number",
"validation": "number",
"props": {
"label": "C1.XIV.2 Number of unique beneficiaries with multiple data transfers",
"hint": "Indicate total number of unique beneficiaries covered by this contract (program) whose data are transferred more than once via the Patient Access API to a health application designated by the beneficiary. Enter the numbers for this program for the previous calendar year. If you choose not to respond prior to June 2026, enter “N/A”.",
"mask": "comma-separated",
"decimalPlacesToRoundTo": 0
}
}
]
}
}
]
},
Expand Down
8 changes: 6 additions & 2 deletions services/app-api/utils/formTemplates/formTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,16 @@ const makePCCMTemplateModifications = (reportTemplate: ReportJson) => {

const handleTemplateForNovMcparRelease = (originalReportTemplate: any) => {
const reportTemplate = structuredClone(originalReportTemplate);
const routesToIncludeInNovMcparRelease = [
"/mcpar/state-level-indicators/prior-authorization",
"/mcpar/program-level-indicators/patient-access-api-usage",
];
// remove paths associated with the nov release flag
for (let route of reportTemplate.routes) {
if (route?.children) {
route.children = route.children.filter(
(childRoute: ReportRoute) =>
childRoute.path !==
"/mcpar/state-level-indicators/prior-authorization"
!routesToIncludeInNovMcparRelease.includes(childRoute.path)
);
}
}
Expand Down

0 comments on commit 8955a56

Please sign in to comment.