Search Results safety_rule_group




Overview

The GR_WORK_SAFETY_PHRASES table is a temporary work table within the Oracle E-Business Suite Process Manufacturing Regulatory Management (GR) module. Its primary role is to serve as a transient data repository during the dynamic generation of regulatory documents, such as safety data sheets (SDS) or product labels. As a work table, it is populated by application logic during a specific user session's document build process to stage and organize safety phrase data before final document assembly. It is not intended for persistent storage of master data, but rather for operational processing, which is a common architectural pattern in EBS for handling complex, session-specific data aggregation.

Key Information Stored

The table's structure is designed to uniquely identify and categorize safety phrases for a given item within a specific session. The primary key is a composite of six columns, ensuring uniqueness for the temporary data set. The key columns are:

  • SESSION_ID: Uniquely identifies the user session and document build process instance.
  • ITEM_CODE: The code for the manufactured item or substance being documented.
  • SAFETY_PHRASE_CODE: The code for the specific regulatory safety phrase (e.g., H-phrases, P-phrases under GHS).
  • SAFETY_RULE_LEVEL: Defines the precedence or hierarchy level for applying the safety rule.
  • SAFETY_RULE_GROUP: Groups related safety rules for processing.
  • SAFETY_CATEGORY_CODE: Categorizes the type of safety information (e.g., hazard, precaution).
Together, these columns allow the application to manage multiple, potentially overlapping safety phrases for an item according to regulatory logic and precedence rules during document generation.

Common Use Cases and Queries

The primary use case is the on-demand generation of regulatory compliance documents. The table is populated by backend package logic (e.g., from GR_RULE_ENGINE or similar) that evaluates item compositions against defined regulatory rules. A typical query would select all staged data for a specific session to feed the document renderer. For diagnostic or support purposes, one might query the work data for a stalled session.

SELECT item_code, safety_phrase_code, safety_category_code
FROM gr.gr_work_safety_phrases
WHERE session_id = :session_id
ORDER BY safety_rule_level, safety_rule_group;
Direct reporting from this table is uncommon, as it holds transient data. Persistent safety phrase assignments are stored in master tables like GR_SAFETY_PHRASES and GR_ITEM_SAFETY_PHRASES.

Related Objects

As a work table, GR_WORK_SAFETY_PHRASES is typically referenced by and populated from PL/SQL packages within the GR module responsible for the regulatory document engine. It has no foreign key constraints documented in the provided metadata, as it is a session-specific staging area. However, its data derives from core regulatory tables, including:

  • GR_SAFETY_PHRASES: The master table storing the definitive safety phrase text and codes referenced by SAFETY_PHRASE_CODE.
  • GR_SAFETY_CATEGORIES_B: The master table for safety categories referenced by SAFETY_CATEGORY_CODE.
  • GR_ITEM_SAFETY_PHRASES: The table storing persistent safety phrase assignments to items.
The table's primary key (GR_WORK_SAFETY_PHRASES_PK) ensures data integrity within the temporary working set for the combination of session, item, and phrase attributes.