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

YS137PST.m

Go to the documentation of this file.
  1. YS137PST ;SLC/KCM - MH Exchange Sample Code ; 08-AUG-2016
  1. ;;5.01;MENTAL HEALTH;**137**;Dec 30, 1994;Build 273
  1. ;
  1. PRE ; nothing necessary
  1. Q
  1. POST ; post-init
  1. ; UPDSET^YTXCHG("TAG","RTN") will loop through the array returned by TAG^RTN
  1. ; and install the specification supplied by that Instrument Exchange entry
  1. ; name.
  1. ;
  1. D INSTALLQ^YTXCHG("XCHGLST","YS137PST")
  1. N IEN
  1. F I="AD8","CES","EPDS","FTND","MPI-PAIN-INTRF","IJSS","BASIS-24 PSYCHOSIS" D
  1. .S IEN=$O(^YTT(601.71,"B",I,""))
  1. .I IEN'="",$D(^YTT(601.71,IEN,8)) D
  1. ..S:$P(^YTT(601.71,IEN,8),"^",8)'="N" $P(^YTT(601.71,IEN,8),"^",8)="Y"
  1. Q
  1. ;
  1. SCREEN ; sample line to put in DATA SCREEN of KIDS build
  1. ; $$INCLUDE^YTXCHG(Y,"TAG","RTN") calls TAG^RTN to get an array of
  1. ; instrument exchange entries to include in the build. It sets Y
  1. ; to true if the entry should be included.
  1. ;
  1. I $$INCLUDE^YTXCHG(Y,"XCHGLST","YS137PST")
  1. Q
  1. ;
  1. XCHGLST(ARRAY) ; return array of instrument exchange entries
  1. ; ARRAY(cnt,1)=instrument exchange entry name
  1. ; ARRAY(cnt,2)=instrument exchange entry creation date
  1. ;
  1. N I,X
  1. F I=1:1 S X=$P($T(ENTRIES+I),";;",2,99) Q:X="zzzzz" D
  1. . S ARRAY(I,1)=$P(X,U)
  1. . S ARRAY(I,2)=$P(X,U,2)
  1. Q
  1. ENTRIES ; New MHA instruments ^ Exchange Entry Date
  1. ;;YS*5.01*137^11/13/2018@19:10
  1. ;;zzzzz
  1. ;;YS*5.01*137 T20^10/17/2018@14:30:44
  1. ;;YS*5.01*137 CES^10/17/2018@15:19:48
  1. ;;YS*5.01*137 V21^10/30/2018@14:56:07
  1. ;;137 TEST FOR PNOTES^12/11/2018@11:38:30
  1. ;;YS*5.01*137^11/13/2018@19:10