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

PRCUFCA.m

Go to the documentation of this file.
  1. PRCUFCA ;WISC/SJG-BUILD FMS SEGMENTS FOR CONVERSION ONLY ;11/26/93 16:10
  1. V ;;5.1;IFCAP;;Oct 20, 2000
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. ; Routine is modification of PRCFFU1 for conversion processing
  1. NEW(RECNO,TRCODE,TYCODE) ;
  1. N NODE0,NODE1,TMPLINE,PRCBUD,INT
  1. S NODE0=$G(^PRC(442,RECNO,0))
  1. S NODE1=$G(^PRC(442,RECNO,1))
  1. S INT=GECSFMS("DA")
  1. DOC ; Build 'DOC' header segments
  1. S TMPLINE=0
  1. D MO2^PRCUFCF(NODE1,TYCODE)
  1. D MO3^PRCUFCB
  1. D MO4^PRCFFU22
  1. S PRCBUD=$$BUD^PRCFFU3(PRCSTR)
  1. I PRCFA("MP")=21 I (TRCODE="SO")&(TYCODE="M") S NUMB=1 D MOA^PRCUFCC Q
  1. N BOC,FMSBOC,LINE,FMSNOD
  1. S BOC="" F S BOC=$O(PRCFA("BOC",BOC)) Q:BOC=""!(BOC'>0) D
  1. .S LINE="" F S LINE=$O(PRCFA("BOC",BOC,LINE)) Q:LINE=""!(LINE'>0) D
  1. ..S FMSBOC=$P(PRCFA("BOC",BOC,LINE),U)
  1. ..S FMSNOD=PRCFCHG("BOC",FMSBOC,LINE)
  1. ..D LIN
  1. ..Q
  1. .Q
  1. QUIT
  1. ;
  1. LIN ; Build 'LIN' line segments
  1. D MOA^PRCUFCC
  1. Q