Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ORY1007

ORY1007.m

Go to the documentation of this file.
  1. ORY1007 ;IHS/MSC/MSC - Export Package Level Parameters and install Expert System rule for OR*3*1007 ;05-Nov-2010 14:42;DU
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**128**;Dec 17, 1997;Build 3
  1. MAIN ; main (initial) parameter transport routine
  1. K ^TMP($J,"XPARRSTR")
  1. N ENT,IDX,ROOT,REF,VAL,I
  1. S ROOT=$NAME(^TMP($J,"XPARRSTR")),ROOT=$E(ROOT,1,$L(ROOT)-1)_","
  1. D LOAD
  1. XX2 S IDX=0,ENT="PKG."_"ORDER ENTRY/RESULTS REPORTING"
  1. F S IDX=$O(^TMP($J,"XPARRSTR",IDX)) Q:'IDX D
  1. . N PAR,INST,VAL,ERR
  1. . S PAR=$P(^TMP($J,"XPARRSTR",IDX,"KEY"),U),INST=$P(^("KEY"),U,2)
  1. . M VAL=^TMP($J,"XPARRSTR",IDX,"VAL")
  1. . D EN^XPAR(ENT,PAR,INST,.VAL,.ERR)
  1. K ^TMP($J,"XPARRSTR")
  1. ;
  1. D S^ORY007ES ; expert system rule post install
  1. Q
  1. LOAD ; load data into ^TMP (expects ROOT to be defined)
  1. S I=1 F S REF=$T(DATA+I) Q:REF="" S VAL=$T(DATA+I+1) D
  1. . S I=I+2,REF=$P(REF,";",3,999),VAL=$P(VAL,";",3,999)
  1. . S @(ROOT_REF)=VAL
  1. Q
  1. DATA ; parameter data
  1. ;;9417,"KEY")
  1. ;;ORK CLINICAL DANGER LEVEL^ALLERGIES UNASSESSIBLE
  1. ;;9417,"VAL")
  1. ;;Moderate
  1. ;;9418,"KEY")
  1. ;;ORK PROCESSING FLAG^ALLERGIES UNASSESSIBLE
  1. ;;9418,"VAL")
  1. ;;Disabled