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

RADTICK.m

Go to the documentation of this file.
  1. RADTICK ;HIRMFO/GJC-Rad/Nuc Med Dosage Ticket output ;10/29/96 14:21
  1. ;;5.0;Radiology/Nuclear Medicine;;Mar 16, 1998
  1. EN1(RADA1,RADA) ; Entry point to print dosage ticket
  1. ; Input Variables:
  1. ; RADA1: ien for top level of Nuc Med Exam Data file (70.2)
  1. ; RADA : ien for sub-file level of Nuc Med Exam Data file (70.21)
  1. N RAEXAM,RAFDA,RAHD1,RALINE,RAPAT,RAPIEN,RAPROC,RAXAM,RAXIT
  1. D GETS^DIQ(70.2,RADA1_",","**","","RAEXAM")
  1. S RAPIEN=+$P($G(^RADPTN(RADA1,0)),"^"),RAFDA=RADA_","_RADA1_","
  1. S RAXAM=$G(^RADPT(RADFN,"DT",RADTI,"P",RACNI,0))
  1. S RAPROC=$S($P($G(^RAMIS(71,+$P(RAXAM,"^",2),0)),"^")]"":$P(^(0),"^"),1:"Unknown")
  1. D GETS^DIQ(2,+$P($G(^RADPTN(RADA1,0)),"^")_",",".01;.09","","RAPAT") D HDR
  1. W !!?3,"PATIENT: ",$G(RAPAT(2,+$P(RAEXAM,"^")_",",.01))
  1. W !!?3,"PATIENT ID: ",$G(RAPAT(2,+$P(RAEXAM,"^")_",",.09))
  1. W !!?3,"STUDY: ",RAPROC
  1. Q
  1. HDR ; Header for the dosage ticket
  1. W:$Y @IOF
  1. S RAHD1="Radiopharmaceutical Dose Computation and Measurement Record"
  1. S $P(RALINE,"-",($L(RAHD1)+1))=""
  1. W $$CJ^XLFSTR(RAHD1,IOM) W $$CJ^XLFSTR(RALINE,IOM)
  1. Q