Print Page as PDF
PHARMACY ENHANCED ORDER CHECKS MED PROFILE BUILDER ICR (5366)

PHARMACY ENHANCED ORDER CHECKS MED PROFILE BUILDER    ICR (5366)

Name Value
NUMBER 5366
IA # 5366
DATE CREATED 2009/02/12
CUSTODIAL PACKAGE OUTPATIENT PHARMACY
USAGE Controlled Subscription
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE PSODDPR4
NAME PHARMACY ENHANCED ORDER CHECKS MED PROFILE BUILDER
GENERAL DESCRIPTION
This API is used currently by CPRS and Inpatient Meds
to build med profile data for both IP meds and OP meds to return enhanced
order checks by using the new interface by First Data Bank (FDB).
STATUS Active
DURATION Till Otherwise Agreed
ID PSODDPR4
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
BLD(PSODFN,LIST,PDRG,PTY)
This entry point returns any possible drug
interactions and duplicate drug therapys.  Duplicate drug class order checks
have been replaced with duplicate therapy checks.
VARIABLES TYPE VARIABLES DESCRIPTION
PSODFN Input
Patient's IEN
LIST Both
Global output base.
PDRG Input
Prospective drug(s)
PTY Input
A two piece variable (P1;P2).  P1 - package type (I
or O). P2 Order number if available.
OUTPUT Output

^TMP($J,LIST,"IN","PROFILE",PSOPON)=GCN ^ VUID ^IEN (File#50) ^ Drug Name ^
CPRS Order Number ^ Package
Where:
PSOPON = Pharmacy order number in the format of P1;P2;P3;P4 P1 - Order type
It can be Z=Outpatient Prospective Drug, I=Inpatient, O=Outpatient, R=RDI;
P2 - Order number; P3 - Drug type (PROFILE/PROSPECTIVE); P4 - Counter
GCN = GCN sequence number (#50.68)
VUID = VA PRODUCT (#50.68)
IEN = Dispense drug internal entry number (#50)
Drug Name = Drug name of either the Orderable Item name (#50.7) or the
Generic Drug name (#50) CPRS Order Number = Internal entry number for
order in ^OR(100 if available
Package = Package indication - "O" for Outpatient; "I" for Inpatient
CPRS(PSODFN,LIST,PDRG,PTY)
This entry point returns any possible duplicate
drugs, drug interactions and duplicate drug therapies.  Duplicate drug class
order checks have been replaced with duplicate therapy checks.
VARIABLES TYPE VARIABLES DESCRIPTION
PTY Input
A two piece variable (P1;P2).  P1 - package type (I
or O). P2 Order number if available.
PSODFN Input
Patient's IEN.
LIST Both
Global output base
PDRG Input
Prospective drug(s) list.
TMP($J,"DD",INDD,0) Output
OUTPUT Output

^TMP($J,LIST,"IN","PROFILE",PSOPON)=GCN ^ VUID ^IEN (File#50) ^ Drug Name ^
CPRS Order Number ^ Package
Where:
PSOPON = Pharmacy order number in the format of P1;P2;P3;P4 P1 - Order type
It can be Z=Outpatient Prospective Drug, I=Inpatient, O=Outpatient, R=RDI;
P2 - Order number; P3 - Drug type (PROFILE/PROSPECTIVE); P4 - Counter
GCN = GCN sequence number (#50.68)
VUID = VA PRODUCT (#50.68)
IEN = Dispense drug internal entry number (#50)
Drug Name = Drug name of either the Orderable Item name (#50.7) or the
Generic Drug name (#50)  CPRS Order Number = Internal entry number for
order in ^OR(100 if available
Package = Package indication -  "O" for Outpatient; "I" for Inpatient
SUBSCRIBING PACKAGE
DATE ACTIVATED 2023/11/14