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

IS00017B.m

Go to the documentation of this file.
  1. IS00017B ;Compiled from script 'Generated: HL IHS LAB R01 LABCORP IN-I' on AUG 14, 2006
  1. ;Part 3
  1. ;Copyright 2006 SAIC
  1. EN S:DO @("@INV@(""OBX19"",INI(1),INI(2))")=$$PIECE^INHU(.LINE,DELIM,20)
  1. ;WHILE $P(DATA,DELIM)="NTE"
  1. S INI(3)=1 F S DATA=$$GL^INHOU(UIF,LCT) Q:'$$CHECKSEG^INHOU("NTE",0,3) D S INI(3)=INI(3)+1
  1. .D:'INVS MC^INHS
  1. .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=1
  1. .S:DO @("@INV@(""NTE1"",INI(1),INI(2),INI(3))")=$$PIECE^INHU(.LINE,DELIM,2)
  1. .S:DO @("@INV@(""NTE2"",INI(1),INI(2),INI(3))")=$$PIECE^INHU(.LINE,DELIM,3)
  1. .S:DO @("@INV@(""NTE3"",INI(1),INI(2),INI(3))")=$$PIECE^INHU(.LINE,DELIM,4)
  1. .S:DO @("@INV@(""NTE4"",INI(1),INI(2),INI(3))")=$$PIECE^INHU(.LINE,DELIM,5)
  1. .Q
  1. Q
  1. D2 Q
  1. D1 D:'INVS MC^INHS
  1. ;Entering TRANS section.
  1. ;IF $D(@INV@("MSH1"))
  1. I $D(@INV@("MSH1"))
  1. D:$T
  1. .S (INX,X)=$G(@INV@("MSH1"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("MSH1")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH1' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("MSH2"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("MSH2")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH2' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("MSH3"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("MSH3")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH3' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("MSH4"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("MSH4")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH4' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("MSH5"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("MSH5")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH5' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("MSH6"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("MSH6")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH6' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("MSH7"))
  1. .I X]"" S X=$$TIMEIO^INHUT10(X,$P($G(INTHL7F2),U),$P($G(INTHL7F2),U,2),$P($G(INTHL7F2),U,3),1)
  1. .S @INV@("MSH7")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH7' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("MSH8"))
  1. .I X]"" S X=$$TIMEIO^INHUT10(X,$P($G(INTHL7F2),U),$P($G(INTHL7F2),U,2),$P($G(INTHL7F2),U,3),1)
  1. .S @INV@("MSH8")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH8' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("MSH10"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("MSH10")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH10' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("MSH12"))
  1. .S:$L(X) X=+X
  1. .S @INV@("MSH12")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH12' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("MSH13"))
  1. .S:$L(X) X=+X
  1. .S @INV@("MSH13")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH13' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("MSH14"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("MSH14")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'MSH14' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .Q
  1. ;IF $D(@INV@("PID1"))
  1. I $D(@INV@("PID1"))
  1. D:$T
  1. .S (INX,X)=$G(@INV@("PID1"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID1")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID1' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID2"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID2")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID2' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID3"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID3")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID3' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID4"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID4")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID4' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID5"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID5")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID5' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID6"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID6")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID6' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID7"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID7")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID7' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID8"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID8")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID8' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID9"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID9")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID9' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID10"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID10")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID10' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID11"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID11")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID11' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID12"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID12")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID12' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID13"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID13")=$G(X)
  1. .I '$D(X) D ERROR^INHS("Variable 'PID13' failed input transform. Processing continues.",0),ERROR^INHS(" Value = '"_INX_"'",0)
  1. .K DXS
  1. .S (INX,X)=$G(@INV@("PID14"))
  1. .I $P($G(INTHL7F2),U,4) S X=$$SUBESC^INHUT7(X,INDELIMS,"I")
  1. .S @INV@("PID14")=$G(X)
  1. 9 .D EN^IS00017C
  1. G F1^IS00017C