Template:— representing_condition_relationship (rep_cond_rel) Date: 2008/02/27 21:47:38
Revision: 1.7
Template: representing_condition_relationship

XML references to the Template

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

representing_condition_relationship

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_condition_relationship" capability="representing_condition">
  <param name="class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="relating">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_condition_relationship">
  <param_in name="class_name" value=""/>
  <param_in name="ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="relating" value=""/>
  <param_in name="related" value=""/>
</template_example>

representing_condition_relationship
/representing_condition_relationship(class_name='', ecl_id='urn:plcs:rdl:std', relating='', related='')/

Path

Condition_relationship

-- Mark the Condition_relationship entity as
-- referable when this template is used by binding it to the reference
-- parameter cond_rel
%^cond_rel = Condition_relationship%
Condition_relationship.name = '/IGNORE'
Condition_relationship.description = '/IGNORE'
Condition_relationship.relating_condition -> @relating
Condition_relationship.related_condition -> @related

-- provide the role of the condition relationship by classifying the Condition_relationship
/assigning_reference_data(
    items=^cond_rel,
    class_name=@class_name,
    ecl_id=@ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Condition_relationship.name '/IGNORE'
Condition_relationship.description '/IGNORE'

XML representation of path

<refpath
   template="representing_condition_relationship">
   <instantiate
      entity="Condition_relationship"
      context="">
      
   </instantiate>
   <comment>
      Mark the Condition_relationship entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter cond_rel
   </comment>
   <bind
      parameter="cond_rel">
      <express_entity
         entity="Condition_relationship"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Condition_relationship"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Condition_relationship"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Condition_relationship"
            attribute="relating_condition"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="relating">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Condition_relationship"
            attribute="related_condition"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      provide the role of the condition relationship by classifying the Condition_relationship
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^cond_rel">
         
      </param_in>
      <param_in
         name="class_name"
         value="@class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved