Skip to content

Commit

Permalink
Merge pull request #979 from bcgov/User/EDRD-164
Browse files Browse the repository at this point in the history
Development related to custom Fields EDRD - 164 & 61.
  • Loading branch information
deepakmulamalla authored Dec 6, 2023
2 parents bf8aa67 + 6085e70 commit 8e5ab4e
Show file tree
Hide file tree
Showing 15 changed files with 276 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Manual Build Check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:

jobs:
build-check:
manual-build-check:
runs-on: ubuntu-latest
env:
SF_DISABLE_SOURCE_MEMBER_POLLING: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build Check
on: [pull_request_target]

jobs:
build-check:
automatic-build-check:
runs-on: ubuntu-latest
env:
SF_DISABLE_SOURCE_MEMBER_POLLING: true
Expand All @@ -29,7 +29,7 @@ jobs:
run: sf org create scratch -v devhub --set-default -f config/project-scratch-def.json -a ciorg
# sfdx force:org:create -v devhub -s -f config/project-scratch-def.json -a ciorg -d 1

- name: Set deployment user standard security
- name: Set deployment user standard security
run: |
sf force:user:permsetlicense:assign -u ciorg -n "Health Cloud"
sf force:user:permsetlicense:assign -u ciorg -n "Health Cloud Platform"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomPermission xmlns="http://soap.sforce.com/2006/04/metadata">
<isLicensed>false</isLicensed>
<label>EDRD MOH STAFF</label>
</CustomPermission>
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8"?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<layoutSections>
<customLabel>false</customLabel>
<detailHeading>true</detailHeading>
<editHeading>true</editHeading>
<label>Information</label>
<layoutColumns>
<layoutItems>
<behavior>Required</behavior>
<field>Name</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>ObservedSubjectId</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>ObservedValueUnitId</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>ObservedValueType</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Required</behavior>
<field>ObservationStatus</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>EffectiveDateTime</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>ObservedValueNumerator</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>ObservedValueDenominator</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsTopToBottom</style>
</layoutSections>
<layoutSections>
<customLabel>false</customLabel>
<detailHeading>true</detailHeading>
<editHeading>true</editHeading>
<label>System Information</label>
<layoutColumns>
<layoutItems>
<behavior>Readonly</behavior>
<field>CreatedById</field>
</layoutItems>
<layoutItems>
<behavior>Readonly</behavior>
<field>CreatedDate</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Readonly</behavior>
<field>LastModifiedById</field>
</layoutItems>
<layoutItems>
<behavior>Readonly</behavior>
<field>LastModifiedDate</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsTopToBottom</style>
</layoutSections>
<layoutSections>
<customLabel>true</customLabel>
<detailHeading>true</detailHeading>
<editHeading>false</editHeading>
<label>Custom Links</label>
<layoutColumns/>
<layoutColumns/>
<layoutColumns/>
<style>CustomLinks</style>
</layoutSections>
<relatedLists>
<fields>Name</fields>
<fields>ComponentTypeCode</fields>
<fields>ValueInterpretation</fields>
<fields>ObservedValueNumerator</fields>
<fields>ObservedValueDenominator</fields>
<relatedList>ParentCareObservations</relatedList>
</relatedLists>
<relatedLists>
<fields>Name</fields>
<fields>AuthoredDateTime</fields>
<fields>NoteText</fields>
<relatedList>AuthorNotes</relatedList>
</relatedLists>
<relatedLists>
<fields>Name</fields>
<fields>IdUsageType</fields>
<fields>IdValue</fields>
<relatedList>Identifiers</relatedList>
</relatedLists>
<showEmailCheckbox>false</showEmailCheckbox>
<showRunAssignmentRulesCheckbox>false</showRunAssignmentRulesCheckbox>
<showSubmitAndAttachButton>false</showSubmitAndAttachButton>
<summaryLayout>
<masterLabel>00h5W000000N2Sm</masterLabel>
<sizeX>4</sizeX>
<sizeY>0</sizeY>
<summaryLayoutStyle>Default</summaryLayoutStyle>
</summaryLayout>
</Layout>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<excludeButtons>ChangeRecordType</excludeButtons>
<excludeButtons>CreateCallList</excludeButtons>
<excludeButtons>CreateSurveyInvitation</excludeButtons>
<excludeButtons>Delete</excludeButtons>
<excludeButtons>Delete</excludeButtons>
<excludeButtons>IncludeOffline</excludeButtons>
<excludeButtons>IsotopeSubscription</excludeButtons>
<excludeButtons>PartnerScorecard</excludeButtons>
Expand Down Expand Up @@ -49,6 +49,14 @@
<behavior>Required</behavior>
<field>PersonBirthdate</field>
</layoutItems>
<layoutItems>
<behavior>Readonly</behavior>
<field>EDRD_Age__pc</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>EDRD_Eligibility_Form_Signed_Date__pc</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsTopToBottom</style>
</layoutSections>
Expand All @@ -63,7 +71,13 @@
<field>PersonMailingAddress</field>
</layoutItems>
</layoutColumns>
<style>OneColumn</style>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>PersonOtherAddress</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsTopToBottom</style>
</layoutSections>
<layoutSections>
<customLabel>false</customLabel>
Expand Down Expand Up @@ -130,13 +144,15 @@
<sortOrder>3</sortOrder>
</platformActionListItems>
</platformActionList>
<relatedContent>
<relatedContentItems>
<layoutItem>
<component>runtime_sales_social:socialPanel</component>
</layoutItem>
</relatedContentItems>
</relatedContent>
<relatedLists>
<fields>Name</fields>
<fields>ObservationStatus</fields>
<fields>ObservedSubject</fields>
<fields>EffectiveDateTime</fields>
<fields>ObservedValueUnit</fields>
<fields>ObservedValueNumerator</fields>
<relatedList>CareObservation</relatedList>
</relatedLists>
<relatedLists>
<excludeButtons>MassChangeOwner</excludeButtons>
<excludeButtons>NewCase</excludeButtons>
Expand All @@ -152,7 +168,7 @@
<sortField>CASES.CREATED_DATE_DATE_ONLY</sortField>
<sortOrder>Desc</sortOrder>
</relatedLists>
<relatedLists>
<relatedLists>
<relatedList>RelatedFileList</relatedList>
</relatedLists>
<relatedLists>
Expand All @@ -164,7 +180,7 @@
<showRunAssignmentRulesCheckbox>false</showRunAssignmentRulesCheckbox>
<showSubmitAndAttachButton>false</showSubmitAndAttachButton>
<summaryLayout>
<masterLabel>00h1f000001ApTE</masterLabel>
<masterLabel>00h5W000000Mv2X</masterLabel>
<sizeX>4</sizeX>
<sizeY>0</sizeY>
<summaryLayoutStyle>Default</summaryLayoutStyle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<sortOrder>3</sortOrder>
</platformActionListItems>
</platformActionList>
<relatedContent>
<relatedContent>
<relatedContentItems>
<layoutItem>
<component>runtime_sales_social:socialPanel</component>
Expand Down Expand Up @@ -165,7 +165,7 @@
<showRunAssignmentRulesCheckbox>false</showRunAssignmentRulesCheckbox>
<showSubmitAndAttachButton>false</showSubmitAndAttachButton>
<summaryLayout>
<masterLabel>00h1f000001ApTF</masterLabel>
<masterLabel>00h5W000000Mv2Y</masterLabel>
<sizeX>4</sizeX>
<sizeY>0</sizeY>
<summaryLayoutStyle>Default</summaryLayoutStyle>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<layoutSections>
<customLabel>false</customLabel>
<detailHeading>true</detailHeading>
<editHeading>true</editHeading>
<label>Information</label>
<layoutColumns>
<layoutItems>
<behavior>Required</behavior>
<field>Name</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>UnitCode</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>Type</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>Description</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>OwnerId</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsTopToBottom</style>
</layoutSections>
<layoutSections>
<customLabel>false</customLabel>
<detailHeading>true</detailHeading>
<editHeading>true</editHeading>
<label>System Information</label>
<layoutColumns>
<layoutItems>
<behavior>Readonly</behavior>
<field>CreatedDate</field>
</layoutItems>
<layoutItems>
<behavior>Readonly</behavior>
<field>CreatedById</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Readonly</behavior>
<field>LastModifiedById</field>
</layoutItems>
<layoutItems>
<behavior>Readonly</behavior>
<field>LastModifiedDate</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsTopToBottom</style>
</layoutSections>
<layoutSections>
<customLabel>true</customLabel>
<detailHeading>true</detailHeading>
<editHeading>false</editHeading>
<label>Custom Links</label>
<layoutColumns/>
<layoutColumns/>
<layoutColumns/>
<style>CustomLinks</style>
</layoutSections>
<showEmailCheckbox>false</showEmailCheckbox>
<showRunAssignmentRulesCheckbox>false</showRunAssignmentRulesCheckbox>
<showSubmitAndAttachButton>false</showSubmitAndAttachButton>
<summaryLayout>
<masterLabel>00h5W000000N2Sv</masterLabel>
<sizeX>4</sizeX>
<sizeY>0</sizeY>
<summaryLayoutStyle>Default</summaryLayoutStyle>
</summaryLayout>
</Layout>
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>MoH_Standard_User_Rule</fullName>
<active>true</active>
<errorConditionFormula>AND(ISCHANGED(Name), $Profile.Name == &apos;MoH Standard User&apos;,NOT(ISNEW()),NOT($Permission.SA_Team_Lead), ESA_Bypass_Validation__pc = FALSE)</errorConditionFormula>
<errorConditionFormula>AND(ISCHANGED(Name), $Profile.Name == &apos;MoH Standard User&apos;,NOT(ISNEW()),NOT($Permission.SA_Team_Lead),NOT( $Permission.EDRD_MOH_STAFF), ESA_Bypass_Validation__pc = FALSE)</errorConditionFormula>
<errorMessage>You don&apos;t have permission to edit the Account Name.</errorMessage>
</ValidationRule>
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,11 @@
<type>Default</type>
</actionOverrides>
<compactLayoutAssignment>SA_Contact_Compact_Layout</compactLayoutAssignment>
<enableFeeds>true</enableFeeds>
<enableHistory>false</enableHistory>
<enableFeeds>true</enableFeeds>
<enableHistory>true</enableHistory>
<externalSharingModel>ControlledByParent</externalSharingModel>
<recordTypeTrackFeedHistory>false</recordTypeTrackFeedHistory>
<recordTypeTrackHistory>false</recordTypeTrackHistory>
<searchLayouts>
<customTabListAdditionalFields>FULL_NAME</customTabListAdditionalFields>
<customTabListAdditionalFields>ACCOUNT.NAME</customTabListAdditionalFields>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Birthdate</fullName>
<trackFeedHistory>false</trackFeedHistory>
<trackHistory>true</trackHistory>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>EDRD_Age__c</fullName>
<externalId>false</externalId>
<formula>IF(
NOT(ISNULL(Birthdate)),
IF(
(TODAY() - Birthdate) &gt;= 365.25,
TEXT(FLOOR((TODAY() - Birthdate) / 365.25)) &amp; &quot; year(s)&quot;,
TEXT(FLOOR((TODAY() - Birthdate) / 30.44)) &amp; &quot; month(s) &quot; &amp;
TEXT(FLOOR(MOD((TODAY() - Birthdate), 30.44))) &amp; &quot; day(s)&quot;
),
&quot;&quot;
)</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>Age</label>
<required>false</required>
<type>Text</type>
<unique>false</unique>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>EDRD_Eligibility_Form_Signed_Date__c</fullName>
<encryptionScheme>None</encryptionScheme>
<externalId>false</externalId>
<label>Eligibility Form Signed Date</label>
<required>false</required>
<trackFeedHistory>false</trackFeedHistory>
<type>Date</type>
</CustomField>
Loading

0 comments on commit 8e5ab4e

Please sign in to comment.