(globalThis.webpackChunk_enyaencha_esm_ai_chart_assistant_app=globalThis.webpackChunk_enyaencha_esm_ai_chart_assistant_app||[]).push([[91],{4767:(e,t,a)=>{var n={"./en.json":[4300,300],"./fr.json":[4055,55]};function s(e){if(!a.o(n,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],s=t[0];return a.e(t[1]).then(()=>a(s))}s.keys=()=>Object.keys(n),s.id=4767,e.exports=s},8091:(e,t,a)=>{"use strict";a.r(t),a.d(t,{aiAssistant:()=>l,importTranslation:()=>i,startupApp:()=>c});var n=a(6920),s={enabled:{_type:n.Type.Boolean,_default:!0,_description:"Whether the AI chart assistant is enabled."},apiBaseUrl:{_type:n.Type.String,_default:"/openmrs/ws/rest/v1/kenyaemr-ai",_description:"Base URL for the AI orchestration service. Use a same-origin reverse proxy in production."},enablePatientChartAssistant:{_type:n.Type.Boolean,_default:!0,_description:"Enable patient-chart-aware questions and summaries."},enableTaskGuide:{_type:n.Type.Boolean,_default:!0,_description:"Enable workflow task guidance."},enableSourceDisplay:{_type:n.Type.Boolean,_default:!0,_description:"Show answer source labels returned by the orchestration service."},allowWriteActions:{_type:n.Type.Boolean,_default:!1,_description:"Allow write-action workflows. The first release should keep this false."},enableQuestionLearning:{_type:n.Type.Boolean,_default:!0,_description:"Store a local, browser-only question log to help improve assistant workflow coverage."},requestTimeoutMs:{_type:n.Type.Number,_default:8e3,_description:"Timeout in milliseconds for AI orchestration service calls."},maxRecentEncounters:{_type:n.Type.Number,_default:10,_description:"Maximum recent encounters to collect for patient chart context."},maxRecentObs:{_type:n.Type.Number,_default:80,_description:"Maximum recent observations to collect for patient chart context."}},r="@enyaencha/esm-ai-chart-assistant-app",o={featureName:"ai-chart-assistant",moduleName:r},i=a(4767),l=(0,n.getAsyncLifecycle)(function(){return Promise.all([a.e(459),a.e(76),a.e(706)]).then(a.bind(a,1706))},o);function c(){(0,n.defineConfigSchema)(r,s)}}}]);