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

WVRPCPR1.m

Go to the documentation of this file.
  1. WVRPCPR1 ;HIOFO/FT-WV PROCEDURE file (790.1) RPCs (cont.) ;1/2/04 12:24
  1. ;;1.0;WOMEN'S HEALTH;**16**;Sep 30, 1998
  1. ;
  1. ; This routine uses the following IAs:
  1. ; <None>
  1. ;
  1. NORMAL(WVIEN) ; Function determines if a result/dx entry (FILE 790.31) is
  1. ; categorized as Normal or Abnormal.
  1. ; Input: WVIEN - FILE 790.31 entry
  1. ;
  1. ; Output: 0 - NORMAL
  1. ; 1 - ABNORMAL
  1. ; 2 - NO RESULT
  1. ; null - not in FILE 790.31
  1. ;
  1. Q $P($G(^WV(790.31,+WVIEN,0)),U,21)
  1. ;
  1. DXNAME(WVIEN) ; Function to return the name of an entry in the
  1. ; WV RESULTS/DIAGNOSIS file (#790.31).
  1. ; Input: WVIEN = FILE 790.31 ien
  1. ; Output: .01 value or null
  1. I '$G(WVIEN) Q ""
  1. Q $P($G(^WV(790.31,+WVIEN,0)),U,1)
  1. ;
  1. ERROR() ; Function to return the IEN of the "Error/disregard" result/dx from
  1. ; FILE 790.31.
  1. ; Input: <none>
  1. ; Output: FILE 790.31 IEN for "Error/disregard"
  1. Q $O(^WV(790.31,"B","Error/disregard",0))
  1. ;
  1. BRTXIEN(WVNAME) ; Function converts WV BREAST TX NEED (#790.51) name to ien
  1. ; Input: WVNAME = FILE 790.51 name (.01 value)
  1. ; Output: FILE 790.51 IEN or 0 (zero)
  1. ;
  1. I $G(WVNAME)="" Q 0
  1. Q +$O(^WV(790.51,"B",WVNAME,0))
  1. ;
  1. CXTXIEN(WVNAME) ; Function converts WV CERVICAL TX NEED (#790.5) name to ien
  1. ; Input: WVNAME = FILE 790.5 name (.01 value)
  1. ; Output: FILE 790.5 IEN or 0 (zero)
  1. ;
  1. I $G(WVNAME)="" Q 0
  1. Q +$O(^WV(790.5,"B",WVNAME,0))
  1. ;