Skip to main content

Disease Entity Ontology

Pathological Biological Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 27 October 2026
Audio Overview
FLOW ALGEBRA — DISEASE ENTITY ONTOLOGY
Version: 1.0 | Date: 2026-10-27 | Encoding: UTF-8
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/pathological-biological-entities/disease-entity-ontology.html
Scope: Formal companion specification; domain model, not clinical diagnostic advice.

flow "DiseaseEntityOntology" v1.0

AUTHORS:
  - Mark Anthony Higgins
  - Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/pathological-biological-entities/disease-entity-ontology.html
CITATION_BACKLINK: SOURCE
PURPOSE: Represent diseases as typed, evidence-linked pathological biological entities, with causal hypotheses, manifestations, time course and uncertainty.

STATE_MODEL:
  S_t = (I_t, R, B, K)
  I_t := observed evidence and candidate disease entities at step t
  R := typed ontology relations and inference constraints
  B := biological, temporal, contextual and epistemic boundaries
  K := curated domain knowledge and provenance
  E_t := expand(I_t, R)
  V_t := {x in E_t | valid(x, B, K)}
  x*_t := argmax_{x in V_t} P(x | I_t, R, B, K)
  I_(t+1) := update(I_t, x*_t, evidence_t)
  STOP := fixed_point(I_t) OR iteration_limit OR insufficient_evidence
  NOTE: Ranking is evidence prioritisation, not an automated diagnosis.

ENTITY_TYPES:
  DiseaseEntity:
    id: stable identifier
    preferred_label: text
    synonyms: list[text]
    definition: text
    category: DiseaseCategory
    aetiology: set[AetiologicalFactor]
    mechanism: set[PathophysiologicalProcess]
    manifestations: set[ClinicalFinding]
    affected_structures: set[AnatomicalEntity]
    temporal_course: TemporalPattern?
    severity: ContextDependentSeverity?
    status: asserted | suspected | ruled_out | unresolved
    provenance: set[EvidenceSource]
    confidence: [0,1] | unknown
  DiseaseCategory:
    examples: infectious | genetic | neoplastic | autoimmune | metabolic | degenerative | vascular | traumatic | toxic | nutritional | idiopathic | multifactorial
  AetiologicalFactor:
    kinds: pathogen | variant | exposure | immune_dysregulation | physiological_factor | unknown
  ClinicalFinding:
    kinds: symptom | sign | laboratory_finding | imaging_finding | histopathological_finding
  TemporalPattern:
    kinds: acute | subacute | chronic | recurrent | episodic | progressive | unknown
  EvidenceSource:
    fields: source_id, source_type, date, scope, reliability, citation

RELATION_GRAPH:
  DiseaseEntity --is_a--> PathologicalBiologicalEntity
  DiseaseEntity --classified_as--> DiseaseCategory
  DiseaseEntity --may_be_caused_by--> AetiologicalFactor
  DiseaseEntity --involves_process--> PathophysiologicalProcess
  DiseaseEntity --may_manifest_as--> ClinicalFinding
  DiseaseEntity --may_affect--> AnatomicalEntity
  DiseaseEntity --may_coexist_with--> DiseaseEntity
  DiseaseEntity --may_complicate--> DiseaseEntity
  DiseaseEntity --has_course--> TemporalPattern
  DiseaseEntity --supported_by--> EvidenceSource
  DiseaseEntity --differential_with--> DiseaseEntity
  DiseaseEntity --has_subtype--> DiseaseEntity

INVARIANTS:
  I1: Every disease identifier resolves to at most one canonical entity in a given ontology version.
  I2: Disease, symptom, syndrome, pathogen and anatomical structure are distinct types.
  I3: A finding associated with a disease is not sufficient evidence to assert the disease.
  I4: Correlation, association and causation remain distinct relation types.
  I5: Unknown aetiology must remain unknown rather than be filled by assumption.
  I6: Confidence values require a documented method and supporting evidence.
  I7: Contradictory evidence is retained and flagged, not silently discarded.
  I8: Temporal and population context accompany claims where relevant.
  I9: A disease classification may have multiple axes; categories need not be exclusive.
  I10: No rule emits patient-specific treatment or diagnosis from ontology structure alone.

