diff --git a/src-distro/data/ai/prompt-templates.ts b/src-distro/data/ai/prompt-templates.ts index 2e60109..32a5732 100644 --- a/src-distro/data/ai/prompt-templates.ts +++ b/src-distro/data/ai/prompt-templates.ts @@ -48,6 +48,12 @@ export const promptTemplates = { template: (context: PromptTemplateContext) => { return "What should be my best next diagnostic step for {select:regarding my overal results|" + promptOptions.join('|') + "}? Provide information sources and links." }, + }, + preVisitSummary: { + label: "Prepare a summary for my next doctor's visit", + template: (context: PromptTemplateContext) => { + return "Prepare a summary report for my next doctor's visit. Format it as a report with proper headings, tables with results etc so it could be printed. Summarize results, mark all exceptions of the norms. Include the following: {select:my full test results|all test results - but just a quick summary|last year full test results|last year summary}. Provide information about the result sources (which examination, date)." + }, }, } \ No newline at end of file diff --git a/src/components/chat-message.tsx b/src/components/chat-message.tsx index 036b683..312a1c5 100644 --- a/src/components/chat-message.tsx +++ b/src/components/chat-message.tsx @@ -6,11 +6,11 @@ import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './ import Markdown from 'react-markdown' import styles from './chat-message.module.css'; import { useTheme } from 'next-themes'; -import dynamic from 'next/dynamic'; +import showdown from 'showdown' import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; import { Button } from '@/components/ui/button'; -import { SaveIcon } from 'lucide-react'; +import { DownloadIcon, SaveIcon } from 'lucide-react'; import { RecordContext } from '@/contexts/record-context'; interface ChatMessageProps { @@ -100,6 +100,30 @@ const ChatMessage: React.FC = ({ message, ref }) => { + + ): null }