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

INSY181.m

Go to the documentation of this file.
INSY181 ;slt;19 Aug 1994@090347;compiled gis system data
 ;;3.01;BHL IHS Interfaces with GIS;;JUL 01, 2001
 ;COPYRIGHT 1991-2000 SAIC
 Q
 ;
EN F I=1:2 S %ODD=$E($T(EN+I),4,999) Q:%ODD=""  S %EVEN=$E($T(EN+(I+1)),4,999) S X="^UTILITY(""INHSYS"","_$J_","_$P(%ODD,",",2,99),@X=%EVEN
 ;;^UTILITY(562037788,"DEMF",1,0)
 ;;HOSPITAL LOCATION^^1^^^^99HOS
 ;;^UTILITY(562037788,"DEMF",1,"SC")
 ;;44
 ;;^UTILITY(562037788,"DEMF",2,0)
 ;;PROVIDER^^0^^^^99STF
 ;;^UTILITY(562037788,"DEMF",2,"SC")
 ;;6
 ;;^UTILITY(562037788,"DEMF",13,0)
 ;;RADIOLOGY PROCEDURE^^0^^^^99RPR
 ;;^UTILITY(562037788,"DEMF",13,"SC")
 ;;71
 ;;^UTILITY(562037788,"DEMF",19,0)
 ;;PATIENT
 ;;^UTILITY(562037788,"DEMF",19,"SC")
 ;;2
 ;;^UTILITY(562037788,"ID",4,0)
 ;;MDIS^^INHVAM
 ;;^UTILITY(562037788,"ID",4,5,0)
 ;;^4005.02^^0
 ;;^UTILITY(562037788,"IS",8,0)
 ;;Generated: HL RAD RESULT MESSAGE-O^O^70.5^^1^6
 ;;^UTILITY(562037788,"IS",8,1,0)
 ;;^^123^123
 ;;^UTILITY(562037788,"IS",8,1,1,0)
 ;;;Script generated from 'HL RAD RESULT MESSAGE' HL7 message.|CR|
 ;;^UTILITY(562037788,"IS",8,1,2,0)
 ;;DATA:|CR|
 ;;^UTILITY(562037788,"IS",8,1,3,0)
 ;;DELIM="^"|CR|
 ;;^UTILITY(562037788,"IS",8,1,4,0)
 ;;SUBDELIM="\"|CR|
 ;;^UTILITY(562037788,"IS",8,1,5,0)
 ;;LINE "MSH"^"\|~&"^^INSITE^^^INTX(NOW,"TS")^^"ORU"^@MESSID^"D"^"2.2"|CR|
 ;;^UTILITY(562037788,"IS",8,1,6,0)
 ;;;'PID' segment|CR|
 ;;^UTILITY(562037788,"IS",8,1,7,0)
 ;;^SET INSETID=0|CR|
 ;;^UTILITY(562037788,"IS",8,1,8,0)
 ;;WHILE PATIENT|CR|
 ;;^UTILITY(562037788,"IS",8,1,9,0)
 ;;SET PID1 = $E(INSGX("^INTHL7FT(11,3)","PID"),1,4)|CR|
 ;;^UTILITY(562037788,"IS",8,1,10,0)
 ;;SET PID2 = ""|CR|
 ;;^UTILITY(562037788,"IS",8,1,11,0)
 ;;SET PID3.1 = $E(INSGX("^INTHL7FT(3,3)",NUMBER),1,15)|CR|
 ;;^UTILITY(562037788,"IS",8,1,12,0)
 ;;SET PID3.2 = ""|CR|
 ;;^UTILITY(562037788,"IS",8,1,13,0)
 ;;SET PID3.3 = ""|CR|
 ;;^UTILITY(562037788,"IS",8,1,14,0)
 ;;SET PID3.4 = $E(INSITE,1,15)|CR|
 ;;^UTILITY(562037788,"IS",8,1,15,0)
 ;;SET PID4 = #8000|CR|
 ;;^UTILITY(562037788,"IS",8,1,16,0)
 ;;SET PID5 = $E(INSGX("^INTHL7FT(7,3)",NAME),1,48)|CR|
 ;;^UTILITY(562037788,"IS",8,1,17,0)
 ;;SET PID6 = ""|CR|
 ;;^UTILITY(562037788,"IS",8,1,18,0)
 ;;SET PID7 = $E(INSGX("^INTHL7FT(4,3)",DOB),1,8)|CR|
 ;;^UTILITY(562037788,"IS",8,1,19,0)
 ;;SET PID8 = $E(INTERNAL(SEX),1,1)|CR|
 ;;^UTILITY(562037788,"IS",8,1,20,0)
 ;;SET PID9 = ""|CR|
 ;;^UTILITY(562037788,"IS",8,1,21,0)
 ;;SET PID10 = $E(INTERNAL(RACE:CODE),1,1)|CR|
 ;;^UTILITY(562037788,"IS",8,1,22,0)
 ;;SET PID11.1 = $E(STREET ADDRESS,1,36)|CR|
 ;;^UTILITY(562037788,"IS",8,1,23,0)
 ;;SET PID11.2 = $E(#.112_$S($L(#.113):" ",1:"")_#.113,1,36)|CR|
 ;;^UTILITY(562037788,"IS",8,1,24,0)
 ;;SET PID11.3 = $E(CITY,1,20)|CR|
 ;;^UTILITY(562037788,"IS",8,1,25,0)
 ;;SET PID11.4 = $E(STATE,1,71)|CR|
 ;;^UTILITY(562037788,"IS",8,1,26,0)
 ;;SET PID11.5 = $E(ZIP CODE,1,10)|CR|
 ;;^UTILITY(562037788,"IS",8,1,27,0)
 ;;SET PID12 = ""|CR|
 ;;^UTILITY(562037788,"IS",8,1,28,0)
 ;;SET PID13 = PHONE|CR|
 ;;^UTILITY(562037788,"IS",8,1,29,0)
 ;;SET PID14 = OFFICE PHONE|CR|
 ;;^UTILITY(562037788,"IS",8,1,30,0)
 ;;SET PID15 = ""|CR|
 ;;^UTILITY(562037788,"IS",8,1,31,0)
 ;;SET PID16 = $E(INTERNAL(MARITAL STATUS:ABBREVIATION),1,1)|CR|
 ;;^UTILITY(562037788,"IS",8,1,32,0)
 ;;SET PID17 = $E(INTERNAL(RELIGION:CODE),1,3)|CR|
 ;;^UTILITY(562037788,"IS",8,1,33,0)
 ;;SET PID18 = ""|CR|
 ;;^UTILITY(562037788,"IS",8,1,34,0)
 ;;SET PID19 = #.09|CR|
 ;;^UTILITY(562037788,"IS",8,1,35,0)
 ;;SET PID20 = ""|CR|
 ;;^UTILITY(562037788,"IS",8,1,36,0)
 ;;LINE "PID"^PID1^PID2^PID3.1_SUBDELIM_PID3.2_SUBDELIM_PID3.3_SUBDELIM_PID3.4^$E(PID4,1,15)^PID5^PID6^PID7^PID8^PID9^PID10^PID11.1_SUBDELIM_PID11.2_SUBDELIM_PID11.3_SUBDELIM_PID11.4_SUBDELIM_PID11.5^PID12^$E(PID13,1,14)^$E(PID14,1,18)^PID15^
 ;;^UTILITY(562037788,"IS",8,1,37,0)
 ;;PID16^PID17^PID18^$E(PID19,1,16)^PID20|CR|
 ;;^UTILITY(562037788,"IS",8,1,38,0)
 ;;ENDWHILE|CR|
 ;;^UTILITY(562037788,"IS",8,1,39,0)
 ;;;'ORC' segment|CR|
 ;;^UTILITY(562037788,"IS",8,1,40,0)
 ;;^SET INSETID=0|CR|
 ;;^UTILITY(562037788,"IS",8,1,41,0)
 ;;WHILE RADIOLOGY EXAM|CR|
 ;;^UTILITY(562037788,"IS",8,1,42,0)
 ;;^D RESLT^RAGISH01|CR|
 ;;^UTILITY(562037788,"IS",8,1,43,0)
 ;;SET ORC1 = $E(INTERNAL(@OREVENT),1,2)|CR|
 ;;^UTILITY(562037788,"IS",8,1,44,0)
 ;;SET ORC5 = $E(INTERNAL(@ORSTAT),1,2)|CR|
 ;;^UTILITY(562037788,"IS",8,1,45,0)
 ;;SET ORC9 = $E(INSGX("^INTHL7FT(6,3)",@ORTT),1,26)|CR|
 ;;^UTILITY(562037788,"IS",8,1,46,0)
 ;;SET ORC10 = $E(INSGX("^INTHL7FT(19,3)",@ORDUZ),1,80)|CR|
 ;;^UTILITY(562037788,"IS",8,1,47,0)
 ;;SET ORC11 = $E(INSGX("^INTHL7FT(19,3)",@ORHCP),1,80)|CR|
 ;;^UTILITY(562037788,"IS",8,1,48,0)
 ;;SET ORC13 = $E(INTERNAL(#1.07)_SUBDELIM_(#1.07),1,80)|CR|
 ;;^UTILITY(562037788,"IS",8,1,49,0)
 ;;SET ORC15 = $E(INSGX("^INTHL7FT(6,3)",#.07),1,26)|CR|
 ;;^UTILITY(562037788,"IS",8,1,50,0)
 ;;SET ORC16 = @ORCOM|CR|
 ;;^UTILITY(562037788,"IS",8,1,51,0)
 ;;LINE "ORC"^ORC1^^^^ORC5^^^^ORC9^ORC10^ORC11^^ORC13^^ORC15^$E(ORC16,1,200)|CR|
 ;;^UTILITY(562037788,"IS",8,1,52,0)
 ;;;'OBR' segment|CR|
 ;;^UTILITY(562037788,"IS",8,1,53,0)
 ;;^SET INSETID=0|CR|
 ;;^UTILITY(562037788,"IS",8,1,54,0)
 ;;SET OBR1 = $E(INSGX("^INTHL7FT(11,3)","OBR"),1,4)|CR|
 ;;^UTILITY(562037788,"IS",8,1,55,0)
 ;;SET OBR2 = #8609.11|CR|
 ;;^UTILITY(562037788,"IS",8,1,56,0)
 ;;SET OBR3 = #.01|CR|
 ;;^UTILITY(562037788,"IS",8,1,57,0)
 ;;SET OBR4 = $E(INSGX("^INTHL7FT(17,3)",INTERNAL(#.03)_";71"),1,75)|CR|
 ;;^UTILITY(562037788,"IS",8,1,58,0)
 ;;SET OBR6 = $E(INSGX("^INTHL7FT(6,3)",#.06),1,26)|CR|
 ;;^UTILITY(562037788,"IS",8,1,59,0)
 ;;SET OBR7 = $E(INSGX("^INTHL7FT(6,3)",@OBSDATE),1,26)|CR|
 ;;^UTILITY(562037788,"IS",8,1,60,0)
 ;;SET OBR13 = #8609.12:#.1|CR|
 ;;^UTILITY(562037788,"IS",8,1,61,0)
 ;;SET OBR14 = $E(INSGX("^INTHL7FT(6,3)",@RECDATE),1,26)|CR|
 ;;^UTILITY(562037788,"IS",8,1,62,0)
 ;;SET OBR16 = $E(INTERNAL(#.08)_SUBDELIM_(INSGX("^INTHL7FT(15,3)",#.08)),1,60)|CR|
 ;;^UTILITY(562037788,"IS",8,1,63,0)
 ;;SET OBR22 = $E(INSGX("^INTHL7FT(6,3)",@EFFDATE),1,26)|CR|
 ;;^UTILITY(562037788,"IS",8,1,64,0)
 ;;SET OBR24 = $E(INTERNAL(#.15:#.01)_SUBDELIM_(#.15:#.01),1,75)|CR|
 ;;^UTILITY(562037788,"IS",8,1,65,0)
 ;;SET OBR25 = $E(INTERNAL(@RESULT),1,1)|CR|
 Q