Skip to content

Commit

Permalink
[EASI-3682] - Payment reconciliation frequency (#895)
Browse files Browse the repository at this point in the history
* WIP Frequency Types for Plan Payments

* Rename migration

* [EASI-3713] - Part 1 - FrequencyForm Component and anticipatedPaymentFrequency Implementation (#869)

* Added custom form component for frequency type

* Fized issue with readonlysection component

* Added util functions for readonlysection to maintain order with additional info

* Updated snaps

* Updated cypress test

* Rename migration

* Revert "[EASI-3713] - Frequency Updates FE Part 2 (#872)"

This reverts commit d8f4448.

* Renamed migration

* [EASI-3713] - Re-Approve - Frequency updates fe part 2 (#881)

* Added custom form component for frequency type

* Fized issue with readonlysection component

* Added util functions for readonlysection to maintain order with additional info

* Updated snaps

* Updated cypress test

* Init work for P&P frequency updates

* Updatd cypress test

* Rename migration

* Revert "Merge branch 'EASI-3713/frequency-updates-FE' into EASI-3713/frequency-updates-FE-Part-2"

This reverts commit 0680b40, reversing
changes made to a31f9e5.

* Revert "Revert "Merge branch 'EASI-3713/frequency-updates-FE' into EASI-3713/frequency-updates-FE-Part-2""

This reverts commit 17393c9.

* Rename migration

* update snaps

* renamed Update_Frequency_Type.sql migration version from 124 to 126

* Fixed migration merge issue with order

---------

Co-authored-by: Gary Zhao <[email protected]>
Co-authored-by: Gary Zhao <[email protected]>

* [EASI-3713] - Frequency Updates Part 3 (#882)

* Added custom form component for frequency type

* Fized issue with readonlysection component

* Added util functions for readonlysection to maintain order with additional info

* Updated snaps

* Updated cypress test

* Init work for P&P frequency updates

* Updatd cypress test

* Rename migration

* Revert "Merge branch 'EASI-3713/frequency-updates-FE' into EASI-3713/frequency-updates-FE-Part-2"

This reverts commit 0680b40, reversing
changes made to a31f9e5.

* Revert "Revert "Merge branch 'EASI-3713/frequency-updates-FE' into EASI-3713/frequency-updates-FE-Part-2""

This reverts commit 17393c9.

* Rename migration

* update snaps

* renamed Update_Frequency_Type.sql migration version from 124 to 126

* Fixed migration merge issue with order

* Init beneficiary frequency work

* Added backend work for new frequency type

* Added form work for beneficiary frequency type

* Updated tests

---------

Co-authored-by: Gary Zhao <[email protected]>
Co-authored-by: Gary Zhao <[email protected]>

* [EASI-3713] - Frequency Updates Part 4 (#883)

* Added custom form component for frequency type

* Fized issue with readonlysection component

* Added util functions for readonlysection to maintain order with additional info

* Updated snaps

* Updated cypress test

* Init work for P&P frequency updates

* Updatd cypress test

* Rename migration

* Revert "Merge branch 'EASI-3713/frequency-updates-FE' into EASI-3713/frequency-updates-FE-Part-2"

This reverts commit 0680b40, reversing
changes made to a31f9e5.

* Revert "Revert "Merge branch 'EASI-3713/frequency-updates-FE' into EASI-3713/frequency-updates-FE-Part-2""

This reverts commit 17393c9.

* Rename migration

* update snaps

* renamed Update_Frequency_Type.sql migration version from 124 to 126

* Fixed migration merge issue with order

* Init beneficiary frequency work

* Added backend work for new frequency type

* Added form work for beneficiary frequency type

* Updated tests

* Finished BE work for data sharing

* Added form elements for opsevalandlearning

* Added readonly opsavalandlearning frequency

* Updated cypress tests

* Added csv

* Updated translation form types

* Fixed lint error

---------

Co-authored-by: Gary Zhao <[email protected]>
Co-authored-by: Gary Zhao <[email protected]>

* [EASI-3713] - Rename frequency type (#886)

Renamed frequency type minus migrations

* Resolved merge conflicts

* Addressed issues with previsou revert

* Addressed remaining issues with previsou revert

* Fixed typo in update sql

* Added paymentReconciliationFrequency to BE

* Added FE form and readonly work

* Updated snaps

* Added props to FrequencyForm, updated snaps

* Updated postman collection, removed unneeded null migration default

* Export postman v2.1

* Removed postman collection link

* Fixed semiannually hyphen and updated snaps

* updated snaps, resolved migrations

---------

Co-authored-by: ClayBenson94 <[email protected]>
Co-authored-by: Gary Zhao <[email protected]>
Co-authored-by: Gary Zhao <[email protected]>
  • Loading branch information
4 people authored Jan 19, 2024
1 parent c3e685d commit 02e410b
Show file tree
Hide file tree
Showing 32 changed files with 845 additions and 15 deletions.
4 changes: 2 additions & 2 deletions MINT.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation updatePlanPayments ($id: UUID!, $changes: PlanPaymentsChanges!) {\n updatePlanPayments (id: $id, changes: $changes) {\n id\n modelPlanID\n fundingSource\n fundingSourceTrustFund\n fundingSourceTrustFundType\n fundingSourceOther\n fundingSourceNote\n fundingSourceR\n fundingSourceRTrustFund\n fundingSourceRTrustFundType\n fundingSourceROther\n fundingSourceRNote\n payRecipients\n payRecipientsOtherSpecification\n payRecipientsNote\n payType\n payTypeNote\n payClaims\n payClaimsOther\n payClaimsNote\n shouldAnyProvidersExcludedFFSSystems\n shouldAnyProviderExcludedFFSSystemsNote\n changesMedicarePhysicianFeeSchedule\n changesMedicarePhysicianFeeScheduleNote\n affectsMedicareSecondaryPayerClaims\n affectsMedicareSecondaryPayerClaimsHow\n affectsMedicareSecondaryPayerClaimsNote\n payModelDifferentiation\n creatingDependenciesBetweenServices\n creatingDependenciesBetweenServicesNote\n needsClaimsDataCollection\n needsClaimsDataCollectionNote\n providingThirdPartyFile\n isContractorAwareTestDataRequirements\n beneficiaryCostSharingLevelAndHandling\n waiveBeneficiaryCostSharingForAnyServices\n waiveBeneficiaryCostSharingServiceSpecification\n waiverOnlyAppliesPartOfPayment\n waiveBeneficiaryCostSharingNote\n nonClaimsPayments\n nonClaimsPaymentOther\n nonClaimsPaymentsNote\n paymentCalculationOwner\n numberPaymentsPerPayCycle\n numberPaymentsPerPayCycleNote\n sharedSystemsInvolvedAdditionalClaimPayment\n sharedSystemsInvolvedAdditionalClaimPaymentNote\n planningToUseInnovationPaymentContractor\n planningToUseInnovationPaymentContractorNote\n expectedCalculationComplexityLevel\n expectedCalculationComplexityLevelNote\n canParticipantsSelectBetweenPaymentMechanisms\n canParticipantsSelectBetweenPaymentMechanismsHow\n canParticipantsSelectBetweenPaymentMechanismsNote\n anticipatedPaymentFrequency\n anticipatedPaymentFrequencyContinually\n anticipatedPaymentFrequencyOther\n anticipatedPaymentFrequencyNote\n willRecoverPayments\n willRecoverPaymentsNote\n anticipateReconcilingPaymentsRetrospectively\n anticipateReconcilingPaymentsRetrospectivelyNote\n paymentStartDate\n paymentStartDateNote\n createdBy\n createdDts\n modifiedBy\n modifiedDts\n readyForReviewBy\n readyForReviewDts\n readyForClearanceBy\n readyForClearanceDts\n status\n\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\": \"{{paymentsID}}\",\n \"changes\": {\n \"fundingSource\": [\n \"\"\n ],\n \"fundingSourceTrustFund\": \"\",\n \"fundingSourceTrustFundType\": \"\",\n \"fundingSourceOther\": \"\",\n \"fundingSourceNote\": \"\",\n \"fundingSourceR\": [\n \"\"\n ],\n \"fundingSourceRTrustFund\": \"\",\n \"fundingSourceRTrustFundType\": \"\",\n \"fundingSourceROther\": \"\",\n \"fundingSourceRNote\": \"\",\n \"payRecipients\": [\n \"\"\n ],\n \"payRecipientsOtherSpecification\": \"\",\n \"payRecipientsNote\": \"\",\n \"payType\": [\n \"\"\n ],\n \"payTypeNote\": \"\",\n \"payClaims\": [\n \"\"\n ],\n \"payClaimsOther\": \"\",\n \"payClaimsNote\": \"\",\n \"shouldAnyProvidersExcludedFFSSystems\": true,\n \"shouldAnyProviderExcludedFFSSystemsNote\": \"\",\n \"changesMedicarePhysicianFeeSchedule\": true,\n \"changesMedicarePhysicianFeeScheduleNote\": \"\",\n \"affectsMedicareSecondaryPayerClaims\": true,\n \"affectsMedicareSecondaryPayerClaimsHow\": \"\",\n \"affectsMedicareSecondaryPayerClaimsNote\": \"\",\n \"payModelDifferentiation\": \"\",\n \"creatingDependenciesBetweenServices\": true,\n \"creatingDependenciesBetweenServicesNote\": \"\",\n \"needsClaimsDataCollection\": true,\n \"needsClaimsDataCollectionNote\": \"\",\n \"providingThirdPartyFile\": true,\n \"isContractorAwareTestDataRequirements\": true,\n \"beneficiaryCostSharingLevelAndHandling\": \"\",\n \"waiveBeneficiaryCostSharingForAnyServices\": true,\n \"waiveBeneficiaryCostSharingServiceSpecification\": \"\",\n \"waiverOnlyAppliesPartOfPayment\": true,\n \"waiveBeneficiaryCostSharingNote\": \"\",\n \"nonClaimsPayments\": [\n \"\"\n ],\n \"nonClaimsPaymentOther\": \"\",\n \"nonClaimsPaymentsNote\": \"\",\n \"paymentCalculationOwner\": \"\",\n \"numberPaymentsPerPayCycle\": \"\",\n \"numberPaymentsPerPayCycleNote\": \"\",\n \"sharedSystemsInvolvedAdditionalClaimPayment\": true,\n \"sharedSystemsInvolvedAdditionalClaimPaymentNote\": \"\",\n \"planningToUseInnovationPaymentContractor\": true,\n \"planningToUseInnovationPaymentContractorNote\": \"\",\n \"expectedCalculationComplexityLevel\": \"\",\n \"expectedCalculationComplexityLevelNote\": \"\",\n \"canParticipantsSelectBetweenPaymentMechanisms\": true,\n \"canParticipantsSelectBetweenPaymentMechanismsHow\": \"\",\n \"canParticipantsSelectBetweenPaymentMechanismsNote\": \"\",\n \"anticipatedPaymentFrequency\": [\n \"DAILY\",\n \"WEEKLY\",\n \"SEMIMONTHLY\"\n ],\n \"anticipatedPaymentFrequencyContinually\": \"This is a test anticipated payment frequency continually note\",\n \"anticipatedPaymentFrequencyOther\": \"\",\n \"anticipatedPaymentFrequencyNote\": \"\",\n \"willRecoverPayments\": true,\n \"willRecoverPaymentsNote\": \"\",\n \"anticipateReconcilingPaymentsRetrospectively\": true,\n \"anticipateReconcilingPaymentsRetrospectivelyNote\": \"\",\n \"paymentStartDate\": \"\",\n \"paymentStartDateNote\": \"\",\n \"status\": \"\"\n }\n}"
"query": "mutation updatePlanPayments ($id: UUID!, $changes: PlanPaymentsChanges!) {\n updatePlanPayments (id: $id, changes: $changes) {\n id\n modelPlanID\n fundingSource\n fundingSourceTrustFund\n fundingSourceTrustFundType\n fundingSourceOther\n fundingSourceNote\n fundingSourceR\n fundingSourceRTrustFund\n fundingSourceRTrustFundType\n fundingSourceROther\n fundingSourceRNote\n payRecipients\n payRecipientsOtherSpecification\n payRecipientsNote\n payType\n payTypeNote\n payClaims\n payClaimsOther\n payClaimsNote\n shouldAnyProvidersExcludedFFSSystems\n shouldAnyProviderExcludedFFSSystemsNote\n changesMedicarePhysicianFeeSchedule\n changesMedicarePhysicianFeeScheduleNote\n affectsMedicareSecondaryPayerClaims\n affectsMedicareSecondaryPayerClaimsHow\n affectsMedicareSecondaryPayerClaimsNote\n payModelDifferentiation\n creatingDependenciesBetweenServices\n creatingDependenciesBetweenServicesNote\n needsClaimsDataCollection\n needsClaimsDataCollectionNote\n providingThirdPartyFile\n isContractorAwareTestDataRequirements\n beneficiaryCostSharingLevelAndHandling\n waiveBeneficiaryCostSharingForAnyServices\n waiveBeneficiaryCostSharingServiceSpecification\n waiverOnlyAppliesPartOfPayment\n waiveBeneficiaryCostSharingNote\n nonClaimsPayments\n nonClaimsPaymentOther\n nonClaimsPaymentsNote\n paymentCalculationOwner\n numberPaymentsPerPayCycle\n numberPaymentsPerPayCycleNote\n sharedSystemsInvolvedAdditionalClaimPayment\n sharedSystemsInvolvedAdditionalClaimPaymentNote\n planningToUseInnovationPaymentContractor\n planningToUseInnovationPaymentContractorNote\n expectedCalculationComplexityLevel\n expectedCalculationComplexityLevelNote\n canParticipantsSelectBetweenPaymentMechanisms\n canParticipantsSelectBetweenPaymentMechanismsHow\n canParticipantsSelectBetweenPaymentMechanismsNote\n anticipatedPaymentFrequency\n anticipatedPaymentFrequencyOther\n anticipatedPaymentFrequencyNote\n willRecoverPayments\n willRecoverPaymentsNote\n anticipateReconcilingPaymentsRetrospectively\n anticipateReconcilingPaymentsRetrospectivelyNote\n paymentReconciliationFrequency\n paymentReconciliationFrequencyContinually\n paymentReconciliationFrequencyOther\n paymentReconciliationFrequencyNote\n paymentStartDate\n paymentStartDateNote\n createdBy\n createdDts\n modifiedBy\n modifiedDts\n readyForReviewBy\n readyForReviewDts\n readyForClearanceBy\n readyForClearanceDts\n status\n\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\": \"{{paymentsID}}\",\n \"changes\": {\n \"fundingSource\": [\n \"\"\n ],\n \"fundingSourceTrustFund\": \"\",\n \"fundingSourceTrustFundType\": \"\",\n \"fundingSourceOther\": \"\",\n \"fundingSourceNote\": \"\",\n \"fundingSourceR\": [\n \"\"\n ],\n \"fundingSourceRTrustFund\": \"\",\n \"fundingSourceRTrustFundType\": \"\",\n \"fundingSourceROther\": \"\",\n \"fundingSourceRNote\": \"\",\n \"payRecipients\": [\n \"\"\n ],\n \"payRecipientsOtherSpecification\": \"\",\n \"payRecipientsNote\": \"\",\n \"payType\": [\n \"\"\n ],\n \"payTypeNote\": \"\",\n \"payClaims\": [\n \"\"\n ],\n \"payClaimsOther\": \"\",\n \"payClaimsNote\": \"\",\n \"shouldAnyProvidersExcludedFFSSystems\": true,\n \"shouldAnyProviderExcludedFFSSystemsNote\": \"\",\n \"changesMedicarePhysicianFeeSchedule\": true,\n \"changesMedicarePhysicianFeeScheduleNote\": \"\",\n \"affectsMedicareSecondaryPayerClaims\": true,\n \"affectsMedicareSecondaryPayerClaimsHow\": \"\",\n \"affectsMedicareSecondaryPayerClaimsNote\": \"\",\n \"payModelDifferentiation\": \"\",\n \"creatingDependenciesBetweenServices\": true,\n \"creatingDependenciesBetweenServicesNote\": \"\",\n \"needsClaimsDataCollection\": true,\n \"needsClaimsDataCollectionNote\": \"\",\n \"providingThirdPartyFile\": true,\n \"isContractorAwareTestDataRequirements\": true,\n \"beneficiaryCostSharingLevelAndHandling\": \"\",\n \"waiveBeneficiaryCostSharingForAnyServices\": true,\n \"waiveBeneficiaryCostSharingServiceSpecification\": \"\",\n \"waiverOnlyAppliesPartOfPayment\": true,\n \"waiveBeneficiaryCostSharingNote\": \"\",\n \"nonClaimsPayments\": [\n \"\"\n ],\n \"nonClaimsPaymentOther\": \"\",\n \"nonClaimsPaymentsNote\": \"\",\n \"paymentCalculationOwner\": \"\",\n \"numberPaymentsPerPayCycle\": \"\",\n \"numberPaymentsPerPayCycleNote\": \"\",\n \"sharedSystemsInvolvedAdditionalClaimPayment\": true,\n \"sharedSystemsInvolvedAdditionalClaimPaymentNote\": \"\",\n \"planningToUseInnovationPaymentContractor\": true,\n \"planningToUseInnovationPaymentContractorNote\": \"\",\n \"expectedCalculationComplexityLevel\": \"\",\n \"expectedCalculationComplexityLevelNote\": \"\",\n \"canParticipantsSelectBetweenPaymentMechanisms\": true,\n \"canParticipantsSelectBetweenPaymentMechanismsHow\": \"\",\n \"canParticipantsSelectBetweenPaymentMechanismsNote\": \"\",\n \"anticipatedPaymentFrequency\": [\n \"\"\n ],\n \"anticipatedPaymentFrequencyOther\": \"\",\n \"anticipatedPaymentFrequencyNote\": \"\",\n \"willRecoverPayments\": true,\n \"willRecoverPaymentsNote\": \"\",\n \"anticipateReconcilingPaymentsRetrospectively\": true,\n \"anticipateReconcilingPaymentsRetrospectivelyNote\": \"\",\n \"paymentReconciliationFrequency\": [\n \"\"\n ],\n \"paymentReconciliationFrequencyContinually\": \"\",\n \"paymentReconciliationFrequencyOther\": \"\",\n \"paymentReconciliationFrequencyNote\": \"\",\n \"paymentStartDate\": \"\",\n \"paymentStartDateNote\": \"\",\n \"status\": \"\"\n }\n}"
}
},
"url": {
Expand Down
12 changes: 12 additions & 0 deletions cypress/e2e/payments.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,18 @@ describe('The Model Plan Payment Form', () => {
.check({ force: true })
.should('be.checked');

cy.get('#payment-reconciliation-frequency-quarterly')
.check({ force: true })
.should('be.checked');

cy.get('#payment-reconciliation-frequency-other')
.check({ force: true })
.should('be.checked');

cy.get('#payment-reconciliation-frequency-other-text')
.type('Payment Frequency Payments Other')
.should('have.value', 'Payment Frequency Payments Other');

cy.get('#payment-payment-start-date')
.type('10/26/2028')
.should('have.value', '10/26/2028');
Expand Down
5 changes: 5 additions & 0 deletions migrations/V133__Add_Payment_Reconciliation_Frequency.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE plan_payments
ADD COLUMN payment_reconciliation_frequency_continually ZERO_STRING,
ADD COLUMN payment_reconciliation_frequency_other ZERO_STRING,
ADD COLUMN payment_reconciliation_frequency_note ZERO_STRING,
ADD COLUMN payment_reconciliation_frequency FREQUENCY_TYPE[];
Loading

0 comments on commit 02e410b

Please sign in to comment.