Template:— assigning_identification (asg_id) Date: 2010/01/25 22:45:14
Revision: 1.27
Template: assigning_identification

XML references to the Template

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

assigning_identification

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_identification" 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="org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="org_id_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="org_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">
  <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="org_id" value=""/>
  <param_in name="org_id_class_name" value=""/>
  <param_in name="org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="items" value=""/>
</template_example>

assigning_identification
/assigning_identification(id='', id_class_name='', id_ecl_id='urn:plcs:rdl:std', org_id='', org_id_class_name='', org_id_ecl_id='urn:plcs:rdl:std', items='')/

Path

Identification_assignment

-- Mark the Identification_assignment entity as
-- referable when this template is used by binding it to the reference
-- parameter id_assgn
%^id_assgn = Identification_assignment%
Identification_assignment.identifier = @id
Identification_assignment.role = '/IGNORE'
Identification_assignment.description = '/IGNORE'
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)/

-- assign an organization to the identifier and classify it as 'Owner_of'
/assigning_organization(
    items=^id_assgn,
    org_id=@org_id,
    org_id_class_name=@org_id_class_name,
    org_id_ecl_id=@org_id_ecl_id,
    org_assgn_class_name='Owner_of',
    org_assgn_ecl_id='urn:plcs:rdl:std')/
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">
   <instantiate
      entity="Identification_assignment"
      context="">
      
   </instantiate>
   <comment>
      Mark the Identification_assignment entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter id_assgn
   </comment>
   <bind
      parameter="id_assgn">
      <express_entity
         entity="Identification_assignment"
         context="">
         
      </express_entity>
   </bind>
   <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>
   <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>
   <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>
      assign an organization to the identifier and classify it as 'Owner_of'
   </comment>
   <call_template
      name="assigning_organization"
      business_context="">
      <param_in
         name="items"
         value="^id_assgn">
         
      </param_in>
      <param_in
         name="org_id"
         value="@org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@org_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_assgn_class_name"
         value="'Owner_of'">
         
      </param_in>
      <param_in
         name="org_assgn_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved