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
|
// Fetch patient context if patientId exists
|
||||||
let patientData = null;
|
let patientData = null;
|
||||||
let upcomingAppointments: any[] = [];
|
let upcomingAppointments: any[] = [];
|
||||||
if (lead.patientId) {
|
if (lead?.patientId) {
|
||||||
try {
|
try {
|
||||||
patientData = await this.platform.getPatientWithToken(
|
patientData = await this.platform.getPatientWithToken(
|
||||||
lead.patientId,
|
lead.patientId,
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ export class PlatformGraphqlService {
|
|||||||
assignedAgent campaignId adId
|
assignedAgent campaignId adId
|
||||||
contactAttempts spamScore isSpam
|
contactAttempts spamScore isSpam
|
||||||
aiSummary aiSuggestedAction
|
aiSummary aiSuggestedAction
|
||||||
|
patientId
|
||||||
}
|
}
|
||||||
}`,
|
}`,
|
||||||
{ id },
|
{ id },
|
||||||
@@ -162,6 +163,7 @@ export class PlatformGraphqlService {
|
|||||||
assignedAgent campaignId adId
|
assignedAgent campaignId adId
|
||||||
contactAttempts spamScore isSpam
|
contactAttempts spamScore isSpam
|
||||||
aiSummary aiSuggestedAction
|
aiSummary aiSuggestedAction
|
||||||
|
patientId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,72 +1,74 @@
|
|||||||
export type LeadNode = {
|
export type LeadNode = {
|
||||||
id: string;
|
id: string;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
contactName: { firstName: string; lastName: string } | null;
|
contactName: { firstName: string; lastName: string } | null;
|
||||||
contactPhone: { number: string; callingCode: string }[] | null;
|
contactPhone: { number: string; callingCode: string }[] | null;
|
||||||
contactEmail: { address: string }[] | null;
|
contactEmail: { address: string }[] | null;
|
||||||
leadSource: string | null;
|
leadSource: string | null;
|
||||||
leadStatus: string | null;
|
leadStatus: string | null;
|
||||||
interestedService: string | null;
|
interestedService: string | null;
|
||||||
assignedAgent: string | null;
|
assignedAgent: string | null;
|
||||||
campaignId: string | null;
|
campaignId: string | null;
|
||||||
adId: string | null;
|
adId: string | null;
|
||||||
contactAttempts: number | null;
|
contactAttempts: number | null;
|
||||||
spamScore: number | null;
|
spamScore: number | null;
|
||||||
isSpam: boolean | null;
|
isSpam: boolean | null;
|
||||||
aiSummary: string | null;
|
aiSummary: string | null;
|
||||||
aiSuggestedAction: string | null;
|
aiSuggestedAction: string | null;
|
||||||
|
patientId: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type LeadActivityNode = {
|
export type LeadActivityNode = {
|
||||||
id: string;
|
id: string;
|
||||||
activityType: string | null;
|
activityType: string | null;
|
||||||
summary: string | null;
|
summary: string | null;
|
||||||
occurredAt: string | null;
|
occurredAt: string | null;
|
||||||
performedBy: string | null;
|
performedBy: string | null;
|
||||||
channel: string | null;
|
channel: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CallNode = {
|
export type CallNode = {
|
||||||
id: string;
|
id: string;
|
||||||
callDirection: string | null;
|
callDirection: string | null;
|
||||||
callStatus: string | null;
|
callStatus: string | null;
|
||||||
disposition: string | null;
|
disposition: string | null;
|
||||||
agentName: string | null;
|
agentName: string | null;
|
||||||
startedAt: string | null;
|
startedAt: string | null;
|
||||||
endedAt: string | null;
|
endedAt: string | null;
|
||||||
durationSeconds: number | null;
|
durationSeconds: number | null;
|
||||||
leadId: string | null;
|
leadId: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CreateCallInput = {
|
export type CreateCallInput = {
|
||||||
callDirection: string;
|
callDirection: string;
|
||||||
callStatus: string;
|
callStatus: string;
|
||||||
callerNumber?: { number: string; callingCode: string }[];
|
callerNumber?: { number: string; callingCode: string }[];
|
||||||
agentName?: string;
|
agentName?: string;
|
||||||
startedAt?: string;
|
startedAt?: string;
|
||||||
endedAt?: string;
|
endedAt?: string;
|
||||||
durationSeconds?: number;
|
durationSeconds?: number;
|
||||||
disposition?: string;
|
disposition?: string;
|
||||||
callNotes?: string;
|
callNotes?: string;
|
||||||
leadId?: string;
|
leadId?: string;
|
||||||
sla?: number;
|
sla?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CreateLeadActivityInput = {
|
export type CreateLeadActivityInput = {
|
||||||
activityType: string;
|
activityType: string;
|
||||||
summary: string;
|
summary: string;
|
||||||
occurredAt: string;
|
occurredAt: string;
|
||||||
performedBy: string;
|
performedBy: string;
|
||||||
channel: string;
|
channel: string;
|
||||||
durationSeconds?: number;
|
durationSeconds?: number;
|
||||||
outcome?: string;
|
outcome?: string;
|
||||||
leadId: string;
|
leadId: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UpdateLeadInput = {
|
export type UpdateLeadInput = {
|
||||||
leadStatus?: string;
|
leadStatus?: string;
|
||||||
lastContactedAt?: string;
|
lastContactedAt?: string;
|
||||||
aiSummary?: string;
|
aiSummary?: string;
|
||||||
aiSuggestedAction?: string;
|
aiSuggestedAction?: string;
|
||||||
contactAttempts?: number;
|
contactAttempts?: number;
|
||||||
|
patientId?: string;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user