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 |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: MAGDHOWP

Package: Imaging

Routine: MAGDHOWP


Information

MAGDHOWP ;WOIFO/PMK - Generate VistA Imaging HL7 message for Clinical Procedures Check-in ;04 Sep 2018 10:41 AM

Source Information

Source file <MAGDHOWP.m>

Entry Points

Name Comments DBIA/ICR reference
CLINPROC(FILE702P,ORDERFLAG) ; entry point from MDHL7BH
; FILE702P ---- pointer to the clinical procedure in ^MDD(702,FILE702P,...)
; ORDERFLAG --- 0=cancel, 1=new order
  • ICR #6910
    • Status: Pending
    • Usage: Private
  • ICR #6932
    • Status: Active
    • Usage: Private
    TELEREAD(ORC1) ; add the CP order to the TeleReader Read/Unread list
    OUTPUT(N) ; called by OUTPUT^MAGDHOW2 if CPINVOCATION=1
    CPORDER(GMRCIEN,HL7USID) ; entry point from OBR^MAGDHOW4, ENTRY^MAGDHOWC, MAGDHOWS
    ; Return Code
    ; -1,ERROR -------- error return
    ; 0,NOT A CP ----- not a clinical procedure
    ; 1,UNIDIRECT ---- clinical procedure with no bidirectional instruments
    ; 2,UNFINISHED --- unfinished clinical procedure with bidirectional instruments
    ; 3,FINISHED ----- finished clinical procedure with bidirectional instruments
    ;
    ; MAGHOWC and MAGDHOWS ignore consult & appointment transactions for
    ; unfinished CP's ("2,UNFINISHED") and process them for cancelled, completed,
    ; and discontinued CP's, CP's with no bidirectional instruments, and non-CP
    ; CPRS Consult Request Tracking consults & procedures.
    ;
    ; MAGDHOW4 needs to get CP's HL7 Universal Service Identifier (HL7USID) and
    ; store it in OBR-4 for clinical procedures.
    IEN01 ;;F;DISCONTINUED
    IEN02 ;;F;COMPLETE
    IEN03 ;;U;HOLD
    IEN04 ;;U;FLAGGED
    IEN05 ;;U;PENDING
    IEN06 ;;U;ACTIVE
    IEN07 ;;F;EXPIRED
    IEN08 ;;U;SCHEDULED
    IEN09 ;;U;PARTIAL RESULTS
    IEN10 ;;U;DELAYED
    IEN11 ;;U;UNRELEASED
    IEN12 ;;F;DISCONTINUED/EDIT
    IEN13 ;;F;CANCELLED
    IEN14 ;;U;LAPSED
    IEN15 ;;U;RENEWED
    IEN99 ;;F;NO STATUS

    FileMan Files Accessed Via FileMan Db Call

    FileNo Call Tags
    ^GMR(123 - [#123] GET1^DIQ
    ^MDD(702 - [#702] GET1^DIQ
    ^MDS(702.01 - [#702.01] GET1^DIQ
    702.011 GET1^DIQ
    ^MDS(702.09 - [#702.09] GET1^DIQ
    Info |  Source |  Entry Points |  FileMan Files Accessed Via FileMan Db Call