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

PSO625PI.m

Go to the documentation of this file.
PSO625PI ;BIRM/SJA - PSO*7*625 Post-install routine ;09/24/20
 ;;7.0;OUTPATIENT PHARMACY;**625**;DEC 1997;Build 42
 ;
POST ;
 N V,S,D,E,L,X
 S V="VER",S="SEG",D="DAT",E="DES",L="VAL"
 K ^PS(58.4,1,V,8),^PS(58.4,1,V,9)
 S ^PS(58.4,1,V,0)="^58.4001^9^8"
 S ^PS(58.4,1,V,8,0)="4.1Z^*^~^$C(13,10)^1"
 S ^PS(58.4,1,V,8,S,0)="^58.40011I^9^9"
 S ^PS(58.4,1,V,8,S,1,0)="AIR^Additional Information Reporting^DSP^O^3^4"
 S ^PS(58.4,1,V,8,S,1,D,0)="^58.400111I^^0"
 S ^PS(58.4,1,V,8,S,2,0)="CDI^Compound Drug Ingredient Detail^DSP^O^2^4"
 S ^PS(58.4,1,V,8,S,2,D,0)="^58.400111I^4^4"
 S ^PS(58.4,1,V,8,S,2,D,1,0)="CDI01^Compound Drug Ingredient Sequence Number^N^2^1^R"
 S ^PS(58.4,1,V,8,S,2,D,1,E,0)="^58.4001111^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,2,D,1,E,1,0)="Increment by 1 for each compounding ingredient being reported."
 S ^PS(58.4,1,V,8,S,2,D,1,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,2,D,1,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,2,D,2,0)="CDI02^Product ID Qualifier^N^2^2^R"
 S ^PS(58.4,1,V,8,S,2,D,2,E,0)="^58.4001111^7^7^3201012^"
 S ^PS(58.4,1,V,8,S,2,D,2,E,1,0)="Code to identify the type of product ID contained in CDI03."
 S ^PS(58.4,1,V,8,S,2,D,2,E,2,0)="  01 NDC"
 S ^PS(58.4,1,V,8,S,2,D,2,E,3,0)="  02 UPC"
 S ^PS(58.4,1,V,8,S,2,D,2,E,4,0)="  03 HRI"
 S ^PS(58.4,1,V,8,S,2,D,2,E,5,0)="  04 UPN"
 S ^PS(58.4,1,V,8,S,2,D,2,E,6,0)="  05 DIN"
 S ^PS(58.4,1,V,8,S,2,D,2,E,7,0)="  06 CPD (This code is not used in this segment.)"
 S ^PS(58.4,1,V,8,S,2,D,2,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,2,D,2,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,2,D,3,0)="CDI03^Product ID^AN^15^3^R"
 S ^PS(58.4,1,V,8,S,2,D,3,E,0)="^58.4001111^2^2^3201017^^"
 S ^PS(58.4,1,V,8,S,2,D,3,E,1,0)="Full product identification as indicated in CDI02, including leading "
 S ^PS(58.4,1,V,8,S,2,D,3,E,2,0)="zeros without punctuation."
 S ^PS(58.4,1,V,8,S,2,D,3,L,0)="^58.410111^1^1^3201017^^"
 S ^PS(58.4,1,V,8,S,2,D,3,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,2,D,4,0)="CDI04^Component Ingredient Quantity^D^11^4^R"
 S ^PS(58.4,1,V,8,S,2,D,4,L,0)="^^1^1^3201017^"
 S ^PS(58.4,1,V,8,S,2,D,4,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,2,D,"B","CDI01",1)=""
 S ^PS(58.4,1,V,8,S,2,D,"B","CDI02",2)=""
 S ^PS(58.4,1,V,8,S,2,D,"B","CDI03",3)=""
 S ^PS(58.4,1,V,8,S,2,D,"B","CDI04",4)=""
 S ^PS(58.4,1,V,8,S,3,0)="DSP^Dispensing Record^PAT^R^1^4"
 S ^PS(58.4,1,V,8,S,3,D,0)="^58.400111I^10^10"
 S ^PS(58.4,1,V,8,S,3,D,1,0)="DSP01^Reporting Status^N^2^1^R"
 S ^PS(58.4,1,V,8,S,3,D,1,E,0)="^58.4001111^10^10^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,1,E,1,0)="Required when reporting a change or cancellation of a previously "
 S ^PS(58.4,1,V,8,S,3,D,1,E,2,0)="transmitted prescription record. 00 indicates a new prescription "
 S ^PS(58.4,1,V,8,S,3,D,1,E,3,0)="dispensing transaction. 01 would be used when information on the"
 S ^PS(58.4,1,V,8,S,3,D,1,E,4,0)="original prescription, including patient information, has been changed. "
 S ^PS(58.4,1,V,8,S,3,D,1,E,5,0)="02 would be used when the prescription was not picked up and returned to "
 S ^PS(58.4,1,V,8,S,3,D,1,E,6,0)="stock."
 S ^PS(58.4,1,V,8,S,3,D,1,E,7,0)="  00 New Record (Not available for ASAP 4.0)"
 S ^PS(58.4,1,V,8,S,3,D,1,E,8,0)="  01 Change/Revise"
 S ^PS(58.4,1,V,8,S,3,D,1,E,9,0)="  02 Cancel/Void (Rx not picked up and returned to stock)"
 S ^PS(58.4,1,V,8,S,3,D,1,E,10,0)="  03 Purged (Rx reported in error) (Available in 4.0 only)"
 S ^PS(58.4,1,V,8,S,3,D,1,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,1,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,3,D,2,0)="DSP02^Prescription Number^AN^25^2^R"
 S ^PS(58.4,1,V,8,S,3,D,2,E,0)="^58.4001111^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,2,E,1,0)="Serial number assigned to the prescription by the pharmacy."
 S ^PS(58.4,1,V,8,S,3,D,2,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,2,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,3,D,3,0)="DSP03^Date Written^DT^8^3^R"
 S ^PS(58.4,1,V,8,S,3,D,3,E,0)="^58.4001111^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,3,E,1,0)="Date the prescription was written (authorized). Format: CCYYMMDD."
 S ^PS(58.4,1,V,8,S,3,D,3,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,3,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,3,D,4,0)="DSP04^Refills Authorized^N^2^4^R"
 S ^PS(58.4,1,V,8,S,3,D,4,E,0)="^58.4001111^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,4,E,1,0)="The number of refills authorized by the prescriber."
 S ^PS(58.4,1,V,8,S,3,D,4,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,4,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,3,D,5,0)="DSP05^Date of Report^DT^8^5^R"
 S ^PS(58.4,1,V,8,S,3,D,5,E,0)="^58.4001111^1^1^3201017^^^"
 S ^PS(58.4,1,V,8,S,3,D,5,E,1,0)="Date prescription was filled. Format: CCYYMMDD."
 S ^PS(58.4,1,V,8,S,3,D,5,L,0)="^58.410111^1^1^3201017^^^"
 S ^PS(58.4,1,V,8,S,3,D,5,L,1,0)="$$DSP05^PSOASAP()"
 S ^PS(58.4,1,V,8,S,3,D,6,0)="DSP06^Refill Number^N^2^6^R"
 S ^PS(58.4,1,V,8,S,3,D,6,E,0)="^58.4001111^2^2^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,6,E,1,0)="Number of the fill of the prescription. 0 indicates New Rx, 01-99 is the "
 S ^PS(58.4,1,V,8,S,3,D,6,E,2,0)="refill number."
 S ^PS(58.4,1,V,8,S,3,D,6,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,6,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,3,D,7,0)="DSP07^Product ID Qualifier^N^2^7^R"
 S ^PS(58.4,1,V,8,S,3,D,7,E,0)="^58.4001111^7^7^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,7,E,1,0)="Used to identify the type of product ID contained in DSP08."
 S ^PS(58.4,1,V,8,S,3,D,7,E,2,0)="  01 NDC"
 S ^PS(58.4,1,V,8,S,3,D,7,E,3,0)="  02 UPC"
 S ^PS(58.4,1,V,8,S,3,D,7,E,4,0)="  03 HRI"
 S ^PS(58.4,1,V,8,S,3,D,7,E,5,0)="  04 UPN"
 S ^PS(58.4,1,V,8,S,3,D,7,E,6,0)="  05 DIN"
 S ^PS(58.4,1,V,8,S,3,D,7,E,7,0)="  06 CPD (used for a compound)"
 S ^PS(58.4,1,V,8,S,3,D,7,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,7,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,3,D,8,0)="DSP08^Product ID^AN^15^8^R"
 S ^PS(58.4,1,V,8,S,3,D,8,E,0)="^58.4001111^4^4^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,8,E,1,0)="Full product identification as indicated in DSP07, including leading "
 S ^PS(58.4,1,V,8,S,3,D,8,E,2,0)="zeros without punctuation. If the product is a compound, use 99999 as the "
 S ^PS(58.4,1,V,8,S,3,D,8,E,3,0)="first five characters of the product code. The remaining characters are "
 S ^PS(58.4,1,V,8,S,3,D,8,E,4,0)="assigned by the pharmacy. The CDI then becomes a required segment."
 S ^PS(58.4,1,V,8,S,3,D,8,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,8,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,3,D,9,0)="DSP09^Quantity Dispensed^D^11^9^R"
 S ^PS(58.4,1,V,8,S,3,D,9,E,0)="^58.4001111^2^2^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,9,E,1,0)="Number of metric units dispensed in metric decimal format."
 S ^PS(58.4,1,V,8,S,3,D,9,E,2,0)="Example: 2.5. Note: For compounds show the first quantity in CDI04."
 S ^PS(58.4,1,V,8,S,3,D,9,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,9,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,3,D,10,0)="DSP10^Days Supply^N^3^10^R"
 S ^PS(58.4,1,V,8,S,3,D,10,E,0)="^58.4001111^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,10,E,1,0)="Estimated number of days the medication will last."
 S ^PS(58.4,1,V,8,S,3,D,10,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,3,D,10,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,3,D,"B","DSP01",1)=""
 S ^PS(58.4,1,V,8,S,3,D,"B","DSP02",2)=""
 S ^PS(58.4,1,V,8,S,3,D,"B","DSP03",3)=""
 S ^PS(58.4,1,V,8,S,3,D,"B","DSP04",4)=""
 S ^PS(58.4,1,V,8,S,3,D,"B","DSP05",5)=""
 S ^PS(58.4,1,V,8,S,3,D,"B","DSP06",6)=""
 S ^PS(58.4,1,V,8,S,3,D,"B","DSP07",7)=""
 S ^PS(58.4,1,V,8,S,3,D,"B","DSP08",8)=""
 S ^PS(58.4,1,V,8,S,3,D,"B","DSP09",9)=""
 S ^PS(58.4,1,V,8,S,3,D,"B","DSP10",10)=""
 S ^PS(58.4,1,V,8,S,4,0)="IS^Information Source^TH^R^1^1"
 S ^PS(58.4,1,V,8,S,4,D,0)="^58.400111I^2^2"
 S ^PS(58.4,1,V,8,S,4,D,1,0)="IS01^Unique Information Source ID^AN^10^1^R"
 S ^PS(58.4,1,V,8,S,4,D,1,E,0)="^58.4001111^2^2^3201017^"
 S ^PS(58.4,1,V,8,S,4,D,1,E,1,0)="Reference number or identification number as defined by the business "
 S ^PS(58.4,1,V,8,S,4,D,1,E,2,0)="partners. (Example: Phone number)."
 S ^PS(58.4,1,V,8,S,4,D,1,L,0)="^58.410111^1^1^3201017^"
 S ^PS(58.4,1,V,8,S,4,D,1,L,1,0)="$$IS01^PSOASAP()"
 S ^PS(58.4,1,V,8,S,4,D,2,0)="IS02^Information Source Entity Name^AN^60^2^R"
 S ^PS(58.4,1,V,8,S,4,D,2,E,0)="^58.4001111^1^1^3201017^"
 S ^PS(58.4,1,V,8,S,4,D,2,E,1,0)="Entity name of the Information Source."
 S ^PS(58.4,1,V,8,S,4,D,2,L,0)="^58.410111^1^1^3201017^"
 S ^PS(58.4,1,V,8,S,4,D,2,L,1,0)="$$IS02^PSOASAP()"
 S ^PS(58.4,1,V,8,S,4,D,"B","IS01",1)=""
 S ^PS(58.4,1,V,8,S,4,D,"B","IS02",2)=""
 S ^PS(58.4,1,V,8,S,5,0)="PAT^Patient Information^PHA^R^1^3"
 S ^PS(58.4,1,V,8,S,5,D,0)="^58.400111I^19^19"
 S ^PS(58.4,1,V,8,S,5,D,1,0)="PAT01^ID Qualifier of Patient Identifier^AN^2^1^O"
 S ^PS(58.4,1,V,8,S,5,D,1,E,0)="^58.4001111^2^2^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,1,E,1,0)="Code identifying the jurisdiction that issues the ID in PAT03. Used if "
 S ^PS(58.4,1,V,8,S,5,D,1,E,2,0)="the PMP requires such identification and PAT02 is equal to 02 or 06."
 S ^PS(58.4,1,V,8,S,5,D,1,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,1,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,5,D,2,0)="PAT02^ID Qualifier^N^2^2^O"
 S ^PS(58.4,1,V,8,S,5,D,2,E,0)="^58.4001111^11^11^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,2,E,1,0)="Code to identify the type of ID in PAT03. If PAT02 is used, PAT03 is "
 S ^PS(58.4,1,V,8,S,5,D,2,E,2,0)="required."
 S ^PS(58.4,1,V,8,S,5,D,2,E,3,0)="  01 Military ID"
 S ^PS(58.4,1,V,8,S,5,D,2,E,4,0)="  02 State Issued ID"
 S ^PS(58.4,1,V,8,S,5,D,2,E,5,0)="  03 Unique System ID"
 S ^PS(58.4,1,V,8,S,5,D,2,E,6,0)="  04 Permanent Resident Card (Green Card)"
 S ^PS(58.4,1,V,8,S,5,D,2,E,7,0)="  05 Passport ID"
 S ^PS(58.4,1,V,8,S,5,D,2,E,8,0)="  06 Driver's License ID"
 S ^PS(58.4,1,V,8,S,5,D,2,E,9,0)="  07 Social Security Number"
 S ^PS(58.4,1,V,8,S,5,D,2,E,10,0)="  08 Tribal ID"
 S ^PS(58.4,1,V,8,S,5,D,2,E,11,0)="  99 Other (Trading partner agreed upon ID, such as cardholder ID.)"
 S ^PS(58.4,1,V,8,S,5,D,2,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,2,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,5,D,3,0)="PAT03^ID of Patient^AN^20^3^O"
 S ^PS(58.4,1,V,8,S,5,D,3,E,0)="^58.4001111^2^2^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,3,E,1,0)="Identification number for the patient as indicated in PAT02. An example "
 S ^PS(58.4,1,V,8,S,5,D,3,E,2,0)="would be the driver's license number."
 S ^PS(58.4,1,V,8,S,5,D,3,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,3,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,5,D,4,0)="PAT04^ID Qualifier of Additional Patient Identifier^AN^2^4^O"
 S ^PS(58.4,1,V,8,S,5,D,4,E,0)="^58.4001111^2^2^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,4,E,1,0)="Code identifying the jurisdiction that issues the ID in PAT06. Used if "
 S ^PS(58.4,1,V,8,S,5,D,4,E,2,0)="the PMP requires such identification and PAT05 is equal to 02 or 06. "
 S ^PS(58.4,1,V,8,S,5,D,4,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,4,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,5,D,5,0)="PAT05^Additional Patient ID Qualifier^AN^2^5^O"
 S ^PS(58.4,1,V,8,S,5,D,5,E,0)="^58.4001111^11^11^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,5,E,1,0)="Code to identify the type of ID in PAT06 if the PMP requires a second "
 S ^PS(58.4,1,V,8,S,5,D,5,E,2,0)="identifier. If PAT05 is used, PAT06 is required."
 S ^PS(58.4,1,V,8,S,5,D,5,E,3,0)="  01 Military ID"
 S ^PS(58.4,1,V,8,S,5,D,5,E,4,0)="  02 State Issued ID"
 S ^PS(58.4,1,V,8,S,5,D,5,E,5,0)="  03 Unique System ID"
 S ^PS(58.4,1,V,8,S,5,D,5,E,6,0)="  04 Permanent Resident Card (Green Card)"
 S ^PS(58.4,1,V,8,S,5,D,5,E,7,0)="  05 Passport ID"
 S ^PS(58.4,1,V,8,S,5,D,5,E,8,0)="  06 Driver's License ID"
 S ^PS(58.4,1,V,8,S,5,D,5,E,9,0)="  07 Social Security Number"
 S ^PS(58.4,1,V,8,S,5,D,5,E,10,0)="  08 Tribal ID"
 S ^PS(58.4,1,V,8,S,5,D,5,E,11,0)="  99 Other (Trading partner agreed upon ID, such as cardholder ID.)"
 S ^PS(58.4,1,V,8,S,5,D,5,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,5,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,5,D,6,0)="PAT06^Additional ID^AN^20^6^O"
 S ^PS(58.4,1,V,8,S,5,D,6,E,0)="^58.4001111^4^4^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,6,E,1,0)="Identification that might be required by the PMP for "
 S ^PS(58.4,1,V,8,S,5,D,6,E,2,0)="Prescription-Monitoring Programs to further identify the individual. An "
 S ^PS(58.4,1,V,8,S,5,D,6,E,3,0)="example might be in that PAT03 driver's license is required and in PAT06 "
 S ^PS(58.4,1,V,8,S,5,D,6,E,4,0)="Social Security number is also required."
 S ^PS(58.4,1,V,8,S,5,D,6,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,6,L,1,0)=""""""
 S ^PS(58.4,1,V,8,S,5,D,7,0)="PAT07^Last Name^AN^50^7^R"
 S ^PS(58.4,1,V,8,S,5,D,7,E,0)="^58.4001111^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,7,E,1,0)="Patient's last name."
 S ^PS(58.4,1,V,8,S,5,D,7,L,0)="^^1^1^3201012^"
 S ^PS(58.4,1,V,8,S,5,D,7,L,1,0)="""REPORT"""
 D POST^PSO625P2
 ;
 F X="PSO625P2","PSO625P3","PSO625P4","PSO625P5" X ^%ZOSF("TEST") I $T D MES^XPDUTL("Deleting routine "_X_"...") X ^%ZOSF("DEL")
 Q