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

ONCTEXT.m

Go to the documentation of this file.
  1. ONCTEXT ;Hines OIFO/GWB - ONCOLOGY TEXT EDITS ;09/29/00
  1. ;;2.2;ONCOLOGY;**1**;Jul 31, 2013;Build 8
  1. ;
  1. ;Maximum NAACCR length text edit
  1. S FIELD=$P(^DD(165.5,FLDNUM,0),U,1)
  1. S (LENGTH,WPIEN)=0
  1. F S WPIEN=$O(^ONCO(165.5,D0,NODE,WPIEN)) Q:WPIEN'>0 D
  1. .S LENGTH=LENGTH+$L(^ONCO(165.5,D0,NODE,WPIEN,0))
  1. I LENGTH>LIMIT D
  1. .W !,*7
  1. .W !," WARNING: ",FIELD," too long: ",LENGTH," characters"
  1. .W !?10,"Text should not exceed NAACCR length of ",LIMIT," characters"
  1. .W !
  1. .N DIR,X S SAVEY=Y
  1. .S DIR("A")=" Do you want to re-edit this field"
  1. .S DIR(0)="Y",DIR("B")="No" D ^DIR
  1. .I (Y=0)!(Y="") S Y=SAVEY Q
  1. .I Y[U S Y="@0" Q
  1. .S Y=FLDNUM
  1. K FIELD,FLDNUM,LENGTH,LIMIT,NODE,SAVEY,WPIEN
  1. Q