IBDEI3BG ; ; 04-FEB-2020
;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
Q:'DIFQR(358.4) 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.4,1363,0)
;;=SUBSTANCE DISORDER-OPIOID^36^113
;;^UTILITY(U,$J,358.4,1364,0)
;;=SUBSTANCE DISORDER-SEDATIVE/HYPNOTIC^37^113
;;^UTILITY(U,$J,358.4,1365,0)
;;=SUBSTANCE DISORDER-TOBACCO^39^113
;;^UTILITY(U,$J,358.4,1366,0)
;;=TRAUMA/STRESSOR-RELATED DISORDERS^42^113
;;^UTILITY(U,$J,358.4,1367,0)
;;=SUBSTANCE DISORDER-INHALANT^35^113
;;^UTILITY(U,$J,358.4,1368,0)
;;=CLINICAL RESEARCH PROGRAM^4^113
;;^UTILITY(U,$J,358.4,1369,0)
;;=SOMATIC SYMPTOM & RELATED DISORDERS^30^113
;;^UTILITY(U,$J,358.4,1370,0)
;;=DISRUPTIVE,IMPULSE,CONDUCT D/O^8^113
;;^UTILITY(U,$J,358.4,1371,0)
;;=ELIMINATION DISORDERS^11^113
;;^UTILITY(U,$J,358.4,1372,0)
;;=GAMBLING DISORDER^13^113
;;^UTILITY(U,$J,358.4,1373,0)
;;=OTHER MENTAL DISORDERS^20^113
;;^UTILITY(U,$J,358.4,1374,0)
;;=NEURODEVELOPMENTAL DISORDERS^18^113
;;^UTILITY(U,$J,358.4,1375,0)
;;=SUBSTANCE DISORDER-CAFFEINE^32^113
;;^UTILITY(U,$J,358.4,1376,0)
;;=SUICIDAL IDEATIONS/ATTEMPTS^41^113
;;^UTILITY(U,$J,358.4,1377,0)
;;=SUBSTANCE DISORDER-UNKNOWN SUBSTANCE^40^113
;;^UTILITY(U,$J,358.4,1378,0)
;;=SUBSTANCE DISORDER-STIMULANTS^38^113
;;^UTILITY(U,$J,358.4,1379,0)
;;=UNDERDOSING OF MEDICATION REGIMEN^43^113
;;^UTILITY(U,$J,358.4,1380,0)
;;=NEW PATIENT^1^114
;;^UTILITY(U,$J,358.4,1381,0)
;;=ESTABLISHED PATIENT^2^114
;;^UTILITY(U,$J,358.4,1382,0)
;;=EDUCATION & TRAINING FOR SELF MANAGEMENT^3^114
;;^UTILITY(U,$J,358.4,1383,0)
;;=ABUSE,NEGLECT, & VIOLENCE^1^115
;;^UTILITY(U,$J,358.4,1384,0)
;;=ANXIETY DISORDERS^2^115
;;^UTILITY(U,$J,358.4,1385,0)
;;=BIPOLAR & RELATED DISORDERS^3^115
;;^UTILITY(U,$J,358.4,1386,0)
;;=NEUROCOGNITIVE DISORDERS^17^115
;;^UTILITY(U,$J,358.4,1387,0)
;;=DEPRESSIVE DISORDERS^7^115
;;^UTILITY(U,$J,358.4,1388,0)
;;=DISSOCIATIVE DISORDERS ^9^115
;;^UTILITY(U,$J,358.4,1389,0)
;;=FEEDING & EATING DISORDERS^12^115
;;^UTILITY(U,$J,358.4,1390,0)
;;=EDUC/OCCUPATIONAL PROBLEMS^10^115
;;^UTILITY(U,$J,358.4,1391,0)
;;=GENDER DYSPHORIA^14^115
;;^UTILITY(U,$J,358.4,1392,0)
;;=HOUSING/ECONOMIC PROBLEMS^15^115
;;^UTILITY(U,$J,358.4,1393,0)
;;=MEDICATION ADVERSE EFFECTS^16^115
;;^UTILITY(U,$J,358.4,1394,0)
;;=OBSESSIVE-COMPULSIVE & RELATED DISORDERS^19^115
;;^UTILITY(U,$J,358.4,1395,0)
;;=PERSONAL HX & CURRENT CIRCUMSTANCES^22^115
;;^UTILITY(U,$J,358.4,1396,0)
;;=COUNSELING/MEDICAL ADVICE^5^115
;;^UTILITY(U,$J,358.4,1397,0)
;;=SOCIAL ENVIRONMENT PROBLEMS^29^115
;;^UTILITY(U,$J,358.4,1398,0)
;;=PARAPHILIC DISORDERS^21^115
;;^UTILITY(U,$J,358.4,1399,0)
;;=PERSONALITY DISORDERS^23^115
;;^UTILITY(U,$J,358.4,1400,0)
;;=CRIME/LEGAL SYSTEM PROBLEMS^6^115
;;^UTILITY(U,$J,358.4,1401,0)
;;=PSYCHOSOCIAL/PERSONAL/ENVIRONMENTAL^24^115
;;^UTILITY(U,$J,358.4,1402,0)
;;=RELATIONAL PROBLEMS^25^115
;;^UTILITY(U,$J,358.4,1403,0)
;;=SCHIZOPHRENIA/OTH PSYCHOTIC DISORDERS^26^115
;;^UTILITY(U,$J,358.4,1404,0)
;;=SEXUAL DYSFUNCTIONS^27^115
;;^UTILITY(U,$J,358.4,1405,0)
;;=SLEEP-WAKE DISORDERS^28^115
;;^UTILITY(U,$J,358.4,1406,0)
;;=SUBSTANCE DISORDER-ALCOHOL^31^115
;;^UTILITY(U,$J,358.4,1407,0)
;;=SUBSTANCE DISORDER-CANNABIS^33^115
;;^UTILITY(U,$J,358.4,1408,0)
;;=SUBSTANCE DISORDER-HALLUCINOGEN^34^115
;;^UTILITY(U,$J,358.4,1409,0)
;;=SUBSTANCE DISORDER-OPIOID^36^115
;;^UTILITY(U,$J,358.4,1410,0)
;;=SUBSTANCE DISORDER-SEDATIVE/HYPNOTIC^37^115
;;^UTILITY(U,$J,358.4,1411,0)
;;=SUBSTANCE DISORDER-TOBACCO^39^115
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDEI3BG 3747 printed Nov 22, 2024@17:55:39 Page 2
IBDEI3BG ; ; 04-FEB-2020
+1 ;;3.0;IB ENCOUNTER FORM IMP/EXP;;FEB 04, 2020
+2 if 'DIFQR(358.4)
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.4,1363,0)
+2 ;;=SUBSTANCE DISORDER-OPIOID^36^113
+3 ;;^UTILITY(U,$J,358.4,1364,0)
+4 ;;=SUBSTANCE DISORDER-SEDATIVE/HYPNOTIC^37^113
+5 ;;^UTILITY(U,$J,358.4,1365,0)
+6 ;;=SUBSTANCE DISORDER-TOBACCO^39^113
+7 ;;^UTILITY(U,$J,358.4,1366,0)
+8 ;;=TRAUMA/STRESSOR-RELATED DISORDERS^42^113
+9 ;;^UTILITY(U,$J,358.4,1367,0)
+10 ;;=SUBSTANCE DISORDER-INHALANT^35^113
+11 ;;^UTILITY(U,$J,358.4,1368,0)
+12 ;;=CLINICAL RESEARCH PROGRAM^4^113
+13 ;;^UTILITY(U,$J,358.4,1369,0)
+14 ;;=SOMATIC SYMPTOM & RELATED DISORDERS^30^113
+15 ;;^UTILITY(U,$J,358.4,1370,0)
+16 ;;=DISRUPTIVE,IMPULSE,CONDUCT D/O^8^113
+17 ;;^UTILITY(U,$J,358.4,1371,0)
+18 ;;=ELIMINATION DISORDERS^11^113
+19 ;;^UTILITY(U,$J,358.4,1372,0)
+20 ;;=GAMBLING DISORDER^13^113
+21 ;;^UTILITY(U,$J,358.4,1373,0)
+22 ;;=OTHER MENTAL DISORDERS^20^113
+23 ;;^UTILITY(U,$J,358.4,1374,0)
+24 ;;=NEURODEVELOPMENTAL DISORDERS^18^113
+25 ;;^UTILITY(U,$J,358.4,1375,0)
+26 ;;=SUBSTANCE DISORDER-CAFFEINE^32^113
+27 ;;^UTILITY(U,$J,358.4,1376,0)
+28 ;;=SUICIDAL IDEATIONS/ATTEMPTS^41^113
+29 ;;^UTILITY(U,$J,358.4,1377,0)
+30 ;;=SUBSTANCE DISORDER-UNKNOWN SUBSTANCE^40^113
+31 ;;^UTILITY(U,$J,358.4,1378,0)
+32 ;;=SUBSTANCE DISORDER-STIMULANTS^38^113
+33 ;;^UTILITY(U,$J,358.4,1379,0)
+34 ;;=UNDERDOSING OF MEDICATION REGIMEN^43^113
+35 ;;^UTILITY(U,$J,358.4,1380,0)
+36 ;;=NEW PATIENT^1^114
+37 ;;^UTILITY(U,$J,358.4,1381,0)
+38 ;;=ESTABLISHED PATIENT^2^114
+39 ;;^UTILITY(U,$J,358.4,1382,0)
+40 ;;=EDUCATION & TRAINING FOR SELF MANAGEMENT^3^114
+41 ;;^UTILITY(U,$J,358.4,1383,0)
+42 ;;=ABUSE,NEGLECT, & VIOLENCE^1^115
+43 ;;^UTILITY(U,$J,358.4,1384,0)
+44 ;;=ANXIETY DISORDERS^2^115
+45 ;;^UTILITY(U,$J,358.4,1385,0)
+46 ;;=BIPOLAR & RELATED DISORDERS^3^115
+47 ;;^UTILITY(U,$J,358.4,1386,0)
+48 ;;=NEUROCOGNITIVE DISORDERS^17^115
+49 ;;^UTILITY(U,$J,358.4,1387,0)
+50 ;;=DEPRESSIVE DISORDERS^7^115
+51 ;;^UTILITY(U,$J,358.4,1388,0)
+52 ;;=DISSOCIATIVE DISORDERS ^9^115
+53 ;;^UTILITY(U,$J,358.4,1389,0)
+54 ;;=FEEDING & EATING DISORDERS^12^115
+55 ;;^UTILITY(U,$J,358.4,1390,0)
+56 ;;=EDUC/OCCUPATIONAL PROBLEMS^10^115
+57 ;;^UTILITY(U,$J,358.4,1391,0)
+58 ;;=GENDER DYSPHORIA^14^115
+59 ;;^UTILITY(U,$J,358.4,1392,0)
+60 ;;=HOUSING/ECONOMIC PROBLEMS^15^115
+61 ;;^UTILITY(U,$J,358.4,1393,0)
+62 ;;=MEDICATION ADVERSE EFFECTS^16^115
+63 ;;^UTILITY(U,$J,358.4,1394,0)
+64 ;;=OBSESSIVE-COMPULSIVE & RELATED DISORDERS^19^115
+65 ;;^UTILITY(U,$J,358.4,1395,0)
+66 ;;=PERSONAL HX & CURRENT CIRCUMSTANCES^22^115
+67 ;;^UTILITY(U,$J,358.4,1396,0)
+68 ;;=COUNSELING/MEDICAL ADVICE^5^115
+69 ;;^UTILITY(U,$J,358.4,1397,0)
+70 ;;=SOCIAL ENVIRONMENT PROBLEMS^29^115
+71 ;;^UTILITY(U,$J,358.4,1398,0)
+72 ;;=PARAPHILIC DISORDERS^21^115
+73 ;;^UTILITY(U,$J,358.4,1399,0)
+74 ;;=PERSONALITY DISORDERS^23^115
+75 ;;^UTILITY(U,$J,358.4,1400,0)
+76 ;;=CRIME/LEGAL SYSTEM PROBLEMS^6^115
+77 ;;^UTILITY(U,$J,358.4,1401,0)
+78 ;;=PSYCHOSOCIAL/PERSONAL/ENVIRONMENTAL^24^115
+79 ;;^UTILITY(U,$J,358.4,1402,0)
+80 ;;=RELATIONAL PROBLEMS^25^115
+81 ;;^UTILITY(U,$J,358.4,1403,0)
+82 ;;=SCHIZOPHRENIA/OTH PSYCHOTIC DISORDERS^26^115
+83 ;;^UTILITY(U,$J,358.4,1404,0)
+84 ;;=SEXUAL DYSFUNCTIONS^27^115
+85 ;;^UTILITY(U,$J,358.4,1405,0)
+86 ;;=SLEEP-WAKE DISORDERS^28^115
+87 ;;^UTILITY(U,$J,358.4,1406,0)
+88 ;;=SUBSTANCE DISORDER-ALCOHOL^31^115
+89 ;;^UTILITY(U,$J,358.4,1407,0)
+90 ;;=SUBSTANCE DISORDER-CANNABIS^33^115
+91 ;;^UTILITY(U,$J,358.4,1408,0)
+92 ;;=SUBSTANCE DISORDER-HALLUCINOGEN^34^115
+93 ;;^UTILITY(U,$J,358.4,1409,0)
+94 ;;=SUBSTANCE DISORDER-OPIOID^36^115
+95 ;;^UTILITY(U,$J,358.4,1410,0)
+96 ;;=SUBSTANCE DISORDER-SEDATIVE/HYPNOTIC^37^115
+97 ;;^UTILITY(U,$J,358.4,1411,0)
+98 ;;=SUBSTANCE DISORDER-TOBACCO^39^115