APCLV ; IHS/CMI/LAB - visit data ;
Source file <APCLV.m>
Package | Total | Call Graph |
---|---|---|
Patient Care Component Reports | 7 | DENT^APCLV05 (ATTPHY,MIDWIFE,PRIMPROV,SECPROV)^APCLV06 (ADMDX,PRIMPOV,SECPOV)^APCLV07 PROC^APCLV08 (ACTTIME,ADMSERV,ADMSOURC,ADMTYPE,ADMUB,APCWL,APDT,APWI,CHART,CHSCOST,CLINIC,CODT,COMM,CONSULTS,DDTM,DLM,DOW,DSCHDATE,DSCHSERV,DSCHTYPE,DVEX,DWEX,EM,FACTX,LOCENC,LOS,LS,NLAB,NRX,OUTSL,PATIENT,PCHART,SC,TIME,TRAVTIME,TYPE,VD,VDTM)^APCLV1 IMM^APCLV11 PBMI^APCLV2 |
Kernel | 1 | $$FMDIFF^XLFDT |
Name | Comments | DBIA/ICR reference |
---|---|---|
DWEX(V,F) | ;PEP - return date visit exported to NDW (national data warehouse)
|
|
ADMSOURC(V,F) | ;PEP - return admission type i format F
|
|
FACTX(V,F) | ;PEP - return facility transferred to
|
|
TYPE(V,F) | ;PEP - given V, visit ien and F, format, returns type of visit
|
|
ADMUB(V,F) | ;PEP - return admission type i format F
|
|
VDTM(V,F) | ;PEP - given visit ien in V, return visit date and time in F format
|
|
PCHART(P,L) | ;PEP - returns chart at facility L
|
|
LOS(V) | ;PEP - return length of stay
|
|
COMM(V,F) | ;PEP ; given V as visit ien, COMMUNITY - STATE,COUNTY,COMMUNITY codes of patient
|
|
DENT(V,F,N) | ;PEP - returns dental
|
|
DDTM(V,F) | ;PEP - discharge date/time
|
|
ATTPHY(V,F) | ;PEP - return attending physician
|
|
CHART(V) | ;PEP - returns ASUFAC_HRN ( 12 digits, HRN is left zero filled)
|
|
NRX(V) | ;PEP - returns # of rxs on visit V
|
|
MIDWIFE(V) | ;PEP - return midwifery code
|
|
PATIENT(V,F) | ;PEP - return patient
|
|
ADMTYPE(V,F) | ;PEP - return admission type i format F
|
|
ADMSERV(V,F) | ;PEP - return admitting service in Code, internal or external form
|
|
DVEX(V,F) | ;PEP - return date visit exported
|
|
PROC(V,F,N) | ;PEP - returns procedure N in format F for visit V
|
|
APCWL(V) | ;PEP - is this visit APC Workload Reportable
|
|
EM(V,F) | ;PEP - given V, visit ien and F, format, returns eval&man code of visit
|
|
PRIMPOV(V,F) | ;PEP - returns primary pov on visit V in format F
|
|
CLINIC(V,F) | ;PEP - given V is visit ien, F is format, returns clinic on visit
|
|
TRAVTIME(V) | ;PEP - return travel time
|
|
TVAL | ;
|
|
ACTTIME(V) | ;PEP - return activity time
|
|
BMI(H,W,D) | ;PEP - return BMI if passed Ht and Wt
|
|
CONSULTS(V) | ;PEP - return # of consults
|
|
DSCHSERV(V,F) | ;PEP - return discharge service in format F
|
|
CHSCOST(V) | ;PEP - return CHS total cost
|
|
ADMDX(V,F) | ;PEP - return admitting dx
|
|
SECPROV(V,F,N) | ;PEP - returns secondary provider N in format F
; see primPROV for format definitions, N is the 1-N secondary providers, if you want an array of all secondary providers use SECPROVS EP. |
|
LOCENC(V,F) | ;PEP - given visit ien V, return loc. of encounter in format F
|
|
SECPOV(V,F,N) | ;PEP - returns secondary pov N in format F for visit V
|
|
CODT(V,F) | ;PEP - return check out date&time
|
|
IMM(V,F,N) | ;PEP - returns immunization done on visit V in format F number N
|
|
DLM(V,F) | ;PEP - return date last modified
|
|
LOSHRS(AD,DSD,PAT) | ;PEP; returns length of stay in hours
|
|
NLAB(V) | ;PEP - returns # of labs on the visit V
|
|
PCCVF(V,T,F,A) | ;PEP return v file information
|
|
SC(V,F) | ;PEP - given V=visit ien and F=format, returns service category of visit
|
|
APDT(V,F) | ;PEP - return appt date&time from visit
|
|
LS(V,F) | ;PEP - given V, visit ien and F, format, returns level of servie of visit
|
|
PBMI(P,EDATE) | ;PEP - return patient's most current BMI as of EDATE
|
|
DOW(V,F) | ;PEP - given V, visit ien and F, format returns DOW of visit
|
|
DSCHDATE(V,F) | ;PEP - return discharge date in F format
|
|
TIME(V,F) | ;PEP - given visit ien in V, returns visit time of day i n format F
|
|
DSCHTYPE(V,F) | ;PEP - return discharge type in format F
|
|
VD(V,F) | ;PEP - given visit ien in V, return date of visit in internal or external format
|
|
PRIMPROV(V,F) | ;PEP - returns primary provider on that visit in F format
|
|
OUTSL(V) | ;PEP - returns outside location
|
|
APWI(V,F) | ;PEP - return walk-in/appt
|
Name | Field # of Occurrence |
---|---|
DENT^APCLV05 | DENT+6 |
ATTPHY^APCLV06 | ATTPHY+1 |
MIDWIFE^APCLV06 | MIDWIFE+1 |
PRIMPROV^APCLV06 | PRIMPROV+14 |
SECPROV^APCLV06 | SECPROV+2 |
ADMDX^APCLV07 | ADMDX+1 |
PRIMPOV^APCLV07 | PRIMPOV+10 |
SECPOV^APCLV07 | SECPOV+2 |
PROC^APCLV08 | PROC+13 |
ACTTIME^APCLV1 | ACTTIME+1 |
ADMSERV^APCLV1 | ADMSERV+1 |
ADMSOURC^APCLV1 | ADMSOURC+1 |
ADMTYPE^APCLV1 | ADMTYPE+4 |
ADMUB^APCLV1 | ADMUB+1 |
APCWL^APCLV1 | APCWL+2 |
APDT^APCLV1 | APDT+1 |
APWI^APCLV1 | APWI+1 |
CHART^APCLV1 | CHART+5 |
CHSCOST^APCLV1 | CHSCOST+1 |
CLINIC^APCLV1 | CLINIC+2 |
CODT^APCLV1 | CODT+1 |
COMM^APCLV1 | COMM+2 |
CONSULTS^APCLV1 | CONSULTS+1 |
DDTM^APCLV1 | DDTM+2 |
DLM^APCLV1 | DLM+1 |
DOW^APCLV1 | DOW+2 |
DSCHDATE^APCLV1 | DSCHDATE+3 |
DSCHSERV^APCLV1 | DSCHSERV+1 |
DSCHTYPE^APCLV1 | DSCHTYPE+4 |
DVEX^APCLV1 | DVEX+1 |
DWEX^APCLV1 | DWEX+1 |
EM^APCLV1 | EM+2 |
FACTX^APCLV1 | FACTX+1 |
LOCENC^APCLV1 | LOCENC+2 |
LOS^APCLV1 | LOS+1 |
LS^APCLV1 | LS+2 |
NLAB^APCLV1 | NLAB+1 |
NRX^APCLV1 | NRX+1 |
OUTSL^APCLV1 | OUTSL+1 |
PATIENT^APCLV1 | PATIENT+1 |
PCHART^APCLV1 | PCHART+2 |
SC^APCLV1 | SC+2 |
TIME^APCLV1 | TIME+2 |
TRAVTIME^APCLV1 | TRAVTIME+1 |
TYPE^APCLV1 | TYPE+2 |
VD^APCLV1 | VD+3 |
VDTM^APCLV1 | VDTM+2 |
IMM^APCLV11 | IMM+6 |
PBMI^APCLV2 | PBMI+28 |
$$FMDIFF^XLFDT | LOSHRS+1 |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^AUPNVSIT - [#9000010] | PCCVF+4 |
Name | Line Occurrences |
---|---|
@( | PCCVF+10 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | BMI+6~, BMI+7*, BMI+8*, BMI+9 |
A | PCCVF~ |
AD | LOSHRS~, LOSHRS+1 |
APCLPROG | PCCVF+5~, PCCVF+7*, PCCVF+10 |
APCLTYPE | PCCVF+5~, PCCVF+6*, PCCVF+7*, PCCVF+8 |
APCLV | PCCVF+9! |
D | BMI~, BMI+8 |
DSD | LOSHRS~, LOSHRS+1 |
EDATE | PBMI~ |
F | COMM~, LOCENC~, VD~, VDTM~, DDTM~, TIME~, DOW~, TYPE~, SC~, CLINIC~ , EM~, LS~, ADMSERV~, DSCHSERV~, ADMTYPE~, ADMUB~, ADMSOURC~, DSCHTYPE~, PRIMPROV~, SECPROV~ , PRIMPOV~, SECPOV~, PROC~, IMM~, DENT~, DSCHDATE~, ATTPHY~, FACTX~, PATIENT~, DLM~ , DVEX~, DWEX~, CODT~, APDT~, APWI~, ADMDX~, PCCVF~, PCCVF+3 |
H | BMI~, BMI+4, BMI+7* |
>> I | PCCVF+7* |
L | PCHART~ |
N | SECPROV~, SECPOV~, PROC~, IMM~, DENT~ |
P | PCHART~, PBMI~ |
PAT | LOSHRS~ |
T | PCCVF~, PCCVF+1, PCCVF+7 |
V | COMM~, CHART~, LOCENC~, VD~, VDTM~, DDTM~, TIME~, DOW~, TYPE~, SC~ , CLINIC~, EM~, LS~, ADMSERV~, DSCHSERV~, NLAB~, ADMTYPE~, ADMUB~, ADMSOURC~, DSCHTYPE~ , NRX~, PRIMPROV~, SECPROV~, PRIMPOV~, SECPOV~, PROC~, IMM~, DENT~, DSCHDATE~, CONSULTS~ , ATTPHY~, LOS~, FACTX~, MIDWIFE~, ACTTIME~, TRAVTIME~, CHSCOST~, PATIENT~, DLM~, DVEX~ , DWEX~, CODT~, APDT~, APWI~, OUTSL~, ADMDX~, PCCVF~, PCCVF+2, PCCVF+4, APCWL~ |
W | BMI~, BMI+5, BMI+7* |
X | PCCVF+5~, PCCVF+7* |
Name | Field # of Occurrence |
---|---|
$T(TVAL+I | PCCVF+7 |