Skip to content

Commit

Permalink
[EASI-3683] - Participant added/removed frequency (#897)
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 props to FrequencyForm, updated snaps

* Added frequency fields to schema, migration, and queries

* Added to postman collection

* Added server test

* Updated unit tests, added cypress

* Fixed semiannually hyphen and updated snaps

* Resolved migration naming

* Resolved migration naming - new

* Updated cypress test

---------

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 216d8a6 commit 06cbca2
Show file tree
Hide file tree
Showing 32 changed files with 1,735 additions and 79 deletions.
4 changes: 2 additions & 2 deletions MINT.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@
"body": {
"mode": "graphql",
"graphql": {
"query": "mutation updatePlanParticipantsAndProviders ($id: UUID!, $changes: PlanParticipantsAndProvidersChanges!) {\n updatePlanParticipantsAndProviders (id: $id, changes: $changes) {\n id\n modelPlanID\n participants\n medicareProviderType\n statesEngagement\n participantsOther\n participantsNote\n participantsCurrentlyInModels\n participantsCurrentlyInModelsNote\n modelApplicationLevel\n expectedNumberOfParticipants\n estimateConfidence\n confidenceNote\n recruitmentMethod\n recruitmentOther\n recruitmentNote\n selectionMethod\n selectionOther\n selectionNote\n communicationMethod\n communicationMethodOther\n communicationNote\n riskType\n riskOther\n riskNote\n willRiskChange\n willRiskChangeNote\n coordinateWork\n coordinateWorkNote\n gainsharePayments\n gainsharePaymentsTrack\n gainsharePaymentsEligibility\n gainsharePaymentsEligibilityOther\n gainsharePaymentsNote\n participantsIds\n participantsIdsOther\n participantsIDSNote\n providerAdditionFrequency\n providerAdditionFrequencyContinually\n providerAdditionFrequencyOther\n providerAdditionFrequencyNote\n providerAddMethod\n providerAddMethodOther\n providerAddMethodNote\n providerLeaveMethod\n providerLeaveMethodOther\n providerLeaveMethodNote\n providerOverlap\n providerOverlapHierarchy\n providerOverlapNote\n createdBy\n createdDts\n modifiedBy\n modifiedDts\n readyForReviewBy\n readyForReviewDts\n readyForClearanceBy\n readyForClearanceDts\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\n status\n }\n}",
"variables": "{\n \"id\": \"{{participantsAndProvidersID}}\",\n \"changes\": {\n \"participants\": [\n \"\"\n ],\n \"medicareProviderType\": \"\",\n \"statesEngagement\": \"\",\n \"participantsOther\": \"\",\n \"participantsNote\": \"\",\n \"participantsCurrentlyInModels\": true,\n \"participantsCurrentlyInModelsNote\": \"\",\n \"modelApplicationLevel\": \"\",\n \"expectedNumberOfParticipants\": 0,\n \"estimateConfidence\": \"\",\n \"confidenceNote\": \"\",\n \"recruitmentMethod\": \"\",\n \"recruitmentOther\": \"\",\n \"recruitmentNote\": \"\",\n \"selectionMethod\": [\n \"\"\n ],\n \"selectionOther\": \"\",\n \"selectionNote\": \"\",\n \"communicationMethod\": [\n \"\"\n ],\n \"communicationMethodOther\": \"\",\n \"communicationNote\": \"\",\n \"riskType\": [\n \"OTHER\"\n ],\n \"riskOther\": \"\",\n \"riskNote\": \"\",\n \"willRiskChange\": true,\n \"willRiskChangeNote\": \"\",\n \"coordinateWork\": true,\n \"coordinateWorkNote\": \"\",\n \"gainsharePayments\": true,\n \"gainsharePaymentsTrack\": true,\n \"gainsharePaymentsNote\": \"\",\n \"gainsharePaymentsEligibility\": [\"\"],\n \"gainsharePaymentsEligibilityOther\": \"\",\n \"participantsIds\": [\n \"\"\n ],\n \"participantsIdsOther\": \"\",\n \"participantsIDSNote\": \"\",\n \"providerAdditionFrequency\": \"CONTINUALLY\",\n \"providerAdditionFrequencyContinually\": \"This is a test continual frequency note\",\n \"providerAdditionFrequencyOther\": \"\",\n \"providerAdditionFrequencyNote\": \"\",\n \"providerAddMethod\": [\n \"\"\n ],\n \"providerAddMethodOther\": \"\",\n \"providerAddMethodNote\": \"\",\n \"providerLeaveMethod\": [\n \"\"\n ],\n \"providerLeaveMethodOther\": \"\",\n \"providerLeaveMethodNote\": \"\",\n \"providerOverlap\": \"\",\n \"providerOverlapHierarchy\": \"\",\n \"providerOverlapNote\": \"\",\n \"status\": \"\"\n }\n}"
"query": "mutation updatePlanParticipantsAndProviders ($id: UUID!, $changes: PlanParticipantsAndProvidersChanges!) {\n updatePlanParticipantsAndProviders (id: $id, changes: $changes) {\n id\n modelPlanID\n participants\n medicareProviderType\n statesEngagement\n participantsOther\n participantsNote\n participantsCurrentlyInModels\n participantsCurrentlyInModelsNote\n modelApplicationLevel\n expectedNumberOfParticipants\n estimateConfidence\n confidenceNote\n recruitmentMethod\n recruitmentOther\n recruitmentNote\n selectionMethod\n selectionOther\n selectionNote\n participantAddedFrequency\n participantAddedFrequencyContinually\n participantAddedFrequencyOther\n participantAddedFrequencyNote\n participantRemovedFrequency\n participantRemovedFrequencyContinually\n participantRemovedFrequencyOther\n participantRemovedFrequencyNote\n communicationMethod\n communicationMethodOther\n communicationNote\n riskType\n riskOther\n riskNote\n willRiskChange\n willRiskChangeNote\n coordinateWork\n coordinateWorkNote\n gainsharePayments\n gainsharePaymentsTrack\n gainsharePaymentsEligibility\n gainsharePaymentsEligibilityOther\n gainsharePaymentsNote\n participantsIds\n participantsIdsOther\n participantsIDSNote\n providerAdditionFrequency\n providerAdditionFrequencyOther\n providerAdditionFrequencyNote\n providerAddMethod\n providerAddMethodOther\n providerAddMethodNote\n providerLeaveMethod\n providerLeaveMethodOther\n providerLeaveMethodNote\n providerOverlap\n providerOverlapHierarchy\n providerOverlapNote\n createdBy\n createdDts\n modifiedBy\n modifiedDts\n readyForReviewBy\n readyForReviewDts\n readyForClearanceBy\n readyForClearanceDts\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\n status\n }\n}",
"variables": "{\n \"id\": \"{{participantsAndProvidersID}}\",\n \"changes\": {\n \"participants\": [\n \"\"\n ],\n \"medicareProviderType\": \"\",\n \"statesEngagement\": \"\",\n \"participantsOther\": \"\",\n \"participantsNote\": \"\",\n \"participantsCurrentlyInModels\": true,\n \"participantsCurrentlyInModelsNote\": \"\",\n \"modelApplicationLevel\": \"\",\n \"expectedNumberOfParticipants\": 0,\n \"estimateConfidence\": \"\",\n \"confidenceNote\": \"\",\n \"recruitmentMethod\": \"\",\n \"recruitmentOther\": \"\",\n \"recruitmentNote\": \"\",\n \"selectionMethod\": [\n \"\"\n ],\n \"selectionOther\": \"\",\n \"selectionNote\": \"\",\n \"participantAddedFrequency\": [\n \"\"\n ],\n \"participantAddedFrequencyContinually\": \"\",\n \"participantAddedFrequencyOther\": \"\",\n \"participantAddedFrequencyNote\": \"\",\n \"participantRemovedFrequency\": [\n \"\"\n ], \n \"participantRemovedFrequencyContinually\": \"\",\n \"participantRemovedFrequencyOther\": \"\",\n \"participantRemovedFrequencyNote\": \"\",\n \"communicationMethod\": [\n \"\"\n ],\n \"communicationMethodOther\": \"\",\n \"communicationNote\": \"\",\n \"riskType\": [\n \"OTHER\"\n ],\n \"riskOther\": \"\",\n \"riskNote\": \"\",\n \"willRiskChange\": true,\n \"willRiskChangeNote\": \"\",\n \"coordinateWork\": true,\n \"coordinateWorkNote\": \"\",\n \"gainsharePayments\": true,\n \"gainsharePaymentsTrack\": true,\n \"gainsharePaymentsNote\": \"\",\n \"gainsharePaymentsEligibility\": [\"\"],\n \"gainsharePaymentsEligibilityOther\": \"\",\n \"participantsIds\": [\n \"\"\n ],\n \"participantsIdsOther\": \"\",\n \"participantsIDSNote\": \"\",\n \"providerAdditionFrequency\": \"\",\n \"providerAdditionFrequencyOther\": \"\",\n \"providerAdditionFrequencyNote\": \"\",\n \"providerAddMethod\": [\n \"\"\n ],\n \"providerAddMethodOther\": \"\",\n \"providerAddMethodNote\": \"\",\n \"providerLeaveMethod\": [\n \"\"\n ],\n \"providerLeaveMethodOther\": \"\",\n \"providerLeaveMethodNote\": \"\",\n \"providerOverlap\": \"\",\n \"providerOverlapHierarchy\": \"\",\n \"providerOverlapNote\": \"\",\n \"status\": \"\"\n }\n}"
}
},
"url": {
Expand Down
36 changes: 36 additions & 0 deletions cypress/e2e/participantsAndProviders.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,42 @@ describe('The Model Plan Participants and Providers Form', () => {

// Page - /participants-and-providers/communication

cy.get('#participant-added-frequency-other')
.should('not.be.disabled')
.check({ force: true })
.should('be.checked');

cy.get('#participant-added-frequency-other-text')
.type('Sometimes')
.should('have.value', 'Sometimes');

cy.get('#participant-added-frequency-continually')
.should('not.be.disabled')
.check({ force: true })
.should('be.checked');

cy.get('#participant-added-frequency-continually-text')
.type('Every month')
.should('have.value', 'Every month');

cy.get('#participant-removed-frequency-other')
.should('not.be.disabled')
.check({ force: true })
.should('be.checked');

cy.get('#participant-removed-frequency-other-text')
.type('Sometimes')
.should('have.value', 'Sometimes');

cy.get('#participant-removed-frequency-continually')
.should('not.be.disabled')
.check({ force: true })
.should('be.checked');

cy.get('#participant-removed-frequency-continually-text')
.type('Every month')
.should('have.value', 'Every month');

cy.get('#participants-and-providers-communication-method-IT_TOOL')
.should('not.be.disabled')
.as('communication')
Expand Down
12 changes: 12 additions & 0 deletions migrations/V135__Add_Participant_Add_Removal_Frequency.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ALTER TABLE plan_participants_and_providers
-- participant_added_frequency columns
ADD COLUMN participant_added_frequency_continually ZERO_STRING,
ADD COLUMN participant_added_frequency_other ZERO_STRING,
ADD COLUMN participant_added_frequency_note ZERO_STRING,
ADD COLUMN participant_added_frequency FREQUENCY_TYPE[],

-- participant_removed_frequency columns
ADD COLUMN participant_removed_frequency_continually ZERO_STRING,
ADD COLUMN participant_removed_frequency_other ZERO_STRING,
ADD COLUMN participant_removed_frequency_note ZERO_STRING,
ADD COLUMN participant_removed_frequency FREQUENCY_TYPE[];
Loading

0 comments on commit 06cbca2

Please sign in to comment.