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

AGRD2.m

Go to the documentation of this file.
AGRD2 ;IHS/OIRM/MLP - READ 271 FILE SEGMENT TYPES   
 ;;7.1;PATIENT REGISTRATION;;AUG 25,2005
BHT ;BHT SEGMENT ID
 S ^AG271(DT,CNUM,SEGID,"TPURPOSECODE")=$P(SEGDATA,D2,2)
 S ^AG271(DT,CNUM,SEGID,"REFID")=$P(SEGDATA,D2,3)
 S ^AG271(DT,CNUM,SEGID,"DATE")=$P(SEGDATA,D2,4)
 S ^AG271(DT,CNUM,SEGID,"TIME")=$P(SEGDATA,D2,5)
 Q
HL ;HL SEGMENT ID
 S ^AG271(DT,CNUM,SEGID,"HIDNUM")=$P(SEGDATA,D2)
 S ^AG271(DT,CNUM,SEGID,"HILCODE")=$P(SEGDATA,D2,3)
 S ^AG271(ST,CNUM,SEGID,"HICCODE")=$P(SEGDATA,D2,4)
 Q
AAA ;AAA SEGMENT IF
 S ^AG271(DT,CNUM,SEGID,"RCODE")=$P(SEGDATA,D2)
 S ^AG271(DT,CNUM,SEGID,"REJECT")=$P(SEGDATA,D2,3)
 S ^AG271(DT,CNUM,SEGID,"FOLLOWUP")=$P(SEGADTA,D2,4)