From d77da27640c8e2ef1c27042708442f60015b4588 Mon Sep 17 00:00:00 2001 From: ANLKMRK Date: Fri, 27 Dec 2024 18:01:02 +0530 Subject: [PATCH] EDRD-309 --- .../ServiceAppointmentTriggerHandler.cls | 83 +++ ...viceAppointmentTriggerHandler.cls-meta.xml | 5 + .../ServiceAppointmentTriggerHandlerTest.cls | 54 ++ ...AppointmentTriggerHandlerTest.cls-meta.xml | 5 + .../EDRD_Committee_Meeting.flexipage-meta.xml | 547 ++++++++++++++++++ ...Service Appointment Layout.layout-meta.xml | 229 ++++++++ ...reationforDeceased.validationRule-meta.xml | 8 + .../ServiceAppointment.object-meta.xml | 2 + .../fields/EDRD_Agenda__c.field-meta.xml | 11 + .../EDRD_Cancelled_Reason__c.field-meta.xml | 12 + .../EDRD_Closed_Status__c.field-meta.xml | 25 + .../fields/EDRD_Meeting_URL__c.field-meta.xml | 10 + .../fields/EDRD_Name__c.field-meta.xml | 12 + .../fields/EDRD_Publish__c.field-meta.xml | 9 + ...of_Cases_to_be_Presented__c.field-meta.xml | 12 + .../No_of_Simplified_Cases__c.field-meta.xml | 12 + ...rdiac_Completed_Meetings.listView-meta.xml | 26 + ...diac_Planned_SC_Meetings.listView-meta.xml | 26 + ...ac_Published_SC_Meetings.listView-meta.xml | 26 + ...RD_Completed_AC_Meetings.listView-meta.xml | 27 + ...is_Completed_SC_Meetings.listView-meta.xml | 26 + ...osis_Planned_SC_Meetings.listView-meta.xml | 26 + ...is_Published_SC_Meetings.listView-meta.xml | 26 + ...ology_Completed_Meetings.listView-meta.xml | 26 + ...atology_Planned_Meetings.listView-meta.xml | 26 + ...ology_Published_Meetings.listView-meta.xml | 26 + ...ology_Completed_Meetings.listView-meta.xml | 26 + ...unology_Planned_Meetings.listView-meta.xml | 26 + ...ology_Published_Meetings.listView-meta.xml | 26 + ...bolic_Completed_Meetings.listView-meta.xml | 26 + ...tabolic_Planned_Meetings.listView-meta.xml | 26 + ...bolic_Published_Meetings.listView-meta.xml | 26 + ...gy_Completed_SC_Meetings.listView-meta.xml | 13 + ...logy_Planned_SC_Meetings.listView-meta.xml | 13 + ...gy_Published_SC_Meetings.listView-meta.xml | 13 + ...ology_Completed_Meetings.listView-meta.xml | 26 + ...urology_Planned_Meetings.listView-meta.xml | 26 + ...ology_Published_Meetings.listView-meta.xml | 16 + ...ology_Completed_Meetings.listView-meta.xml | 26 + ...lmology_Planned_Meetings.listView-meta.xml | 26 + ...ology_Published_Meetings.listView-meta.xml | 26 + ...EDRD_Planned_AC_Meetings.listView-meta.xml | 26 + ...RD_Published_AC_Meetings.listView-meta.xml | 26 + ...EDRD_Committee_Meeting.recordType-meta.xml | 29 + .../EDRD_PS_MOH_Staff.permissionset-meta.xml | 57 ++ ...D_PS_PHSA_PSP_Staff.permissionset-meta.xml | 63 +- ...RD_PS_Standard_User.permissionset-meta.xml | 52 ++ .../EDRD_Super_User.permissionset-meta.xml | 57 ++ .../ServiceAppointment.sharingRules-meta.xml | 18 + ...ppointmentStatus.standardValueSet-meta.xml | 59 ++ .../ServiceAppointmentTrigger.trigger | 19 + ...ServiceAppointmentTrigger.trigger-meta.xml | 5 + 52 files changed, 2046 insertions(+), 3 deletions(-) create mode 100644 force-app/main/default/classes/ServiceAppointmentTriggerHandler.cls create mode 100644 force-app/main/default/classes/ServiceAppointmentTriggerHandler.cls-meta.xml create mode 100644 force-app/main/default/classes/ServiceAppointmentTriggerHandlerTest.cls create mode 100644 force-app/main/default/classes/ServiceAppointmentTriggerHandlerTest.cls-meta.xml create mode 100644 force-app/main/default/flexipages/EDRD_Committee_Meeting.flexipage-meta.xml create mode 100644 force-app/main/default/layouts/ServiceAppointment-EDRD Service Appointment Layout.layout-meta.xml create mode 100644 force-app/main/default/objects/CareProgramEnrollee/validationRules/Prevent_Care_Program_CreationforDeceased.validationRule-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/ServiceAppointment.object-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/fields/EDRD_Agenda__c.field-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/fields/EDRD_Cancelled_Reason__c.field-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/fields/EDRD_Closed_Status__c.field-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/fields/EDRD_Meeting_URL__c.field-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/fields/EDRD_Name__c.field-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/fields/EDRD_Publish__c.field-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/fields/No_of_Cases_to_be_Presented__c.field-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/fields/No_of_Simplified_Cases__c.field-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Completed_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Planned_SC_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Published_SC_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Completed_AC_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Completed_SC_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Planned_SC_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Published_SC_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Completed_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Planned_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Published_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Completed_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Planned_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Published_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Completed_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Planned_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Published_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Completed_SC_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Planned_SC_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Published_SC_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Completed_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Planned_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Published_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Completed_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Planned_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Published_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Planned_AC_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Published_AC_Meetings.listView-meta.xml create mode 100644 force-app/main/default/objects/ServiceAppointment/recordTypes/EDRD_Committee_Meeting.recordType-meta.xml create mode 100644 force-app/main/default/sharingRules/ServiceAppointment.sharingRules-meta.xml create mode 100644 force-app/main/default/standardValueSets/ServiceAppointmentStatus.standardValueSet-meta.xml create mode 100644 force-app/main/default/triggers/ServiceAppointmentTrigger.trigger create mode 100644 force-app/main/default/triggers/ServiceAppointmentTrigger.trigger-meta.xml diff --git a/force-app/main/default/classes/ServiceAppointmentTriggerHandler.cls b/force-app/main/default/classes/ServiceAppointmentTriggerHandler.cls new file mode 100644 index 000000000..29e7f3314 --- /dev/null +++ b/force-app/main/default/classes/ServiceAppointmentTriggerHandler.cls @@ -0,0 +1,83 @@ +/********************************************************************************************** +* @Author: Accenture +* @Date: 19/12/2024 +* @Description: The purpose of this class is to create methods which can be used by different trigger event +* @Revision(s): [Date] - [Change Reference] - [Changed By] - [Description] +19-Dec24 EDRD-309 Accenture insert/update the name based on record + +***********************************************************************************************/ +public with sharing class ServiceAppointmentTriggerHandler { + public static Id recordTypeAccEDRD = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('EDRD_Committee').getRecordTypeId(); + + /** +* @author: Accenture +* @date: 19/12/2024 +* @description: The purpose of this method is to insert the Name based on ParentRecord Name and EarliestStartTime +* @Modification Log: [Date] - [Change Reference] - [Changed By] - [Description] +*/ + public static void insertSAName(List saList){ + if(!saList.isEmpty()){ + SetsaAccIds = new Set(); + for(ServiceAppointment sapp : saList){ + if(sapp.ParentRecordId != null ){ + saAccIds.add(sapp.ParentRecordId); + } + } + if(!saAccIds.isEmpty()){ + + Map saAccMap = new Map([Select Id,Name from Account + where RecordTypeId =:recordTypeAccEDRD + and id in :saAccIds]); + if(!saAccMap.isEmpty()){ + for(ServiceAppointment sapp : saList){ + if(sapp.EarliestStartTime != null && saAccMap.containskey(sapp.ParentRecordId)){ + Account acc = saAccMap.get(sapp.ParentRecordId); + String trunDate = sapp.EarliestStartTime.format('yyyy-MM-dd'); + String name = acc.Name + ' - ' + trunDate; + sapp.EDRD_Name__c = name; + } + + } + } + } + + } + + } +/** +* @author: Accenture +* @date: 19/12/2024 +* @description: The purpose of this method is to update the Name based on ParentRecord Name and EarliestStartTime +* @Modification Log: [Date] - [Change Reference] - [Changed By] - [Description] +*/ + public static void updateSAName(List saList,Map saOldMap){ + if(!saList.isEmpty()){ + SetsaAccIds = new Set(); + for(ServiceAppointment sapp : saList){ + + if(sapp.ParentRecordId != null && sapp.EarliestStartTime != saOldMap.get(sapp.Id).EarliestStartTime){ + saAccIds.add(sapp.ParentRecordId); + } + } + if(!saAccIds.isEmpty()){ + Map saAccMap = new Map([Select Id,Name from Account + where RecordTypeId =: recordTypeAccEDRD + and Id in :saAccIds]); + if(!saAccMap.isEmpty()){ + for(ServiceAppointment sapp : saList){ + if(sapp.EarliestStartTime != null && saAccMap.containskey(sapp.ParentRecordId)){ + Account acc = saAccMap.get(sapp.ParentRecordId); + String trunDate = sapp.EarliestStartTime.format('yyyy-MM-dd'); + String name = acc.Name + ' - ' + trunDate; + sapp.EDRD_Name__c = name; + } + + } + } + } + } + + } + + +} \ No newline at end of file diff --git a/force-app/main/default/classes/ServiceAppointmentTriggerHandler.cls-meta.xml b/force-app/main/default/classes/ServiceAppointmentTriggerHandler.cls-meta.xml new file mode 100644 index 000000000..998805a82 --- /dev/null +++ b/force-app/main/default/classes/ServiceAppointmentTriggerHandler.cls-meta.xml @@ -0,0 +1,5 @@ + + + 62.0 + Active + diff --git a/force-app/main/default/classes/ServiceAppointmentTriggerHandlerTest.cls b/force-app/main/default/classes/ServiceAppointmentTriggerHandlerTest.cls new file mode 100644 index 000000000..2c481a74b --- /dev/null +++ b/force-app/main/default/classes/ServiceAppointmentTriggerHandlerTest.cls @@ -0,0 +1,54 @@ +/********************************************************************************************** +* @Author: Accenture +* @Date: 26/12/2024 +* @Description: The purpose of this class is cover the coverage for ServiceAppointmentTriggerHandler +* @Revision(s): [Date] - [Change Reference] - [Changed By] - [Description] + 26-Dec24 EDRD-309 Accenture insert/update the name based on record +***********************************************************************************************/ +@isTest +public class ServiceAppointmentTriggerHandlerTest { +/** +* @author: Accenture +* @date: 26/12/2024 +* @description: The purpose of this method is to cover Testcoverage of insertSAName +* @Modification Log: [Date] - [Change Reference] - [Changed By] - [Description] +*/ + @isTest + public static void insertSANameTest(){ + Account patientAccount = TestFactory.createEDRDACAccount('Ophthalmology Subcommittee'); + insert patientAccount; + DateTime startDateTime = DateTime.newInstance(2023, 8, 21, 14, 30, 0); + DateTime endDateTime = DateTime.newInstance(2023, 10, 21, 14, 30, 0); + ServiceAppointment sapRec = new ServiceAppointment(Status = 'Planned', ParentRecordId = patientAccount.Id,EarliestStartTime = startDateTime , DueDate = endDateTime ); + test.startTest(); + insert sapRec; + test.stopTest(); + Assert.areEqual([SELECT Id, EDRD_Name__c FROM ServiceAppointment WHERE Id =: sapRec.Id].get(0).EDRD_Name__c, 'Ophthalmology Subcommittee - 2023-08-21', 'Name matched'); + Assert.areNotEqual([SELECT Id, EDRD_Name__c FROM ServiceAppointment WHERE Id =: sapRec.Id].get(0).EDRD_Name__c, Null, 'Name should not be null'); + + } + +/** +* @author: Accenture +* @date: 26/12/2024 +* @description: The purpose of this method is to cover Testcoverage of updateSAName +* @Modification Log: [Date] - [Change Reference] - [Changed By] - [Description] +*/ + @isTest + public static void updateSANameTest(){ + + Account patientAccount = TestFactory.createEDRDACAccount('Ophthalmology Subcommittee'); + insert patientAccount; + DateTime startDateTime = DateTime.newInstance(2023, 8, 21, 14, 30, 0); + DateTime endDateTime = DateTime.newInstance(2023, 10, 21, 14, 30, 0); + DateTime updatedStartDateTime = DateTime.newInstance(2022, 8, 21, 14, 30, 0); + ServiceAppointment sapRec = new ServiceAppointment(Status = 'Planned', ParentRecordId = patientAccount.Id,EarliestStartTime = startDateTime , DueDate = endDateTime ); + insert sapRec; + test.startTest(); + sapRec.EarliestStartTime = updatedStartDateTime; + update sapRec; + test.stopTest(); + Assert.areEqual([SELECT Id, EDRD_Name__c FROM ServiceAppointment WHERE Id =: sapRec.Id].get(0).EDRD_Name__c, 'Ophthalmology Subcommittee - 2022-08-21', 'Name matched'); + Assert.areNotEqual([SELECT Id, EDRD_Name__c FROM ServiceAppointment WHERE Id =: sapRec.Id].get(0).EDRD_Name__c,Null, 'Name should not be null'); + } +} \ No newline at end of file diff --git a/force-app/main/default/classes/ServiceAppointmentTriggerHandlerTest.cls-meta.xml b/force-app/main/default/classes/ServiceAppointmentTriggerHandlerTest.cls-meta.xml new file mode 100644 index 000000000..998805a82 --- /dev/null +++ b/force-app/main/default/classes/ServiceAppointmentTriggerHandlerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 62.0 + Active + diff --git a/force-app/main/default/flexipages/EDRD_Committee_Meeting.flexipage-meta.xml b/force-app/main/default/flexipages/EDRD_Committee_Meeting.flexipage-meta.xml new file mode 100644 index 000000000..38fdc59aa --- /dev/null +++ b/force-app/main/default/flexipages/EDRD_Committee_Meeting.flexipage-meta.xml @@ -0,0 +1,547 @@ + + + + + + + collapsed + false + + + enableActionsConfiguration + false + + + enableActionsInNative + false + + + hideChatterActions + true + + + numVisibleActions + 3 + + force:highlightsPanel + force_highlightsPanel + + + + + + hideUpdateButton + false + + + variant + linear + + runtime_sales_pathassistant:pathAssistant + runtime_sales_pathassistant_pathAssistant + + + Replace + header + Region + + + + + + uiBehavior + readonly + + Record.EDRD_Name__c + RecordEDRD_Name__cField + + + + + + uiBehavior + required + + Record.Status + RecordStatusField + + + + + + uiBehavior + required + + Record.ParentRecordId + RecordParentRecordIdField + + + + + + uiBehavior + none + + Record.EDRD_Meeting_URL__c + RecordEDRD_Meeting_URL_cField + + + + + + uiBehavior + none + + Record.No_of_Cases_to_be_Presented__c + RecordNo_of_Cases_to_be_Presented_cField + + + Facet-a253e210-4666-4f88-98b5-28ff8b3e8b5f + Facet + + + + + + uiBehavior + none + + Record.No_of_Simplified_Cases__c + RecordNo_of_Simplified_Cases_cField + + + + + + uiBehavior + none + + Record.EDRD_Publish__c + RecordEDRD_Published_cField + + + + + + uiBehavior + required + + Record.EDRD_Closed_Status__c + RecordEDRD_Closed_Status_cField + + + {!Record.Status} + EQUAL + Closed + + + + + + + + uiBehavior + required + + Record.EDRD_Cancelled_Reason__c + RecordEDRD_Cancelled_Reason_cField + + 1 AND 2 + + {!Record.EDRD_Closed_Status__c} + EQUAL + Cancelled + + + {!Record.Status} + EQUAL + Closed + + + + + Facet-f71fb3e3-a908-44a3-8307-d9c352bbe3a6 + Facet + + + + + + body + Facet-a253e210-4666-4f88-98b5-28ff8b3e8b5f + + flexipage:column + flexipage_column + + + + + + body + Facet-f71fb3e3-a908-44a3-8307-d9c352bbe3a6 + + flexipage:column + flexipage_column2 + + + Facet-72f02cd3-3678-46e2-93b9-294bf8b9f574 + Facet + + + + + + uiBehavior + none + + Record.EDRD_Agenda__c + RecordEDRD_Agenda__cField + + + Facet-f771279d-1eb8-4aec-8d7f-a39c86dc7c55 + Facet + + + + + + body + Facet-f771279d-1eb8-4aec-8d7f-a39c86dc7c55 + + flexipage:column + flexipage_column3 + + + Facet-59ee3cc2-611b-434e-bbc6-a6b4cb5bc4a1 + Facet + + + + + + uiBehavior + required + + Record.EarliestStartTime + RecordEarliestStartTimeField + + + Facet-a9cb4fe7-5a00-4242-a43a-0a15c497e33e + Facet + + + + + + uiBehavior + required + + Record.DueDate + RecordDueDateField + + + Facet-63dd33f1-a94c-4266-b82c-92484e6bb0ab + Facet + + + + + + body + Facet-a9cb4fe7-5a00-4242-a43a-0a15c497e33e + + flexipage:column + flexipage_column5 + + + + + + body + Facet-63dd33f1-a94c-4266-b82c-92484e6bb0ab + + flexipage:column + flexipage_column6 + + + Facet-0fd4bc4c-ee05-4a0d-a780-d981e1345bdc + Facet + + + + + + uiBehavior + readonly + + Record.CreatedById + RecordCreatedByIdField + + + + + + uiBehavior + none + + Record.OwnerId + RecordOwnerIdField + + + Facet-7daf1cf4-20bd-418b-a0f1-5d8835e87511 + Facet + + + + + + uiBehavior + readonly + + Record.LastModifiedById + RecordLastModifiedByIdField + + + Facet-44f3fa91-9c5a-492e-b9f2-d91704e15f1a + Facet + + + + + + body + Facet-7daf1cf4-20bd-418b-a0f1-5d8835e87511 + + flexipage:column + flexipage_column13 + + + + + + body + Facet-44f3fa91-9c5a-492e-b9f2-d91704e15f1a + + flexipage:column + flexipage_column14 + + + Facet-eff9fc15-e420-4706-ac0a-5c7e3de9cde5 + Facet + + + + + + columns + Facet-72f02cd3-3678-46e2-93b9-294bf8b9f574 + + + horizontalAlignment + false + + + label + @@@SFDCGeneral_InformationSFDC@@@ + + flexipage:fieldSection + flexipage_fieldSection + + + + + + columns + Facet-59ee3cc2-611b-434e-bbc6-a6b4cb5bc4a1 + + + horizontalAlignment + false + + + label + Description Information + + flexipage:fieldSection + flexipage_fieldSection2 + + + + + + columns + Facet-0fd4bc4c-ee05-4a0d-a780-d981e1345bdc + + + horizontalAlignment + false + + + label + Schedule Information + + flexipage:fieldSection + flexipage_fieldSection3 + + + + + + columns + Facet-eff9fc15-e420-4706-ac0a-5c7e3de9cde5 + + + horizontalAlignment + false + + + label + @@@SFDCSystem_InformationSFDC@@@ + + flexipage:fieldSection + flexipage_fieldSection7 + + + + + force:recordDetailPanelMobile + force_recordDetailPanelMobile + + + Replace + detailTabContent + Facet + + + + + + actionNames + + + New + + + + + adminFilters + + + maxRecordsToDisplay + 10 + + + parentFieldApiName + ServiceAppointment.Id + + + relatedListApiName + Committee_Review_Cases__r + + + relatedListDisplayType + ADVGRID + + + relatedListFieldAliases + + + Sequence_Number__c + + + Related_Case__c + + + Meeting_Name__c + + + + + relatedListLabel + Committee Review Cases + + + showActionBar + true + + + sortFieldAlias + __DEFAULT__ + + + sortFieldOrder + Default + + lst:dynamicRelatedList + lst_dynamicRelatedList2 + + + Replace + relatedTabContent + Facet + + + + + + active + true + + + body + detailTabContent + + + title + Standard.Tab.detail + + flexipage:tab + detailTab + + + + + + body + relatedTabContent + + + title + Standard.Tab.relatedLists + + flexipage:tab + relatedListsTab + + + Replace + maintabs + Facet + + + + + + tabs + maintabs + + flexipage:tabset + flexipage_tabset + + + Replace + main + Region + + + Replace + sidebar + Region + + EDRD Committee Meeting + flexipage__default_rec_L + ServiceAppointment + + RecordPage + diff --git a/force-app/main/default/layouts/ServiceAppointment-EDRD Service Appointment Layout.layout-meta.xml b/force-app/main/default/layouts/ServiceAppointment-EDRD Service Appointment Layout.layout-meta.xml new file mode 100644 index 000000000..cad1a07ac --- /dev/null +++ b/force-app/main/default/layouts/ServiceAppointment-EDRD Service Appointment Layout.layout-meta.xml @@ -0,0 +1,229 @@ + + + CancelServiceAppointment + ChangeOwnerOne + ChangeRecordType + Clone + Delete + GeneratePdf + OpenSlackRecordChannel + PrintableView + RecordShareHierarchy + Share + XClean + + false + true + true + + + + Readonly + AppointmentNumber + + + Required + ParentRecordId + + + Edit + EDRD_Cancelled_Reason__c + + + Edit + No_of_Cases_to_be_Presented__c + + + Edit + No_of_Simplified_Cases__c + + + Edit + EDRD_Closed_Status__c + + + Edit + EDRD_Publish__c + + + Edit + EDRD_Meeting_URL__c + + + Readonly + EDRD_Name__c + + + Edit + EDRD_Agenda__c + + + + + Edit + Address + + + Required + Status + + + Edit + CancellationReason + + + + + + true + true + true + + + + + + + true + true + true + + + + Required + EarliestStartTime + + + + + Required + DueDate + + + + + + false + false + false + + + + + + + false + false + false + + + + + + + false + false + false + + + + + + + false + true + true + + + + Readonly + CreatedById + + + Edit + OwnerId + + + + + Readonly + LastModifiedById + + + + + + false + false + false + + + + + + + + + TASK.SUBJECT + TASK.WHO_NAME + ACTIVITY.TASK + TASK.DUE_DATE + TASK.STATUS + TASK.PRIORITY + CORE.USERS.FULL_NAME + RelatedActivityList + + + TASK.SUBJECT + TASK.WHO_NAME + ACTIVITY.TASK + TASK.DUE_DATE + CORE.USERS.FULL_NAME + TASK.LAST_UPDATE + RelatedHistoryList + + + RelatedNoteList + + + RelatedFileList + + + RelatedContentNoteList + + + RelatedEntityHistoryList + + + CreatedDate + StepStatus + OriginalActor + Actor + Comments + RelatedProcessHistoryList + + + Name + AssessmentStatus + ResponseContext + AssessmentResponseContexts + + + ServiceResource + Event + AssignedResources + + + NAME + Committee_Review_Case__c.Service_Appointment__c + + false + false + false + + 00hAq000008mqkT + 4 + 0 + Default + + diff --git a/force-app/main/default/objects/CareProgramEnrollee/validationRules/Prevent_Care_Program_CreationforDeceased.validationRule-meta.xml b/force-app/main/default/objects/CareProgramEnrollee/validationRules/Prevent_Care_Program_CreationforDeceased.validationRule-meta.xml new file mode 100644 index 000000000..580cdb1bc --- /dev/null +++ b/force-app/main/default/objects/CareProgramEnrollee/validationRules/Prevent_Care_Program_CreationforDeceased.validationRule-meta.xml @@ -0,0 +1,8 @@ + + + Prevent_Care_Program_CreationforDeceased + true + Prevent user from creating Care Program Enroller for Deceased Patient + Account.PersonContact.Patient_is_Deceased__c = true + You can not create a Care Program Enrollee for a Deceased Patient + diff --git a/force-app/main/default/objects/ServiceAppointment/ServiceAppointment.object-meta.xml b/force-app/main/default/objects/ServiceAppointment/ServiceAppointment.object-meta.xml new file mode 100644 index 000000000..d254e9b03 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/ServiceAppointment.object-meta.xml @@ -0,0 +1,2 @@ + + diff --git a/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Agenda__c.field-meta.xml b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Agenda__c.field-meta.xml new file mode 100644 index 000000000..d01017d41 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Agenda__c.field-meta.xml @@ -0,0 +1,11 @@ + + + EDRD_Agenda__c + None + false + + 32768 + false + Html + 25 + diff --git a/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Cancelled_Reason__c.field-meta.xml b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Cancelled_Reason__c.field-meta.xml new file mode 100644 index 000000000..94a540f34 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Cancelled_Reason__c.field-meta.xml @@ -0,0 +1,12 @@ + + + EDRD_Cancelled_Reason__c + None + false + + 255 + false + false + Text + false + diff --git a/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Closed_Status__c.field-meta.xml b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Closed_Status__c.field-meta.xml new file mode 100644 index 000000000..b41236c7f --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Closed_Status__c.field-meta.xml @@ -0,0 +1,25 @@ + + + EDRD_Closed_Status__c + false + + false + false + Picklist + + true + + false + + Cancelled + false + + + + Completed + false + + + + + diff --git a/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Meeting_URL__c.field-meta.xml b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Meeting_URL__c.field-meta.xml new file mode 100644 index 000000000..2169cf1f4 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Meeting_URL__c.field-meta.xml @@ -0,0 +1,10 @@ + + + EDRD_Meeting_URL__c + None + false + + false + false + Url + diff --git a/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Name__c.field-meta.xml b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Name__c.field-meta.xml new file mode 100644 index 000000000..65b47040f --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Name__c.field-meta.xml @@ -0,0 +1,12 @@ + + + EDRD_Name__c + None + false + + 250 + false + false + Text + false + diff --git a/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Publish__c.field-meta.xml b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Publish__c.field-meta.xml new file mode 100644 index 000000000..18e84cd36 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/fields/EDRD_Publish__c.field-meta.xml @@ -0,0 +1,9 @@ + + + EDRD_Publish__c + false + false + + false + Checkbox + diff --git a/force-app/main/default/objects/ServiceAppointment/fields/No_of_Cases_to_be_Presented__c.field-meta.xml b/force-app/main/default/objects/ServiceAppointment/fields/No_of_Cases_to_be_Presented__c.field-meta.xml new file mode 100644 index 000000000..6de51e854 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/fields/No_of_Cases_to_be_Presented__c.field-meta.xml @@ -0,0 +1,12 @@ + + + No_of_Cases_to_be_Presented__c + false + + 2 + false + 0 + false + Number + false + diff --git a/force-app/main/default/objects/ServiceAppointment/fields/No_of_Simplified_Cases__c.field-meta.xml b/force-app/main/default/objects/ServiceAppointment/fields/No_of_Simplified_Cases__c.field-meta.xml new file mode 100644 index 000000000..4254435f6 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/fields/No_of_Simplified_Cases__c.field-meta.xml @@ -0,0 +1,12 @@ + + + No_of_Simplified_Cases__c + false + + 2 + false + 0 + false + Number + false + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Completed_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Completed_Meetings.listView-meta.xml new file mode 100644 index 000000000..cd0f1dac2 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Completed_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Cardiac_Completed_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Closed + + + EDRD_Closed_Status__c + equals + Completed + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Planned_SC_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Planned_SC_Meetings.listView-meta.xml new file mode 100644 index 000000000..b975b602f --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Planned_SC_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Cardiac_Planned_SC_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 0 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Published_SC_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Published_SC_Meetings.listView-meta.xml new file mode 100644 index 000000000..ff9e8972c --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cardiac_Published_SC_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Cardiac_Published_SC_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 1 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Completed_AC_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Completed_AC_Meetings.listView-meta.xml new file mode 100644 index 000000000..ec7ca226d --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Completed_AC_Meetings.listView-meta.xml @@ -0,0 +1,27 @@ + + + EDRD_Completed_AC_Meetings + 1 AND 2 + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Closed + + + EDRD_Closed_Status__c + equals + Completed + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Completed_SC_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Completed_SC_Meetings.listView-meta.xml new file mode 100644 index 000000000..1ac17e8bb --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Completed_SC_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Cystic_Fibrosis_Completed_SC_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Closed + + + EDRD_Closed_Status__c + equals + Completed + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Planned_SC_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Planned_SC_Meetings.listView-meta.xml new file mode 100644 index 000000000..2c1f99689 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Planned_SC_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Cystic_Fibrosis_Planned_SC_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 0 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Published_SC_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Published_SC_Meetings.listView-meta.xml new file mode 100644 index 000000000..7b3fb581f --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Cystic_Fibrosis_Published_SC_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Cystic_Fibrosis_Published_SC_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 1 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Completed_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Completed_Meetings.listView-meta.xml new file mode 100644 index 000000000..12b567975 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Completed_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Hematology_Completed_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Closed + + + EDRD_Closed_Status__c + equals + Completed + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Planned_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Planned_Meetings.listView-meta.xml new file mode 100644 index 000000000..d3d7cc711 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Planned_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Hematology_Planned_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 0 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Published_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Published_Meetings.listView-meta.xml new file mode 100644 index 000000000..3daa0a9e1 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Hematology_Published_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Hematology_Published_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 1 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Completed_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Completed_Meetings.listView-meta.xml new file mode 100644 index 000000000..4e814181d --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Completed_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Immunology_Completed_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Closed + + + EDRD_Closed_Status__c + equals + Completed + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Planned_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Planned_Meetings.listView-meta.xml new file mode 100644 index 000000000..40065f91b --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Planned_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Immunology_Planned_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 0 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Published_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Published_Meetings.listView-meta.xml new file mode 100644 index 000000000..52e005404 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Immunology_Published_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Immunology_Published_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 1 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Completed_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Completed_Meetings.listView-meta.xml new file mode 100644 index 000000000..219d1ddc3 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Completed_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Metabolic_Completed_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Closed + + + EDRD_Closed_Status__c + equals + Completed + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Planned_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Planned_Meetings.listView-meta.xml new file mode 100644 index 000000000..0d54b310e --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Planned_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Metabolic_Planned_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 0 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Published_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Published_Meetings.listView-meta.xml new file mode 100644 index 000000000..ff3d75375 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Metabolic_Published_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Metabolic_Published_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 1 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Completed_SC_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Completed_SC_Meetings.listView-meta.xml new file mode 100644 index 000000000..8d53fc948 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Completed_SC_Meetings.listView-meta.xml @@ -0,0 +1,13 @@ + + + EDRD_Nephrology_Completed_SC_Meetings + Name + ArrivalWindowStartTime + ArrivalWindowEndTime + Status + Mine + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Planned_SC_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Planned_SC_Meetings.listView-meta.xml new file mode 100644 index 000000000..beb5f6dfe --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Planned_SC_Meetings.listView-meta.xml @@ -0,0 +1,13 @@ + + + EDRD_Nephrology_Planned_SC_Meetings + Name + ArrivalWindowStartTime + ArrivalWindowEndTime + Status + Mine + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Published_SC_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Published_SC_Meetings.listView-meta.xml new file mode 100644 index 000000000..5790df222 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Nephrology_Published_SC_Meetings.listView-meta.xml @@ -0,0 +1,13 @@ + + + EDRD_Nephrology_Published_SC_Meetings + Name + ArrivalWindowStartTime + ArrivalWindowEndTime + Status + Mine + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Completed_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Completed_Meetings.listView-meta.xml new file mode 100644 index 000000000..3d24540e3 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Completed_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Neurology_Completed_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Closed + + + EDRD_Closed_Status__c + equals + Completed + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Planned_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Planned_Meetings.listView-meta.xml new file mode 100644 index 000000000..0ee6e6b61 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Planned_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Neurology_Planned_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 0 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Published_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Published_Meetings.listView-meta.xml new file mode 100644 index 000000000..03edd1bd0 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Neurology_Published_Meetings.listView-meta.xml @@ -0,0 +1,16 @@ + + + EDRD_Neurology_Published_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Completed_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Completed_Meetings.listView-meta.xml new file mode 100644 index 000000000..75290b014 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Completed_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Ophthalmology_Completed_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Closed + + + EDRD_Closed_Status__c + equals + Completed + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Planned_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Planned_Meetings.listView-meta.xml new file mode 100644 index 000000000..9cf63462a --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Planned_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Ophthalmology_Planned_Meetings + EDRD_Name__c + Name + Status + LatestEndTime + EarliestStartTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 0 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Published_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Published_Meetings.listView-meta.xml new file mode 100644 index 000000000..c592562f9 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Ophthalmology_Published_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Ophthalmology_Published_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + EDRD_Publish__c + equals + 1 + + + Status + equals + Planned + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Planned_AC_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Planned_AC_Meetings.listView-meta.xml new file mode 100644 index 000000000..0c7dc1420 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Planned_AC_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Planned_AC_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 0 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Published_AC_Meetings.listView-meta.xml b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Published_AC_Meetings.listView-meta.xml new file mode 100644 index 000000000..e20e94657 --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/listViews/EDRD_Published_AC_Meetings.listView-meta.xml @@ -0,0 +1,26 @@ + + + EDRD_Published_AC_Meetings + EDRD_Name__c + Name + Status + EarliestStartTime + LatestEndTime + No_of_Cases_to_be_Presented__c + No_of_Simplified_Cases__c + Mine + + Status + equals + Planned + + + EDRD_Publish__c + equals + 1 + + + + EDRD_Admin + + diff --git a/force-app/main/default/objects/ServiceAppointment/recordTypes/EDRD_Committee_Meeting.recordType-meta.xml b/force-app/main/default/objects/ServiceAppointment/recordTypes/EDRD_Committee_Meeting.recordType-meta.xml new file mode 100644 index 000000000..c3d36c6cd --- /dev/null +++ b/force-app/main/default/objects/ServiceAppointment/recordTypes/EDRD_Committee_Meeting.recordType-meta.xml @@ -0,0 +1,29 @@ + + + EDRD_Committee_Meeting + true + EDRD_Committee_Compact_Layout + + + EDRD_Closed_Status__c + + Cancelled + false + + + Completed + false + + + + Status + + Closed + false + + + Planned + true + + + diff --git a/force-app/main/default/permissionsets/EDRD_PS_MOH_Staff.permissionset-meta.xml b/force-app/main/default/permissionsets/EDRD_PS_MOH_Staff.permissionset-meta.xml index 2b72e8cec..ba12c1c4f 100644 --- a/force-app/main/default/permissionsets/EDRD_PS_MOH_Staff.permissionset-meta.xml +++ b/force-app/main/default/permissionsets/EDRD_PS_MOH_Staff.permissionset-meta.xml @@ -939,6 +939,46 @@ MedicinalIngredient.Unit_Price__c true + + false + ServiceAppointment.EDRD_Agenda__c + true + + + false + ServiceAppointment.EDRD_Cancelled_Reason__c + true + + + false + ServiceAppointment.EDRD_Closed_Status__c + true + + + false + ServiceAppointment.EDRD_Meeting_URL__c + true + + + false + ServiceAppointment.EDRD_Name__c + true + + + false + ServiceAppointment.EDRD_Publish__c + true + + + false + ServiceAppointment.No_of_Cases_to_be_Presented__c + true + + + false + ServiceAppointment.No_of_Simplified_Cases__c + true + true Task.ActivityDate @@ -1177,6 +1217,15 @@ OmniProcessElement false + + false + false + false + true + false + ServiceAppointment + false + true false @@ -1234,10 +1283,18 @@ PersonAccount.Provider true + + ServiceAppointment.EDRD_Committee_Meeting + true + Medical_Diagnosis__c Visible + + standard-ServiceAppointment + Visible + true CanUseNewDashboardBuilder diff --git a/force-app/main/default/permissionsets/EDRD_PS_PHSA_PSP_Staff.permissionset-meta.xml b/force-app/main/default/permissionsets/EDRD_PS_PHSA_PSP_Staff.permissionset-meta.xml index ba3c934ee..1c2cfb866 100644 --- a/force-app/main/default/permissionsets/EDRD_PS_PHSA_PSP_Staff.permissionset-meta.xml +++ b/force-app/main/default/permissionsets/EDRD_PS_PHSA_PSP_Staff.permissionset-meta.xml @@ -275,7 +275,7 @@ true - false + true Case.EDRD_MOHFunding_Decision__c true @@ -290,7 +290,7 @@ true - false + true Case.EDRD_MOHFunding_Start_Date__c true @@ -575,7 +575,7 @@ true - false + true Contact.Patient_is_Deceased__c true @@ -939,6 +939,46 @@ MedicinalIngredient.Unit_Price__c true + + true + ServiceAppointment.EDRD_Agenda__c + true + + + true + ServiceAppointment.EDRD_Cancelled_Reason__c + true + + + true + ServiceAppointment.EDRD_Closed_Status__c + true + + + true + ServiceAppointment.EDRD_Meeting_URL__c + true + + + true + ServiceAppointment.EDRD_Name__c + true + + + true + ServiceAppointment.EDRD_Publish__c + true + + + true + ServiceAppointment.No_of_Cases_to_be_Presented__c + true + + + true + ServiceAppointment.No_of_Simplified_Cases__c + true + true Task.ActivityDate @@ -1177,6 +1217,15 @@ OmniProcessElement false + + true + false + true + true + false + ServiceAppointment + false + true false @@ -1234,10 +1283,18 @@ PersonAccount.Provider true + + ServiceAppointment.EDRD_Committee_Meeting + true + Medical_Diagnosis__c Visible + + standard-ServiceAppointment + Visible + true CanUseNewDashboardBuilder diff --git a/force-app/main/default/permissionsets/EDRD_PS_Standard_User.permissionset-meta.xml b/force-app/main/default/permissionsets/EDRD_PS_Standard_User.permissionset-meta.xml index f2fb53c79..7dc2c3304 100644 --- a/force-app/main/default/permissionsets/EDRD_PS_Standard_User.permissionset-meta.xml +++ b/force-app/main/default/permissionsets/EDRD_PS_Standard_User.permissionset-meta.xml @@ -827,6 +827,41 @@ MedicinalIngredient.Unit_Price__c true + + false + ServiceAppointment.EDRD_Agenda__c + true + + + false + ServiceAppointment.EDRD_Cancelled_Reason__c + true + + + false + ServiceAppointment.EDRD_Meeting_URL__c + true + + + false + ServiceAppointment.EDRD_Name__c + true + + + false + ServiceAppointment.EDRD_Publish__c + true + + + false + ServiceAppointment.No_of_Cases_to_be_Presented__c + true + + + false + ServiceAppointment.No_of_Simplified_Cases__c + true + false Task.ActivityDate @@ -966,6 +1001,15 @@ MedicinalIngredient false + + false + false + false + true + false + ServiceAppointment + false + false false @@ -1019,8 +1063,16 @@ PersonAccount.Provider true + + ServiceAppointment.EDRD_Committee_Meeting + true + Medical_Diagnosis__c Visible + + standard-ServiceAppointment + Visible + diff --git a/force-app/main/default/permissionsets/EDRD_Super_User.permissionset-meta.xml b/force-app/main/default/permissionsets/EDRD_Super_User.permissionset-meta.xml index 860d03045..fa85d0ba2 100644 --- a/force-app/main/default/permissionsets/EDRD_Super_User.permissionset-meta.xml +++ b/force-app/main/default/permissionsets/EDRD_Super_User.permissionset-meta.xml @@ -1031,6 +1031,46 @@ MedicinalIngredient.Unit_Price__c true + + true + ServiceAppointment.EDRD_Agenda__c + true + + + true + ServiceAppointment.EDRD_Cancelled_Reason__c + true + + + true + ServiceAppointment.EDRD_Closed_Status__c + true + + + true + ServiceAppointment.EDRD_Meeting_URL__c + true + + + true + ServiceAppointment.EDRD_Name__c + true + + + true + ServiceAppointment.EDRD_Publish__c + true + + + true + ServiceAppointment.No_of_Cases_to_be_Presented__c + true + + + true + ServiceAppointment.No_of_Simplified_Cases__c + true + true Task.ActivityDate @@ -1274,6 +1314,15 @@ OmniProcessElement false + + true + false + true + true + false + ServiceAppointment + false + true true @@ -1335,6 +1384,10 @@ PersonAccount.Provider true + + ServiceAppointment.EDRD_Committee_Meeting + true + Medical_Diagnosis__c Visible @@ -1343,6 +1396,10 @@ standard-Case Visible + + standard-ServiceAppointment + Visible + standard-report Visible diff --git a/force-app/main/default/sharingRules/ServiceAppointment.sharingRules-meta.xml b/force-app/main/default/sharingRules/ServiceAppointment.sharingRules-meta.xml new file mode 100644 index 000000000..eaa955575 --- /dev/null +++ b/force-app/main/default/sharingRules/ServiceAppointment.sharingRules-meta.xml @@ -0,0 +1,18 @@ + + + + EDRD_Service_Appointment_Record_Access + Edit + EDRD Service Appointment Record Access + + + EDRD_Admin + + + RecordTypeId + equals + EDRD Committee Meeting + + true + + diff --git a/force-app/main/default/standardValueSets/ServiceAppointmentStatus.standardValueSet-meta.xml b/force-app/main/default/standardValueSets/ServiceAppointmentStatus.standardValueSet-meta.xml new file mode 100644 index 000000000..9d3ec77bf --- /dev/null +++ b/force-app/main/default/standardValueSets/ServiceAppointmentStatus.standardValueSet-meta.xml @@ -0,0 +1,59 @@ + + + SvcApptStatusCategory + false + + None + true + + None + + + Scheduled + false + + Scheduled + + + Dispatched + false + + Dispatched + + + In Progress + false + + InProgress + + + Cannot Complete + false + + CannotComplete + + + Completed + false + + Completed + + + Canceled + false + + Canceled + + + Planned + false + + InProgress + + + Closed + false + + Completed + + diff --git a/force-app/main/default/triggers/ServiceAppointmentTrigger.trigger b/force-app/main/default/triggers/ServiceAppointmentTrigger.trigger new file mode 100644 index 000000000..29db055ae --- /dev/null +++ b/force-app/main/default/triggers/ServiceAppointmentTrigger.trigger @@ -0,0 +1,19 @@ +/********************************************************************************************** +* @Author: Accenture +* @Date: 19-12-2024 +* @Description: The purpose of this Trigger is to trigger on particular events +* @Revision(s): [Date] - [Change Reference] - [Changed By] - [Description] + 19 Dec - EDRD- 309 - Accenture - Populate Name on Service Appointment + +***********************************************************************************************/ +trigger ServiceAppointmentTrigger on ServiceAppointment (before insert, before update) { + + if(trigger.isBefore && trigger.isInsert){ + ServiceAppointmentTriggerHandler.insertSAName(trigger.new); + } + if(trigger.isBefore && trigger.isupdate){ + ServiceAppointmentTriggerHandler.updateSAName(trigger.new, trigger.oldMap); + + } + +} \ No newline at end of file diff --git a/force-app/main/default/triggers/ServiceAppointmentTrigger.trigger-meta.xml b/force-app/main/default/triggers/ServiceAppointmentTrigger.trigger-meta.xml new file mode 100644 index 000000000..09b12e898 --- /dev/null +++ b/force-app/main/default/triggers/ServiceAppointmentTrigger.trigger-meta.xml @@ -0,0 +1,5 @@ + + + 62.0 + Active +