phytoevidence-api / contracts /validate-claims.response.example.json
debpc
Deploy claims-first v97 extraction and validation
b2e9550
Raw
History Blame Contribute Delete
6.83 kB
{
"schema_version": "1.0.0",
"validator_version": "phytoevidence-article-claim-validator-v1.0.0",
"input_count": 1,
"validated_count": 1,
"partial_count": 0,
"conflicted_count": 0,
"rejected_count": 0,
"claims": [
{
"schema_version": "1.0.0",
"claim_id": "PMID29389474-C01",
"claim_scope": "article",
"claim_status": "validated",
"claim_type": "efficacy",
"claim_text": "RESULTS: Oral rosemary 500 mg twice a day for 1 month significantly improved prospective and retrospective memory compared with placebo (p < 0.05).",
"normalized_claim": "RESULTS: Oral rosemary 500 mg twice a day for 1 month significantly improved prospective and retrospective memory compared with placebo (p < 0.05).",
"source": {
"pmid": "29389474",
"doi": null,
"pmcid": null,
"title": "Effects of Rosmarinus officinalis L. on memory performance in university students",
"year": 2018,
"journal": "Complementary Therapies in Clinical Practice",
"publication_types": [
"Randomized Controlled Trial"
],
"mesh_terms": [
"Rosmarinus",
"Memory"
],
"source_location": "abstract_background",
"source_quote": "RESULTS: Oral rosemary 500 mg twice a day for 1 month significantly improved prospective and retrospective memory compared with placebo (p < 0.05).",
"source_language": "en",
"abstract_only": true
},
"study": {
"study_type": "randomized_controlled_trial",
"evidence_domain": "efficacy",
"population_level": "human",
"is_secondary_research": false,
"parent_study_identifiers": []
},
"population": {
"description": "human participants",
"sample_size": null,
"species": "Homo sapiens",
"model": null,
"condition": null,
"age": null,
"sex": null,
"setting": null
},
"intervention": {
"substance": "rosemary",
"scientific_name": "Rosmarinus officinalis",
"normalized_identifiers": {},
"plant_part": null,
"preparation": null,
"route": "oral",
"dose": {
"value": 500.0,
"unit": "mg",
"basis": "as reported in source quote"
},
"frequency": "twice a day",
"duration": "1 month"
},
"comparator": {
"description": "placebo"
},
"outcome": {
"name": "memory",
"normalized_identifier": null,
"measure": null,
"direction": "benefit",
"timepoint": "1 month",
"effect_estimate": null
},
"numeric_facts": [
{
"kind": "dose",
"raw_text": "500 mg",
"value": 500.0,
"unit": "mg",
"context": "RESULTS: Oral rosemary 500 mg twice a day for 1 month significantly improved prospective and retrospective memory compared with placebo (p < 0.05).",
"status": "validated",
"correction": null
},
{
"kind": "frequency",
"raw_text": "twice a day",
"value": "twice",
"unit": "day",
"context": "RESULTS: Oral rosemary 500 mg twice a day for 1 month significantly improved prospective and retrospective memory compared with placebo (p < 0.05).",
"status": "validated",
"correction": null
},
{
"kind": "duration",
"raw_text": "1 month",
"value": 1.0,
"unit": "month",
"context": "RESULTS: Oral rosemary 500 mg twice a day for 1 month significantly improved prospective and retrospective memory compared with placebo (p < 0.05).",
"status": "validated",
"correction": null
},
{
"kind": "p_value",
"raw_text": "p < 0.05",
"value": 0.05,
"unit": "p<",
"context": "RESULTS: Oral rosemary 500 mg twice a day for 1 month significantly improved prospective and retrospective memory compared with placebo (p < 0.05).",
"status": "validated",
"correction": null
}
],
"supporting_claim_ids": [],
"contradicting_claim_ids": [],
"validation": {
"provenance_status": "verified",
"entailment_status": "entailed",
"numeric_status": "validated",
"contradiction_status": "not_detected",
"translation_status": "not_needed",
"supporting_pmids": [
"29389474"
],
"contradicting_pmids": [],
"entailment_score": 0.93,
"contradiction_score": 0.02,
"reasons": [
"Exact sentence copied from the PubMed abstract.",
"Candidate claim requires numeric and NLI validation before synthesis.",
"Exact normalized source quote found in the PubMed abstract.",
"All numeric assertions match the exact source quote; no correction was applied.",
"supported in exact source quote"
],
"validator_versions": {
"extractor": "phytoevidence-claim-extractor-v1.0.0",
"article_claim_validator": "phytoevidence-article-claim-validator-v1.0.0",
"numeric_validator": "phytoevidence-deterministic-numeric-v1",
"nli_validator": "PubMedBERT-MNLI-MedNLI-multisource"
}
},
"confidence": {
"source_support": "high",
"replication": "not_applicable",
"study_quality": "moderate",
"clinical_relevance": "moderate",
"numeric_integrity": "high",
"consistency": "not_applicable",
"overall": "moderate",
"rationale": "Article-level claim; status=validated; source support=high; study quality=moderate; clinical relevance=moderate; numeric integrity=high. Replication and cross-study consistency are assigned only during aggregate-claim construction."
},
"audit": {
"created_at": "2026-07-17T15:22:42.599883Z",
"extractor": "phytoevidence-claim-extractor-v1.0.0",
"source_hash": "8cce169c39dc423ab9d4990db3703f7ac2fe724f8248dd565ee187d3feabd5f6",
"events": [
{
"timestamp": "2026-07-17T15:22:42.599883Z",
"action": "candidate_extracted",
"actor": "phytoevidence-claim-extractor-v1.0.0",
"details": "Exact abstract sentence 3 selected from abstract_background."
},
{
"timestamp": "2026-07-17T15:39:50.834427Z",
"action": "article_claim_validated",
"actor": "phytoevidence-article-claim-validator-v1.0.0",
"details": "status=validated; provenance=verified; translation=not_needed; numeric=validated; nli=SUPPORTED."
}
]
}
}
],
"exclusions": []
}