Template:— assigning_identification_with_no_organization (asg_noorg_id) Date: 2008/02/27 02:53:54
Revision: 1.18
Template: assigning_identification_with_no_organization

XML references to the Template

These can be cut and pasted into the XML as required.

assigning_identification_with_no_organization

Set up a hyperlink to the template definition.
<template_ref name="assigning_identification_with_no_organization" capability="assigning_identifiers"/>

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_identification_with_no_organization" capability="assigning_identifiers">
  <param name="id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="items">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_identification_with_no_organization">
  <param_in name="id" value=""/>
  <param_in name="id_class_name" value=""/>
  <param_in name="id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="items" value=""/>
</template_example>

assigning_identification_with_no_organization
/assigning_identification_with_no_organization(id='', id_class_name='', id_ecl_id='urn:plcs:rdl:std', items='')/

Path

-- Instantiate an Identification_assignment
Identification_assignment

-- Bind the Identification_assignment to the parameter ^id_assgn
-- The parameter is a reference parameter so the
-- Identification_assignment entity can be referred to when this
-- template is used.
%^id_assgn = Identification_assignment%

-- Set the value of the identifier attribute to the value of the
-- parameter @id - the identifier of the organization
Identification_assignment.identifier = @id

-- Set the Identification_assignment attributes role and description
-- to be ignored
Identification_assignment.role = '/IGNORE'
Identification_assignment.description = '/IGNORE'

-- Assign the Identification_assignment.items to the instance
-- of an Organization passed into the template through the
-- @organization input parameter
Identification_assignment.items -> @items

-- provide the role of the identification by classifying the Identification_assignment
/assigning_reference_data(
    items=^id_assgn,
    class_name=@id_class_name,
    ecl_id=@id_ecl_id)/

-- The template assigning_reference_data has an external reference, ext_class,
-- the external class that is being used in the classification.
-- Bind this to the local external reference ext_class
%^ext_class = $assigning_reference_data.ext_class%
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Identification_assignment.identifier @id
Identification_assignment.role '/IGNORE'
Identification_assignment.description '/IGNORE'

XML representation of path

<refpath
   template="assigning_identification_with_no_organization">
   <comment>
      Instantiate an Identification_assignment
   </comment>
   <instantiate
      entity="Identification_assignment"
      context="">
      
   </instantiate>
   <comment>
      Bind the Identification_assignment to the parameter ^id_assgn
   </comment>
   <comment>
      The parameter is a reference parameter so the
   </comment>
   <comment>
      Identification_assignment entity can be referred to when this
   </comment>
   <comment>
      template is used.
   </comment>
   <bind
      parameter="id_assgn">
      <express_entity
         entity="Identification_assignment"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the value of the identifier attribute to the value of the
   </comment>
   <comment>
      parameter @id - the identifier of the organization
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="identifier"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="id">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Set the Identification_assignment attributes role and description
   </comment>
   <comment>
      to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Assign the Identification_assignment.items to the instance
   </comment>
   <comment>
      of an Organization passed into the template through the
   </comment>
   <comment>
      @organization input parameter
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="items">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      provide the role of the identification by classifying the Identification_assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^id_assgn">
         
      </param_in>
      <param_in
         name="class_name"
         value="@id_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@id_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      The template assigning_reference_data has an external reference, ext_class,
   </comment>
   <comment>
      the external class that is being used in the classification.
   </comment>
   <comment>
      Bind this to the local external reference ext_class
   </comment>
   <bind
      parameter="ext_class">
      <template_instance
         template="assigning_reference_data"
         parameter="ext_class">
         
      </template_instance>
   </bind>
</refpath>

© OASIS 2010 — All rights reserved