mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-05-18 20:08:19 +00:00
AI Summary not showing appointments fix.
This commit is contained in:
@@ -58,7 +58,7 @@ export class CallLookupController {
|
||||
// Fetch patient context if patientId exists
|
||||
let patientData = null;
|
||||
let upcomingAppointments: any[] = [];
|
||||
if (lead.patientId) {
|
||||
if (lead?.patientId) {
|
||||
try {
|
||||
patientData = await this.platform.getPatientWithToken(
|
||||
lead.patientId,
|
||||
|
||||
@@ -97,6 +97,7 @@ export class PlatformGraphqlService {
|
||||
assignedAgent campaignId adId
|
||||
contactAttempts spamScore isSpam
|
||||
aiSummary aiSuggestedAction
|
||||
patientId
|
||||
}
|
||||
}`,
|
||||
{ id },
|
||||
@@ -162,6 +163,7 @@ export class PlatformGraphqlService {
|
||||
assignedAgent campaignId adId
|
||||
contactAttempts spamScore isSpam
|
||||
aiSummary aiSuggestedAction
|
||||
patientId
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ export type LeadNode = {
|
||||
isSpam: boolean | null;
|
||||
aiSummary: string | null;
|
||||
aiSuggestedAction: string | null;
|
||||
patientId: string | null;
|
||||
};
|
||||
|
||||
export type LeadActivityNode = {
|
||||
@@ -69,4 +70,5 @@ export type UpdateLeadInput = {
|
||||
aiSummary?: string;
|
||||
aiSuggestedAction?: string;
|
||||
contactAttempts?: number;
|
||||
patientId?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user