SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.00256 · September 2026

NSIDDx: A Design Framework for Neuro-Symbolic, Practitioner-First Differential Diagnosis in Low-Resource Settings

Aarav Singh

arXiv · PDF · Open in the Atlas

Code that ran

11 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 9 failures of our instrument; 3 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2609.00256.json · badge: /api/ran/2609.00256.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
joetheguide2/NSIDDX- canonical (classifier label)
classifier basis: census
11 ran · 3 no recorded run
FunctionStatusWhere it lives
build_structures Ran
ran; our contract draft was wrong, not the code
joetheguide2/NSIDDX-/build_hpo_data.py
code served (permissive licence) · get_code("f073f3bff2dba6b1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd

# Create a small sample DataFrame with the required columns
df = pd.DataFrame({
    'disease_id': ['D001', 'D001', 'D002', 'D002', 'D003'],
    'disease_name': ['Diabetes', 'Diabetes', 'Hypertension', 'Hypertension', 'Asthma'],
    'hpo_id': ['HP:0000001', 'HP:0000002', 'HP:0000001', 'HP:0000003', 'HP:0000004'],
    'qualifier': ['', '', 'NOT', '', '']
})

# Create a mapping from hpo_id to symptom names
id_to_symptom = {
    'HP:0000001': 'High Blood Sugar',
    'HP:0000002': 'Fatigue',
    'HP:0000003': 'Elevated Blood Pressure',
    'HP:0000004': 'Shortness of Breath'
}

ARGS = {
    'df': df,
    'id_to_symptom': id_to_symptom
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
capture_and_save Ran
ran; our contract draft was wrong, not the code
joetheguide2/NSIDDX-/evaluate.py
code served (permissive licence) · get_code("67dd5836d368cdd8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import io
import contextlib

torch.manual_seed(0)

# Define a simple function that prints something
def sample_func(x, y):
    print(f"x={x}, y={y}")
    return x + y

# Define another function that raises an error
def error_func():
    raise ValueError("Test error message")

# Define a function that uses a model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        print(f"Model forward pass with input shape: {x.shape}")
        return self.linear(x)

def model_func(model, x):
    print("Running model function")
    output = model(x)
    print(f"Output shape: {output.shape}")

model = SimpleModel()
test_tensor = torch.randn(2, 4)

# Test with a simple function
func1 = sample_func
args1 = (5, 10)
kwargs1 = {}

# Test with a function that errors
func2 = error_func
args2 = ()
kwargs2 = {}

# Test with a model function
func3 = model_func
args3 = (model, test_tensor)
kwargs3 = {}

ARGS = {
    "func": sample_func,
    "args": (5, 10),
    "kwargs": {}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compile_fol_string Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
joetheguide2/NSIDDX-/symbolic_engine.py
code served (permissive licence) · get_code("f80a607e3ebbe474")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

class MockHPO:
    """Mock HPO loader that maps HPO IDs to symptom names"""
    
    def __init__(self):
        self.hpo_map = {
            'HP:0000001': 'Abnormality of the nervous system',
            'HP:0000002': 'Abnormality of body height',
            'HP:0000003': 'Testicular atrophy',
            'HP:0000004': 'Lack of skin pigmentation',
        }
    
    def symptom_name(self, hpo_id: str) -> str:
        return self.hpo_map.get(hpo_id, f'Unknown symptom {hpo_id}')


# Create a mock hpo object and inject it into hpo_loader module
import sys
from types import ModuleType

mock_hpo_loader = ModuleType('hpo_loader')
mock_hpo_loader.hpo = MockHPO()
sys.modules['hpo_loader'] = mock_hpo_loader


ARGS = {
    'present_hpo_ids': {'HP:0000001', 'HP:0000002'},
    'absent_hpo_ids': {'HP:0000003'},
    'disease_name': 'Marfan Syndrome',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
hpo_loader — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
match_exact Ran
ran, violated the contract we drafted
joetheguide2/NSIDDX-/evaluate.py
code served (permissive licence) · get_code("af419c1513013cec")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "result": "Hello World",
    "correct": "hello world"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
match_substring Ran
ran, violated the contract we drafted
joetheguide2/NSIDDX-/evaluate.py
code served (permissive licence) · get_code("fe50b25303e5e98a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - match_substring(result, correct)
# - Both parameters are used with .lower() method, so they must be strings
# - The function returns a boolean from the 'in' operator on strings

ARGS = {
    "result": "Hello World",
    "correct": "hello"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_hpoa Ran
ran; our contract draft was wrong, not the code
joetheguide2/NSIDDX-/build_hpo_data.py
code served (permissive licence) · get_code("752bfb25061c2416")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import io
import pandas as pd

# Construct a valid HPOA format content string
# The function expects tab-separated values with specific columns
# It filters for lines not starting with '#'
# It looks for columns: databaseid/id, diseasename/dbname, qualifier, hpoid, and aspect (at index 10)

content = """# This is a comment line that will be filtered out
# Another comment
databaseid	diseasename	qualifier	hpoid	col4	col5	col6	col7	col8	col9	aspect	col11
OMIM:100050	Disease Alpha	NOT	HP:0000001	val	val	val	val	val	val	P	val
OMIM:100051	Disease Beta		HP:0000002	val	val	val	val	val	val	P	val
OMIM:100052	Disease Gamma	SUPPORTS	HP:0000003	val	val	val	val	val	val	P	val
OMIM:100053	Disease Delta	NOT	HP:0000004	val	val	val	val	val	val	N	val
"""

ARGS = {
    'content': content
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_hpoa Ran
ran; our contract draft was wrong, not the code
joetheguide2/NSIDDX-/rebuild_hpo_data.py
code served (permissive licence) · get_code("7409da753b1e23b8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataFrame. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
from io import StringIO

# Create a minimal valid HPOA format content string
content = """#format: hpoa
#dateGenerated: 2024-01-01
DatabaseID	DiseaseName	Qualifier	HPO_ID	Other1	Other2	Other3	Other4	Other5	Other6	Aspect	Other7
OMIM:123456	Disease Alpha	NOT	HP:0000001	val1	val2	val3	val4	val5	val6	P	val7
OMIM:654321	Disease Beta		HP:0000002	val1	val2	val3	val4	val5	val6	P	val7
OMIM:111111	Disease Gamma	NOT	HP:0000003	val1	val2	val3	val4	val5	val6	P	val7
"""

ARGS = {
    'content': content
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_obo Ran
ran; our contract draft was wrong, not the code
joetheguide2/NSIDDX-/build_hpo_data.py
code served (permissive licence) · get_code("ff5c33a97e048616")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

# Sample OBO format content - this is a typical format used for ontologies like HPO
content = """[Term]
id: HP:0000001
name: Abnormality of the nervous system
synonym: "Nervous system abnormality" EXACT []

[Term]
id: HP:0000002
name: Abnormality of body height
synonym: "Height abnormality" EXACT []
synonym: "Body height variation" EXACT []

[Term]
id: HP:0000003
name: Multicystic kidney dysplasia
synonym: "Multicystic kidney" EXACT []
"""

ARGS = {
    "content": content
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_obo Ran
ran; our contract draft was wrong, not the code
joetheguide2/NSIDDX-/rebuild_hpo_data.py
code served (permissive licence) · get_code("005edaa30b6ffb99")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

# Construct a minimal OBO format content string
obo_content = """[Term]
id: HP:0000001
name: Abnormality of the nervous system
synonym: "Nervous system abnormality" EXACT []
synonym: "CNS abnormality" EXACT []

[Term]
id: HP:0000002
name: Abnormality of body height
synonym: "Height abnormality" EXACT []

[Term]
id: HP:0000003
name: Multicystic kidney dysplasia
"""

ARGS = {
    "content": obo_content
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rank_all_mondo_diseases Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
joetheguide2/NSIDDX-/symbolic_engine.py
code served (permissive licence) · get_code("006e025c13d3d7d6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from dataclasses import dataclass, field

@dataclass
class SymptomSets:
    present: set[str] = field(default_factory=set)
    absent: set[str] = field(default_factory=set)

@dataclass
class MockHPO:
    def __init__(self):
        self._profile_for_id = {
            'OMIM:100001': True,
            'OMIM:100002': True,
            'ORPHA:200001': True,
        }
    
    def disease_name(self, disease_id: str) -> str:
        names = {
            'OMIM:100001': 'Cystic Fibrosis',
            'OMIM:100002': 'Sickle Cell Disease',
            'ORPHA:200001': 'Marfan Syndrome',
        }
        return names.get(disease_id, 'Unknown Disease')
    
    def disease_present_ids(self, disease_id: str) -> set[str]:
        profiles = {
            'OMIM:100001': {'HP:0001234', 'HP:0001235'},
            'OMIM:100002': {'HP:0001236', 'HP:0001237'},
            'ORPHA:200001': {'HP:0001238', 'HP:0001239'},
        }
        return profiles.get(disease_id, set())
    
    def disease_absent_ids(self, disease_id: str) -> set[str]:
        profiles = {
            'OMIM:100001': {'HP:0002000'},
            'OMIM:100002': {'HP:0002001'},
            'ORPHA:200001': {'HP:0002002'},
        }
        return profiles.get(disease_id, set())
    
    def symptom_name(self, hpo_id: str) -> str:
        names = {
            'HP:0001234': 'Dyspnea',
            'HP:0001235': 'Chest Pain',
            'HP:0001236': 'Hemolysis',
            'HP:0001237': 'Anemia',
            'HP:0001238': 'Aortic Dilation',
            'HP:0001239': 'Lens Dislocation',
            'HP:0002000': 'Normal Breathing',
            'HP:0002001': 'Normal RBC',
            'HP:0002002': 'Normal Skeleton',
        }
        return names.get(hpo_id, 'Unknown Symptom')
    
    def askable_symptoms(self, disease_id: str, confirmed_hpo_ids: set[str]) -> list[dict]:
        return [
            {'id': 'HP:0009999', 'name': 'Additional Symptom', 'frequency': '1/3'},
        ]

# Monkey-patch hpo_loader module before import
import sys
from types import ModuleType
hpo_loader_module = ModuleType('hpo_loader')
hpo_loader_module.hpo = MockHPO()
sys.modules['hpo_loader'] = hpo_loader_module

# Now we can define the arguments
ARGS = {
    'symptoms': SymptomSets(
        present={'HP:0001234', 'HP:0001235'},
        absent={'HP:0002000'}
    )
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
hpo_loader — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
score_ddx_diseases_mondo Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
joetheguide2/NSIDDX-/symbolic_engine.py
code served (permissive licence) · get_code("394f2f9d3b6069a5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import sys
from unittest.mock import Mock, MagicMock
from dataclasses import dataclass, field

@dataclass
class SymptomSets:
    present: set[str] = field(default_factory=set)
    absent: set[str] = field(default_factory=set)

@dataclass
class DiseaseScore:
    disease_id: str
    disease_name: str
    query_name: str
    mondo_score: float = 0.0
    kg_score: float = 0.0
    mondo_hybrid: float = 0.0
    kg_hybrid: float = 0.0
    matched_symptoms: list[str] = field(default_factory=list)
    contradicted: list[str] = field(default_factory=list)
    fol_string: str = ''
    askable: list[dict] = field(default_factory=list)
    source: str = ''

# Create a mock HPO loader that the function will import
class MockHPO:
    def __init__(self):
        self.disease_map = {
            'Marfan Syndrome': 'MONDO:0000081',
            'Ehlers-Danlos Syndrome': 'MONDO:0004967',
        }
        self.symptom_map = {
            'HP:0000001': 'Abnormality of the nervous system',
            'HP:0000002': 'Abnormality of body height',
            'HP:0000003': 'Multicystic kidney dysplasia',
            'HP:0000004': 'Abnormality of the skeletal system',
        }
        self.disease_profiles = {
            'MONDO:0000081': {
                'name': 'Marfan Syndrome',
                'present': {'HP:0000001', 'HP:0000002'},
                'absent': {'HP:0000003'}
            },
            'MONDO:0004967': {
                'name': 'Ehlers-Danlos Syndrome',
                'present': {'HP:0000002', 'HP:0000004'},
                'absent': {'HP:0000001'}
            }
        }
    
    def resolve_disease(self, name):
        return self.disease_map.get(name)
    
    def disease_name(self, disease_id):
        if disease_id in self.disease_profiles:
            return self.disease_profiles[disease_id]['name']
        return ''
    
    def disease_present_ids(self, disease_id):
        if disease_id in self.disease_profiles:
            return self.disease_profiles[disease_id]['present'].copy()
        return set()
    
    def disease_absent_ids(self, disease_id):
        if disease_id in self.disease_profiles:
            return self.disease_profiles[disease_id]['absent'].copy()
        return set()
    
    def symptom_name(self, hpo_id):
        return self.symptom_map.get(hpo_id, hpo_id)
    
    def askable_symptoms(self, disease_id, confirmed_hpo_ids=None):
        return [
            {'id': 'HP:0000001', 'name': 'Abnormality of the nervous system'},
            {'id': 'HP:0000004', 'name': 'Abnormality of the skeletal system'}
        ]

# Mock the hpo_loader module
mock_hpo_instance = MockHPO()

class MockHPOLoader:
    hpo = mock_hpo_instance

sys.modules['hpo_loader'] = MockHPOLoader()

# Now construct the arguments
symptoms = SymptomSets(
    present={'HP:0000001', 'HP:0000002'},
    absent={'HP:0000003'}
)

disease_name_list = ['Marfan Syndrome', 'Ehlers-Danlos Syndrome']

ARGS = {
    'symptoms': symptoms,
    'disease_name_list': disease_name_list,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
hpo_loader — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
chat Not yet run
unverified (harvested, no recorded run)
joetheguide2/NSIDDX-/llm_client.py
code served (permissive licence) · get_code("ffcdcf038ed5db09")
How it ran

no invocation recorded.

parse_mondo_owl Not yet run
unverified (harvested, no recorded run)
joetheguide2/NSIDDX-/rebuild_hpo_data.py
code served (permissive licence) · get_code("880edbc29e3100ea")
How it ran

no invocation recorded.

simple_prompt Not yet run
unverified (harvested, no recorded run)
joetheguide2/NSIDDX-/llm_client.py
code served (permissive licence) · get_code("c675d72611277002")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 14 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

LLM-based diagnostic systems achieve high semantic accuracy on benchmarks, but open-ended evaluation on clinically uncommon presentations reveals a systematic gap between headline accuracy and verifiable clinical reliability. We evaluate an LLM+rare-disease-RAG pipeline across two cohorts and show that the paradigm produces confident outputs that are frequently unverifiable and systematically resistant to clinician interrogation. We present NSIDDx (Neuro-Symbolic Integrated Differential Diagnosis System), a design framework arguing that DDx systems in low-resource settings must treat the clinician as an active reasoning agent. We instantiate this through a neuro-symbolic pipeline with ternary symptom encoding, contradiction detection, audit strings, and practitioner override - running offline on consumer hardware. We distill five design principles for clinician-in-the-loop clinical NLP and invite the prospective studies needed to validate the claim at scale.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2609.00256")
get_code_for_paper("2609.00256")
have("2609.00256")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2609.00256.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2609.00256.svg)](https://syntology.ai/paper/2609.00256)

Connect an agent — have() is free.