Last active
January 3, 2025 19:07
-
-
Save jonasalmeida/c551e8c0b5d9a14aeefecd872894904a to your computer and use it in GitHub Desktop.
json schema for processing pathology reports
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$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