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

BMCAERR.m

Go to the documentation of this file.
  1. BMCAERR ; IHS/PHXAO/TMJ - add/edit routine referral definition ;
  1. ;;4.0;REFERRED CARE INFO SYSTEM;**8**;JAN 09, 2006;Build 101
  1. ;
  1. ;
  1. EN ;EP - called from option
  1. W:$D(IOF) @IOF
  1. W !!,"This option is used to add or edit a routine referral definition. The user",!,"can enter all default values to be used when the routine referral is",!,"selected by the provider.",!!
  1. LOOKUP ;get referral to edit or add new one
  1. S DIC="^BMCRTNRF(",DIC(0)="AEMQL",DIC("A")="Enter NAME of Routine Referral: " D DIC^BMCFMC
  1. I Y=-1 W !!,"No referral selected. Bye.",! Q
  1. S BMCRREF=+Y
  1. ;
  1. SM ;call screenman to edit
  1. S BMCSCOD="",BMCSTRM="" ;BMC*4.0*8
  1. S BMCMODE="R",BMCSCOD=$P($G(^BMCRTNRF(BMCRREF,13)),U,3) S:BMCSCOD BMCSTRM=$P($$CONC^BSTSAPI(BMCSCOD_"^^^1"),U,2) ;BMC*4.0*8
  1. S DDSFILE=90001.32,DA=BMCRREF,DR="[BMC ADD/EDIT ROUTINE REF DEF]",DDSPARM="C"
  1. D DDS^BMCFMC
  1. I $D(DIMSG) W !!,"ERROR IN SCREENMAN - NOTIFY PROGRAMMER!" D EOJ Q
  1. ;
  1. D VREF
  1. ICD ;prompt for ICD/CPT codes, using DIE and input template
  1. W !!
  1. S DA=BMCRREF,DR="[BMC ADD/EDIT RTN REF DX/CPT]",DIE="^BMCRTNRF(" D DIE^BMCFMC
  1. EOJ ;
  1. K BMCRREF
  1. D ^XBFMK
  1. Q
  1. VREF ;EP FR BMCADD3 ;BMC*4.0*8 NEW SECTION TO SET V REF SNOMED CODE
  1. S DIE="^BMCRTNRF(",DA=BMCRREF
  1. S DR="1303////"_BMCSCOD
  1. D ^DIE
  1. Q