Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Details
Print Page as PDF
Sub-Field: 58.8112

Package: Drug Accountability

DRUG ACCOUNTABILITY ORDER(#58.811)-->58.8112

Sub-Field: 58.8112


Information

Parent File Name Number Package
DRUG ACCOUNTABILITY ORDER(#58.811) INVOICE DATA 58.8112 Drug Accountability

Details

Field # Name Loc Type Details
.01 INVOICE NUMBER 0;1 FREE TEXT

  • INPUT TRANSFORM:  K:$L(X)>22!($L(X)<1) X
  • LAST EDITED:  OCT 21, 1997
  • HELP-PROMPT:  Enter the invoice number from the prime vendor.
  • DESCRIPTION:  
    The INVOICE NUMBER field contains the number of the invoice from the prime vendor.
  • CROSS-REFERENCE:  58.8112^B
    1)= S ^PSD(58.811,DA(1),1,"B",$E(X,1,30),DA)=""
    2)= K ^PSD(58.811,DA(1),1,"B",$E(X,1,30),DA)
    3)= DO NOT DELETE!
    This cross-reference is used to locate an invoice number.
  • CROSS-REFERENCE:  58.811^AINV^MUMPS
    1)= S ^PSD(58.811,"AORD",$P($G(^PSD(58.811,DA(1),0)),"^"),X,DA(1),DA)=""
    2)= K ^PSD(58.811,"AORD",$P($G(^PSD(58.811,DA(1),0)),"^"),X,DA(1),DA)
    3)= DO NOT DELETE!
    This cross-reference is used to determine if an order's invoice has been received. It set the "AORD" cross-reference.
    ^PSD(58.811,"AORD",ORDER NUMBER,INVOICE NUMBER,Order internal entry#,DA)=""
1 INVOICE DATE 0;2 DATE

  • INPUT TRANSFORM:  S %DT="EX" D ^%DT S X=Y K:Y<1 X
  • LAST EDITED:  MAY 22, 1997
  • HELP-PROMPT:  Enter the date of the invoice.
  • DESCRIPTION:  
    The INVOICE DATE field contains the date the invoice was issued by the vendor
  • CROSS-REFERENCE:  58.811^ADATE
    1)= S ^PSD(58.811,"ADATE",$E(X,1,30),DA(1),DA)=""
    2)= K ^PSD(58.811,"ADATE",$E(X,1,30),DA(1),DA)
    3)= DO NOT DELETE!
    This cross-reference is used to locate an invoice number.
  • CROSS-REFERENCE:  58.811^AINVDT^MUMPS
    1)= D SLOCDT^PSAUTL3
    2)= D KLOCDT^PSAUTL3
    3)= DO NOT DELETE!
    This cross-reference is used to locate invoices within a pharmacy location or master vault for a specific invoice date. It sets the "ALOC" cross-reference.
    If there is data in the PHARMACY LOCATION field (#4), ^PSD(58.811,"ALOC",PHARMACY LOCATION,Order's internal entry#,DA)="" is set.
    If there is data in the MASTER VAULT field (#13), ^PSD(58.811,"ALOC",MASTER VAULT,Order's internal entry#,DA)="" is set.
    If there is data in both the PHARMACY LOCATION and MASTER VAULT fields, both cross-references are set.
2 INVOICE STATUS 0;3 SET
  • 'P' FOR PROCESSED;
  • 'V' FOR VERIFIED;
  • 'C' FOR COMPLETED;
  • 'L' FOR LOCKED VERIFYING;

  • LAST EDITED:  MAR 22, 2006
  • HELP-PROMPT:  Enter the status of the invoice.
  • DESCRIPTION:  
    The INVOICE STATUS field contains the status of the invoice. When the invoice is completed, the drug balances are incremented with the quantities received on the invoice.
  • CROSS-REFERENCE:  58.811^ASTAT
    1)= S ^PSD(58.811,"ASTAT",$E(X,1,30),DA(1),DA)=""
    2)= K ^PSD(58.811,"ASTAT",$E(X,1,30),DA(1),DA)
    3)= DO NOT DELETE!
    This cross-reference is used to locate all invoices with a specific status.
