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

ORQQCN3.m

Go to the documentation of this file.
  1. ORQQCN3 ; slc/REV - RPCs for Consults/Medicine Resulting ;01:56 PM 12 May 2000
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**85**;Dec 17, 1997
  1. ;
  1. GETMED(ORY,GMRCO) ; Return available med results for proc request
  1. Q:+$G(GMRCO)=0
  1. D GETMED^GMRCGUIU(GMRCO,.ORY)
  1. Q
  1. MEDCOMP(ORY,GMRCO,GMRCRSLT,GMRCAD,GMRCORNP,ORALTO) ; Attach a medicine result to a consult
  1. ;GMRCO - Internal file number of consult from File 123
  1. ;GMRCRSLT - pointer to medicine result
  1. ;GMRCAD - Date/Time Consult was resulted.
  1. ;GMRCORNP - Provider who attached the result to the consult
  1. ;ORALTO - array of alert recipient IENs
  1. Q:+$G(GMRCO)=0
  1. N ORDUZ,X,I
  1. I $G(ORALTO)'="" D
  1. .F I=1:1 S X=$P(ORALTO,";",I) Q:X="" S ORDUZ(X)=""
  1. D MEDCOMP^GMRCMED(GMRCO,GMRCRSLT,GMRCAD,GMRCORNP,.ORDUZ)
  1. Q
  1. GETRES(ORY,GMRCO) ; return array of associated med results
  1. Q:+$G(GMRCO)=0
  1. D GETRES^GMRCGUIU(GMRCO,.ORY)
  1. Q
  1. REMOVE(ORY,GMRCO,GMRCRSLT,GMRCAD,GMRCORNP) ; Remove a medicine result from a consult
  1. ;GMRCO - Internal file number of consult from File 123
  1. ;GMRCRSLT - pointer to medicine result
  1. ;GMRCAD - Date/Time medicine result was removed
  1. ;GMRCORNP - Provider who removed the result from the consult
  1. Q:+$G(GMRCO)=0
  1. D REMOVE^GMRCDIS(GMRCO,GMRCRSLT,GMRCAD,GMRCORNP)
  1. Q
  1. DISPMED(ORY,GMRCRES) ; Detailed display of a med result
  1. Q:+$G(GMRCRES)=0
  1. D DISPMED^GMRCGUIU(GMRCRES,.ORY)
  1. Q