--- title: "Document" slug: "core-key-concepts-document" updated: 2023-05-16T21:42:10Z published: 2023-05-16T21:42:10Z canonical: "docs.ursahealth.com/core-key-concepts-document" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.ursahealth.com/llms.txt > Use this file to discover all available pages before exploring further. # Document ## Definition A record from one of a set of designated [Natural Objects](/v1/docs/glossary-natural-objects) representing the basic building blocks from which more complicated business logic is typically built. Each such document is assigned a *Document ID* that is unique within an instance of Ursa Studio. ## Purpose The concept of a *Document* was introduced in part to facilitate the consolidation of business logic by allowing records from different *Natural Objects* to be more easily collected together within a single object or measure. In particular, the [Universal Patient Document Aggregator](/v1/docs/core-objects-universal-patient-document-aggregator) [Synthetic Object](/v1/docs/glossary-synthetic-objects) -- which collects *Documents* from different *Natural Objects* together into a single table -- was created to be the primary vehicle for this kind of exercise. For example, the logic looking for a particular set of diagnosis codes can be performed once on the *Universal Patient Document Aggregator* rather than multiple times (i.e., once for each of the *Natural Objects* that store diagnosis codes). Documents are also used to collect records from different Natural Objects associated with the same encounter, episode, or other broader concept. For example, the [Hospital Inpatient Admission Encounter Document Aggregator](/v1/docs/core-objects-hospital-inpatient-admission-encounter-document-aggregator) collects [Institutional Claim Headers](/v1/docs/core-objects-institutional-claim-headers), [Institutional Claim Service Line Items](/v1/docs/core-objects-institutional-claim-service-line-items), [Institutional Claim ICD Discharge Diagnoses](/v1/docs/core-objects-institutional-claim-icd-discharge-diagnoses), [Professional Claim Service Line Items](/v1/docs/core-objects-professional-claim-service-line-items), and a number of other document types together in one place, making it easy to find evidence of a particular service, condition, etc., associated with that encounter type. ## Related Objects - [Universal Patient Document Aggregator](/v1/docs/core-objects-universal-patient-document-aggregator)