Template:— safety_case (sfty_case) Context:— UK_Defence | 
            Date: 2010/03/15 15:09:15  Revision: 1.3 
             | 
         
      
      
      These can be cut and pasted into the XML as required.
      
         
            Set up a hyperlink to the template definition.
<template_ref name="safety_case" context="UK_Defence" />
         
         
            Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="safety_case" context="UK_Defence" >
  <param name="Addressed_hazards">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Derived_from">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID_source_organization">
    <param_value>UK_Defence</param_value>
    <description></description>
  </param>
  <param name="Name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Owner">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Purpose">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Related_PSE">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Safety_claims">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="Type">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>
         
         
            Setup  a template_example:
<template_example name="safety_case">
  <param_in name="Addressed_hazards" value=""/>
  <param_in name="Derived_from" value=""/>
  <param_in name="ID" value=""/>
  <param_in name="ID_source_organization" value="UK_Defence"/>
  <param_in name="Name" value=""/>
  <param_in name="Owner" value=""/>
  <param_in name="Purpose" value=""/>
  <param_in name="Related_PSE" value=""/>
  <param_in name="Safety_claims" value=""/>
  <param_in name="Type" value=""/>
</template_example>
         
         
            
            /
safety_case(Addressed_hazards='', Derived_from='', ID='', ID_source_organization='UK_Defence', Name='', Owner='', Purpose='', Related_PSE='', Safety_claims='', Type='')/
            
 
         
      
      -- Representing document /
representing_document(
    doc_id=@ID, 
    doc_id_class_name='Safety_case_identifier', 
    doc_id_ecl_id='urn:plcs:rdl:uk_defence', 
    doc_org_id=@ID_source_organization, 
    doc_org_id_class_name='Organization_name', 
    doc_org_id_ecl_id='urn:plcs:rdl:std', 
    doc_vn_id=/NULL, 
    doc_vn_id_class_name='Version_identification_code', 
    doc_vn_id_ecl_id='urn:plcs:rdl:std', 
    doc_vn_org_id='/NULL', 
    doc_vn_org_id_class_name='Organization_name', 
    doc_vn_org_id_ecl_id='urn:plcs:rdl:std', 
    domain='Product_life_cycle_support', 
    domain_ecl_id='urn:plcs:rdl:std', 
    life_cycle_stage='Support_stage', 
    life_cycle_stage_ecl_id='urn:plcs:rdl:std')/
%^sfty_cse = $representing_document.document%
-- Create relationship to owner Organization_or_person_in_organization_assignmentOrganization_or_person_in_organization_assignment.items -> 
         ^sfty_cse
Organization_or_person_in_organization_assignment.assigned_entity -> 
@OwnerOrganization_or_person_in_organization_assignment.role =  '/IGNORE' 
%^ownr = 
Organization_or_person_in_organization_assignment%
/
assigning_reference_data(
    class_name='Owner_of', 
    ecl_id='urn:plcs:rdl:uk_defence', 
    items=^ownr)/
-- Create relationship to Addressed_hazards Document_assignmentDocument_assignment.role =  '/IGNORE' 
Document_assignment.assigned_document -> 
         ^sfty_cse
Document_assignment.is_assigned_to -> 
@Addressed_hazards%^ah = 
Document_assignment%
/
assigning_reference_data(
    class_name='Addressed_hazards', 
    ecl_id='urn:plcs:rdl:uk_defence', 
    items=^ah)/
-- Create relationship to Related_PSE Document_assignmentDocument_assignment.role =  '/IGNORE' 
Document_assignment.assigned_document -> 
         ^sfty_cse
Document_assignment.is_assigned_to -> 
@Related_PSE%^rpse = 
Document_assignment%
/
assigning_reference_data(
    class_name='Related_PSE', 
    ecl_id='urn:plcs:rdl:uk_defence', 
    items=^rpse)/
-- [Optional Derived_from] Document_assignmentDocument_assignment.role =  '/IGNORE' 
Document_assignment.assigned_document -> 
         ^sfty_cse
Document_assignment.is_assigned_to -> 
@Derived_from%^df = 
Document_assignment%
/
assigning_reference_data(
    class_name='Derived_from_analysis', 
    ecl_id='urn:plcs:rdl:uk_defence', 
    items=^df)/
-- Create relationship to Safety_claims Document_assignmentDocument_assignment.role =  '/IGNORE' 
Document_assignment.assigned_document -> 
         ^sfty_cse
Document_assignment.is_assigned_to -> 
@Safety_claims%^sc = 
Document_assignment%
/
assigning_reference_data(
    class_name='Safety_claims', 
    ecl_id='urn:plcs:rdl:uk_defence', 
    items=^sc)/
-- Name /
identifier(
    ID=@Name, 
    source_organization=@ID_source_organization, 
    type='Name', 
    items=^sfty_cse)/
-- Purpose /
assigning_descriptor(
    descr=@Purpose, 
    class_name='Purpose', 
    ecl_id='urn:plcs:rdl:uk_defence', 
    is_assigned_to=^sfty_cse)/
-- Type /
assigning_reference_data(
    class_name=@Type, 
    ecl_id='urn:plcs:rdl:uk_defence', 
    items=^sfty_cse)/