From 549fad9bec18e82a6b797b5bc4b72b9dfac9be3c Mon Sep 17 00:00:00 2001 From: deepakmulamalla Date: Tue, 26 Nov 2024 00:08:36 -0500 Subject: [PATCH 1/4] changes to Listview --- .../objects/Account/listViews/EDRD_Committees.listView-meta.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/force-app/main/default/objects/Account/listViews/EDRD_Committees.listView-meta.xml b/force-app/main/default/objects/Account/listViews/EDRD_Committees.listView-meta.xml index fe11177be..7e7008771 100644 --- a/force-app/main/default/objects/Account/listViews/EDRD_Committees.listView-meta.xml +++ b/force-app/main/default/objects/Account/listViews/EDRD_Committees.listView-meta.xml @@ -10,7 +10,7 @@ equals Account.EDRD_Committee - + Developer EDRD_Admin From fe8862f0dd2f8f0a0de8dfe8e801a035e70f7c3e Mon Sep 17 00:00:00 2001 From: deepakmulamalla Date: Wed, 27 Nov 2024 11:57:12 -0500 Subject: [PATCH 2/4] Changes to recordtype --- .../default/objects/Case/recordTypes/EDRD.recordType-meta.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/force-app/main/default/objects/Case/recordTypes/EDRD.recordType-meta.xml b/force-app/main/default/objects/Case/recordTypes/EDRD.recordType-meta.xml index cda134961..f866e7f37 100644 --- a/force-app/main/default/objects/Case/recordTypes/EDRD.recordType-meta.xml +++ b/force-app/main/default/objects/Case/recordTypes/EDRD.recordType-meta.xml @@ -364,6 +364,10 @@ No PHN provided false + + None + false + Patient record does not match false From 225ed91ee6f4d62d8690c1be26371939cd345bda Mon Sep 17 00:00:00 2001 From: deepakmulamalla Date: Thu, 28 Nov 2024 10:11:05 -0500 Subject: [PATCH 3/4] Adding EDRD Committee -Sharing Rules --- .../main/default/sharingRules/Account.sharingRules-meta.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-app-post/main/default/sharingRules/Account.sharingRules-meta.xml b/dev-app-post/main/default/sharingRules/Account.sharingRules-meta.xml index 5a4568643..cfc169a67 100644 --- a/dev-app-post/main/default/sharingRules/Account.sharingRules-meta.xml +++ b/dev-app-post/main/default/sharingRules/Account.sharingRules-meta.xml @@ -15,7 +15,7 @@ RecordTypeId equals - Manufacturer,Patient,Committee Reviewer,Provider + Manufacturer,Patient,EDRD Committee,Committee Reviewer,Provider true @@ -34,7 +34,7 @@ RecordTypeId equals - Manufacturer,Patient,Committee Reviewer,Provider + Manufacturer,Patient,EDRD Committee,Committee Reviewer,Provider true From 79511ff33a509a22f4b85a2f22e32d4bf3617bf9 Mon Sep 17 00:00:00 2001 From: deepakmulamalla Date: Fri, 29 Nov 2024 09:11:33 -0500 Subject: [PATCH 4/4] Additional changes --- .../Account-EDRD Committee.layout-meta.xml | 4 +-- .../eDRD_lwc_SFPatientSearchComponent.js | 14 +++++++++ .../lwc/lookupSearchComp/lookupSearchComp.js | 29 +++++++++++++++++-- 3 files changed, 42 insertions(+), 5 deletions(-) diff --git a/force-app/main/default/layouts/Account-EDRD Committee.layout-meta.xml b/force-app/main/default/layouts/Account-EDRD Committee.layout-meta.xml index bbd3bbab3..d1ae25223 100644 --- a/force-app/main/default/layouts/Account-EDRD Committee.layout-meta.xml +++ b/force-app/main/default/layouts/Account-EDRD Committee.layout-meta.xml @@ -25,7 +25,7 @@ - Edit + Readonly ParentId @@ -80,7 +80,7 @@ false false - 00hAq000008WUHh + 00hAq000008YLTd 4 0 Default diff --git a/force-app/main/default/lwc/eDRD_lwc_SFPatientSearchComponent/eDRD_lwc_SFPatientSearchComponent.js b/force-app/main/default/lwc/eDRD_lwc_SFPatientSearchComponent/eDRD_lwc_SFPatientSearchComponent.js index c2da7897a..a2610679c 100644 --- a/force-app/main/default/lwc/eDRD_lwc_SFPatientSearchComponent/eDRD_lwc_SFPatientSearchComponent.js +++ b/force-app/main/default/lwc/eDRD_lwc_SFPatientSearchComponent/eDRD_lwc_SFPatientSearchComponent.js @@ -275,4 +275,18 @@ export default class eDRD_lwc_SFPatientSearchComponent extends LightningElement }); this.dispatchEvent(evt); } + + connectedCallback() { + this.isCreatePatientManuallyChecked = false; + } + + disconnectedCallback() { + this.patientFirstName = NULL; + this.patientLastName = NULL; + this.patientGender = NULL; + this.patientBirthdate = NULL; + this.patientIdentifier = NULL ; + this.patient_IdentifierManual = NULL; + this.isCreatePatientManuallyChecked = false; + } } \ No newline at end of file diff --git a/force-app/main/default/lwc/lookupSearchComp/lookupSearchComp.js b/force-app/main/default/lwc/lookupSearchComp/lookupSearchComp.js index 6ec26792b..a8f2aebc3 100644 --- a/force-app/main/default/lwc/lookupSearchComp/lookupSearchComp.js +++ b/force-app/main/default/lwc/lookupSearchComp/lookupSearchComp.js @@ -39,6 +39,7 @@ export default class CustomObjectForm extends LightningElement { @track sFPHNDetails; @track isNextDisable = true; @track isReasonValidated = false; + @track pHNForSearch; form = { overrideReason: 'None' @@ -86,19 +87,19 @@ export default class CustomObjectForm extends LightningElement { } handlekeychange(event) { - this.accountPHN = event.currentTarget.value || ''; + this.pHNForSearch = event.currentTarget.value || ''; } handleSearch() { this.isNextDisable = true; - if (!this.accountPHN) { + if (!this.pHNForSearch) { this.isShowNoPHNFound = true; this.accountList = undefined; return; } - getAccount({ actPHN: this.accountPHN }) + getAccount({ actPHN: this.pHNForSearch }) .then((result) => { try { const keyVsValue = JSON.parse(result); @@ -112,6 +113,7 @@ export default class CustomObjectForm extends LightningElement { let FirstName = ""; let LastName = ""; this.pHNDetails.names.forEach(element => { + this.accountPHN = this.pHNForSearch; if (element.type === 'L') { LastName = element.familyName; @@ -192,4 +194,25 @@ export default class CustomObjectForm extends LightningElement { const flowEvent = new eventType(); this.dispatchEvent(flowEvent); } + + connectedCallback() { + this.pHNForSearch = this.accountPHN; + this.overRideReason = 'None'; + } + + disconnectedCallback() { + this.PatientFullNameDisplay = NULL; + this.FirstName = NULL; + this.LastName = NULL; + this.Name = NULL; + this.Gender = NULL ; + this.Deceased = NULL; + this.Birthdate = NULL; + this.PatientDOB = NULL; + this.patientPHN = NULL; + this.verified = NULL; + this.isNextDisable = NULL; + this.isShowNoPHNFound = NULL; + this.overRideReason = 'None'; + } } \ No newline at end of file