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

RMPOPED1.m

Go to the documentation of this file.
  1. RMPOPED1 ;EDS/MDB,DDW,RVD - HOME OXYGEN MISC FILE EDITS CONT. ;7/24/98
  1. ;;3.0;PROSTHETICS;**168**;Feb 09, 1996;Build 43
  1. ;
  1. RMPRWARN(RMPRICD,RMPRACS,RMPODFN,ITEM,RMPRCONT) ;
  1. ; Display Inactive ICD code warning.
  1. W !!,"This item contains the ICD Diagnosis Code: ",RMPRICD," which was inactive based"
  1. W !,"on the start date of the currently selected prescription."
  1. W !!,"You may 1) select a different item with no ICD code or with an active ICD code,"
  1. W !," 2) enter a new item or "
  1. W !," 3) proceed with this item. If you proceed with this item, the existing"
  1. W !," ICD Diagnosis code ",RMPRICD," will be DELETED."
  1. W !!,"You may then enter an active ICD-",RMPRACS," Diagnosis code or you may leave"
  1. W !,"the ICD Diagnosis field blank."
  1. ; Prompt user to continue or not
  1. S RMPRCONT=$$CONTINUE()
  1. ; User does want to continue so delete ICD code from currently selected Item
  1. I RMPRCONT=1 D DLTITEM(RMPODFN,ITEM) Q
  1. ; User doesn't want to continue
  1. S ITEM=""
  1. Q
  1. ;
  1. CONTINUE() ;
  1. ; prompt user to continue w/ current Item after warning was issued
  1. N DIR
  1. S DIR("A")="Do you wish to continue? ",DIR(0)="YA"
  1. W !
  1. D ^DIR
  1. W !
  1. I $D(DTOUT)!($D(DUOUT))!($D(DIROUT)) Q -1
  1. ; User quits - back to Item Prompt
  1. I Y<1 Q -1
  1. Q 1
  1. ;
  1. DLTITEM(RMPODFN,ITEM) ;
  1. ; Delete Inactive ICD code from Item
  1. S DA(1)=RMPODFN,DA=ITEM
  1. S DIE="^RMPR(665,"_DA(1)_",""RMPOC"","
  1. S DR="7///@"
  1. D ^DIE
  1. Q
  1. Q
  1. ; End of RMPOPED1