File size: 666 Bytes
01923e1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from pydantic import BaseModel, HttpUrl


class Resource(BaseModel):
    id: str
    name: str
    description: str
    url: HttpUrl | None = None


class Project(BaseModel):
    name: str
    title: str
    description: str
    organization: str
    resources: list[Resource]


class ClinicalAtoms(BaseModel):
    history: list[str]
    presentation: list[str]
    diagnostics: list[str]
    management: list[str]
    outcome: list[str]


class ExampleStage(BaseModel):
    id: str
    title: str
    content: str


class Example(BaseModel):
    title: str
    label: str
    description: str
    atoms: ClinicalAtoms
    stages: list[ExampleStage]
    report: str