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

DVBA239P.m

Go to the documentation of this file.
  1. DVBA239P ;ALB/JDG - AMIE EXAM (#396.6) FILE ENTRY ; 12/30/21@09:30
  1. ;;2.7;AMIE;**239**;Apr 10, 1995;Build 1
  1. ;
  1. ;this routine is used as a post-init in a KIDS build
  1. ;to modify the AMIE EXAM file (#396.6)
  1. ;
  1. Q
  1. ;
  1. ;
  1. EN ;
  1. N DVBAMES,DVBI,DVBJ,DVBAREF,DIC,X
  1. S DVBAMES=0
  1. D BMES^XPDUTL("Updating the AMIE EXAM file (#396.6)...")
  1. D DVBANEW ; addition of new exam entry
  1. Q:DVBAMES=1 D BMES^XPDUTL("Update to the AMIE EXAM file (#396.6) completed.")
  1. Q
  1. DVBANEW ;Add new exams
  1. F DVBI=1:1 S DVBJ=$P($T(NEWEXAM+DVBI),";;",2) Q:DVBJ="QUIT" D
  1. .S DVBAREF=$P((DVBJ),"^",1)
  1. .I $D(^DVB(396.6,"B",DVBAREF)) D DVBAERR Q
  1. .K DO
  1. .S DIC="^DVB(396.6,",DIC(0)="L",DIC("DR")=$P((DVBJ),"^",2),X=DVBAREF
  1. .D FILE^DICN
  1. .D BMES^XPDUTL("** "_DVBAREF_" has been added to the AMIE EXAM file (#396.6) **")
  1. Q
  1. DVBAERR ;Message to the user that the file entry already exists.
  1. D BMES^XPDUTL("*** A FILE ENTRY FOR EXAM NAME "_DVBAREF_" HAS ALREADY BEEN CREATED ***") S DVBAMES=1
  1. Q
  1. NEWEXAM ;exam to be added
  1. ;;DBQ Spina bifida^.01///DBQ Spina bifida;.5///A;6///DBQ SPINA BIFIDA;2///SPECIAL;7///DVBCQDRV
  1. ;;QUIT
  1. Q