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.
  1. AGRD2 ;IHS/OIRM/MLP - READ 271 FILE SEGMENT TYPES
  1. ;;7.1;PATIENT REGISTRATION;;AUG 25,2005
  1. BHT ;BHT SEGMENT ID
  1. S ^AG271(DT,CNUM,SEGID,"TPURPOSECODE")=$P(SEGDATA,D2,2)
  1. S ^AG271(DT,CNUM,SEGID,"REFID")=$P(SEGDATA,D2,3)
  1. S ^AG271(DT,CNUM,SEGID,"DATE")=$P(SEGDATA,D2,4)
  1. S ^AG271(DT,CNUM,SEGID,"TIME")=$P(SEGDATA,D2,5)
  1. Q
  1. HL ;HL SEGMENT ID
  1. S ^AG271(DT,CNUM,SEGID,"HIDNUM")=$P(SEGDATA,D2)
  1. S ^AG271(DT,CNUM,SEGID,"HILCODE")=$P(SEGDATA,D2,3)
  1. S ^AG271(ST,CNUM,SEGID,"HICCODE")=$P(SEGDATA,D2,4)
  1. Q
  1. AAA ;AAA SEGMENT IF
  1. S ^AG271(DT,CNUM,SEGID,"RCODE")=$P(SEGDATA,D2)
  1. S ^AG271(DT,CNUM,SEGID,"REJECT")=$P(SEGDATA,D2,3)
  1. S ^AG271(DT,CNUM,SEGID,"FOLLOWUP")=$P(SEGADTA,D2,4)