Skip to content

Commit

Permalink
[EASI-3688] - Claims processing precedence (#911)
Browse files Browse the repository at this point in the history
* BE work complete

* Changed from YesNoType to Boolean

* Changed from Yes to Other

* Changed from Yes to Other FE

* Added new fields to form and readonly

* Added cypress test

* Updated snaps

* Fixed Bool spell

* Renamed migration
  • Loading branch information
patrickseguraoddball authored Jan 25, 2024
1 parent 5599d69 commit b894a4a
Show file tree
Hide file tree
Showing 31 changed files with 713 additions and 4 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 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}"
"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 claims_processing_precedence\n claims_processing_precedence_yes\n claims_processing_precedence_note\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 \"claims_processing_precedence\": true,\n \"claims_processing_precedence_yes\": \"\",\n \"claims_processing_precedence_note\": \"\",\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
8 changes: 8 additions & 0 deletions cypress/e2e/payments.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,14 @@ describe('The Model Plan Payment Form', () => {
.check({ force: true })
.should('be.checked');

cy.get('#payment-claims-processing-precendece-true')
.check({ force: true })
.should('be.checked');

cy.get('#payment-claims-processing-precendece-other')
.type('One business requirement')
.should('have.value', 'One business requirement');

cy.get('#payment-multiple-payments-true')
.check({ force: true })
.should('be.checked');
Expand Down
4 changes: 4 additions & 0 deletions migrations/V141__Add_Claims_Processing_Precedence.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE plan_payments
ADD COLUMN claims_processing_precedence BOOLEAN,
ADD COLUMN claims_processing_precedence_other ZERO_STRING,
ADD COLUMN claims_processing_precedence_note ZERO_STRING;
Loading

0 comments on commit b894a4a

Please sign in to comment.