Skip to main content

PatientData

The PatientData model contains essential demographic and identification information for a patient in the MedMitra system.

Fields

name
string
required
Patient’s full legal name
age
integer
required
Patient’s current age in years
gender
string
required
Patient’s gender identity or biological sex

Example

{
  "name": "John Doe",
  "age": 45,
  "gender": "Male"
}

Usage in Other Models

The PatientData model is embedded in several other data structures:
  • CaseInput: Contains patient data as part of the complete case information
  • CaseSummary: Includes patient context for reference in the summary

Validation Rules

  • name: Required string field, cannot be empty
  • age: Required integer field, must be a valid positive integer
  • gender: Required string field, typically values like “Male”, “Female”, “Other”, etc.

Example Usage in Case Context

{
  "case_id": "CASE-2024-001",
  "patient_data": {
    "name": "Jane Smith",
    "age": 32,
    "gender": "Female"
  },
  "doctor_case_summary": "Patient presents with recurring migraines..."
}
  • Case Model - Complete case data structure that includes patient information
  • Insights Model - Medical insights that reference patient data through case summary

Build docs developers (and LLMs) love