Skip to main content

ConsultationType

Dealing With ConsultationType

In order to deal with the Consultations and the functionality related to consultations, we use the ConsultationType interface:

interface ConsultationType {
id?: number;
user_id?: number;
question?: string;
doctor_name?: string;
doctor_avatar?: string;
doctor_average_rating?: number;
medium?: string; // 'chat' | 'gsm' | 'voip' | 'video'
status?: string; // 'new' | 'checking_medical_profile' | 'in_progress' | 'closed'
is_fulfilled?: number;
parent_consultation_id?: number;
scheduled_to?: string;
consultation_category_id?: number;
created_at?: string;
updated_at?: string;
closed_at?: string;
accepted_at?: string;
user?: UserType;
parentConsultation?: ConsultationType;
media?: MediaType[];
consultations?: ConsultationType[];
pusherChannel?: string;
pusherAppKey?: string;
chatConfig?: ChatConfig;
voipConfig?: VoipConfig;
videoConfig?: VoipConfig;
chatHistory?: ChatHistory;
recommendation?: Recommendation;
socketParams?: SocketParams;
}