BGPMUG06 ; IHS/MSC/MMT - MI measure NQF0004 ;20-Aug-2011 14:56;DU
Source file <BGPMUG06.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
VSTSTORE | ;Store compliant visit into array
|
|
NUMSTR1(NUM1) | ;generate display string for NUM 1
|
|
NUM1(DFN,DEN) | ;Look for alcohol/drug treatment
|
|
DEN(DFN,BDATE,EDATE) | ;CHECK IF PT IS IN DENOMINATOR
|
|
TOTAL(DFN,DEN,NUM1,NUM2) | ;See where this patient ends up
|
|
TOTSUB(DENPOP) | ;ADD Patient to a population's totals
|
|
ENTRY | ;EP
|
|
NUM2(DFN,NUM1) | ;Look for 2nd & 3rd alcohol/drug treatment <= 30 days after first treatment (NUM1)
|
|
DENSTR1(DEN) | ;generate display string for denom criteria 1 - Dx present with IP/ED visit
|
|
NUMSTR2(NUM1) | ;generate display string for NUM 2
|
Name | Field # of Occurrence |
---|---|
$$PRV^BGPMUUT1 | DEN+11 |
$$VSTCPT^BGPMUUT1 | DEN+17, DEN+19, DEN+21, DEN+23, DEN+25 |
$$LASTDX^BGPMUUT2 | DEN+41 |
$$LASTPRC^BGPMUUT2 | DEN+31, DEN+36 |
$$VSTICD0^BGPMUUT3 | DEN+14 |
$$VSTPOV^BGPMUUT3 | DEN+13 |
$$DATE^BGPMUUTL | VSTSTORE+8, DENSTR1+5, DENSTR1+7, DENSTR1+8, NUMSTR1+1, NUMSTR2+3, NUMSTR2+6 |
$$FMADD^XLFDT | NUM1+3, NUM2+4, DEN+4, DEN+41 |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^AUPNVPRC - [#9000010.08] | DEN+32, DEN+37 |
^AUPNVSIT - [#9000010] | VSTSTORE+2 |
^AUPNVSIT("AA" | DEN+8, DEN+9 |
^TMP("BGPMU0004" | TOTSUB+3, TOTSUB+4, TOTSUB+5, TOTSUB+6, TOTSUB+7, TOTSUB+8, TOTSUB+11*, TOTSUB+17*, TOTSUB+18*, TOTSUB+20* , TOTSUB+21*, TOTSUB+23*, TOTSUB+24*, TOTSUB+26*, TOTSUB+27*, TOTSUB+28* |
Name | Line Occurrences |
---|---|
$$DEN | ENTRY+8 |
$$DENSTR1 | TOTSUB+12 |
$$NUM1 | ENTRY+11 |
$$NUM2 | ENTRY+12 |
$$NUMSTR1 | TOTSUB+14 |
$$NUMSTR2 | TOTSUB+15 |
TOTAL | ENTRY+13 |
TOTSUB | TOTAL+1, TOTAL+2, TOTAL+3 |
VSTSTORE | DEN+18, DEN+20, DEN+22, DEN+24, DEN+26 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
ALCDX | DEN+2~, DEN+13*, DEN+18, DEN+20, DEN+22, DEN+26, DEN+44!, VSTSTORE+6 |
ALCPROC | DEN+2~, DEN+14*, DEN+20, DEN+22, DEN+44!, VSTSTORE+6 |
BDATE | DEN~ |
>> BGPAGEE | ENTRY+7, TOTAL+1, TOTAL+2 |
>> BGPBDATE | ENTRY+8 |
>> BGPEDATE | ENTRY+8 |
>> BGPICARE("MU.EP.0004.1" | TOTSUB+30* |
>> BGPICARE("MU.EP.0004.2" | TOTSUB+31* |
>> BGPMUTF | TOTSUB+3, TOTSUB+4, TOTSUB+5, TOTSUB+6, TOTSUB+7, TOTSUB+8, TOTSUB+11, TOTSUB+17, TOTSUB+18, TOTSUB+20 , TOTSUB+21, TOTSUB+23, TOTSUB+24, TOTSUB+26, TOTSUB+27, TOTSUB+28, TOTSUB+30, TOTSUB+31 |
>> BGPPROV | DEN+11, DEN+32, DEN+37 |
BHENC | DEN+2~, DEN+15*, DEN+23*, DEN+24, DEN+44!, VSTSTORE+6 |
BHPENC | DEN+2~, DEN+15*, DEN+25*, DEN+26, DEN+44! |
CNT | ENTRY+3~, NUM1+6, DEN+7*, DEN+30, DEN+34, VSTSTORE+1*, VSTSTORE+6, VSTSTORE+8 |
COUNT | NUMSTR2+1~, NUMSTR2+2*, NUMSTR2+5, NUMSTR2+7*, NUMSTR2+8 |
DATA | ENTRY+2~ |
DEN | ENTRY+3~, ENTRY+4*, ENTRY+8*, ENTRY+9, ENTRY+11, ENTRY+13, TOTAL~, TOTSUB+12, NUM1~, NUM1+3 , NUM1+5, NUM1+6, DEN+39*, DEN+42*, DEN+43*, DEN+45, DENSTR1~, DENSTR1+2, DENSTR1+3, DENSTR1+4 , DENSTR1+5, DENSTR1+8 |
DENCT | TOTSUB+1~, TOTSUB+4*, TOTSUB+11* |
DENPOP | TOTSUB~, TOTSUB+3, TOTSUB+4, TOTSUB+5, TOTSUB+6, TOTSUB+7, TOTSUB+8, TOTSUB+11, TOTSUB+17, TOTSUB+18 , TOTSUB+20, TOTSUB+21, TOTSUB+23, TOTSUB+24, TOTSUB+26, TOTSUB+27, TOTSUB+28, TOTSUB+30, TOTSUB+31 |
DENSTR1 | TOTSUB+2~, TOTSUB+12*, TOTSUB+13, TOTSUB+18, TOTSUB+21, TOTSUB+30 |
DENSTR2 | TOTSUB+2~, TOTSUB+13*, TOTSUB+24, TOTSUB+27, TOTSUB+31 |
DFN | ENTRY+8, ENTRY+11, ENTRY+12, ENTRY+13, TOTAL~, TOTSUB+18, TOTSUB+21, TOTSUB+24, TOTSUB+27, NUM1~ , NUM2~, DEN~, DEN+8, DEN+9, DEN+13, DEN+14, DEN+17, DEN+19, DEN+21, DEN+23 , DEN+25, DEN+31, DEN+36, DEN+41 |
DXDT | DENSTR1+1~, DENSTR1+2*, DENSTR1+7 |
EDATE | DEN~, DEN+4 |
EDENC | DEN+2~, DEN+15*, DEN+17*, DEN+18, DEN+44!, VSTSTORE+6 |
END | ENTRY+1~, DEN+1~, DEN+5*, DEN+8 |
FIRST | ENTRY+2~, DEN+8*, DEN+9 |
FIRSTVST | DEN+3~, DEN+29*, DEN+32*, DEN+34*, DEN+35, DEN+36, DEN+37*, DEN+38*, DEN+39, DEN+41 , DEN+43 |
FOUND | NUM1+2~, NUM1+3*, NUM1+5*, NUM1+7, NUM1+9*, NUM1+10, NUM2+2~, NUM2+5*, NUM2+11*, NUM2+12 |
FUP2DATE | NUM2+2~, NUM2+4*, NUM2+8 |
IEN | ENTRY+2~, DEN+9*, DEN+11, DEN+13, DEN+14, DEN+17, DEN+19, DEN+21, DEN+23, DEN+25 , VSTSTORE+2, VSTSTORE+6 |
INITDATE | NUM1+2~, NUM1+3*, NUM1+9 |
INTVPRC | DEN+3~, DEN+31*, DEN+32, DEN+36*, DEN+37 |
INV | ENTRY+2~ |
IPAENC | DEN+2~, DEN+15*, DEN+19*, DEN+20, DEN+44!, VSTSTORE+6 |
IPENC | DEN+2~, DEN+15*, DEN+21*, DEN+22, DEN+44!, VSTSTORE+6 |
NOTNUM | TOTSUB+1~ |
>> NOTNUM1 | TOTSUB+7*, TOTSUB+20* |
>> NOTNUM2 | TOTSUB+8*, TOTSUB+26* |
NUM1 | ENTRY+3~, ENTRY+4*, ENTRY+11*, ENTRY+12, ENTRY+13, TOTAL~, TOTSUB+14, TOTSUB+15, TOTSUB+16, TOTSUB+19 , TOTSUB+30, NUM2~, NUM2+4, NUM2+6, NUMSTR1~, NUMSTR1+1, NUMSTR2~, NUMSTR2+3, NUMSTR2+4 |
NUM1CT | TOTSUB+1~, TOTSUB+5*, TOTSUB+17* |
NUM2 | ENTRY+3~, ENTRY+4*, ENTRY+12*, ENTRY+13, TOTAL~, TOTSUB+22, TOTSUB+25, TOTSUB+31 |
NUM2CT | TOTSUB+1~, TOTSUB+6*, TOTSUB+23* |
NUMSTR1 | TOTSUB+2~, TOTSUB+14*, TOTSUB+18, TOTSUB+21, TOTSUB+30 |
NUMSTR2 | TOTSUB+2~, TOTSUB+15*, TOTSUB+24, TOTSUB+27, TOTSUB+31 |
PRCDT | DENSTR1+1~, DENSTR1+3*, DENSTR1+7 |
PREVDX | DEN+3~, DEN+41*, DEN+42 |
PTCNT | TOTSUB+1~, TOTSUB+9*, TOTSUB+10*, TOTSUB+18, TOTSUB+21, TOTSUB+24, TOTSUB+27, TOTSUB+28 |
SRCHEND | DEN+1~, DEN+4*, DEN+5, DEN+31 |
SRCHSTRT | DEN+1~, DEN+4*, DEN+5, DEN+31, DEN+36 |
ST | NUM2+2~, NUM2+3! |
START | ENTRY+1~, DEN+1~, DEN+5*, DEN+6*, DEN+8 |
STRING | ENTRY+1~, DENSTR1+1~, DENSTR1+5*, DENSTR1+7*, DENSTR1+8*, DENSTR1+9, NUMSTR2+1~, NUMSTR2+2*, NUMSTR2+3*, NUMSTR2+6* , NUMSTR2+9 |
STRING( | VSTSTORE+8* |
STRING2 | ENTRY+1~ |
TCNT | NUM2+2~, NUM2+4*, NUM2+10*, NUM2+11 |
TOTAL | TOTSUB+1~, TOTSUB+3*, TOTSUB+9 |
U | TOTSUB+18, TOTSUB+21, TOTSUB+24, TOTSUB+27, TOTSUB+30, TOTSUB+31, NUM1+3, NUM1+5, NUM1+6, NUM1+9 , NUM2+4, NUM2+6, NUM2+8, NUM2+10, DEN+32, DEN+34, DEN+37, DEN+38, DEN+41, VSTSTORE+2 , VSTSTORE+6, DENSTR1+2, DENSTR1+3, DENSTR1+4, DENSTR1+5, DENSTR1+8, NUMSTR1+1, NUMSTR2+3, NUMSTR2+4, NUMSTR2+6 |
V1 | NUM2+2~, NUM2+6*, NUM2+7, NUMSTR2+1~, NUMSTR2+4*, NUMSTR2+5 |
VALUE | ENTRY+2~ |
VDATE | ENTRY+2~, VSTSTORE+2*, VSTSTORE+6, VSTSTORE+8 |
VIEN | ENTRY+2~ |
VIEN( | NUM1+5, NUM1+9, NUM2+8, NUM2+10, DEN+34, DEN+38, VSTSTORE+6*, DENSTR1+2, DENSTR1+3, DENSTR1+8 , NUMSTR2+6 |
VISIT | ENTRY+2~ |
VPTR | NUM1+2~, NUM1+7*, NUM1+9, NUM2+2~, NUM2+7*, NUM2+8, NUM2+10, DEN+3~, DEN+34*, DEN+38 , NUMSTR2+1~, NUMSTR2+5*, NUMSTR2+6 |
VSTRT | NUM1+2~, NUM1+6*, NUM1+7 |