-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1414 from bcgov/User/EDRD-98
User/edrd 98
- Loading branch information
Showing
11 changed files
with
330 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
327 changes: 238 additions & 89 deletions
327
dev-app-post/main/default/flows/Create_EDRD_Case.flow-meta.xml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
force-app/main/default/customPermissions/EDRD_SuperUser.customPermission-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomPermission xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<description>Created for EDRD-Super user Permission set.</description> | ||
<isLicensed>false</isLicensed> | ||
<label>EDRD_SuperUser</label> | ||
</CustomPermission> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
.../AccountContactRelation/validationRules/EDRD_Validate_ACR_CR_Role.validationRule-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>EDRD_Validate_ACR_CR_Role</fullName> | ||
<active>true</active> | ||
<description>Prevents EDRD users from creating a Committee-Reviewer relationship with the role "Physician" when specific Account and Contact record types are used.</description> | ||
<errorConditionFormula>AND( | ||
CONTAINS($UserRole.Name, "EDRD"), | ||
Account.RecordType.DeveloperName = 'EDRD_Committee', | ||
OR( | ||
Contact.Account.RecordType.DeveloperName = 'Provider', | ||
Contact.Account.RecordType.DeveloperName = 'Committee_Reviewer' | ||
), | ||
INCLUDES(Roles, 'Physician') | ||
)</errorConditionFormula> | ||
<errorMessage>An EDRD user cannot create a Committee-Reviewer relationship with the role as Physician.</errorMessage> | ||
</ValidationRule> |
22 changes: 22 additions & 0 deletions
22
...Relation/validationRules/EDRD_Validate_ACR_Insert_ForCommitteeRec.validationRule-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>EDRD_Validate_ACR_Insert_ForCommitteeRec</fullName> | ||
<active>true</active> | ||
<description>Prevents EDRD users from creating an inactive Committee-Reviewer relationship when the Account and Contact record types are specific and roles include Reviewer, Chair, or Vice Chair.</description> | ||
<errorConditionFormula>AND( | ||
ISNEW(), | ||
CONTAINS($UserRole.Name, "EDRD"), | ||
Account.RecordType.DeveloperName = 'EDRD_Committee', | ||
OR( | ||
Contact.Account.RecordType.DeveloperName = 'Provider', | ||
Contact.Account.RecordType.DeveloperName = 'Committee_Reviewer' | ||
), | ||
OR( | ||
INCLUDES(Roles, 'Reviewer'), | ||
INCLUDES(Roles, 'Chair'), | ||
INCLUDES(Roles, 'Vice Chair') | ||
), | ||
NOT(IsActive) | ||
)</errorConditionFormula> | ||
<errorMessage>An EDRD user cannot create an inactive Committee - Reviewer relationship.</errorMessage> | ||
</ValidationRule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters