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

MAGJMN3.m

Go to the documentation of this file.
  1. MAGJMN3 ;WIRMFO/JHC - VRad Maint functions ; 10/17/2022
  1. ;;3.0;IMAGING;**18,120,341**;Dec 21, 2022;Build 28
  1. ;; Per VHA Directive 2004-038, this routine should not be modified.
  1. ;; +---------------------------------------------------------------+
  1. ;; | Property of the US Government. |
  1. ;; | No permission to copy or redistribute this software is given. |
  1. ;; | Use of unreleased versions of this software requires the user |
  1. ;; | to execute a written test agreement with the VistA Imaging |
  1. ;; | Development Office of the Department of Veterans Affairs, |
  1. ;; | telephone (301) 734-0100. |
  1. ;; | The Food and Drug Administration classifies this software as |
  1. ;; | a medical device. As such, it may not be changed in any way. |
  1. ;; | Modifications to this software may result in an adulterated |
  1. ;; | medical device under 21CFR820, the use of which is considered |
  1. ;; | to be a violation of US Federal Statutes. |
  1. ;; +---------------------------------------------------------------+
  1. ;;
  1. ;; ISI IMAGING;**99**
  1. Q
  1. ;
  1. YN(MSG,DFLT) ; get Yes/No reply
  1. N X I $G(DFLT)="" S DFLT="N"
  1. W !
  1. S DFLT=$E(DFLT),DFLT=$S(DFLT="N":"NO",1:"YES")
  1. YN1 W !,MSG_" "_DFLT_"// "
  1. R X:DTIME S:X="" X=DFLT S X=$E(X),X=$TR(X,"ynYN","YNYN")
  1. I "YN"'[X W " ??? Enter YES or NO",! G YN1
  1. Q X
  1. ;
  1. EECPT ;Enter/Edit CPT MATCHING SET
  1. W @IOF,!!?10,"** Enter/Edit ISI Rad RAD CPT MATCHING CPT CODE **",!! ; ISI
  1. N MAGIEN
  1. K DIC S (DIC,DLAYGO)=2006.67,DIC(0)="ALMEQN"
  1. D ^DIC I Y=-1 K DIC,DIE,DR,DLAYGO Q
  1. S DIE=2006.67,DA=+Y,DR="1;3;4;5"
  1. S MAGIEN=DA
  1. D ^DIE I '$D(DA) G EECPT
  1. G EECPT
  1. Q
  1. INCPT ; Inquire MAG RAD CPT MATCHING
  1. W @IOF,!!?10,"** Inquire ISI Rad CPT MATCHING CPT CODE **",!! ; ISI
  1. N DATA,I,ZJ
  1. INC1 W !! S DIC=2006.67,DIC(0)="AMEQ"
  1. D ^DIC I Y=-1 K DIC Q
  1. S DA=+Y,DATA=$P(Y,U,2)
  1. S DATA="CPT^"_DATA_"|"
  1. D DATADUMP^MAGJUTL4(.ZJ,DATA)
  1. W ! S T=+$G(@ZJ@(0)) F I=1:1:T S X=$G(^(I)) W !,X
  1. G INC1
  1. Q
  1. PRCPT ;Print MAG RAD CPT MATCHING LOGIC
  1. N FLDS
  1. W @IOF,!!?10,"** Print ISI Rad CPT MATCHING CPT CODE **",!! ; ISI
  1. W !! S DIC=2006.67,L=0,FLDS="[MAGJ CPT MATCH PRT]"
  1. D EN1^DIP
  1. R !,"Enter RETURN to continue: ",X:DTIME W !
  1. Q
  1. ;
  1. END ;