tag_system table via tag_system_id. The tagged object is identified polymorphically: related_id holds the entity’s id and tag_type records which kind of entity it is.
This table’s columns and relationships are shown in the Hosted Database schema.
related_id is a polymorphic Elation Billing identifier - the table it points at depends on tag_type (and, for the secondary association, sub_related_id depends on sub_tag_type). These are raw Elation Billing ids and are not resolved to HDB ids. For claim-type tags, related_id is the Elation Billing claim id and can be joined to claim.id. Resolve the tag’s label through tag_system_id.- Which tags are applied to claims or patients
- Resolving applied tags to their labels and colors via
tag_system - Tag usage counts across a practice
Applied tags with their labels
Joins each applied tag to its definition for the human-readable label and color.Tags applied to claims
Filters to claim tags and joins the tagged claim. Therelated_id of a claim-type tag is the Elation Billing claim id, so it joins directly to claim.id.