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

APCPSR11.m

Go to the documentation of this file.
APCPSR11 ; IHS/TUCSON/LAB - CONT APCPSR11 AUGUST 14, 1992 ; [ 04/07/99 12:25 PM ]
 ;;2.0;IHS PCC DATA EXTRACTION SYSTEM;**1**;APR 03, 1998
 ;IHS/CMI/LAB - XTMP
SET ;EP
 S APCPSR("1")="ERRORSC",APCPSR("3")="ERRORS" D SET1
 S APCPSR("1")="PROVC",APCPSR("3")="PROV" D SET2
 S APCPSR("1")="TYPEC",APCPSR("3")="TYPE" D SET2
 S APCPSR("1")="SCC",APCPSR("3")="SC" D SET2
 S APCPSR("1")="CLINICC",APCPSR("3")="CLINIC" D SET2
 S APCPSR("1")="LOCC",APCPSR("3")="LOC" D SET2
 S APCPSR("1")="PROV REM CC",APCPSR("3")="PROV REM" D SET1
 S APCPSR("1")="CLINIC REM CC",APCPSR("3")="CLINIC REM" D SET1
 S APCPSR("1")="LOC REM CC",APCPSR("3")="LOC REM" D SET1
 S APCPSR("1")="SC REM CC",APCPSR("3")="SC REM" D SET1
 S APCPSR("1")="TYPE REM CC",APCPSR("3")="TYPE REM" D SET1
 S APCPSR("1")="PROV CHA CC",APCPSR("3")="PROV CHA" D SET2
 S APCPSR("1")="CLINIC CHA CC",APCPSR("3")="CLINIC CHA" D SET2
 S APCPSR("1")="LOC CHA CC",APCPSR("3")="LOC CHA" D SET2
 S APCPSR("1")="SC CHA CC",APCPSR("3")="SC CHA" D SET2
 S APCPSR("1")="TYPE CHA CC",APCPSR("3")="TYPE CHA" D SET2
 S APCPSR("1")="PROV STATDB CC",APCPSR("3")="PROV STATDB" D SET2
 S APCPSR("1")="CLINIC STATDB CC",APCPSR("3")="CLINIC STATDB" D SET2
 S APCPSR("1")="LOC STATDB CC",APCPSR("3")="LOC STATDB" D SET2
 S APCPSR("1")="SC STATDB CC",APCPSR("3")="SC STATDB" D SET2
 S APCPSR("1")="TYPE STATDB CC",APCPSR("3")="TYPE STATDB" D SET2
 S APCPSR("1")="TYPE ERROR CC",APCPSR("3")="TYPE ERROR" D SET1
 S APCPSR("1")="CLINIC ERROR CC",APCPSR("3")="CLINIC ERROR" D SET1
 S APCPSR("1")="PROV HOSP CC",APCPSR("3")="PROV HOSP" D SET2
 S APCPSR("1")="TYPE HOSP CC",APCPSR("3")="TYPE HOSP" D SET2
 S APCPSR("1")="SC HOSP CC",APCPSR("3")="SC HOSP" D SET2
 S APCPSR("1")="LOC HOSP CC",APCPSR("3")="LOC HOSP" D SET2
 S APCPSR("1")="SC ERROR CC",APCPSR("3")="SC ERROR" D SET1
 Q
SET1 ;
 S APCPSR("PROC")=""""_APCPSR_""",APCPJOB,APCPBTH,"_""""_"SKIPPED"_""""
 S APCPSR("2")="^XTMP("_APCPSR("PROC")_","""_APCPSR("3")_""",X)"
 S X="" F  S X=$O(@APCPSR("2")) Q:X=""  S %=^(X) S ^XTMP("APCPSR",APCPJOB,APCPBTH,"SKIPPED",APCPSR("1"),9999999-%,X)=%
 Q
SET2 ;
 S APCPSR("PROC")=""""_APCPSR_""",APCPJOB,APCPBTH,"_""""_"GEN"_""""
 S APCPSR("2")="^XTMP("_APCPSR("PROC")_","""_APCPSR("3")_""",X)"
 S X="" F  S X=$O(@APCPSR("2")) Q:X=""  S %=^(X) S ^XTMP("APCPSR",APCPJOB,APCPBTH,"GEN",APCPSR("1"),9999999-%,X)=%
 Q