3 ORDER DATE 0;4 DATE

  • INPUT TRANSFORM:  S %DT="EX" D ^%DT S X=Y K:Y<1 X
  • LAST EDITED:  MAY 03, 1996
  • HELP-PROMPT:  Enter the date the order was placed with the prime vendor.
  • DESCRIPTION:  
    The ORDER DATE field contains the date the order was placed for the invoiced drugs.
4 PHARMACY LOCATION 0;5 POINTER TO DRUG ACCOUNTABILITY STATS FILE (#58.8) DRUG ACCOUNTABILITY STATS(#58.8)

  • INPUT TRANSFORM:  S DIC("S")="I $P($G(^PSD(58.8,+Y,0)),U,2)=""P""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
  • LAST EDITED:  AUG 29, 1997
  • HELP-PROMPT:  Enter the Drug Accountability pharmacy location for which the order was placed.
  • DESCRIPTION:  
    The PHARMACY LOCATION field contains the Drug Accountability pharmacy location for which the invoiced order was placed. The pharmacy location received the items not marked as a controlled substance.
  • TECHNICAL DESCR:  
    The field points to the DRUG ACCOUNTABILITY STATS file (#58.8). The node pointed to must contain an "P" in the LOCATION TYPE field (#1).
  • SCREEN:  S DIC("S")="I $P($G(^PSD(58.8,+Y,0)),U,2)=""P"""
  • EXPLANATION:  Only pharmacy locations can be selected.
  • CROSS-REFERENCE:  58.811^ALOC^MUMPS
    1)= D SLOC^PSAUTL3
    2)= D KLOC^PSAUTL3
    3)= DO NOT DELETE!
    This cross-reference is used to locate invoices within a pharmacy location for a specific invoice date. It sets the "ALOC"cross-reference.
    ^PSD(58.811,"ALOC",PHARMACY LOCATION,Order's internal entry#,DA)=""
5 LINE ITEM DATA 1;0 Multiple #58.81125 58.81125

  • DESCRIPTION:  The LINE ITEM DATA multiple contains the line item number, drug, quantity invoiced, order unit, price per order unit, date drugs were received, date the line item was processed, processor, date the line item was
    verified, verifier, and adjustment data for each line item.
  • IDENTIFIED BY:  DRUG(#1)
6 CREDITS 2;0 Multiple #58.81126 58.81126

  • DESCRIPTION:  
    The CREDITS multiple contains the credit memo data issued against the invoice.
7 DELIVERY DATE 0;6 DATE

  • INPUT TRANSFORM:  S %DT="EX" D ^%DT S X=Y K:Y<1 X
  • LAST EDITED:  NOV 07, 1996
  • HELP-PROMPT:  Enter the delivery date on the invoice.
  • DESCRIPTION:  
    The DELIVERY DATE field contains the date the prime vendor's invoice shows the items were delivered.
8 DATE RECEIVED 0;7 DATE

  • INPUT TRANSFORM:  S %DT="EX" D ^%DT S X=Y K:Y<1 X
  • LAST EDITED:  NOV 07, 1996
  • HELP-PROMPT:  Enter the date the items were received.
  • DESCRIPTION:  
    The DATE RECEIVED field contains the date the drugs were received if it is different than the delivery date on the invoice.
9 CONTROLLED SUBSTANCES 0;8 SET

  • LAST EDITED:  NOV 08, 1996
  • HELP-PROMPT:  Enter the invoice's controlled substances category.
  • DESCRIPTION:  
    The CONTROLLED SUBSTANCES field contains a flag indicating if all, some, or none of the drugs on the invoice are flagged as controlled substances.
10 OUTSTANDING CREDIT MEMO 0;9 SET

  • LAST EDITED:  DEC 05, 1996
  • HELP-PROMPT:  Enter "1" if there is an outstanding credit memo for the invoice.
  • DESCRIPTION:  
    The CREDIT MEMO REQUIRED? field is a flag used to determine if there is an outstanding credit memo for the invoice. The field is set to "1" if a credit memo is needed and has not been received.
  • CROSS-REFERENCE:  58.811^AC
    1)= S ^PSD(58.811,"AC",$E(X,1,30),DA(1),DA)=""
    2)= K ^PSD(58.811,"AC",$E(X,1,30),DA(1),DA)
    3)= DO NOT DELETE!
    The cross-reference is used to determine if there is an outstanding credit memo for the invoice.
