Skip to content
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

User/edrd 104 #1402

Merged
merged 4 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<criteriaItems>
<field>RecordTypeId</field>
<operation>equals</operation>
<value>Manufacturer,Patient,Committee Reviewer,Provider</value>
<value>Manufacturer,Patient,EDRD Committee,Committee Reviewer,Provider</value>
</criteriaItems>
<includeRecordsOwnedByAll>true</includeRecordsOwnedByAll>
</sharingCriteriaRules>
Expand All @@ -34,7 +34,7 @@
<criteriaItems>
<field>RecordTypeId</field>
<operation>equals</operation>
<value>Manufacturer,Patient,Committee Reviewer,Provider</value>
<value>Manufacturer,Patient,EDRD Committee,Committee Reviewer,Provider</value>
</criteriaItems>
<includeRecordsOwnedByAll>true</includeRecordsOwnedByAll>
</sharingCriteriaRules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<behavior>Readonly</behavior>
<field>ParentId</field>
</layoutItems>
</layoutColumns>
Expand Down Expand Up @@ -80,7 +80,7 @@
<showRunAssignmentRulesCheckbox>false</showRunAssignmentRulesCheckbox>
<showSubmitAndAttachButton>false</showSubmitAndAttachButton>
<summaryLayout>
<masterLabel>00hAq000008WUHh</masterLabel>
<masterLabel>00hAq000008YLTd</masterLabel>
<sizeX>4</sizeX>
<sizeY>0</sizeY>
<summaryLayoutStyle>Default</summaryLayoutStyle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
29 changes: 26 additions & 3 deletions force-app/main/default/lwc/lookupSearchComp/lookupSearchComp.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default class CustomObjectForm extends LightningElement {
@track sFPHNDetails;
@track isNextDisable = true;
@track isReasonValidated = false;
@track pHNForSearch;

form = {
overrideReason: 'None'
Expand Down Expand Up @@ -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);
Expand All @@ -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;

Expand Down Expand Up @@ -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';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<operation>equals</operation>
<value>Account.EDRD_Committee</value>
</filters>
<label>EDRD Committees</label>
<label>EDRD - Committees</label>
<sharedTo>
<role>Developer</role>
<role>EDRD_Admin</role>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@
<fullName>No PHN provided</fullName>
<default>false</default>
</values>
<values>
<fullName>None</fullName>
<default>false</default>
</values>
<values>
<fullName>Patient record does not match</fullName>
<default>false</default>
Expand Down