Skip to content

Commit

Permalink
Additional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakmulamalla committed Nov 29, 2024
1 parent 225ed91 commit 79511ff
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 5 deletions.
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';
}
}

0 comments on commit 79511ff

Please sign in to comment.