IBDEI3DH ; ; 05-NOV-2019
;;3.0;IB ENCOUNTER FORM IMP/EXP;;NOV 05, 2019
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,9,11)
;;=D TESTICD0^IBDFN7
;;^UTILITY(U,$J,358.6,9,12)
;;=DIAGNOSIS/PROBLEM^1^13^14^2^
;;^UTILITY(U,$J,358.6,9,13,0)
;;=^357.613V^10^10
;;^UTILITY(U,$J,358.6,9,13,1,0)
;;=1;IBD(358.98,^^1^^^^^2
;;^UTILITY(U,$J,358.6,9,13,2,0)
;;=2;IBD(358.98,^^1^^^^^2
;;^UTILITY(U,$J,358.6,9,13,3,0)
;;=3;IBD(358.98,^^1^^^^^9
;;^UTILITY(U,$J,358.6,9,13,4,0)
;;=3;IBE(358.99,^^0^^^^^
;;^UTILITY(U,$J,358.6,9,13,5,0)
;;=4;IBD(358.98,^^1^^^^^10
;;^UTILITY(U,$J,358.6,9,13,6,0)
;;=5;IBD(358.98,^^1^^^^^11
;;^UTILITY(U,$J,358.6,9,13,7,0)
;;=6;IBD(358.98,^^1^^^^^12
;;^UTILITY(U,$J,358.6,9,13,8,0)
;;=7;IBD(358.98,^^1^^^^^5
;;^UTILITY(U,$J,358.6,9,13,9,0)
;;=8;IBD(358.98,^^1^^^^^6
;;^UTILITY(U,$J,358.6,9,13,10,0)
;;=9;IBD(358.98,^^1^^^^^6
;;^UTILITY(U,$J,358.6,9,14)
;;=S Y=$$DSPICD10^IBDFN9(Y)
;;^UTILITY(U,$J,358.6,9,16)
;;=^^^^^^^^
;;^UTILITY(U,$J,358.6,9,17)
;;=D SLCTDX10^IBDFN12(.X)
;;^UTILITY(U,$J,358.6,9,18)
;;=S IBDF("OTHER")="80^I '$P(^(0),U,9)" D LIST^IBDFDE2(.IBDSEL,.IBDF,"ICD-10 Diagnosis Code")
;;^UTILITY(U,$J,358.6,9,19)
;;=D DX10^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[HIBDEI3DH 3340 printed Nov 22, 2024@17:56:47 Page 2
IBDEI3DH ; ; 05-NOV-2019
+1 ;;3.0;IB ENCOUNTER FORM IMP/EXP;;NOV 05, 2019
+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,9,11)
+2 ;;=D TESTICD0^IBDFN7
+3 ;;^UTILITY(U,$J,358.6,9,12)
+4 ;;=DIAGNOSIS/PROBLEM^1^13^14^2^
+5 ;;^UTILITY(U,$J,358.6,9,13,0)
+6 ;;=^357.613V^10^10
+7 ;;^UTILITY(U,$J,358.6,9,13,1,0)
+8 ;;=1;IBD(358.98,^^1^^^^^2
+9 ;;^UTILITY(U,$J,358.6,9,13,2,0)
+10 ;;=2;IBD(358.98,^^1^^^^^2
+11 ;;^UTILITY(U,$J,358.6,9,13,3,0)
+12 ;;=3;IBD(358.98,^^1^^^^^9
+13 ;;^UTILITY(U,$J,358.6,9,13,4,0)
+14 ;;=3;IBE(358.99,^^0^^^^^
+15 ;;^UTILITY(U,$J,358.6,9,13,5,0)
+16 ;;=4;IBD(358.98,^^1^^^^^10
+17 ;;^UTILITY(U,$J,358.6,9,13,6,0)
+18 ;;=5;IBD(358.98,^^1^^^^^11
+19 ;;^UTILITY(U,$J,358.6,9,13,7,0)
+20 ;;=6;IBD(358.98,^^1^^^^^12
+21 ;;^UTILITY(U,$J,358.6,9,13,8,0)
+22 ;;=7;IBD(358.98,^^1^^^^^5
+23 ;;^UTILITY(U,$J,358.6,9,13,9,0)
+24 ;;=8;IBD(358.98,^^1^^^^^6
+25 ;;^UTILITY(U,$J,358.6,9,13,10,0)
+26 ;;=9;IBD(358.98,^^1^^^^^6
+27 ;;^UTILITY(U,$J,358.6,9,14)
+28 ;;=S Y=$$DSPICD10^IBDFN9(Y)
+29 ;;^UTILITY(U,$J,358.6,9,16)
+30 ;;=^^^^^^^^
+31 ;;^UTILITY(U,$J,358.6,9,17)
+32 ;;=D SLCTDX10^IBDFN12(.X)
+33 ;;^UTILITY(U,$J,358.6,9,18)
+34 ;;=S IBDF("OTHER")="80^I '$P(^(0),U,9)" D LIST^IBDFDE2(.IBDSEL,.IBDF,"ICD-10 Diagnosis Code")
+35 ;;^UTILITY(U,$J,358.6,9,19)
+36 ;;=D DX10^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)