Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: APCPHPRV

APCPHPRV.m

Go to the documentation of this file.
APCPHPRV ; IHS/TUCSON/LAB - INPATIENT RECORD PROVIDER INFOR AUGUST 14, 1992 ; [ 04/03/98  08:39 AM ]
 ;;2.0;IHS PCC DATA EXTRACTION SYSTEM;;APR 03, 1998
PROV ;
 ;get all provider information
 S (APCPH("MID"),APCPH("APC"))="",O=0 F  S O=$O(^AUPNVPRV("AD",APCP("V DFN"),O)) Q:O=""!($D(APCPE("ERROR")))  D DISC
 I $D(APCPE("ERROR")) Q
 I $D(APCPT("A")) S APCPH("APC")=APCPT("A") G EOJ
 S:$D(APCPT("P")) APCPH("APC")=APCPT("P")
 ;
EOJ ;
 K APCPT,X,Y,I,O
 Q
DISC ; Provider Code. CP
 S X=$P(^AUPNVPRV(O,0),U)
 S I=$$VAL^XBDIQ1(APCPS("PROV FILE"),X,1)
 S I=$E("    ",1,4-$L(I))_I
 S:$P(^AUPNVPRV(O,0),U,5)="A" APCPT("A")=I S:$P(^(0),U,4)="P" APCPT("P")=I
 I $$VAL^XBDIQ1(APCPS("PROV FILE"),X,9999999.03)=17 S APCPH("MID")=1
 Q