Skip to content

Commit

Permalink
BCMOHAD-23189 Name format Adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilJeenru01 committed Dec 12, 2024
1 parent 58e4a04 commit 1b51498
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 12 deletions.
2 changes: 1 addition & 1 deletion force-app/main/default/classes/EmpiIntegration.cls
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public with sharing class EmpiIntegration {
// Process only the first matching 'use' value
if (use != null && use.equalsIgnoreCase(selectedUse)) {
Patient.PersonName personName = new Patient.PersonName();
if (selectedUse == LRA_RESPONSE_USE_USUAL) {
if (selectedUse == LRA_RESPONSE_USE_OFFICIAL) {
personName.declared = true;
}
personName.familyName = (String) nameMap.get(LRA_RESPONSE_FAMILY_NAME);
Expand Down
33 changes: 22 additions & 11 deletions force-app/main/default/lwc/patientLookup/patientLookup.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,28 @@
</div>
</div>
<div if:true={hasData} class="slds-grid slds-gutters">
<template for:each={form.Names} for:item="item">
<div key={item.type} class="slds-m-vertical_small">
<div class="slds-col slds-form-element">
<span if:true={item.declared} class="slds-form-element__label">Declared Name</span>
<span if:false={item.declared} class="slds-form-element__label">Documented Name</span>
<div class="slds-form-element__control">
<div class="slds-form-element__static">{form.PatientFullNameDisplay}</div>
</div>
</div>
</div>
</template>
<template for:each={form.Names} for:item="item">
<div key={item.type} class="slds-m-vertical_small">
<div class="slds-col slds-form-element">
<div class="slds-grid slds-gutters">
<div class="slds-col">
<span class="slds-form-element__label">Declared Name</span>
<div class="slds-form-element__control">
<div class="slds-form-element__static">{form.PatientFullNameDisplay}</div>
</div>
</div>
<template if:true={item.declared}>
<div class="slds-col">
<span class="slds-form-element__label">Documented Name</span>
<div class="slds-form-element__control">
<div class="slds-form-element__static">{form.PatientFullNameDisplay}</div>
</div>
</div>
</template>
</div>
</div>
</div>
</template>
</div>
<div if:true={hasData} class="slds-grid slds-gutters">
<div class="slds-col slds-form-element">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,15 @@
<object>Step__c</object>
<viewAllRecords>true</viewAllRecords>
</objectPermissions>
<objectPermissions>
<allowCreate>false</allowCreate>
<allowDelete>false</allowDelete>
<allowEdit>false</allowEdit>
<allowRead>true</allowRead>
<modifyAllRecords>false</modifyAllRecords>
<object>UserExternalCredential</object>
<viewAllRecords>true</viewAllRecords>
</objectPermissions>
<pageAccesses>
<apexPage>PDFGenerator</apexPage>
<enabled>true</enabled>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
<enabled>true</enabled>
<name>Drug_Manager</name>
</customPermissions>
<objectPermissions>
<allowCreate>false</allowCreate>
<allowDelete>false</allowDelete>
<allowEdit>false</allowEdit>
<allowRead>true</allowRead>
<modifyAllRecords>false</modifyAllRecords>
<object>UserExternalCredential</object>
<viewAllRecords>true</viewAllRecords>
</objectPermissions>
<fieldPermissions>
<editable>false</editable>
<field>Account.DEC__c</field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
<name>SA_Team_Lead</name>
</customPermissions>
<description>Permission set for SA team lead persona</description>
<objectPermissions>
<allowCreate>false</allowCreate>
<allowDelete>false</allowDelete>
<allowEdit>false</allowEdit>
<allowRead>true</allowRead>
<modifyAllRecords>false</modifyAllRecords>
<object>UserExternalCredential</object>
<viewAllRecords>true</viewAllRecords>
</objectPermissions>
<fieldPermissions>
<editable>true</editable>
<field>Account.Person_Full_Name__c</field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1123,4 +1123,13 @@
<enabled>true</enabled>
<externalCredentialPrincipal>LRA_OAuth_TokenRequest-Client Credentials</externalCredentialPrincipal>
</externalCredentialPrincipalAccesses>
<objectPermissions>
<allowCreate>false</allowCreate>
<allowDelete>false</allowDelete>
<allowEdit>false</allowEdit>
<allowRead>true</allowRead>
<modifyAllRecords>false</modifyAllRecords>
<object>UserExternalCredential</object>
<viewAllRecords>true</viewAllRecords>
</objectPermissions>
</PermissionSet>

0 comments on commit 1b51498

Please sign in to comment.