Skip to content

schema

knowledge_graph.clinical.schema

Clinical-10 entity labels, relation signatures, model prompts, and annotation schema.

object_schema(properties)

JSON schema of an object with exactly these properties.

Source code in src/knowledge_graph/clinical/schema.py
45
46
47
48
49
50
51
52
def object_schema(properties):
    """JSON schema of an object with exactly these properties."""
    return {
        "type": "object",
        "additionalProperties": False,
        "properties": properties,
        "required": list(properties),
    }