User Tools

Site Tools


documentation:cdm:fact_relationship

FACT_RELATIONSHIP table

The FACT_RELATIONSHIP table contains records about the relationships between facts stored as records in any table of the CDM. Relationships can be defined between facts from the same domain (table), or different domains. Examples of Fact Relationships include: Person relationships (parent-child), care site relationships (hierarchical organizational structure of facilities within a health system), indication relationship (between drug exposures and associated conditions), usage relationships (of devices during the course of an associated procedure), or facts derived from one another (measurements derived from an associated specimen).

FieldRequiredTypeDescription
domain_concept _id_1YesintegerThe concept representing the domain of fact one, from which the corresponding table can be inferred.
fact_id_1YesintegerThe unique identifier in the table corresponding to the domain of fact one.
domain_concept_id_2YesintegerThe concept representing the domain of fact two, from which the corresponding table can be inferred.
fact_id_2YesintegerThe unique identifier in the table corresponding to the domain of fact two.
relationship_concept_id YesintegerA foreign key to a Standard Concept ID of relationship in the Standardized Vocabularies.

Conventions

  • All relationships are directional, and each relationship is represented twice symmetrically within the FACT_RELATIONSHIP table. For example, two persons if person_id = 1 is the mother of person_id = 2 two records are in the FACT_RELATIONSHIP table (all strings in fact concept_id records in the Concept table:
    • Person, 1, Person, 2, parent of
    • Person, 2, Person, 1, child of
documentation/cdm/fact_relationship.txt · Last modified: 2014/12/05 20:47 by cgreich