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

PXCED800.m

Go to the documentation of this file.
  1. PXCED800 ;WASH/BDB - Used in editing the 800 node, Service Connected conditions ;1/18/05 3:33pm
  1. ;;1.0;PCE PATIENT CARE ENCOUNTER;**124,168**;Aug 12, 1996;Build 14
  1. ;; ;
  1. Q
  1. ;
  1. ; Classification type 1 - Agent Orange
  1. ; 2 - Ionizing Radiation
  1. ; 3 - Service Connected
  1. ; 4 - SW Asia Conditions
  1. ; 5 - Military Sexual Trauma
  1. ; 6 - Cancer of the Head and/or Neck
  1. ; 7 - Combat Veteran
  1. ; 8 - Project 112/SHAD
  1. GET800 ;Used by the Service Connected Conditions
  1. N PXCEINDX,PXOUT
  1. N PXBDATA,PXLOC,PXAPTDT,PXDFN
  1. S PXCEDXSC=""
  1. I $O(^SCE("AVSIT",PXCEVIEN,0)) D CLASS^PXBAPI21("","","","",PXCEVIEN)
  1. I '$O(^SCE("AVSIT",PXCEVIEN,0)) D
  1. . S PXAPTDT=+^AUPNVSIT(PXCEVIEN,0)
  1. . S PXDFN=$P(^AUPNVSIT(PXCEVIEN,0),"^",5)
  1. . S PXLOC=$P(^AUPNVSIT(PXCEVIEN,0),"^",22)
  1. . D CLASS^PXBAPI21("",PXDFN,PXAPTDT,PXLOC,"")
  1. F PXCEINDX=1:1:8 I $G(PXBDATA("ERR",PXCEINDX))=4 S PXOUT=PXBDATA("ERR",PXCEINDX)
  1. I $D(PXOUT) S PXCEEND=1 Q
  1. S $P(PXCEDXSC,"^",1)=$P($G(PXBDATA(3)),"^",2)
  1. I +PXCEDXSC S (PXDATA(1),PXDATA(2),PXDATA(4))="^^"
  1. S $P(PXCEDXSC,"^",2)=$P($G(PXBDATA(1)),"^",2)
  1. S $P(PXCEDXSC,"^",3)=$P($G(PXBDATA(2)),"^",2)
  1. S $P(PXCEDXSC,"^",4)=$P($G(PXBDATA(4)),"^",2)
  1. S $P(PXCEDXSC,"^",5)=$P($G(PXBDATA(5)),"^",2)
  1. S $P(PXCEDXSC,"^",6)=$P($G(PXBDATA(6)),"^",2)
  1. S $P(PXCEDXSC,"^",7)=$P($G(PXBDATA(7)),"^",2)
  1. S $P(PXCEDXSC,"^",8)=$P($G(PXBDATA(8)),"^",2)
  1. Q
  1. ;