This wiki has undergone a migration to Confluence found Here
<meta name="googlebot" content="noindex">

Arden Syntax:Implementation Guide:MLM to MLM interaction

From HL7Wiki
Revision as of 21:47, 14 November 2013 by Karstenf77 (talk | contribs) (added sample about importing MLMs)
Jump to navigation Jump to search

MLM to MLM interaction

The following examples will illustrate the interactions between MLMs: call other MLMs and import definitions from other MLMs. The first MLM contains nothing more than an object definition.

maintenance:
 title:       showcase_spike_definition;;
 mlmname:     showcase_spike_definition;;
 arden:       Version 2.5;;
 version:     1.0;;
 institution: medexter;;
 author:      Karsten Fehre;;
 specialist:  ;;
 date:        2011-06-22;;
 validation:  testing;;
library:
 purpose:     ;;
 explanation: ;;
 keywords:    ;;
 citations:   ;;
 links:       ;;
knowledge:
 type:		   data_driven;;
 data:        
   guidResult := object [      // result object: result of guidline query
       compliance,             // the compliance of the patient to this guidline
       eOfIntervention,        // the "ease of intervention" 
       text];                  // the text
 ;;
 priority:    ;;
 evoke:       ;;
 logic:       ;;
 action:	 
 ;;
 urgency:     ;;
end:

Using the following two lines in the data slot in an MLM will import the above object definition into this MLM and allows the usage of this object definition within this MLM. This will allow large knowledge bases to share common definitions across all involved MLMs.

   // MLM
   mlmImport       := mlm 'showcase_spike_definition'  from institution "medexter";
   
   // include
   include mlmImport;