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

Difference between revisions of "Arden Syntax:Implementation Guide:MLM to MLM interaction"

From HL7Wiki
Jump to navigation Jump to search
 
Line 6: Line 6:
 
The first MLM contains nothing more than an object definition.
 
The first MLM contains nothing more than an object definition.
 
  maintenance:
 
  maintenance:
   title:      showcase_spike_definition;;
+
   title:      sample_object_definition;;
   mlmname:    showcase_spike_definition;;
+
   mlmname:    sample_object_definition;;
   arden:      Version 2.5;;
+
   arden:      Version 2.9;;
 
   version:    1.0;;
 
   version:    1.0;;
   institution: medexter;;
+
   institution: Medexter Healthcare;;
 
   author:      Karsten Fehre;;
 
   author:      Karsten Fehre;;
 
   specialist:  ;;
 
   specialist:  ;;
   date:        2011-06-22;;
+
   date:        2013-11-13;;
 
   validation:  testing;;
 
   validation:  testing;;
 
  library:
 
  library:

Latest revision as of 22:36, 15 November 2013

samples taken from 'VHA CHIO Innovation project "Enhanced Clinical Decision Support for CPRS': Link

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:       sample_object_definition;;
 mlmname:     sample_object_definition;;
 arden:       Version 2.9;;
 version:     1.0;;
 institution: Medexter Healthcare;;
 author:      Karsten Fehre;;
 specialist:  ;;
 date:        2013-11-13;;
 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;

In large knowledge bases it is often necessary to be able to use particular calculations or part of rules frequently. For this purpose the reusable parts of the rules can be stored in separate MLMs, which can then be accessed by all MLMs of the appropriate knowledge base. In addition, this increases the readability and maintainability of the knowledge base and allows the reuse of the outsourced parts in new knowledge bases.