- IS00031C ;Compiled from script 'Generated: HL IHS DW1ALPMR A08-O' on MAY 21, 2015
- ;Part 4
- ;Copyright 2015 SAIC
- EN S @INV@("OBX8")=X K DXS,D0
- ;SET OBX9 = ""
- S D0=INDA S X=""
- S @INV@("OBX9")=X K DXS,D0
- ;SET OBX10 = ""
- S D0=INDA S X=""
- S @INV@("OBX10")=X K DXS,D0
- ;SET OBX11 = ""
- S D0=INDA S X=""
- S @INV@("OBX11")=X K DXS,D0
- ;SET OBX12 = ""
- S D0=INDA S X=""
- S @INV@("OBX12")=X K DXS,D0
- ;SET OBX13 = ""
- S D0=INDA S X=""
- S @INV@("OBX13")=X K DXS,D0
- ;SET OBX14 = INSGX\^INTHL7FT(1,3)\\999\@BDW1WH14
- S D0=INDA S X=$G(INA("BDW1WH14",INI(1)))
- S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- S @INV@("OBX14")=X K DXS,D0
- ;SET OBX15 = INSGX\^INTHL7FT(1,3)\\999\@BDW1WH15
- S D0=INDA S X=$G(INA("BDW1WH15",INI(1)))
- S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,999)
- S @INV@("OBX15")=X K DXS,D0
- ;SET OBX16 = ""
- S D0=INDA S X=""
- S @INV@("OBX16")=X K DXS,D0
- ;SET OBX17 = ""
- S D0=INDA S X=""
- S @INV@("OBX17")=X K DXS,D0
- ;SET OBX18 = ""
- S D0=INDA S X=""
- S @INV@("OBX18")=X K DXS,D0
- ;SET OBX19 = ""
- S D0=INDA S X=""
- S @INV@("OBX19")=X K DXS,D0
- D:'INVS MC^INHS
- K LINE S LINE="",CP=0 S L1="OBX" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("OBX1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
- D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("OBX2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("OBX3"))
- S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,4,L1,.CP) S L1=$G(@INV@("OBX4")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
- S L1=$G(@INV@("OBX5")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,6,L1,.CP) S L1=$G(@INV@("OBX6")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
- S L1=$G(@INV@("OBX7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP) S L1=$G(@INV@("OBX8")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
- S L1=$G(@INV@("OBX9")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,10,L1,.CP) S L1=$G(@INV@("OBX10")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,11,L1,.CP)
- S L1=$G(@INV@("OBX11")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,12,L1,.CP) S L1=$G(@INV@("OBX12")) S:$TR(L1,$G(SUBDELIM))="" L1=""
- D SETPIECE^INHU(.LINE,DELIM,13,L1,.CP) S L1=$G(@INV@("OBX13")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,14,L1,.CP) S L1=$G(@INV@("OBX14"))
- S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,15,L1,.CP) S L1=$G(@INV@("OBX15")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,16,L1,.CP)
- S L1=$G(@INV@("OBX16")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,17,L1,.CP) S L1=$G(@INV@("OBX17")) S:$TR(L1,$G(SUBDELIM))="" L1=""
- D SETPIECE^INHU(.LINE,DELIM,18,L1,.CP) S L1=$G(@INV@("OBX18")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,19,L1,.CP) S L1=$G(@INV@("OBX19"))
- S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
- S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
- Q
- D1 S INDA=INDA0 K INDA0
- D:'INVS MC^INHS
- ;Entering END section.
- I $G(INSTERR) Q $S($G(INREQERR)>INSTERR:INREQERR,1:INSTERR)
- S UIF=$$NEWO^INHD(INDEST,"^UTILITY(""INH"",$J)",+$P($G(^INRHT(INTT,0)),U,12),INTT,MESSID,$G(INQUE),$G(INORDUZ),$G(INORDIV),.INUIF6,.INUIF7,$G(INA("INMIDGEN")))
- I UIF<0 D ERROR^INHS("UIF creation failed",2) Q 2
- Q 0
- IS00031C ;Compiled from script 'Generated: HL IHS DW1ALPMR A08-O' on MAY 21, 2015
- +1 ;Part 4
- +2 ;Copyright 2015 SAIC
- EN SET @INV@("OBX8")=X
- KILL DXS,D0
- +1 ;SET OBX9 = ""
- +2 SET D0=INDA
- SET X=""
- +3 SET @INV@("OBX9")=X
- KILL DXS,D0
- +4 ;SET OBX10 = ""
- +5 SET D0=INDA
- SET X=""
- +6 SET @INV@("OBX10")=X
- KILL DXS,D0
- +7 ;SET OBX11 = ""
- +8 SET D0=INDA
- SET X=""
- +9 SET @INV@("OBX11")=X
- KILL DXS,D0
- +10 ;SET OBX12 = ""
- +11 SET D0=INDA
- SET X=""
- +12 SET @INV@("OBX12")=X
- KILL DXS,D0
- +13 ;SET OBX13 = ""
- +14 SET D0=INDA
- SET X=""
- +15 SET @INV@("OBX13")=X
- KILL DXS,D0
- +16 ;SET OBX14 = INSGX\^INTHL7FT(1,3)\\999\@BDW1WH14
- +17 SET D0=INDA
- SET X=$GET(INA("BDW1WH14",INI(1)))
- +18 SET X1="^INTHL7FT(1,3)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +19 SET @INV@("OBX14")=X
- KILL DXS,D0
- +20 ;SET OBX15 = INSGX\^INTHL7FT(1,3)\\999\@BDW1WH15
- +21 SET D0=INDA
- SET X=$GET(INA("BDW1WH15",INI(1)))
- +22 SET X1="^INTHL7FT(1,3)"
- IF $LENGTH($GET(@X1))
- XECUTE $GET(@X1)
- SET X=$EXTRACT(X,1,999)
- +23 SET @INV@("OBX15")=X
- KILL DXS,D0
- +24 ;SET OBX16 = ""
- +25 SET D0=INDA
- SET X=""
- +26 SET @INV@("OBX16")=X
- KILL DXS,D0
- +27 ;SET OBX17 = ""
- +28 SET D0=INDA
- SET X=""
- +29 SET @INV@("OBX17")=X
- KILL DXS,D0
- +30 ;SET OBX18 = ""
- +31 SET D0=INDA
- SET X=""
- +32 SET @INV@("OBX18")=X
- KILL DXS,D0
- +33 ;SET OBX19 = ""
- +34 SET D0=INDA
- SET X=""
- +35 SET @INV@("OBX19")=X
- KILL DXS,D0
- +36 IF 'INVS
- DO MC^INHS
- +37 KILL LINE
- SET LINE=""
- SET CP=0
- SET L1="OBX"
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,1,L1,.CP)
- SET L1=$GET(@INV@("OBX1"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- +38 DO SETPIECE^INHU(.LINE,DELIM,2,L1,.CP)
- SET L1=$GET(@INV@("OBX2"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,3,L1,.CP)
- SET L1=$GET(@INV@("OBX3"))
- +39 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,4,L1,.CP)
- SET L1=$GET(@INV@("OBX4"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,5,L1,.CP)
- +40 SET L1=$GET(@INV@("OBX5"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,6,L1,.CP)
- SET L1=$GET(@INV@("OBX6"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,7,L1,.CP)
- +41 SET L1=$GET(@INV@("OBX7"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
- SET L1=$GET(@INV@("OBX8"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,9,L1,.CP)
- +42 SET L1=$GET(@INV@("OBX9"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,10,L1,.CP)
- SET L1=$GET(@INV@("OBX10"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,11,L1,.CP)
- +43 SET L1=$GET(@INV@("OBX11"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,12,L1,.CP)
- SET L1=$GET(@INV@("OBX12"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- +44 DO SETPIECE^INHU(.LINE,DELIM,13,L1,.CP)
- SET L1=$GET(@INV@("OBX13"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,14,L1,.CP)
- SET L1=$GET(@INV@("OBX14"))
- +45 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,15,L1,.CP)
- SET L1=$GET(@INV@("OBX15"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,16,L1,.CP)
- +46 SET L1=$GET(@INV@("OBX16"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,17,L1,.CP)
- SET L1=$GET(@INV@("OBX17"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- +47 DO SETPIECE^INHU(.LINE,DELIM,18,L1,.CP)
- SET L1=$GET(@INV@("OBX18"))
- IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,19,L1,.CP)
- SET L1=$GET(@INV@("OBX19"))
- +48 IF $TRANSLATE(L1,$GET(SUBDELIM))=""
- SET L1=""
- DO SETPIECE^INHU(.LINE,DELIM,20,L1,.CP)
- +49 SET LCT=LCT+1
- SET ^UTILITY("INH",$JOB,LCT)=LINE
- IF $DATA(LINE)>9
- MERGE ^UTILITY("INH",$JOB,LCT)=LINE
- +50 QUIT
- D1 SET INDA=INDA0
- KILL INDA0
- +1 IF 'INVS
- DO MC^INHS
- +2 ;Entering END section.
- +3 IF $GET(INSTERR)
- QUIT $SELECT($GET(INREQERR)>INSTERR:INREQERR,1:INSTERR)
- +4 SET UIF=$$NEWO^INHD(INDEST,"^UTILITY(""INH"",$J)",+$PIECE($GET(^INRHT(INTT,0)),U,12),INTT,MESSID,$GET(INQUE),$GET(INORDUZ),$GET(INORDIV),.INUIF6,.INUIF7,$GET(INA("INMIDGEN")))
- +5 IF UIF<0
- DO ERROR^INHS("UIF creation failed",2)
- QUIT 2
- +6 QUIT 0