Part of the WebMEM Protocol
Location: /specification/sdt/yaml-in-html/classes/derivedstatsfragment/
Last Updated: 2025-07-28
Overview
A DerivedStatsFragment is a semantic fragment class that represents multiple computed values or metrics derived from a known dataset.
It is scoped to a single entity, built from trusted source data, and used to expose calculated summaries such as counts, percentages, averages, or conditional aggregates.
Unlike DataFragment, which exposes single source facts, or IndexFragment, which surfaces listings, the DerivedStatsFragment focuses on transformed insights from structured source data.
Required Provenance Fields
| Field | Description |
|---|---|
ID |
Unique provenance ID; anchors trust lineage for computed values. |
Title |
Dataset title that the stats are based on (e.g., CMS MA Landscape 2025). |
Description |
Explains how the stats were generated from the source. |
Creator |
The original publisher of the dataset (e.g., CMS). |
Home |
Homepage or documentation site for the dataset. |
License |
Legal reuse terms for the original data (e.g., CC0). |
Published |
Publication date of the dataset (not the derived output). |
Retrieved |
Download date of the original dataset. |
Digest |
Memory set the fragment belongs to (e.g., county-level digest ID). |
Entity |
The subject the stats apply to (e.g., county ID, plan ID). |
FragmentScope |
Declares the semantic purpose (e.g., derived, semantic-digest). |
Optional Provenance Fields
| Field | Description |
|---|---|
Scope |
Source classification (single-dataset, derived, etc.). |
Archive |
Downloadable file used in the derivation process. |
Format |
Structure of the source dataset (e.g., CSV, JSON). |
Guidelines |
Link to official compliance or usage documentation. |
GlossaryScope |
Glossary or namespace for aligning term definitions. |
Version |
Version ID for the dataset or fragment (e.g., v2025.01). |
Year |
Policy year or calendar year scope. |
Checksum |
Cryptographic file hash to verify original data integrity. |
Tags |
Keywords (e.g., county, stats, summary) for filtering or display. |
Default fragment_scope
This fragment class defaults to semantic-digest. Use this scope when publishing derived or aggregated statistics tied to a specific entity (e.g., county-level MOOP averages or plan enrollment rankings). It supports trust-scored memory conditioning in structured output layers.