INFERENCE_RULES:
  R1: IF disease d has_subtype s THEN s is_a DiseaseEntity.
  R2: IF d may_manifest_as f THEN f is a possible finding of d, not a required finding.
  R3: IF d may_be_caused_by a THEN record causal claim with provenance and certainty.
  R4: IF evidence e supports relation r THEN attach e to r and retain its scope.
  R5: IF evidence contradicts r THEN flag r for review; do not delete prior provenance.
  R6: IF label l is a synonym of d THEN resolve l to d, preserving original label.
  R7: IF two diseases share findings THEN propose differential_with, not identity.
  R8: IF classification conflicts across sources THEN retain both versioned assertions.
  R9: IF a finding is absent THEN do not exclude d unless a validated exclusion rule applies.
  R10: IF source or confidence is missing THEN mark inference provisional.

MINI_RECURSION_ENGINE:
  input: seed disease identifier or ontology query
  initialise frontier = {seed}; visited = {}
  while frontier not empty AND within depth and node limits:
    take node n from frontier
    if n in visited: continue
    validate type, provenance and boundaries of n
    emit permitted typed relations from n
    add unvisited related nodes to frontier
    visited = visited union {n}
  output: bounded, provenance-aware subgraph and unresolved assertions
  guarantee: terminates when frontier exhausted or configured limits reached

TRI_MAPPING:
  ENTITY: DiseaseEntity and linked biological entities
  RELATION: typed causal, classificatory, anatomical and evidential edges
  BEHAVIOUR: evidence-constrained expansion, validation and update

MAPPING_TABLE:
  Disease name -> preferred_label -> canonical entity lookup
  Alternative name -> synonyms -> alias resolution
  Cause -> may_be_caused_by -> qualified causal relation
  Mechanism -> involves_process -> process subgraph
  Symptoms/signs -> may_manifest_as -> non-diagnostic finding association
  Organ/tissue -> may_affect -> anatomical mapping
  Onset/progression -> has_course -> temporal mapping
  Reference -> supported_by -> provenance record
  Uncertainty -> confidence/status -> calibrated evidence handling

AI_SEARCH_FLOW:
  QUERY_INPUT: disease label, category, mechanism, finding or relationship
  NORMALISE: preserve query; standardise spelling and synonyms
  RESOLVE: match candidate canonical entities and ontology version
  EXPAND: traverse permitted relations with explicit depth limit
  FILTER: enforce evidence, type, context and provenance constraints
  RANK: use relevance and source quality; never equate rank with clinical probability
  RETURN: entity IDs, definitions, typed edges, citations and uncertainty
  FALLBACK: return unresolved candidates and missing evidence when ambiguous

CONFIDENCE_AND_PROVENANCE:
  Each assertion = (subject, predicate, object, source, timestamp, confidence, context)
  Confidence absent => unknown; never invent a numeric score.
  Separate source reliability from strength of biological evidence.
  Record revisions and retractions without erasing prior audit history.

SEMANTIC_EQUIVALENCE:
  equivalent_label(a,b) requires canonical mapping and matching scope.
  related_to(a,b) does not imply same_as(a,b).
  Disease subtypes are not interchangeable with their parent category.

UPDATE_MODEL:
  append new source assertions
  validate against invariants and ontology version
  re-evaluate affected relations and derived paths
  preserve superseded statements for audit
  publish version identifier and change summary

FLOW_HASH:
  Canonical serialisation + SHA-256 may be applied at publication.
  Hash value intentionally unset until final content is frozen.

EXECUTION_VALIDATION:
  V1: All entity IDs and edge predicates are typed.
  V2: No unbounded recursion or circular traversal.
  V3: Each material inference has traceable premises.
  V4: Unknown, negative and conflicting evidence remain distinguishable.
  V5: Re-running on unchanged inputs yields the same graph under deterministic settings.
  V6: Output distinguishes ontology facts from patient-specific clinical claims.

END FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