Skip to content

Commit

Permalink
[EASI-3771] - Quality performance impacts payment (#898)
Browse files Browse the repository at this point in the history
* Added migration and schema for QualityPerformanceImpactType

* Fix comment name

* Added form element to readonly, updated unit tests

* Added server test and postmand collection

* Renamed QualityPerformanceImpactType to YesNoOtherType
  • Loading branch information
patrickseguraoddball authored Jan 11, 2024
1 parent 009ecb5 commit 4454a5a
Show file tree
Hide file tree
Showing 27 changed files with 303 additions and 66 deletions.
4 changes: 2 additions & 2 deletions MINT.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation updatePlanOpsEvalAndLearning ($id: UUID!, $changes: PlanOpsEvalAndLearningChanges!) {\n updatePlanOpsEvalAndLearning (id: $id, changes: $changes) {\n id\n modelPlanID\n agencyOrStateHelp\n agencyOrStateHelpOther\n agencyOrStateHelpNote\n stakeholders\n stakeholdersOther\n stakeholdersNote\n helpdeskUse\n helpdeskUseNote\n contractorSupport\n contractorSupportOther\n contractorSupportHow\n contractorSupportNote\n iddocSupport\n iddocSupportNote\n technicalContactsIdentified\n technicalContactsIdentifiedDetail\n technicalContactsIdentifiedNote\n captureParticipantInfo\n captureParticipantInfoNote\n icdOwner\n draftIcdDueDate\n icdNote\n uatNeeds\n stcNeeds\n testingTimelines\n testingNote\n dataMonitoringFileTypes\n dataMonitoringFileOther\n dataResponseType\n dataResponseFileFrequency\n dataFullTimeOrIncremental\n eftSetUp\n unsolicitedAdjustmentsIncluded\n dataFlowDiagramsNeeded\n produceBenefitEnhancementFiles\n fileNamingConventions\n dataMonitoringNote\n benchmarkForPerformance\n benchmarkForPerformanceNote\n computePerformanceScores\n computePerformanceScoresNote\n riskAdjustPerformance\n riskAdjustFeedback\n riskAdjustPayments\n riskAdjustOther\n riskAdjustNote\n appealPerformance\n appealFeedback\n appealPayments\n appealOther\n appealNote\n evaluationApproaches\n evaluationApproachOther\n evalutaionApproachNote\n ccmInvolvment\n ccmInvolvmentOther\n ccmInvolvmentNote\n dataNeededForMonitoring\n dataNeededForMonitoringOther\n dataNeededForMonitoringNote\n dataToSendParticicipants\n dataToSendParticicipantsOther\n dataToSendParticicipantsNote\n shareCclfData\n shareCclfDataNote\n sendFilesBetweenCcw\n sendFilesBetweenCcwNote\n appToSendFilesToKnown\n appToSendFilesToWhich\n appToSendFilesToNote\n useCcwForFileDistribiutionToParticipants\n useCcwForFileDistribiutionToParticipantsNote\n developNewQualityMeasures\n developNewQualityMeasuresNote\n qualityPerformanceImpactsPayment\n qualityPerformanceImpactsPaymentNote\n dataSharingStarts\n dataSharingStartsOther\n dataSharingFrequency\n dataSharingFrequencyOther\n dataSharingStartsNote\n dataCollectionStarts\n dataCollectionStartsOther\n dataCollectionFrequency\n dataCollectionFrequencyOther\n dataCollectionFrequencyNote\n qualityReportingStarts\n qualityReportingStartsOther\n qualityReportingStartsNote\n modelLearningSystems\n modelLearningSystemsOther\n modelLearningSystemsNote\n anticipatedChallenges\n createdBy\n createdDts\n modifiedBy\n modifiedDts\n readyForReviewBy\n readyForReviewDts\n readyForClearanceBy\n readyForClearanceDts\n status\n createdByUserAccount \n {\n commonName\n } \n modifiedByUserAccount\n {\n commonName\n } \n readyForReviewByUserAccount \n {\n commonName\n }\n readyForClearanceByUserAccount \n {\n commonName\n }\n }\n}",
"variables": "{\n \"id\": \"{{opsEvalAndLearningID}}\",\n \"changes\": {\n \"agencyOrStateHelp\": [\n \"\"\n ],\n \"agencyOrStateHelpOther\": \"\",\n \"agencyOrStateHelpNote\": \"\",\n \"stakeholders\": [\n \"\"\n ],\n \"stakeholdersOther\": \"\",\n \"stakeholdersNote\": \"\",\n \"helpdeskUse\": true,\n \"helpdeskUseNote\": \"\",\n \"contractorSupport\": [\n \"\"\n ],\n \"contractorSupportOther\": \"\",\n \"contractorSupportHow\": \"\",\n \"contractorSupportNote\": \"\",\n \"iddocSupport\": true,\n \"iddocSupportNote\": \"\",\n \"technicalContactsIdentified\": true,\n \"technicalContactsIdentifiedDetail\": \"\",\n \"technicalContactsIdentifiedNote\": \"\",\n \"captureParticipantInfo\": true,\n \"captureParticipantInfoNote\": \"\",\n \"icdOwner\": \"\",\n \"draftIcdDueDate\": \"\",\n \"icdNote\": \"\",\n \"uatNeeds\": \"\",\n \"stcNeeds\": \"\",\n \"testingTimelines\": \"\",\n \"testingNote\": \"\",\n \"dataMonitoringFileTypes\": [\n \"\"\n ],\n \"dataMonitoringFileOther\": \"\",\n \"dataResponseType\": \"\",\n \"dataResponseFileFrequency\": \"\",\n \"dataFullTimeOrIncremental\": \"\",\n \"eftSetUp\": true,\n \"unsolicitedAdjustmentsIncluded\": true,\n \"dataFlowDiagramsNeeded\": true,\n \"produceBenefitEnhancementFiles\": true,\n \"fileNamingConventions\": \"\",\n \"dataMonitoringNote\": \"\",\n \"benchmarkForPerformance\": \"\",\n \"benchmarkForPerformanceNote\": \"\",\n \"computePerformanceScores\": true,\n \"computePerformanceScoresNote\": \"\",\n \"riskAdjustPerformance\": true,\n \"riskAdjustFeedback\": true,\n \"riskAdjustPayments\": true,\n \"riskAdjustOther\": true,\n \"riskAdjustNote\": \"\",\n \"appealPerformance\": true,\n \"appealFeedback\": true,\n \"appealPayments\": true,\n \"appealOther\": true,\n \"appealNote\": \"\",\n \"evaluationApproaches\": [\n \"\"\n ],\n \"evaluationApproachOther\": \"\",\n \"evalutaionApproachNote\": \"\",\n \"ccmInvolvment\": [\n \"\"\n ],\n \"ccmInvolvmentOther\": \"\",\n \"ccmInvolvmentNote\": \"\",\n \"dataNeededForMonitoring\": [\n \"\"\n ],\n \"dataNeededForMonitoringOther\": \"\",\n \"dataNeededForMonitoringNote\": \"\",\n \"dataToSendParticicipants\": [\n \"\"\n ],\n \"dataToSendParticicipantsOther\": \"\",\n \"dataToSendParticicipantsNote\": \"\",\n \"shareCclfData\": true,\n \"shareCclfDataNote\": \"\",\n \"sendFilesBetweenCcw\": true,\n \"sendFilesBetweenCcwNote\": \"\",\n \"appToSendFilesToKnown\": true,\n \"appToSendFilesToWhich\": \"\",\n \"appToSendFilesToNote\": \"\",\n \"useCcwForFileDistribiutionToParticipants\": true,\n \"useCcwForFileDistribiutionToParticipantsNote\": \"\",\n \"developNewQualityMeasures\": true,\n \"developNewQualityMeasuresNote\": \"\",\n \"qualityPerformanceImpactsPayment\": true,\n \"qualityPerformanceImpactsPaymentNote\": \"\",\n \"dataSharingStarts\": \"\",\n \"dataSharingStartsOther\": \"\",\n \"dataSharingFrequency\": [\n \"\"\n ],\n \"dataSharingFrequencyOther\": \"\",\n \"dataSharingStartsNote\": \"\",\n \"dataCollectionStarts\": \"\",\n \"dataCollectionStartsOther\": \"\",\n \"dataCollectionFrequency\": [\n \"\"\n ],\n \"dataCollectionFrequencyOther\": \"\",\n \"dataCollectionFrequencyNote\": \"\",\n \"qualityReportingStarts\": \"\",\n \"qualityReportingStartsOther\": \"\",\n \"qualityReportingStartsNote\": \"\",\n \"modelLearningSystems\": [\n \"\"\n ],\n \"modelLearningSystemsOther\": \"\",\n \"modelLearningSystemsNote\": \"\",\n \"anticipatedChallenges\": \"\",\n \"status\": \"\"\n }\n}"
"query": "mutation updatePlanOpsEvalAndLearning ($id: UUID!, $changes: PlanOpsEvalAndLearningChanges!) {\n updatePlanOpsEvalAndLearning (id: $id, changes: $changes) {\n id\n modelPlanID\n agencyOrStateHelp\n agencyOrStateHelpOther\n agencyOrStateHelpNote\n stakeholders\n stakeholdersOther\n stakeholdersNote\n helpdeskUse\n helpdeskUseNote\n contractorSupport\n contractorSupportOther\n contractorSupportHow\n contractorSupportNote\n iddocSupport\n iddocSupportNote\n technicalContactsIdentified\n technicalContactsIdentifiedDetail\n technicalContactsIdentifiedNote\n captureParticipantInfo\n captureParticipantInfoNote\n icdOwner\n draftIcdDueDate\n icdNote\n uatNeeds\n stcNeeds\n testingTimelines\n testingNote\n dataMonitoringFileTypes\n dataMonitoringFileOther\n dataResponseType\n dataResponseFileFrequency\n dataFullTimeOrIncremental\n eftSetUp\n unsolicitedAdjustmentsIncluded\n dataFlowDiagramsNeeded\n produceBenefitEnhancementFiles\n fileNamingConventions\n dataMonitoringNote\n benchmarkForPerformance\n benchmarkForPerformanceNote\n computePerformanceScores\n computePerformanceScoresNote\n riskAdjustPerformance\n riskAdjustFeedback\n riskAdjustPayments\n riskAdjustOther\n riskAdjustNote\n appealPerformance\n appealFeedback\n appealPayments\n appealOther\n appealNote\n evaluationApproaches\n evaluationApproachOther\n evalutaionApproachNote\n ccmInvolvment\n ccmInvolvmentOther\n ccmInvolvmentNote\n dataNeededForMonitoring\n dataNeededForMonitoringOther\n dataNeededForMonitoringNote\n dataToSendParticicipants\n dataToSendParticicipantsOther\n dataToSendParticicipantsNote\n shareCclfData\n shareCclfDataNote\n sendFilesBetweenCcw\n sendFilesBetweenCcwNote\n appToSendFilesToKnown\n appToSendFilesToWhich\n appToSendFilesToNote\n useCcwForFileDistribiutionToParticipants\n useCcwForFileDistribiutionToParticipantsNote\n developNewQualityMeasures\n developNewQualityMeasuresNote\n qualityPerformanceImpactsPayment\n qualityPerformanceImpactsPaymentOther\n qualityPerformanceImpactsPaymentNote\n dataSharingStarts\n dataSharingStartsOther\n dataSharingFrequency\n dataSharingFrequencyOther\n dataSharingStartsNote\n dataCollectionStarts\n dataCollectionStartsOther\n dataCollectionFrequency\n dataCollectionFrequencyOther\n dataCollectionFrequencyNote\n qualityReportingStarts\n qualityReportingStartsOther\n qualityReportingStartsNote\n modelLearningSystems\n modelLearningSystemsOther\n modelLearningSystemsNote\n anticipatedChallenges\n createdBy\n createdDts\n modifiedBy\n modifiedDts\n readyForReviewBy\n readyForReviewDts\n readyForClearanceBy\n readyForClearanceDts\n status\n createdByUserAccount \n {\n commonName\n } \n modifiedByUserAccount\n {\n commonName\n } \n readyForReviewByUserAccount \n {\n commonName\n }\n readyForClearanceByUserAccount \n {\n commonName\n }\n }\n}",
"variables": "{\n \"id\": \"{{opsEvalAndLearningID}}\",\n \"changes\": {\n \"agencyOrStateHelp\": [\n \"\"\n ],\n \"agencyOrStateHelpOther\": \"\",\n \"agencyOrStateHelpNote\": \"\",\n \"stakeholders\": [\n \"\"\n ],\n \"stakeholdersOther\": \"\",\n \"stakeholdersNote\": \"\",\n \"helpdeskUse\": true,\n \"helpdeskUseNote\": \"\",\n \"contractorSupport\": [\n \"\"\n ],\n \"contractorSupportOther\": \"\",\n \"contractorSupportHow\": \"\",\n \"contractorSupportNote\": \"\",\n \"iddocSupport\": true,\n \"iddocSupportNote\": \"\",\n \"technicalContactsIdentified\": true,\n \"technicalContactsIdentifiedDetail\": \"\",\n \"technicalContactsIdentifiedNote\": \"\",\n \"captureParticipantInfo\": true,\n \"captureParticipantInfoNote\": \"\",\n \"icdOwner\": \"\",\n \"draftIcdDueDate\": \"\",\n \"icdNote\": \"\",\n \"uatNeeds\": \"\",\n \"stcNeeds\": \"\",\n \"testingTimelines\": \"\",\n \"testingNote\": \"\",\n \"dataMonitoringFileTypes\": [\n \"\"\n ],\n \"dataMonitoringFileOther\": \"\",\n \"dataResponseType\": \"\",\n \"dataResponseFileFrequency\": \"\",\n \"dataFullTimeOrIncremental\": \"\",\n \"eftSetUp\": true,\n \"unsolicitedAdjustmentsIncluded\": true,\n \"dataFlowDiagramsNeeded\": true,\n \"produceBenefitEnhancementFiles\": true,\n \"fileNamingConventions\": \"\",\n \"dataMonitoringNote\": \"\",\n \"benchmarkForPerformance\": \"\",\n \"benchmarkForPerformanceNote\": \"\",\n \"computePerformanceScores\": true,\n \"computePerformanceScoresNote\": \"\",\n \"riskAdjustPerformance\": true,\n \"riskAdjustFeedback\": true,\n \"riskAdjustPayments\": true,\n \"riskAdjustOther\": true,\n \"riskAdjustNote\": \"\",\n \"appealPerformance\": true,\n \"appealFeedback\": true,\n \"appealPayments\": true,\n \"appealOther\": true,\n \"appealNote\": \"\",\n \"evaluationApproaches\": [\n \"\"\n ],\n \"evaluationApproachOther\": \"\",\n \"evalutaionApproachNote\": \"\",\n \"ccmInvolvment\": [\n \"\"\n ],\n \"ccmInvolvmentOther\": \"\",\n \"ccmInvolvmentNote\": \"\",\n \"dataNeededForMonitoring\": [\n \"\"\n ],\n \"dataNeededForMonitoringOther\": \"\",\n \"dataNeededForMonitoringNote\": \"\",\n \"dataToSendParticicipants\": [\n \"\"\n ],\n \"dataToSendParticicipantsOther\": \"\",\n \"dataToSendParticicipantsNote\": \"\",\n \"shareCclfData\": true,\n \"shareCclfDataNote\": \"\",\n \"sendFilesBetweenCcw\": true,\n \"sendFilesBetweenCcwNote\": \"\",\n \"appToSendFilesToKnown\": true,\n \"appToSendFilesToWhich\": \"\",\n \"appToSendFilesToNote\": \"\",\n \"useCcwForFileDistribiutionToParticipants\": true,\n \"useCcwForFileDistribiutionToParticipantsNote\": \"\",\n \"developNewQualityMeasures\": true,\n \"developNewQualityMeasuresNote\": \"\",\n \"qualityPerformanceImpactsPayment\": [\n \"\"\n ],\n \"qualityPerformanceImpactsPaymentOther\": \"\",\n \"qualityPerformanceImpactsPaymentNote\": \"\",\n \"dataSharingStarts\": \"\",\n \"dataSharingStartsOther\": \"\",\n \"dataSharingFrequency\": [\n \"\"\n ],\n \"dataSharingFrequencyOther\": \"\",\n \"dataSharingStartsNote\": \"\",\n \"dataCollectionStarts\": \"\",\n \"dataCollectionStartsOther\": \"\",\n \"dataCollectionFrequency\": [\n \"\"\n ],\n \"dataCollectionFrequencyOther\": \"\",\n \"dataCollectionFrequencyNote\": \"\",\n \"qualityReportingStarts\": \"\",\n \"qualityReportingStartsOther\": \"\",\n \"qualityReportingStartsNote\": \"\",\n \"modelLearningSystems\": [\n \"\"\n ],\n \"modelLearningSystemsOther\": \"\",\n \"modelLearningSystemsNote\": \"\",\n \"anticipatedChallenges\": \"\",\n \"status\": \"\"\n }\n}"
}
},
"url": {
Expand Down
18 changes: 18 additions & 0 deletions migrations/V127__Update_Quality_Performance_Impacts_Payment.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CREATE TYPE YES_NO_OTHER_TYPE AS ENUM (
'YES',
'NO',
'OTHER'
);

-- Add quality_performance_impacts_payment_other to table
ALTER TABLE plan_ops_eval_and_learning
ADD COLUMN quality_performance_impacts_payment_other zero_string;

-- Alter the quality_performance_impacts_payment column to use new YES_NO_OTHER_TYPE enum instead of BOOL
ALTER TABLE plan_ops_eval_and_learning
ALTER COLUMN quality_performance_impacts_payment TYPE YES_NO_OTHER_TYPE USING (
CASE quality_performance_impacts_payment
WHEN TRUE THEN 'YES'::YES_NO_OTHER_TYPE
WHEN FALSE THEN 'NO'::YES_NO_OTHER_TYPE
END
);
Loading

0 comments on commit 4454a5a

Please sign in to comment.