11 PROCESSOR 0;10 POINTER TO NEW PERSON FILE (#200) NEW PERSON(#200)

  • INPUT TRANSFORM:  I $D(^XUSEC("PSA ORDERS",DUZ)) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
  • LAST EDITED:  DEC 10, 1996
  • HELP-PROMPT:  Enter the last person who processed the invoice.
  • DESCRIPTION:  
    The PROCESSOR field contains the name of the person who last processed the invoice.
  • SCREEN:  I $D(^XUSEC("PSA ORDERS",DUZ))
  • EXPLANATION:  The user must hold the PSA ORDERS key.
12 VERIFIER 0;11 POINTER TO NEW PERSON FILE (#200) NEW PERSON(#200)

  • INPUT TRANSFORM:  I $D(^XUSEC("PSA ORDERS",DUZ)) D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
  • LAST EDITED:  DEC 10, 1996
  • HELP-PROMPT:  Enter the name of the person who verified the invoice.
  • DESCRIPTION:  
    The VERIFIER field contains the name of the person who last verified the invoice. The verifier cannot be the processor.
  • SCREEN:  I $D(^XUSEC("PSA ORDERS",DUZ))
  • EXPLANATION:  The user must hold the PSA ORDERS key.
13 MASTER VAULT 0;12 POINTER TO DRUG ACCOUNTABILITY STATS FILE (#58.8) DRUG ACCOUNTABILITY STATS(#58.8)

  • INPUT TRANSFORM:  S DIC("S")="I $P($G(^PSD(58.8,+Y,0)),U,2)=""M""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
  • LAST EDITED:  AUG 29, 1997
  • HELP-PROMPT:  Enter the master vault that received the controlled substances.
  • DESCRIPTION:  
    The MASTER VAULT field contains the master vault that received the controlled substances on the invoice.
  • TECHNICAL DESCR:  
    The field points to the DRUG ACCOUNTABILITY STATS file (#58.8). The master vault pointed to must contain an "M" in the LOCATION TYPE field (#1).
  • SCREEN:  S DIC("S")="I $P($G(^PSD(58.8,+Y,0)),U,2)=""M"""
  • EXPLANATION:  Only master vaults can be selected.
  • CROSS-REFERENCE:  58.811^ALOCMV^MUMPS
    1)= D SLOC^PSAUTL3
    2)= D KLOC^PSAUTL3
    3)= DO NOT DELETE!
    This cross-reference is used to locate invoices within a master vault for a specific invoice date. It sets the "ALOC"cross-reference.
    ^PSD(58.811,"ALOC",MASTER VAULT,Order's internal entry#,DA)=""
14 ALL SUPPLY ITEMS? 0;13 SET

  • LAST EDITED:  JAN 31, 1997
  • HELP-PROMPT:  Enter "YES" if all items on the invoice are supply items.
  • DESCRIPTION:  The ALL SUPPLY ITEMS? field contains "YES" if all items on the invoice are supply items or will never be matched to drugs in the DRUG file (#50). It contains "NO" if there is at least one item on the invoice that
    is not a supply item or will be matched to a drug in the DRUG file.
Info |  Details