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

BLRGFRP.m

Go to the documentation of this file.
  1. BLRGFRP ;IHS/ITSC/TPF - ADD THE GFR DELTA CHECK TO THE DELTA CHECK FILE [ 05/28/2003 8:53 AM ]
  1. ;;5.2;LR;**1016**;MAY 27, 2003
  1. S XECUTE="S %X="""" X:$D(LRDEL(1)) LRDEL(1) W:$G(%X)'="""" "" Calculated GFR:"",%X S:LRVRM>10 LRSB($$GETDNAM^BLREXECU(""ESTIMATED GFR""))=%X K %,%X,%Y,%Z,%ZZ"
  1. S OVERFLO="S %ZZ=$$GETDNAM^BLREXECU(""CREATININE"") X:LRVRM>10 ""F %=%ZZ S %X(%)=$S(%=LRSB:X,$D(LRSB(%)):+LRSB(%),1:0)"" X:LRVRM>10 ""F %=%ZZ S %X(%)=$S($D(LRSB(%)):LRSB(%),1:0)"" S %X=$$GFRDEL^BLREXECU(X)"
  1. S DESCRIP="This delta check when added to a test named CREATININE will calculate an estimated Glomerular Filtration Rate (GFR) and stuff the result into the test called ESTIMATED GFR"
  1. S SITENOT="T"
  1. S TEXT="CREATED FOR DR. NARVA SENIOR CLINICIAN INTERNAL MEDICINE AND IHS CONSULTING NEPHROLOGIST."
  1. S DIC=62.1
  1. S DIC(0)="XL"
  1. S X="GFR" ;CREAT NEW DELTA CHECK 'GFR'
  1. D ^DIC
  1. Q:Y<0
  1. S NEWENT=+Y
  1. S DIE=DIC,DA=NEWENT K DIC
  1. S DR="10///^S X=XECUTE;20///^S X=OVERFLO"
  1. D ^DIE
  1. K DIE
  1. ;
  1. S ^LAB(62.1,NEWENT,3,0)="^^3^3^3030327^^^"
  1. S ^LAB(62.1,NEWENT,3,1,0)="This delta check when added to a test named CREATININE will"
  1. S ^LAB(62.1,NEWENT,3,2,0)=" calculate an estimated Glomerular Filtration Rate (GFR) and stuff the result"
  1. S ^LAB(62.1,NEWENT,3,3,0)=" into the test called ESTIMATED GFR"
  1. S ^LAB(62.1,NEWENT,4,0)="^62.131D^1^1"
  1. S ^LAB(62.1,NEWENT,4,1,0)="3030327"
  1. S ^LAB(62.1,NEWENT,4,1,1,0)="^^1^1^3030327^"
  1. S ^LAB(62.1,NEWENT,4,1,1,1,0)="CREATED FOR DR. NARVA SENIOR CLINICIAN INTERNAL MEDICINE AND IHS CONSULTING NEPHROLOGIST."
  1. S ^LAB(62.1,NEWENT,4,"B",3030327,1)=""
  1. Q