-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Salesforce model docs #2832
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Contract and Rate Without Revisions Design | ||
|
||
This is an ER diagram of the data that is planned to be sent to Salesforce on submission. It relies on Salesforce's native diff tracking so elides the concept of Revisions. | ||
|
||
```mermaid | ||
erDiagram | ||
|
||
Contract { | ||
String id | ||
DateTime initiallySubmittedAt | ||
DateTime updatedAt | ||
StateCode stateCode | ||
String name | ||
String mccrsID | ||
|
||
String[] programNicknames | ||
PopulationCoveredEnum populationCovered "MEDICAID, CHIP, MEDICAID_AND_CHIP" | ||
SubmissionTypeEnum submissionType "CONTRACT_ONLY, CONTRACT_AND_RATES" | ||
Boolean riskBasedContract | ||
String submissionDescription | ||
Document[] contractDocuments | ||
Document[] supportingDocuments | ||
ContractTypeEnum contractType "BASE, AMENDMENT" | ||
ContractExecutionStatusEnum contractExecutionStatus "EXECUTED, UNEXECUTED" | ||
CalendarDate contractDateStart | ||
CalendarDate contractDateEnd | ||
String[] managedCareEntities | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you assuming for federal authorities and managed care entities we will jsend SF user friendly names as strings rather than the enum values? Trying to understand why these are strings whereas some others are enums |
||
String[] federalAuthorities | ||
Boolean statutoryRegulatoryAttestation | ||
String statutoryRegulatoryAttestationDescription | ||
|
||
Boolean inLieuServicesAndSettings | ||
Boolean modifiedBenefitsProvided | ||
Boolean modifiedGeoAreaServed | ||
Boolean modifiedMedicaidBeneficiaries | ||
Boolean modifiedRiskSharingStrategy | ||
Boolean modifiedIncentiveArrangements | ||
Boolean modifiedWitholdAgreements | ||
Boolean modifiedStateDirectedPayments | ||
Boolean modifiedPassThroughPayments | ||
Boolean modifiedPaymentsForMentalDiseaseInstitutions | ||
Boolean modifiedMedicalLossRatioStandards | ||
Boolean modifiedOtherFinancialPaymentIncentive | ||
Boolean modifiedEnrollmentProcess | ||
Boolean modifiedGrevienceAndAppeal | ||
Boolean modifiedNetworkAdequacyStandards | ||
Boolean modifiedLengthOfContract | ||
Boolean modifiedNonRiskPaymentArrangements | ||
Boolean statutoryRegulatoryAttestation | ||
Boolean statutoryRegulatoryAttestationDescription | ||
|
||
} | ||
|
||
Rate { | ||
String id | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to include the rate certification name? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking that would be the "name" field, standardized on both Contract and Rate There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah! I skipped that. Thanks for pointed it out. |
||
DateTime initiallySubmittedAt | ||
DateTime updatedAt | ||
StateCode stateCode | ||
String name | ||
|
||
RateTypeEnum rateType "NEW, AMENDMENT" | ||
RateCapitationTypeEnum rateCapitationType "RATE_CELL, RATE_RANGE" | ||
|
||
String[] programNicknames | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reminder that rate programs have the logic where sometimes we display historic rate program names sometimes not. See |
||
Document[] rateDocuments | ||
Document[] supportingDocuments | ||
|
||
CalendarDate rateDateStart | ||
CalendarDate rateDateEnd | ||
CalendarDate rateDateCertified | ||
CalendarDate amendmentEffectiveDateStart | ||
CalendarDate amendmentEffectiveDateEnd | ||
} | ||
|
||
|
||
Contract }|--|{ Rate : "many to many" | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming we will need more robust programs data - the full names and the nicknames. We have different UI we display in our app already depending on context, sometimes we refer to programs by acronym sometimes its the full name written out.