Skip to content

Instantly share code, notes, and snippets.

@jonasalmeida
Last active January 3, 2025 19:07
Show Gist options
  • Save jonasalmeida/c551e8c0b5d9a14aeefecd872894904a to your computer and use it in GitHub Desktop.
Save jonasalmeida/c551e8c0b5d9a14aeefecd872894904a to your computer and use it in GitHub Desktop.
json schema for processing pathology reports
{
"$id": "https://gist.github.com/jonasalmeida/c551e8c0b5d9a14aeefecd872894904a",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"Cancer_type": {"type": "string"},
"TNM_stage": {
"type": "object",
"properties": {
"Tumor": {"type": "string"},
"Node": {"type": "string"},
"Metastasis": {"type": "string"}
}
},
"Prognosis": {
"type": "string",
"enum": ["mild","moderate","severe"]
}
},
"required": [
"Cancer_type",
"TNM_stage",
"Prognosis"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment