QA Collection Plan Relationships

Description

Categories
Enginatics
Repository
GitHub
Every Oracle Quality parent child collection plan relationship, at one row per parent element to child element mapping. Each row names both plans with their descriptions and plan types, the relationship type, the data entry mode and layout mode that govern how the child rows are presented, the automatic row count and default parent specification flag, and the element relationship operator that says what the parent value does to the child value, together with the plan level prompt of each mapped element. A relationship that has no element mapping yet is still listed, as a single row.

Oracle Quality lets one collection plan drive another: when results are entered against the parent, a child plan is created and selected element values are copied, summed, averaged or otherwise derived into it. That behaviour is held in three tables which no single Oracle window exposes together - qa_pc_plan_relationship for the pairing and its data entry behaviour, qa_pc_element_relationship for the element by element mapping, and qa_pc_criteria for the conditions under which the child is created at all. This report is the one place the whole chain is visible, which is what makes it the reference when documenting a Quality setup, auditing which plans feed which, or specifying an interface that has to reproduce the derived values a parent plan writes into its children.

Criteria are a gate on the relationship rather than an attribute of one element mapping, so they are aggregated onto every row of that relationship: Criteria Count gives the number of conditions and Criteria renders them as readable expressions. Because aggregated text cannot be filtered, the Criteria Element parameter restricts to the relationships that are gated by a given collection element.

Filter with the optional Organization, Parent Plan, Child Plan and Collection Element parameters, or narrow on the relationship behaviour itself with Element Relationship and Data Entry Mode. Organization and Collection Element match either side of the relationship, so a single value returns everything that touches that organization or that element as parent or as child. Leaving Organization blank returns every relationship whose parent plan the responsibility has inventory organization access to, plus the relationships between seeded template plans, which are not owned by an inventory organization and therefore show a blank Organization Code.

Inventory organization security is applied to the parent plan only. A relationship whose parent plan the responsibility can see is listed in full, including the name, description and plan type of a child plan in an organization the responsibility has no access to, because a relationship spans two plans and suppressing the child would leave the row meaningless.

SQL 51 lines

Parameters 7

ParameterTypeList of values SQL
OrganizationLOV
(mp_p.organization_code=:organization or mp_c.organization_code=:organization)
Parent PlanLOV
qp_p.name=:parent_plan
Child PlanLOV
qp_c.name=:child_plan
Collection ElementLOV
(qc_p.name=:collection_element or qc_c.name=:collection_element)
Element RelationshipLOV
qper.element_relationship_type=:element_relationship
Data Entry ModeLOV
qppr.data_entry_mode=:data_entry_mode
Criteria ElementLOV
qppr.plan_relationship_id in (select qpcr.plan_relationship_id from qa_pc_criteria qpcr, qa_chars qc_cr where qpcr.char_id=qc_cr.char_id and qc_cr.name=:criteria_element)