PSUCS1 ;BIR/DJE - PBM CONTROLLED SUBSTANCE GENERATE RECORDS ;20 OCT 1999 ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005 ; ;DBIA(s) ; Reference to file #58.81 supported by DBIA 2520 ; ;3.2.5.1. Functional Requirement 1 ;3.2.5.2. Functional Requirement 2 ; DTTM=DATE/TIME ; PSULOC=PSULOCATION ; PSUTYP=DISPENSING TYPE ; PSUIENDA=TRANSACTION INIT ; S PSUCSJB=$G(PSUCSJB,"PSUCS_"_PSUJOB) ;*** THE DEFAULT RECORD INDICATOR IS 'H' AND ; K ^XTMP(PSUCSJB) I '$D(^XTMP(PSUCSJB)) D . S X1=DT,X2=6 D C^%DTC . S ^XTMP(PSUCSJB,0)=X_"^"_DT_"^ Controlled Substance Extraction" S FACILITY=PSUSNDR S PSUSDT=$G(PSUSDT,"") S PSUEDT=$G(PSUEDT,"") S PSUEDT=PSUEDT\1+.24 ;S PSURI="H" DAM TEST S PSUMCHK=0 Q ; EN ;ENTRY POINT D INIT S DTTM=PSUSDT F S DTTM=$O(^PSD(58.81,"AF",DTTM)) Q:(DTTM="")!(DTTM'