IBDEI3CM ; ; 04-FEB-2020
;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
Q:'DIFQR(358.6) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,999) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^UTILITY(U,$J,358.6,8,15,0)
;;=^357.615I^4^3
;;^UTILITY(U,$J,358.6,8,15,2,0)
;;=RECOMMENDED TEXT-SHORT NAME^40^2
;;^UTILITY(U,$J,358.6,8,15,3,0)
;;=RECOMMENDED HEADER^30^3
;;^UTILITY(U,$J,358.6,8,15,4,0)
;;=SHORT NAME FROM CPT FILE^28^4
;;^UTILITY(U,$J,358.6,9,0)
;;=INPUT VISIT TYPE^^^PATIENT CARE ENCOUNTER^^1^^^1^^^1^^^^SMP
;;^UTILITY(U,$J,358.6,9,1,0)
;;=^^1^1^2951023^
;;^UTILITY(U,$J,358.6,9,1,1,0)
;;=Used for inputting the visit type that applies to the visit.
;;^UTILITY(U,$J,358.6,9,2)
;;=^^^^^^^^^^^^^^^^^1
;;^UTILITY(U,$J,358.6,9,3)
;;=VISIT TYPE OF VISIT
;;^UTILITY(U,$J,358.6,9,9)
;;=D INPUTCPT^IBDFN8(.X)
;;^UTILITY(U,$J,358.6,9,10)
;;=Enter an active Visit Type code.
;;^UTILITY(U,$J,358.6,9,11)
;;=D TESTVST^IBDFN7
;;^UTILITY(U,$J,358.6,9,12)
;;=ENCOUNTER^5
;;^UTILITY(U,$J,358.6,9,14)
;;=S Y=$$DSPLYCPT^IBDFN9(Y)
;;^UTILITY(U,$J,358.6,9,15,0)
;;=^357.615I^0^0
;;^UTILITY(U,$J,358.6,9,17)
;;=D SLCTVST^IBDFN12(.X)
;;^UTILITY(U,$J,358.6,9,18)
;;=S IBDF("OTHER")="357.69^I '$P(^(0),U,4)" D LIST^IBDFDE2(.IBDSEL,.IBDF,"Visit Type (EM) Code")
;;^UTILITY(U,$J,358.6,9,19)
;;=D VST^IBDFN14(X)
;;^UTILITY(U,$J,358.6,10,0)
;;=PX SELECT HEALTH FACTORS^HF^IBDFN10^PATIENT CARE ENCOUNTER^^3^2^^1^^^1^11
;;^UTILITY(U,$J,358.6,10,1,0)
;;=^^1^1^2951208^^^
;;^UTILITY(U,$J,358.6,10,1,1,0)
;;=Allows health factors from the HEALTH FACTORS file to be selected.
;;^UTILITY(U,$J,358.6,10,2)
;;=Internal Number^9^^^^^^^^^^^^^^^0^0
;;^UTILITY(U,$J,358.6,10,3)
;;=PATIENT HEALTH FACTORS
;;^UTILITY(U,$J,358.6,10,11)
;;=D TESTHF^PXAPIIB
;;^UTILITY(U,$J,358.6,10,15,0)
;;=^357.615I^4^4
;;^UTILITY(U,$J,358.6,10,15,1,0)
;;=Health Factor Name^30^2^^HEALTH FACTOR
;;^UTILITY(U,$J,358.6,10,15,2,0)
;;=Code^5^3
;;^UTILITY(U,$J,358.6,10,15,3,0)
;;=Short Name^10^5
;;^UTILITY(U,$J,358.6,10,15,4,0)
;;=Sex Specific^6^6^^FOR
;;^UTILITY(U,$J,358.6,10,16)
;;=n^^^^n
;;^UTILITY(U,$J,358.6,11,0)
;;=PX INPUT HEALTH FACTORS^^^PATIENT CARE ENCOUNTER^^1^^^1^^^1^^^^SMP
;;^UTILITY(U,$J,358.6,11,1,0)
;;=^^1^1^2951208^^^
;;^UTILITY(U,$J,358.6,11,1,1,0)
;;=Used for inputting health factors determined to apply to the patient.
;;^UTILITY(U,$J,358.6,11,2)
;;=^^^^^^^^^^^^^^^^^0
;;^UTILITY(U,$J,358.6,11,3)
;;=HEALTH FACTORS
;;^UTILITY(U,$J,358.6,11,10)
;;=Enter a Patient Health Factor.
;;^UTILITY(U,$J,358.6,11,11)
;;=D TESTHF^PXAPIIB
;;^UTILITY(U,$J,358.6,11,12)
;;=HEALTH FACTORS^1^^^2
;;^UTILITY(U,$J,358.6,11,13,0)
;;=^358.613V^3^3
;;^UTILITY(U,$J,358.6,11,13,1,0)
;;=10;IBD(358.98,^^0
;;^UTILITY(U,$J,358.6,11,13,2,0)
;;=11;IBD(358.98,^^0
;;^UTILITY(U,$J,358.6,11,13,3,0)
;;=12;IBD(358.98,^^0
;;^UTILITY(U,$J,358.6,11,14)
;;=S Y=$$DSPLYHF^PXAPIIB(Y)
;;^UTILITY(U,$J,358.6,11,15,0)
;;=^357.615I^0^0
;;^UTILITY(U,$J,358.6,11,17)
;;=D SLCTHF^IBDFN12(.X)
;;^UTILITY(U,$J,358.6,11,18)
;;=S IBDF("OTHER")="9999999.64^I '$P(^(0),U,10),$P(^(0),U,10)=""F"",'$P(^(0),U,11)" D LIST^IBDFDE2(.IBDSEL,.IBDF,"Health Factors")
;;^UTILITY(U,$J,358.6,11,19)
;;=D HF^IBDFN14(X)
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3CM 3384 printed Dec 13, 2024@02:46:09 Page 2
IBDEI3CM ; ; 04-FEB-2020
+1 ;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
+2 if 'DIFQR(358.6)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
if X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
if $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,999)
if $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^UTILITY(U,$J,358.6,8,15,0)
+2 ;;=^357.615I^4^3
+3 ;;^UTILITY(U,$J,358.6,8,15,2,0)
+4 ;;=RECOMMENDED TEXT-SHORT NAME^40^2
+5 ;;^UTILITY(U,$J,358.6,8,15,3,0)
+6 ;;=RECOMMENDED HEADER^30^3
+7 ;;^UTILITY(U,$J,358.6,8,15,4,0)
+8 ;;=SHORT NAME FROM CPT FILE^28^4
+9 ;;^UTILITY(U,$J,358.6,9,0)
+10 ;;=INPUT VISIT TYPE^^^PATIENT CARE ENCOUNTER^^1^^^1^^^1^^^^SMP
+11 ;;^UTILITY(U,$J,358.6,9,1,0)
+12 ;;=^^1^1^2951023^
+13 ;;^UTILITY(U,$J,358.6,9,1,1,0)
+14 ;;=Used for inputting the visit type that applies to the visit.
+15 ;;^UTILITY(U,$J,358.6,9,2)
+16 ;;=^^^^^^^^^^^^^^^^^1
+17 ;;^UTILITY(U,$J,358.6,9,3)
+18 ;;=VISIT TYPE OF VISIT
+19 ;;^UTILITY(U,$J,358.6,9,9)
+20 ;;=D INPUTCPT^IBDFN8(.X)
+21 ;;^UTILITY(U,$J,358.6,9,10)
+22 ;;=Enter an active Visit Type code.
+23 ;;^UTILITY(U,$J,358.6,9,11)
+24 ;;=D TESTVST^IBDFN7
+25 ;;^UTILITY(U,$J,358.6,9,12)
+26 ;;=ENCOUNTER^5
+27 ;;^UTILITY(U,$J,358.6,9,14)
+28 ;;=S Y=$$DSPLYCPT^IBDFN9(Y)
+29 ;;^UTILITY(U,$J,358.6,9,15,0)
+30 ;;=^357.615I^0^0
+31 ;;^UTILITY(U,$J,358.6,9,17)
+32 ;;=D SLCTVST^IBDFN12(.X)
+33 ;;^UTILITY(U,$J,358.6,9,18)
+34 ;;=S IBDF("OTHER")="357.69^I '$P(^(0),U,4)" D LIST^IBDFDE2(.IBDSEL,.IBDF,"Visit Type (EM) Code")
+35 ;;^UTILITY(U,$J,358.6,9,19)
+36 ;;=D VST^IBDFN14(X)
+37 ;;^UTILITY(U,$J,358.6,10,0)
+38 ;;=PX SELECT HEALTH FACTORS^HF^IBDFN10^PATIENT CARE ENCOUNTER^^3^2^^1^^^1^11
+39 ;;^UTILITY(U,$J,358.6,10,1,0)
+40 ;;=^^1^1^2951208^^^
+41 ;;^UTILITY(U,$J,358.6,10,1,1,0)
+42 ;;=Allows health factors from the HEALTH FACTORS file to be selected.
+43 ;;^UTILITY(U,$J,358.6,10,2)
+44 ;;=Internal Number^9^^^^^^^^^^^^^^^0^0
+45 ;;^UTILITY(U,$J,358.6,10,3)
+46 ;;=PATIENT HEALTH FACTORS
+47 ;;^UTILITY(U,$J,358.6,10,11)
+48 ;;=D TESTHF^PXAPIIB
+49 ;;^UTILITY(U,$J,358.6,10,15,0)
+50 ;;=^357.615I^4^4
+51 ;;^UTILITY(U,$J,358.6,10,15,1,0)
+52 ;;=Health Factor Name^30^2^^HEALTH FACTOR
+53 ;;^UTILITY(U,$J,358.6,10,15,2,0)
+54 ;;=Code^5^3
+55 ;;^UTILITY(U,$J,358.6,10,15,3,0)
+56 ;;=Short Name^10^5
+57 ;;^UTILITY(U,$J,358.6,10,15,4,0)
+58 ;;=Sex Specific^6^6^^FOR
+59 ;;^UTILITY(U,$J,358.6,10,16)
+60 ;;=n^^^^n
+61 ;;^UTILITY(U,$J,358.6,11,0)
+62 ;;=PX INPUT HEALTH FACTORS^^^PATIENT CARE ENCOUNTER^^1^^^1^^^1^^^^SMP
+63 ;;^UTILITY(U,$J,358.6,11,1,0)
+64 ;;=^^1^1^2951208^^^
+65 ;;^UTILITY(U,$J,358.6,11,1,1,0)
+66 ;;=Used for inputting health factors determined to apply to the patient.
+67 ;;^UTILITY(U,$J,358.6,11,2)
+68 ;;=^^^^^^^^^^^^^^^^^0
+69 ;;^UTILITY(U,$J,358.6,11,3)
+70 ;;=HEALTH FACTORS
+71 ;;^UTILITY(U,$J,358.6,11,10)
+72 ;;=Enter a Patient Health Factor.
+73 ;;^UTILITY(U,$J,358.6,11,11)
+74 ;;=D TESTHF^PXAPIIB
+75 ;;^UTILITY(U,$J,358.6,11,12)
+76 ;;=HEALTH FACTORS^1^^^2
+77 ;;^UTILITY(U,$J,358.6,11,13,0)
+78 ;;=^358.613V^3^3
+79 ;;^UTILITY(U,$J,358.6,11,13,1,0)
+80 ;;=10;IBD(358.98,^^0
+81 ;;^UTILITY(U,$J,358.6,11,13,2,0)
+82 ;;=11;IBD(358.98,^^0
+83 ;;^UTILITY(U,$J,358.6,11,13,3,0)
+84 ;;=12;IBD(358.98,^^0
+85 ;;^UTILITY(U,$J,358.6,11,14)
+86 ;;=S Y=$$DSPLYHF^PXAPIIB(Y)
+87 ;;^UTILITY(U,$J,358.6,11,15,0)
+88 ;;=^357.615I^0^0
+89 ;;^UTILITY(U,$J,358.6,11,17)
+90 ;;=D SLCTHF^IBDFN12(.X)
+91 ;;^UTILITY(U,$J,358.6,11,18)
+92 ;;=S IBDF("OTHER")="9999999.64^I '$P(^(0),U,10),$P(^(0),U,10)=""F"",'$P(^(0),U,11)" D LIST^IBDFDE2(.IBDSEL,.IBDF,"Health Factors")
+93 ;;^UTILITY(U,$J,358.6,11,19)
+94 ;;=D HF^IBDFN14(X)