Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: PSOORCPY

Package: Outpatient Pharmacy

Routine: PSOORCPY


Information

PSOORCPY ;BIR/SAB-copy orders from backdoor ;Oct 20, 2022@15:12

Source Information

Source file <PSOORCPY.m>

Entry Points

Name Comments DBIA/ICR reference
COPY ; Rx Copy Functionality
OUT ;
EX
LOCK ;
BLDDOSE(PSORXED,MAINTRXF) ; Copies the Dose from Original Rx into Copied/Maintenance Dose Rx
SETDOSE(PSORXED,DOSEIEN,DOSESEQ) ; Sets the Dose in the PSORXED array
LASTTHEN ; Determine the IEN of the last THEN conjunction on this prescription and set DOSEIEN to its value.
ORCOPY(PLACER) ; Checks if an Outpatient Pharmacy order can be copied by CPRS or not
; Input: (r) PLACER - PRESCRIPTION (#52) IEN or PENDING OUTPATIENT ORDERS (#52.31) IEN_"S"
  • ICR #6719
    • Status: Active
    • Usage: Private

    Interaction Calls

    Name Line Occurrences
    Function Call: WRITE
    • Prompt: $C(7)
    • Line Location: COPY+5
    Function Call: WRITE
    • Prompt: $C(7)
    • Line Location: COPY+15
    Function Call: WRITE
    • Prompt: $C(7)
    • Line Location: COPY+17
    Function Call: WRITE
    • Prompt: $C(7),$C(7)
    • Line Location: COPY+18
    Function Call: WRITE
    • Prompt: $C(7),$C(7)
    • Line Location: COPY+19
    Function Call: WRITE
    • Prompt: !!,"New Maintenance Rx (Review Quantity):",!,"Drug: ",$$GET1^DIQ(52,PSORXED("IRXN"),6)
    • Line Location: COPY+61
    Function Call: WRITE
    • Prompt: !,"Days Supply: ",PSODAYS
    • Line Location: COPY+62
    Function Call: WRITE
    • Prompt: !
    • Line Location: COPY+63

    FileMan Files Accessed Via FileMan Db Call

    FileNo Call Tags
    ^PSDRUG - [#50] GET1^DIQ
    ^PSRX - [#52] GET1^DIQ
    ^PS(52.41 - [#52.41] GET1^DIQ
    ^PS(59.7 - [#59.7] GET1^DIQ
    Info |  Source |  Entry Points |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call