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

LEXDDTV.m

Go to the documentation of this file.
  1. LEXDDTV ;ISL/KER - Display Defaults - Vocabulary ;04/21/2014
  1. ;;2.0;LEXICON UTILITY;**80**;Sep 23, 1996;Build 1
  1. ;
  1. ; Global Variables
  1. ; None
  1. ;
  1. ; External References
  1. ; None
  1. ;
  1. SUB ; Select between Logical and Physical Subsets
  1. ; Required LEXSUB Optional LEXDICS
  1. N LEXTCTR,LEXTD,LEXTI,LEXTIC,LEXTL,LEXTN,LEXTSTR,LEXT,LEXTV
  1. K LEX S:'$L($G(LEXSUB)) LEX="WRD"
  1. S:$L($G(LEXSUB)) LEX=LEXSUB
  1. S:'$D(LEXSTLN) LEXSTLN=56
  1. S LEXTI=0,(LEXTIC,LEXTN,LEXTV,LEXTD)="" D INT
  1. K:LEXSTLN=56 LEXSTLN Q
  1. INT ; Interpret string
  1. ; LEXSUB is an Application Subset "AB"
  1. I $D(^LEXT(757.2,"AB",LEX)) D
  1. . S LEXTIC=$O(^LEXT(757.2,"AB",LEX,0))
  1. . S LEXTN=$P($G(^LEXT(757.2,+LEXTIC,0)),"^",1)
  1. . I +LEXTIC'=1 S LEXTN=LEXTN_" Subset"
  1. ; LEXSUB is a Compiled Subset "AA"
  1. I $D(^LEXT(757.2,"AA",LEX)) D
  1. . S LEXTIC=$O(^LEXT(757.2,"AA",LEX,0))
  1. . S LEXTN=$P($G(^LEXT(757.2,+LEXTIC,0)),"^",1)
  1. . I +LEXTIC'=1 S LEXTN=LEXTN_" Subset"
  1. ; View of a Subset - DIC("S") with LEXSUB
  1. I $L($G(LEXDICS)) D
  1. . S LEXTD=""
  1. . F S LEXTD=$O(^LEXT(757.2,"AB",LEXTD)) Q:LEXTD=""!(LEXTV'="") D
  1. . . S LEXTL=$O(^LEXT(757.2,"AB",LEXTD,0)) Q:+LEXTL'>0
  1. . . I $G(^LEXT(757.2,+LEXTL,6))=LEXDICS D
  1. . . . S LEXTV=$P($G(^LEXT(757.2,+LEXTL,0)),"^",1)
  1. ; Build temporary phrase
  1. I LEXTV'="",LEXTN'="" S LEX("V",1)=LEXTV_" view of the "_LEXTN
  1. I LEXTV="",LEXTN'="" K LEX("V")
  1. ; Process phrase
  1. I $D(LEX("V",1)) D
  1. . S LEX("V",0)=1,LEXT="V",LEXTCTR=0,LEXTSTR=""
  1. . D CONCAT^LEXDDT2 K LEX("V")
  1. . I $E(LEXTSTR,$L(LEXTSTR))?1P S LEXTSTR=$E(LEXTSTR,1,($L(LEXTSTR)-1))
  1. . I $E(LEXTSTR,$L(LEXTSTR))?1P S LEXTSTR=$E(LEXTSTR,1,($L(LEXTSTR)-1))
  1. . D EOC^LEXDDT2
  1. Q