BMXADOV2 ; IHS/CIHA/GIS - RPC CALL: GENERATE DATA FOR AN ADO DATASET ;
Source file <BMXADOV2.m>
Package | Total | Call Graph |
---|---|---|
M Transfer | 2 | $$IENS^BMXADOV DATA^BMXADOV1 |
VA Fileman | 2 | ^%DT FIND^DIC |
Name | Comments | DBIA/ICR reference |
---|---|---|
PT(VAL,IENS,MAX,OUT,TOT) | ; EP - PATIENT LOOKUP ; GIVEN A LOOKUP VALUE, GENERATE A LIST OF PATIENTS
|
|
MEDICARE(PARAM,IENS,MAX,OUT,TOT) | ;
; NO PARAM REQUIRED BUT SINCE THIS IS A SUBFILE, THE PATIENT IEN MUST BE IH IENS ; FETCHES THE MOST RECENT MEDICARE RECORD FOR THE PATIENT |
|
MEDICAID(PARAM,IENS,MAX,OUT,TOT) | ;
; NO PARAM REQUIRED BUT SINCE THIS IS A SUBFILE, THE PATIENT IEN MUST BE IH IENS ; FETCHES THE MOST RECENT MEDICARE RECORD FOR THE PATIENT |
|
PVTINS | ;
; NO PARAM REQUIRED BUT SINCE THIS IS A SUBFILE, THE PATIENT IEN MUST BE IH IENS |
|
DUPV(PARAM,IENS,MAX,OUT,TOT) | ; EP - DUPLICATE VISIT ITERATION
; PARAM: 'DFN|VISIT TIMESTAMP|TYPE|LOCATION|CATEGORY ; PATIENT DFN AND VISIT TIMESTAMP (EXTERNAL DATE FORMAT) MUST EXIST. ; THE OTHER 3 DUP PARAMETERS WILL BE CHECKED ONLY IF THEY ARE DEFINED. ; ALL DUPS ARE RETURNED. MAX,START,STOP ARE IGNORED |
|
DAIT(DSTG,IENS,MAX,OUT,TOT) | ; EP - SET OF IENS ITERATION.
; THE DSTG CONTAINS A "|" SET OF DAS STRINGS ; ALL VALUES ARE RETURNED. MAX IS NOT CHECKED. START AND STOP ARE IRRELEVANT |
|
MCDIEN(DFN) | ; EP-GIVEN A PATIENT IEN, RETRUN THE IEN OF THAT PT'S MOST RECENT RECORD IN MEDICAID ELIGIBILITY FILE
|
|
APRV(PARAM,IENS,MAX,OUT,TOT) | ; EP - RETURN A LIST OF ALL ACTIVE PROVIDERS
; ALL VALUES ARE RETURNED. MAX IS NOT CHECKED. START AND STOP ARE IRRELEVANT |
|
HRN(DFN) | ; EP - GIVEN A PATIENT DFN, RETURN THE LOCAL CHART NUMBER
|
|
PT1 | ||
PTIT | ; ITERATE
|
FileNo | Call Tags |
---|---|
^DPT - [#2] | FIND^DIC |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^AUPNMCD - [#9000004] | MCDIEN+4, MCDIEN+5, MEDICAID+6, MEDICAID+7 |
^AUPNMCD("B" | MCDIEN+3 |
^AUPNMCR - [#9000003] | MEDICARE+6, MEDICARE+7 |
^AUPNPAT - [#9000001] | HRN+1 |
^AUPNPAT("D" | PT+8 |
^AUPNPRVT - [#9000006] | PVTINS+5, PVTINS+6 |
^AUPNVSIT - [#9000010] | DUPV+13 |
^AUPNVSIT("AA" | DUPV+12 |
^DD("2" | PT+5, PTIT+3 |
^DPT - [#2] | DUPV+7 |
^TMP( | PT+6, PT1, PT1+2, PTIT+2 |
^VA(200 - [#200] | APRV+4, APRV+6, APRV+7 |
Name | Line Occurrences |
---|---|
PT1 | PT+11 |
PTIT | PT+9 |
Name | Field # of Occurrence |
---|---|
^( | PTIT+2 |
^("IHS0" | PT+5*, PTIT+3* |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | MEDICARE+3~, MEDICAID+3~, PT+1~, PT+12*, PVTINS+2~, PVTINS+8*, PVTINS+9 |
%DT | PT+13*, DUPV+5~, DUPV+9* |
>> B | DUPV+6, DAIT+4, DAIT+5 |
BMXNOID | PT+1~, PT+3* |
>> C | MEDICARE+5, MEDICAID+5, PVTINS+4, DUPV+18, DAIT+7 |
CAT | DUPV+5~, DUPV+6*, DUPV+17 |
CNT | PT+1~, PT+7*, PT+8*, PT+9, PTIT+1*, PTIT+2* |
DA | MEDICARE+3~, MEDICARE+4*, MEDICARE+6*, MEDICARE+7, MEDICARE+8, MEDICARE+11*, MEDICARE+12, MCDIEN+1~, MCDIEN+4*, MCDIEN+5 , MEDICAID+3~, MEDICAID+4*, MEDICAID+6*, MEDICAID+7, MEDICAID+8, MEDICAID+11*, MEDICAID+12, PT+1~, PTIT+2*, PVTINS+2~ , PVTINS+3*, PVTINS+5*, PVTINS+6, PVTINS+9, DUPV+5~, DUPV+18*, DUPV+19, DAIT+3~, DAIT+9*, DAIT+10 , APRV+2~, APRV+5*, APRV+6*, APRV+7, APRV+8 |
DAS | DAIT+3~, DAIT+5*, DAIT+6, DAIT+7, DAIT+8 |
DATE | MEDICARE+3~, MEDICARE+4*, MEDICARE+8*, MCDIEN+1~, MCDIEN+2*, MCDIEN+6*, MEDICAID+3~, MEDICAID+4*, MEDICAID+8* |
DAY | DUPV+5~, DUPV+11*, DUPV+12 |
DFN | MEDICARE+3~, MEDICARE+5*, MEDICARE+6, MEDICARE+7, MCDIEN~, MCDIEN+2*, MCDIEN+3, PT+1~, PT+7*, PT+8* , HRN~, HRN+1, PVTINS+2~, PVTINS+4*, PVTINS+5, PVTINS+6, DUPV+5~, DUPV+6*, DUPV+7, DUPV+12 |
DSTG | DAIT~, DAIT+4, DAIT+5 |
DT | MEDICARE+4, MEDICAID+4, PVTINS+3 |
DUZ(2 | HRN+1 |
FILE | PT+1~ |
FMTIME | DUPV+5~, DUPV+10*, DUPV+11 |
GBL | PT+1~, PT+6*, PT+8, PT1*, PT1+1 |
IDT | DUPV+5~, DUPV+11*, DUPV+12* |
IENS | MEDICARE~, MEDICARE+5, MEDICARE+12, MEDICAID~, MEDICAID+5, MEDICAID+12, PT~, PTIT+2, PVTINS+4, PVTINS+9 , DUPV~, DUPV+5~, DUPV+18*, DUPV+19, DAIT~, DAIT+3~, DAIT+7*, DAIT+8*, DAIT+9, DAIT+10 , APRV~, APRV+8 |
IXS | PT+1~ |
L | DAIT+3~, DAIT+4*, DAIT+5 |
LIM | MEDICARE+3~, MEDICARE+4*, MEDICAID+3~, MEDICAID+4*, PT+1~, PVTINS+2~, PVTINS+3*, PVTINS+9 |
LOC | DUPV+5~, DUPV+6*, DUPV+16 |
MAX | MEDICARE~, MEDICARE+3~, MEDICARE+4*, MEDICARE+8*, MEDICARE+10, MEDICARE+11, MCDIEN+1~, MCDIEN+2*, MCDIEN+6*, MCDIEN+9 , MEDICAID~, MEDICAID+3~, MEDICAID+4*, MEDICAID+8*, MEDICAID+10, MEDICAID+11, PT~, PT+4*, DUPV~, DAIT~ , APRV~ |
MIEN | MCDIEN+1~, MCDIEN+3*, MCDIEN+4, MCDIEN+5, MCDIEN+6, MEDICAID+3~, MEDICAID+5*, MEDICAID+6, MEDICAID+7 |
NAME | APRV+2~, APRV+3*, APRV+4*, APRV+6 |
NUM | PT+1~, PTIT+1* |
OUT | MEDICARE~, MEDICAID~, PT~, DUPV~, DAIT~, APRV~ |
PARAM | MEDICARE~, MEDICAID~, DUPV~, DUPV+6, APRV~ |
PATIENT | DUPV+5~ |
PCE | DAIT+3~, DAIT+5* |
SS | PT+1~, PT+6*, PT1*, PT1+2, PTIT+2 |
STG | APRV+2~ |
TIME | DUPV+5~, DUPV+6*, DUPV+7, DUPV+9 |
TOT | MEDICARE~, MEDICAID~, PT~, DUPV~, DAIT~, APRV~ |
TYPE | DUPV+5~, DUPV+6*, DUPV+15 |
U | MCDIEN+5, HRN+1, PVTINS+8, DUPV+14, DUPV+15, DUPV+16, DUPV+17, APRV+7 |
VAL | PT~, PT+2, PT+8, PT+10*, PT+11, PT+12, PT+13*, PT1+1 |
VIEN | DUPV+5~, DUPV+12*, DUPV+13, DUPV+18 |
X | MEDICARE+3~, MEDICARE+7*, MEDICARE+8, MCDIEN+1~, MCDIEN+5*, MCDIEN+6, MEDICAID+3~, MEDICAID+7*, MEDICAID+8, PT+1~ , PT+12*, PT+13*, PVTINS+2~, PVTINS+6*, PVTINS+7, PVTINS+8, DUPV+5~, DUPV+9*, DUPV+13*, DUPV+14 , DUPV+15, DUPV+16, DUPV+17 |
XIT | DAIT+3~, DAIT+5, DAIT+6* |
Y | MEDICARE+3~, MEDICAID+3~, PT+1~, PT+13, PVTINS+2~, DUPV+5~, DUPV+9, DUPV+10 |