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

INHVTMT6.m

Go to the documentation of this file.
  1. INHVTMT6 ; DGH,FRW,CHEM,WAB,KAC ; 06 Aug 1999 15:34:58; Multi-threaded TCP/IP socket utilities
  1. ;;3.01;BHL IHS Interfaces with GIS;;JUL 01, 2001
  1. ;COPYRIGHT 1991-2000 SAIC
  1. Q
  1. ;
  1. INITPDTS ; PDTS-specific initialization of constants.
  1. ;
  1. ; Called by: INHVTMT after INIT^INHUVUT
  1. ;
  1. ;Input:
  1. ; INIP("SOM") - (pbr) Start of msg
  1. ; INIP("SOD") - (pbr) Start of data (End of ENP hdr)
  1. ; INIP("EOL") - (pbr) End of line (End of segment)
  1. ; INIP("FS") - (pbr) Field Separator
  1. ; INIP("EOM") - (pbr) End of msg (= End of data)
  1. ;
  1. ; PDTS-specific constants/defaults
  1. N INDELIM
  1. S INDELIM=$$FIELD^INHUT()
  1. S INIP("SOM")=$S('$L($G(INIP("SOM"))):$C(223)_$C(44)_$C(223),(INIP("SOM")=$C(11)):$C(223)_$C(44)_$C(223),1:INIP("SOM"))
  1. S INIP("EOM")=$S('$L($G(INIP("EOM"))):$C(225),(INIP("EOM")=$C(28)):$C(225),1:INIP("EOM"))
  1. S INIP("EOL")=$S('$L($G(INIP("EOL"))):$C(29),(INIP("EOL")=$C(13)):$C(29),1:INIP("EOL"))
  1. S INIP("SOD")=$C(224)
  1. S INIP("FS")=$C(28)
  1. ;
  1. I $L($G(INIP("INIT"))) S INIP("INIT")=$P($G(^INTHPC(INBPN,1)),U,8)
  1. E D
  1. .; create dummy transaction
  1. . S INIP("INIT")="02DQDUMMYTRXSITEPDTSLENG"_INIP("SOD")_"6004263201DD 770306 7703609 11111111111 01 0000000011000000000^C92^CAHAL ^CBTEST ^CP44087 "_INIP("EOL")
  1. . S INIP("INIT")=INIP("INIT")_"12345670000060030000173042800100000{000000000 199904290000000000{^E700060000"
  1. ;
  1. S INIP("INIT")=$TR(INIP("INIT"),INDELIM,INIP("FS"))
  1. ;Following logic is CHCS specific. Must be re-written if used by IHS
  1. ;S $E(INIP("INIT"),13,16)=$$DMISID^DAHPNU ; update unique site id
  1. ;
  1. ; update length field (unencrypted dummy claim length)
  1. S $E(INIP("INIT"),21,24)=$TR($J($L(INIP("INIT"))-$F(INIP("INIT"),INIP("SOD"))+1,4)," ",0)
  1. Q
  1. ;