Edward Flynn / Structured Outputs
Structured Outputs
JSON schemas, TypeScript interfaces, and data contracts -- every AI output formally defined as a markdown specification
14 schemasAnxiety Assessment Output
Structured GAD-7 anxiety assessment with severity scoring, symptom tracking, and intervention recommendations.
interface AnxietyAssessment {
client_id: string;
gad7_score: number;
severity_level: "minimal" | "mild" | "moderate" | "severe";
physical_symptoms: string[];
cognitive_patterns: string[];
recommended_interventions: string[];
risk_flags: string[];
timestamp: ISO8601;
}Session Note Output
SOAP-format clinical session note with subjective, objective, assessment, and plan sections.
interface SessionNote {
subjective: {
client_report: string;
mood: string;
concerns: string[];
};
objective: {
appearance: string;
behavior: string;
affect: string;
};
assessment: string;
plan: string[];
}Treatment Plan Output
Comprehensive treatment plan with diagnosis, goals, modalities, and scheduled review dates.
interface TreatmentPlan {
client_id: string;
diagnosis: string[];
presenting_problems: string[];
goals: { goal: string; objectives: string[]; target_date: string }[];
modalities: string[];
session_frequency: string;
estimated_duration: string;
review_dates: string[];
}DBT Diary Card Output
Daily DBT diary card tracking emotions, urges, skills usage, and mindfulness practice.
interface DBTDiaryCard {
date: ISO8601;
emotions: { name: string; intensity: number }[];
urges: { type: string; intensity: number; acted_on: boolean }[];
skills_used: string[];
events: string[];
mindfulness_minutes: number;
sleep_hours: number;
}Crisis Assessment Output
Critical-priority crisis assessment with risk stratification, safety planning, and emergency contact protocols.
interface CrisisAssessment {
risk_level: "low" | "moderate" | "high" | "imminent";
suicidal_ideation: boolean;
plan_specificity: string;
access_to_means: boolean;
protective_factors: string[];
risk_factors: string[];
immediate_actions: string[];
safety_plan: SafetyPlan;
emergency_contacts: Contact[];
}Group Session Plan Output
IOP group therapy session plan with three-group rotation: mood survey, psychoeducation, and coping skills.
interface GroupSessionPlan {
date: ISO8601;
time_slot: string;
topic: string;
focus_area: string;
group_1_mood_survey: GroupBlock;
group_2_psychoeducation: GroupBlock;
group_3_coping_skills: GroupBlock;
}Blog Article Output
SEO-optimized blog article with structured metadata, HTML body content, and related article links.
interface BlogArticle {
title: string;
slug: string;
category: string;
meta_description: string;
excerpt: string;
body_html: string;
read_time_minutes: number;
tags: string[];
related_articles: string[];
author: string;
published_at: ISO8601;
seo: SEOMeta;
}Client Progress Report Output
Periodic progress report tracking treatment goals, session attendance, skills mastery, and recommendations.
interface ClientProgressReport {
reporting_period: { start: string; end: string };
client_id: string;
treatment_goals_progress: GoalProgress[];
session_attendance: AttendanceRecord;
skills_mastery: SkillScore[];
recommendations: string[];
}Social Post Bundle Output
Multi-platform social media content bundle with platform-specific formatting for LinkedIn, Twitter, Instagram, and Substack.
interface SocialPostBundle {
linkedin: { body: string; hashtags: string[] };
twitter: { thread: string[] };
instagram: { caption: string; alt_text: string };
substack: { subject: string; preview: string };
}Hypnosis Script Output
Clinical hypnosis script with timed sections, contraindications, and post-session instructions.
interface HypnosisScript {
target_condition: string;
session_length_minutes: number;
sections: {
induction: string;
deepening: string;
therapeutic_work: string;
emergence: string;
};
contraindications: string[];
post_session_instructions: string[];
}Intake Assessment Output
Comprehensive intake assessment with demographics, symptom checklist, history, and initial clinical formulation.
interface IntakeAssessment {
demographics: Demographics;
presenting_problem: string;
symptom_checklist: SymptomItem[];
history: {
psychiatric: string;
medical: string;
substance: string;
};
support_system: string[];
treatment_preferences: string[];
insurance_info: InsuranceInfo;
initial_formulation: string;
}Content Calendar Output
Monthly content calendar with weekly themes, scheduled posts, and performance metrics targets.
interface ContentCalendar {
month: string;
weeks: {
week_number: number;
theme: string;
posts: ScheduledPost[];
}[];
themes: string[];
metrics_targets: MetricsTarget;
}Skill Recommendation Output
DBT skill recommendation engine output with presenting state analysis and contraindicated skills.
interface SkillRecommendation {
presenting_state: string;
recommended_skills: {
skill: string;
module: string;
rationale: string;
}[];
contraindicated_skills: string[];
follow_up_check_time: string;
}Referral Letter Output
Provider-to-provider referral letter with diagnosis codes, treatment summary, and care coordination details.
interface ReferralLetter {
from_provider: Provider;
to_provider: Provider;
client_id: string;
reason_for_referral: string;
diagnosis_codes: string[];
treatment_summary: string;
current_medications: Medication[];
specific_requests: string[];
urgency_level: "routine" | "urgent" | "emergent";
attachments: string[];
}Edward Flynn
LPC, NBCCH, DBTC
Licensed Professional Counselor specializing in DBT, clinical hypnosis, and AI-augmented mental health workflows. These structured output schemas define the data contracts between clinical AI agents and documentation systems, ensuring every generated artifact conforms to a formally specified shape.