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

RAIPS206.m

Go to the documentation of this file.
  1. RAIPS206 ;WOIFO/KLM - Post-init Driver, patch 206 ; Sep 26, 2023@09:50:23
  1. ;;5.0;Radiology/Nuclear Medicine;**206**;Mar 16, 1998;Build 8
  1. ;
  1. ;Supported IA #1571 ^LEX(757.01
  1. ;
  1. BIRADS ;updates to BIRADS
  1. ;Add New codes
  1. N RAFDA,RADNUM,RAI,RADX,RA001,RA01,RA2,RA3,RA4,RAMSG
  1. F RAI=1:1 S RADX=$T(CODES+RAI) Q:RADX="" D
  1. .S RA001=$P($P(RADX,";",3),"^"),RA01=$P($P(RADX,";",3),"^",2),RA2=$P($P(RADX,";",3),"^",3),RA3=$P($P(RADX,";",3),"^",4),RA4=$P($P(RADX,";",3),"^",5)
  1. .Q:RA001=""
  1. .S RAFDA(78.3,"+1,",.01)=RA01 ; DIAG CODE
  1. .S RAFDA(78.3,"+1,",2)=RA2 ; DIAG DESC
  1. .S RAFDA(78.3,"+1,",3)=RA3 ; PRINT ON ABN REPORT
  1. .S RAFDA(78.3,"+1,",4)=RA4 ; GENERATE ALERT
  1. .S:RA001=1110 RAFDA(78.3,"+1,",100)="Incomplete: Need prior mammograms for comparison" ;DISPLAY TEXT
  1. .S RADNUM(1)=RA001
  1. .D UPDATE^DIE("","RAFDA","RADNUM","RAMSG")
  1. .;Capture any "DIERR" messages - they will tell us if an IEN already existed. They shouldn't but you never know.
  1. .I $D(RAMSG("DIERR")) D
  1. ..S RATXT(1)="Error filing BI-RADS code "_RA001 D BMES^XPDUTL(.RATXT)
  1. ..Q
  1. .Q
  1. ;
  1. ABN ;Set "Print on Abnormal Report" field for 1101 and 1102
  1. N RAIENS,RADX F RADX=1101,1102 D
  1. .S RAIENS=RADX_","
  1. .S RAFDA(78.3,RAIENS,3)="Y" ; PRINT ON ABN REPORT
  1. .K RAERR D FILE^DIE("E","RAFDA","RAERR")
  1. .I $D(RAERR("DIERR")) S RATXT(1)="Error updating BIRAD code "_RADX
  1. .I $G(RATXT(1))="" S RATXT(1)=RADX_" Updated"
  1. .D BMES^XPDUTL(.RATXT)
  1. .K RAERR,RATXT
  1. .Q
  1. ;
  1. EXP ;Expression field update (data type changed from 757.01 pointer to free text).
  1. N RADX,RAEXP
  1. F RADX=1100:1:1106 D
  1. .S RAEXP=$P(^RA(78.3,RADX,0),U,6) Q:$G(RAEXP)=""!($G(RAEXP)'?2N)
  1. .S $P(^RA(78.3,RADX,1),U)=$$GET1^DIQ(757.01,RAEXP,.01)
  1. .Q
  1. Q
  1. CODES ; NUMBER^CODE^DESC^PRINT^ALERT
  1. ;;1107^BI-RADS R^Post-Procedure Mammogram for Marker Placement^Y^n
  1. ;;1110^BI-RADS CATEGORY 0^Incomplete: Need Prior Mammograms for Comparison^Y^y