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

IS00002B.m

Go to the documentation of this file.
IS00002B ;Compiled from script 'Generated: HL IHS LOINC R01-O' on DEC 03, 2002
 ;Part 3
 ;Copyright 2002 SAIC
EN S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("OBR4")=X K DXS,D0
 ;SET OBR7 = INSGX\^INTHL7FT(6,3)\\26\#1201
 S D0=INDA S Y(1)=$S($D(^AUPNVLAB(D0,12)):^(12),1:"") S X=$P(Y(1),U,1)
 S X1="^INTHL7FT(6,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,26)
 S @INV@("OBR7")=X K DXS,D0
 ;SET OBR9 = INSGX\^INTHL7FT(1,3)\\250\#1114
 S D0=INDA S Y(1)=$S($D(^AUPNVLAB(D0,11)):^(11),1:"") S X=$S('$D(^LAB(62,+$P(Y(1),U,14),0)):"",1:$P(^(0),U,1))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("OBR9")=X K DXS,D0
 ;SET OBR15 = INSGX\^INTHL7FT(1,3)\\250\#1103
 S D0=INDA S Y(1)=$S($D(^AUPNVLAB(D0,11)):^(11),1:"") S X=$S('$D(^LAB(61,+$P(Y(1),U,3),0)):"",1:$P(^(0),U,1))
 S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 S @INV@("OBR15")=X K DXS,D0
 ;SET OBR22 = INSGX\^INTHL7F(15561,5)\\26\"OUTPUT TRANSFORM"
 S D0=INDA S X="OUTPUT TRANSFORM"
 S X1="^INTHL7F(15561,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,26)
 S @INV@("OBR22")=X K DXS,D0
 ;SET OBR25 = INSGX\^INTHL7F(15562,5)\\1\"OUTPUT TRANSFORM"
 S D0=INDA S X="OUTPUT TRANSFORM"
 S X1="^INTHL7F(15562,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,1)
 S @INV@("OBR25")=X K DXS,D0
 D:'INVS MC^INHS
 K LINE S LINE="",CP=0 S L1="OBR" S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,1,L1,.CP) S L1=$G(@INV@("OBR1")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,2,L1,.CP) S L1=$G(@INV@("OBR2")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,3,L1,.CP) S L1=$G(@INV@("OBR4"))
 S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,5,L1,.CP) S L1=$G(@INV@("OBR7")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,8,L1,.CP)
 S L1=$G(@INV@("OBR9")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,10,L1,.CP) S L1=$G(@INV@("OBR15")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,16,L1,.CP)
 S L1=$G(@INV@("OBR22")) S:$TR(L1,$G(SUBDELIM))="" L1="" D SETPIECE^INHU(.LINE,DELIM,23,L1,.CP) S L1=$G(@INV@("OBR25")) S:$TR(L1,$G(SUBDELIM))="" L1=""
 D SETPIECE^INHU(.LINE,DELIM,26,L1,.CP)
 S LCT=LCT+1,^UTILITY("INH",$J,LCT)=LINE I $D(LINE)>9 M ^UTILITY("INH",$J,LCT)=LINE
 Q
B1 S INDA=INDA0 K INDA0
 SET INSETID=0
 I '$D(INDA(9000010.09)) S INI=0 F  S INI=$O(^AUPNVLAB("AC",INDA,INI)) Q:'INI  S INDA(9000010.09,INI)=""
 S INDA0=INDA,INI(1)=0  F  S INI(1)=$O(INDA(9000010.09,INI(1))) Q:'INI(1)  S INDA=$S(INDA(9000010.09,INI(1)):INDA(9000010.09,INI(1)),1:INI(1)) D
 .Q:'$D(^AUPNVLAB(INDA,0))
 .;SET OBX1 = INSGX\^INTHL7FT(11,3)\\3\"OBX"
 .S D0=INDA S X="OBX"
 .S X1="^INTHL7FT(11,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,3)
 .S @INV@("OBX1")=X K DXS,D0
 .;SET OBX2 = INSGX\^INTHL7F(15564,5)\\250\"OUTPUT TRANSFORM"
 .S D0=INDA S X="OUTPUT TRANSFORM"
 .S X1="^INTHL7F(15564,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 .S @INV@("OBX2")=X K DXS,D0
 .;SET OBX3 = INSGX\^INTHL7FT(1,3)\\250\@OBR4LAB
 .S D0=INDA S X=$G(INA("OBR4LAB",INI(1)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 .S @INV@("OBX3")=X K DXS,D0
 .;SET OBX5 = INSGX\^INTHL7FT(1,3)\\250\#.04
 .S D0=INDA S Y(1)=$S($D(^AUPNVLAB(D0,0)):^(0),1:"") S X=$P(Y(1),U,4)
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 .S @INV@("OBX5")=X K DXS,D0
 .;SET OBX6 = INSGX\^INTHL7FT(1,3)\\250\#1101
 .S D0=INDA S Y(1)=$S($D(^AUPNVLAB(D0,11)):^(11),1:"") S X=$P(Y(1),U,1)
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 .S @INV@("OBX6")=X K DXS,D0
 .;SET OBX7 = INSGX\^INTHL7FT(1,3)\\250\@OBX7LAB
 .S D0=INDA S X=$G(INA("OBX7LAB",INI(1)))
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 .S @INV@("OBX7")=X K DXS,D0
 .;SET OBX8 = INSGX\^INTHL7FT(1,3)\\250\#.05
 .S D0=INDA S Y(1)=$S($D(^AUPNVLAB(D0,0)):^(0),1:"") S X=$P(Y(1),U,5)
 .S X1="^INTHL7FT(1,3)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,250)
 .S @INV@("OBX8")=X K DXS,D0
 .;SET OBX11 = INSGX\^INTHL7F(15569,5)\\1\"OUTPUT TRANSFORM"
 .S D0=INDA S X="OUTPUT TRANSFORM"
 .S X1="^INTHL7F(15569,5)" X:$L($G(@X1)) $G(@X1) S X=$E(X,1,1)
 .S @INV@("OBX11")=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"))
9 .D EN^IS00002C
 G C1^IS00002C