IBDEI012 ; ; 18-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQR(358.5) 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,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
Q Q
;;^UTILITY(U,$J,358.5,151,2,0)
;;=^357.52I^1^1
;;^UTILITY(U,$J,358.5,151,2,1,0)
;;=Patient Name:^^^1^1^1^15^30^1
;;^UTILITY(U,$J,358.5,152,0)
;;=PATIENT DOB^38^22
;;^UTILITY(U,$J,358.5,152,2,0)
;;=^357.52I^1^1
;;^UTILITY(U,$J,358.5,152,2,1,0)
;;=DOB:^^^1^2^2^6^12^1
;;^UTILITY(U,$J,358.5,153,0)
;;=PID^38^7
;;^UTILITY(U,$J,358.5,153,2,0)
;;=^357.52I^1^1
;;^UTILITY(U,$J,358.5,153,2,1,0)
;;=PID:^^^19^2^2^24^15^1
;;^UTILITY(U,$J,358.5,154,0)
;;=SC CONDITION 1^38^11^^1
;;^UTILITY(U,$J,358.5,154,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,154,2,1,0)
;;=SC Conditions:^^U^1^4^5^1^40^1
;;^UTILITY(U,$J,358.5,154,2,2,0)
;;=%^^I^^^5^42^4^3
;;^UTILITY(U,$J,358.5,155,0)
;;=SC CONDITION 2^38^11^^2
;;^UTILITY(U,$J,358.5,155,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,155,2,1,0)
;;=CONDITION^^I^^^6^1^40^1
;;^UTILITY(U,$J,358.5,155,2,2,0)
;;=%^^I^^^6^42^4^3
;;^UTILITY(U,$J,358.5,156,0)
;;=SC CONDITION 3^38^11^^3
;;^UTILITY(U,$J,358.5,156,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,156,2,1,0)
;;=CONDITION^^I^^^7^1^40^1
;;^UTILITY(U,$J,358.5,156,2,2,0)
;;=%^^I^^^7^42^4^3
;;^UTILITY(U,$J,358.5,157,0)
;;=SC CONDITION 4^38^11^1^4
;;^UTILITY(U,$J,358.5,157,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,157,2,1,0)
;;=CONDITION^^I^^^8^1^40^1
;;^UTILITY(U,$J,358.5,157,2,2,0)
;;=%^^I^^^8^42^4^3
;;^UTILITY(U,$J,358.5,158,0)
;;=SEX^38^23
;;^UTILITY(U,$J,358.5,158,2,0)
;;=^357.52I^1^1
;;^UTILITY(U,$J,358.5,158,2,1,0)
;;=Sex:^^^40^2^2^45^1^2
;;^UTILITY(U,$J,358.5,159,0)
;;=ELIGIBILITY^38^8
;;^UTILITY(U,$J,358.5,159,2,0)
;;=^357.52I^1^1
;;^UTILITY(U,$J,358.5,159,2,1,0)
;;=Eligibility:^^^1^3^3^14^30^1
;;^UTILITY(U,$J,358.5,160,0)
;;=MEANS TEST CATEGORY^38^24
;;^UTILITY(U,$J,358.5,160,2,0)
;;=^357.52I^1^1
;;^UTILITY(U,$J,358.5,160,2,1,0)
;;=Means Test Cat:^^^29^4^4^45^1^3
;;^UTILITY(U,$J,358.5,161,0)
;;=SERVICE HISTORY DATA^38^25
;;^UTILITY(U,$J,358.5,161,2,0)
;;=^357.52I^4^4
;;^UTILITY(U,$J,358.5,161,2,1,0)
;;=AO:^^^1^9^9^5^3^2
;;^UTILITY(U,$J,358.5,161,2,2,0)
;;=IR:^^^9^9^9^13^3^3
;;^UTILITY(U,$J,358.5,161,2,3,0)
;;=POW:^^^17^9^9^22^3^4
;;^UTILITY(U,$J,358.5,161,2,4,0)
;;=EC:^^^26^9^9^30^3^6
;;^UTILITY(U,$J,358.5,162,0)
;;=SC %^38^8
;;^UTILITY(U,$J,358.5,162,2,0)
;;=^357.52I^3^2
;;^UTILITY(U,$J,358.5,162,2,2,0)
;;=SC%:^^^17^4^4^22^3^7
;;^UTILITY(U,$J,358.5,162,2,3,0)
;;=%^^^25^4
;;^UTILITY(U,$J,358.5,163,0)
;;=SC TREATMENT QUESTIONS^39^26
;;^UTILITY(U,$J,358.5,163,2,0)
;;=^357.52I^2^2
;;^UTILITY(U,$J,358.5,163,2,1,0)
;;=SERVICE CONNECTED?^^I^^^0^0^46^1
;;^UTILITY(U,$J,358.5,163,2,2,0)
;;=AO,IR OR EC?^^I^^^1^0^43^5
;;^UTILITY(U,$J,358.5,164,0)
;;=CLINIC^41^5
;;^UTILITY(U,$J,358.5,164,2,0)
;;=^357.52I^1^1
;;^UTILITY(U,$J,358.5,164,2,1,0)
;;=Clinic:^^^0^0^0^8^30^1
;;^UTILITY(U,$J,358.5,165,0)
;;=APPT. DT/TIME^41^4
;;^UTILITY(U,$J,358.5,165,2,0)
;;=^357.52I^1^1
;;^UTILITY(U,$J,358.5,165,2,1,0)
;;=Appt. DT/Time:^^^0^2^2^15^23^1
;;^UTILITY(U,$J,358.5,166,0)
;;=OTHER ALLERGIES^42^3
;;^UTILITY(U,$J,358.5,166,2,0)
;;=^357.52I^1^1
;;^UTILITY(U,$J,358.5,166,2,1,0)
;;=Other:^^^1^7
;;^UTILITY(U,$J,358.5,167,0)
;;=ALLERGY 1^42^15^0^1
;;^UTILITY(U,$J,358.5,167,2,0)
;;=^357.52I^4^4
;;^UTILITY(U,$J,358.5,167,2,1,0)
;;=ALLERGY^^I^^^3^1^30^1
;;^UTILITY(U,$J,358.5,167,2,2,0)
;;=TYPE^^U^32^2^3^32^5^2
;;^UTILITY(U,$J,358.5,167,2,3,0)
;;=VER^^U^45^2^3^45^3^4
;;^UTILITY(U,$J,358.5,167,2,4,0)
;;=TRUE^^U^39^2^3^40^3^5
;;^UTILITY(U,$J,358.5,168,0)
;;=ALLERGY 2^42^15^0^2
;;^UTILITY(U,$J,358.5,168,2,0)
;;=^357.52I^4^4
;;^UTILITY(U,$J,358.5,168,2,1,0)
;;=ALLERGY^^I^^^4^1^30^1
IBDEI012 ; ; 18-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQR(358.5)
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,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^UTILITY(U,$J,358.5,151,2,0)
+2 ;;=^357.52I^1^1
+3 ;;^UTILITY(U,$J,358.5,151,2,1,0)
+4 ;;=Patient Name:^^^1^1^1^15^30^1
+5 ;;^UTILITY(U,$J,358.5,152,0)
+6 ;;=PATIENT DOB^38^22
+7 ;;^UTILITY(U,$J,358.5,152,2,0)
+8 ;;=^357.52I^1^1
+9 ;;^UTILITY(U,$J,358.5,152,2,1,0)
+10 ;;=DOB:^^^1^2^2^6^12^1
+11 ;;^UTILITY(U,$J,358.5,153,0)
+12 ;;=PID^38^7
+13 ;;^UTILITY(U,$J,358.5,153,2,0)
+14 ;;=^357.52I^1^1
+15 ;;^UTILITY(U,$J,358.5,153,2,1,0)
+16 ;;=PID:^^^19^2^2^24^15^1
+17 ;;^UTILITY(U,$J,358.5,154,0)
+18 ;;=SC CONDITION 1^38^11^^1
+19 ;;^UTILITY(U,$J,358.5,154,2,0)
+20 ;;=^357.52I^2^2
+21 ;;^UTILITY(U,$J,358.5,154,2,1,0)
+22 ;;=SC Conditions:^^U^1^4^5^1^40^1
+23 ;;^UTILITY(U,$J,358.5,154,2,2,0)
+24 ;;=%^^I^^^5^42^4^3
+25 ;;^UTILITY(U,$J,358.5,155,0)
+26 ;;=SC CONDITION 2^38^11^^2
+27 ;;^UTILITY(U,$J,358.5,155,2,0)
+28 ;;=^357.52I^2^2
+29 ;;^UTILITY(U,$J,358.5,155,2,1,0)
+30 ;;=CONDITION^^I^^^6^1^40^1
+31 ;;^UTILITY(U,$J,358.5,155,2,2,0)
+32 ;;=%^^I^^^6^42^4^3
+33 ;;^UTILITY(U,$J,358.5,156,0)
+34 ;;=SC CONDITION 3^38^11^^3
+35 ;;^UTILITY(U,$J,358.5,156,2,0)
+36 ;;=^357.52I^2^2
+37 ;;^UTILITY(U,$J,358.5,156,2,1,0)
+38 ;;=CONDITION^^I^^^7^1^40^1
+39 ;;^UTILITY(U,$J,358.5,156,2,2,0)
+40 ;;=%^^I^^^7^42^4^3
+41 ;;^UTILITY(U,$J,358.5,157,0)
+42 ;;=SC CONDITION 4^38^11^1^4
+43 ;;^UTILITY(U,$J,358.5,157,2,0)
+44 ;;=^357.52I^2^2
+45 ;;^UTILITY(U,$J,358.5,157,2,1,0)
+46 ;;=CONDITION^^I^^^8^1^40^1
+47 ;;^UTILITY(U,$J,358.5,157,2,2,0)
+48 ;;=%^^I^^^8^42^4^3
+49 ;;^UTILITY(U,$J,358.5,158,0)
+50 ;;=SEX^38^23
+51 ;;^UTILITY(U,$J,358.5,158,2,0)
+52 ;;=^357.52I^1^1
+53 ;;^UTILITY(U,$J,358.5,158,2,1,0)
+54 ;;=Sex:^^^40^2^2^45^1^2
+55 ;;^UTILITY(U,$J,358.5,159,0)
+56 ;;=ELIGIBILITY^38^8
+57 ;;^UTILITY(U,$J,358.5,159,2,0)
+58 ;;=^357.52I^1^1
+59 ;;^UTILITY(U,$J,358.5,159,2,1,0)
+60 ;;=Eligibility:^^^1^3^3^14^30^1
+61 ;;^UTILITY(U,$J,358.5,160,0)
+62 ;;=MEANS TEST CATEGORY^38^24
+63 ;;^UTILITY(U,$J,358.5,160,2,0)
+64 ;;=^357.52I^1^1
+65 ;;^UTILITY(U,$J,358.5,160,2,1,0)
+66 ;;=Means Test Cat:^^^29^4^4^45^1^3
+67 ;;^UTILITY(U,$J,358.5,161,0)
+68 ;;=SERVICE HISTORY DATA^38^25
+69 ;;^UTILITY(U,$J,358.5,161,2,0)
+70 ;;=^357.52I^4^4
+71 ;;^UTILITY(U,$J,358.5,161,2,1,0)
+72 ;;=AO:^^^1^9^9^5^3^2
+73 ;;^UTILITY(U,$J,358.5,161,2,2,0)
+74 ;;=IR:^^^9^9^9^13^3^3
+75 ;;^UTILITY(U,$J,358.5,161,2,3,0)
+76 ;;=POW:^^^17^9^9^22^3^4
+77 ;;^UTILITY(U,$J,358.5,161,2,4,0)
+78 ;;=EC:^^^26^9^9^30^3^6
+79 ;;^UTILITY(U,$J,358.5,162,0)
+80 ;;=SC %^38^8
+81 ;;^UTILITY(U,$J,358.5,162,2,0)
+82 ;;=^357.52I^3^2
+83 ;;^UTILITY(U,$J,358.5,162,2,2,0)
+84 ;;=SC%:^^^17^4^4^22^3^7
+85 ;;^UTILITY(U,$J,358.5,162,2,3,0)
+86 ;;=%^^^25^4
+87 ;;^UTILITY(U,$J,358.5,163,0)
+88 ;;=SC TREATMENT QUESTIONS^39^26
+89 ;;^UTILITY(U,$J,358.5,163,2,0)
+90 ;;=^357.52I^2^2
+91 ;;^UTILITY(U,$J,358.5,163,2,1,0)
+92 ;;=SERVICE CONNECTED?^^I^^^0^0^46^1
+93 ;;^UTILITY(U,$J,358.5,163,2,2,0)
+94 ;;=AO,IR OR EC?^^I^^^1^0^43^5
+95 ;;^UTILITY(U,$J,358.5,164,0)
+96 ;;=CLINIC^41^5
+97 ;;^UTILITY(U,$J,358.5,164,2,0)
+98 ;;=^357.52I^1^1
+99 ;;^UTILITY(U,$J,358.5,164,2,1,0)
+100 ;;=Clinic:^^^0^0^0^8^30^1
+101 ;;^UTILITY(U,$J,358.5,165,0)
+102 ;;=APPT. DT/TIME^41^4
+103 ;;^UTILITY(U,$J,358.5,165,2,0)
+104 ;;=^357.52I^1^1
+105 ;;^UTILITY(U,$J,358.5,165,2,1,0)
+106 ;;=Appt. DT/Time:^^^0^2^2^15^23^1
+107 ;;^UTILITY(U,$J,358.5,166,0)
+108 ;;=OTHER ALLERGIES^42^3
+109 ;;^UTILITY(U,$J,358.5,166,2,0)
+110 ;;=^357.52I^1^1
+111 ;;^UTILITY(U,$J,358.5,166,2,1,0)
+112 ;;=Other:^^^1^7
+113 ;;^UTILITY(U,$J,358.5,167,0)
+114 ;;=ALLERGY 1^42^15^0^1
+115 ;;^UTILITY(U,$J,358.5,167,2,0)
+116 ;;=^357.52I^4^4
+117 ;;^UTILITY(U,$J,358.5,167,2,1,0)
+118 ;;=ALLERGY^^I^^^3^1^30^1
+119 ;;^UTILITY(U,$J,358.5,167,2,2,0)
+120 ;;=TYPE^^U^32^2^3^32^5^2
+121 ;;^UTILITY(U,$J,358.5,167,2,3,0)
+122 ;;=VER^^U^45^2^3^45^3^4
+123 ;;^UTILITY(U,$J,358.5,167,2,4,0)
+124 ;;=TRUE^^U^39^2^3^40^3^5
+125 ;;^UTILITY(U,$J,358.5,168,0)
+126 ;;=ALLERGY 2^42^15^0^2
+127 ;;^UTILITY(U,$J,358.5,168,2,0)
+128 ;;=^357.52I^4^4
+129 ;;^UTILITY(U,$J,358.5,168,2,1,0)
+130 ;;=ALLERGY^^I^^^4^1^30^1