MedicAITutor Docs

MedicAI Tutor - Station JSON Schema Field Guide

Schema for building OSCE/CASC stations in MedicAI Tutor.

Live API Station schema OpenAPI JSON

Table of Contents

Top-Level Fields

FieldTypeRequired?Purpose
slugstringYesURL-safe ID for routing, filenames, DB keys, and internal linking.
sectionstringRecommendedStation grouping / syllabus bucket.
titlestringYesDisplay title for UIs, examiner PDFs, and analytics.
taskstringYesCandidate-facing task text.
promptsobjectYesCore station content that primes the simulator.
personaobjectOptionalPatient/actor traits shaping tone and disclosure.
guardrailsobjectOptionalScope, safety, and privacy boundaries for the actor.
rubricobjectYesMarking configuration for evaluation and auto-feedback.
sourcesobjectRecommendedProvenance for audit/citation.
station_metaobjectOptionalTopic, time limit, setting, expected diagnosis, and category.

Prompts

Purpose Actor-safe content that primes the encounter and aligns with the rubric. Schema
FieldTypeRequired?Purpose
station_namestringYesLabel used in UIs and analytics.
case_synopsisstring (multiline)YesNarrative background + examiner guidance.
leadstringRecommendedFirst patient utterance / scene hook.
key_pointsarrayOptionalMust-cover areas aligned to rubric items.
Example
{
  "station_name": "Synthetic Documentation Example",
  "case_synopsis": "A fictional test example. It is not a clinical station or source of truth."
}

Persona

Purpose Drive actor tone, pacing, disclosure style, and body language. Schema
FieldTypePurpose
namestringPatient display name used in dialogue.
agenumberClinical context anchoring expectations.
affectstringBaseline tone/energy to emulate.
communication_stylestringGuides response pacing/verbosity.
goals_concernsarrayIdeas, Concerns, Expectations (ICE).
nonverbal_cuesarrayActor body-language prompts.
do_not_volunteerarrayInfo withheld unless elicited empathically.
Schema evolution Unknown JSON fields are preserved by the backend and can be restored from revision snapshots through `/stations/{slug}/revisions`.

Patient Response Policy

Purpose Separate a social greeting from disclosure of the presenting concern. Schema
FieldTypeRequired?Purpose
greeting_responsestringOptionalBrief response to a greeting. Keep it non-disclosing unless the station explicitly authorizes a fact in the greeting.
presenting_concern_openerstringYesExample for a candidate asking why the speaker came or what happened. Runtime still selects and validates the facts permitted for that turn.
Use the candidate's intent to choose the response. A bare greeting must not trigger the presenting-concern opener. Example
{
  "greeting_response": "Good morning, doctor.",
  "presenting_concern_opener": "I drank too much and made a scene. I'm embarrassed."
}

Guardrails

Purpose Boundaries and safety logic to keep simulations appropriate and compliant. Schema
FieldTypePurpose
forbidden_topicsarrayProhibit unsafe/off-scope advice or unsafe actions.
mandatory_disclosuresarrayFacts/processes revealed when directly asked.
handoff_triggersarrayConditions that mandate escalation/supervision.
privacy_rulesarrayPHI handling and de-identification constraints.
out_of_scope_responsesarrayStandard boundary phrases for the actor.

Rubric

Purpose Scoring grid and feedback logic. Schema
FieldTypeRequired?Purpose
marking_sheet_titlestringYesHeader on examiner sheet/PDF.
overall_scalearrayYesOverall judgement categories, ordered worst to best.
domain_rating_scalearrayYesRatings used per item.
rating_to_scoreobjectYesMap rating to numeric for analytics.
competency_itemsarrayYesList of rows to be scored.
feedback_checklistarrayOptionalAdditional examiner feedback items.
station_categorystringOptionalHigh-level station grouping used for review and scheduling flows.
Competency Item shape
{
  "label": "Screen for physical and sexual abuse. Identify financial control.",
  "weight": 1.0,
  "scoring_mode": "level",
  "critical": false
}

Sources

Purpose Capture provenance for audit, reproducibility, and citation. Schema
FieldTypePurpose
pdfstringFlexible: file name or citation string(s).

Station Meta

Purpose Search, scheduling, and analytics. Schema
FieldTypePurpose
topicstringHigh-level topic for filtering.
time_limit_minutesnumberTimed station length.
settingstringClinical setting.
expected_diagnosisstringTarget diagnosis/decision.
station_categorystringMental state, history taking, management, or physical examination.

Reference: Full Example JSON

{
  "schema_version": "2.0.0",
  "slug": "synthetic-local-example",
  "title": "Synthetic Documentation Example",
  "section": "HISTORY TAKING",
  "task": "Ask about the main concern and relevant history.",
  "lead": "A synthetic example for documentation and local contract tests.",
  "prompts": {
    "station_name": "Synthetic Documentation Example",
    "case_synopsis": "A fictional test example. It is not a clinical station or source of truth."
  },
  "key_points": [
    "Clarify the presenting concern",
    "Explore relevant context",
    "Summarize and check understanding"
  ],
  "persona": {
    "name": "Alex Example",
    "age": 40,
    "affect": "calm",
    "communication_style": "brief and conversational",
    "role": "direct_patient",
    "goals_concerns": [
      "Explain a fictional concern when asked"
    ],
    "nonverbal_cues": [],
    "do_not_volunteer": []
  },
  "guardrails": {
    "forbidden_topics": [],
    "mandatory_disclosures": [],
    "handoff_triggers": [],
    "privacy_rules": [
      "Do not invent personal details"
    ],
    "out_of_scope_responses": []
  },
  "rubric": {
    "marking_sheet_title": "Synthetic example",
    "overall_scale": [
      "Not assessed"
    ],
    "domain_rating_scale": [
      "Not assessed"
    ],
    "rating_to_score": {
      "Not assessed": 0
    },
    "competency_items": [],
    "feedback_checklist": []
  },
  "station_meta": {
    "topic": "Synthetic example",
    "time_limit_minutes": 7,
    "setting": "Fictional practice room",
    "expected_diagnosis": "Not applicable",
    "station_category": "history_taking"
  },
  "publication": {
    "status": "unpublished",
    "expert_reviewed": false
  }
}