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

SCMCHLA1.m

Go to the documentation of this file.
  1. SCMCHLA1 ;ALB/KCL - PCMM HL7 Trans Log Xref API's ; 15-JAN-2000
  1. ;;5.3;Scheduling;**210,272**;AUG 13, 1993
  1. ;
  1. ASTSET(SCLOGIEN,STATUS) ;
  1. ;Description: Sets the "AST" x-ref on the PCMM HL7 Trans Log file.
  1. ;
  1. ; Input:
  1. ; SCLOGIEN - ien of PCMM HL7 Tans Log file record
  1. ; STATUS - internal value of STATUS field
  1. ;
  1. ;s ^SCPT(404.471,"AST",date/time ack rec'd,status,patient,pcmm trans log ien)
  1. ;
  1. N NODE
  1. ;
  1. Q:'$G(SCLOGIEN)
  1. Q:$G(STATUS)']""
  1. S NODE=$G(^SCPT(404.471,SCLOGIEN,0))
  1. N DFN S DFN=$S($P(NODE,"^",2):+$P(NODE,"^",2),1:"W")
  1. Q:'+$P(NODE,"^",5)
  1. ;
  1. I STATUS="RJ"!(STATUS="M") D
  1. .S ^SCPT(404.471,"AST",$P(NODE,"^",5),STATUS,DFN,SCLOGIEN)=""
  1. ;
  1. Q
  1. ;
  1. ASTKILL(SCLOGIEN,STATUS) ;
  1. ;Description: Kill logic for "AST" x-ref on the PCMM HL7 Trans Log file.
  1. ;
  1. ; Input:
  1. ; SCLOGIEN - ien of PCMM HL7 Tans Log file record
  1. ; STATUS - internal value of STATUS field
  1. ;
  1. ;k ^SCPT(404.471,"AST",date/time ack rec'd,status,patient,pcmm trans log ien)
  1. ;
  1. N NODE
  1. ;
  1. Q:'$G(SCLOGIEN)
  1. Q:$G(STATUS)']""
  1. S NODE=$G(^SCPT(404.471,SCLOGIEN,0))
  1. N DFN S DFN=$S($P(NODE,"^",2):+$P(NODE,"^",2),1:"W")
  1. Q:'$P(NODE,"^",5)
  1. ;
  1. I STATUS="RJ"!(STATUS="M") D
  1. .K ^SCPT(404.471,"AST",+$P(NODE,"^",5),STATUS,DFN,SCLOGIEN)
  1. ;
  1. Q
  1. ;
  1. ;
  1. AST1SET(SCLOGIEN,ACKREC) ;
  1. ;Description: Sets the "AST1" x-ref on the PCMM HL7 Trans Log file.
  1. ;
  1. ; Input:
  1. ; SCLOGIEN - ien of PCMM HL7 Tans Log file record
  1. ; ACKREC - internal value of ACK RECEIVED DATE/TIME field
  1. ;
  1. ;s ^SCPT(404.471,"AST",date/time ack rec'd,status,patient,pcmm trans log ien)
  1. ;
  1. N NODE
  1. ;
  1. Q:'$G(SCLOGIEN)
  1. Q:'$G(ACKREC)
  1. S NODE=$G(^SCPT(404.471,SCLOGIEN,0))
  1. ;Q:'+$P(NODE,"^",2)
  1. N DFN S DFN=$S($P(NODE,"^",2):+$P(NODE,"^",2),1:"W")
  1. Q:($P(NODE,"^",4)']"")
  1. ;
  1. I $P(NODE,"^",4)="RJ"!($P(NODE,"^",4)="M") D
  1. .S ^SCPT(404.471,"AST",ACKREC,$P(NODE,"^",4),DFN,SCLOGIEN)=""
  1. ;
  1. Q
  1. ;
  1. AST1KILL(SCLOGIEN,ACKREC) ;
  1. ;Description: Kill logic for "AST1" x-ref on the PCMM HL7 Trans Log file.
  1. ;
  1. ; Input:
  1. ; SCLOGIEN - ien of PCMM HL7 Tans Log file record
  1. ; ACKREC - internal value of ACK RECEIVED DATE/TIME field
  1. ;
  1. ;k ^SCPT(404.471,"AST",date/time ack rec'd,status,patient,pcmm trans log ien)
  1. ;
  1. N NODE
  1. ;
  1. Q:'$G(SCLOGIEN)
  1. Q:'$G(ACKREC)
  1. S NODE=$G(^SCPT(404.471,SCLOGIEN,0))
  1. N DFN S DFN=$S($P(NODE,"^",2):+$P(NODE,"^",2),1:"W")
  1. Q:($P(NODE,"^",4)']"")
  1. ;
  1. I $P(NODE,"^",4)="RJ"!($P(NODE,"^",4)="M") D
  1. .K ^SCPT(404.471,"AST",ACKREC,$P(NODE,"^",4),DFN,SCLOGIEN)
  1. ;
  1. Q
  1. ;
  1. ;
  1. AST2SET(SCLOGIEN,PAT) ;
  1. ;Description: Sets the "AST2" x-ref on the PCMM HL7 Trans Log file.
  1. ;
  1. ; Input:
  1. ; SCLOGIEN - ien of PCMM HL7 Tans Log file record
  1. ; PAT - internal value of PATIENT field
  1. ;
  1. ;s ^SCPT(404.471,"AST",date/time ack rec'd,status,patient,pcmm trans log ien)
  1. ;
  1. N NODE
  1. ;
  1. Q:'$G(SCLOGIEN)
  1. Q:'$G(PAT)
  1. S NODE=$G(^SCPT(404.471,SCLOGIEN,0))
  1. Q:($P(NODE,"^",4)']"")
  1. Q:'+$P(NODE,"^",5)
  1. ;
  1. I $P(NODE,"^",4)="RJ"!($P(NODE,"^",4)="M") D
  1. .S ^SCPT(404.471,"AST",+$P(NODE,"^",5),$P(NODE,"^",4),PAT,SCLOGIEN)=""
  1. ;
  1. Q
  1. ;
  1. AST2KILL(SCLOGIEN,PAT) ;
  1. ;Description: Kill logic for "AST2" x-ref on the PCMM HL7 Trans Log file.
  1. ;
  1. ; Input:
  1. ; SCLOGIEN - ien of PCMM HL7 Tans Log file record
  1. ; PAT - internal value of PATIENT field
  1. ;
  1. ;k ^SCPT(404.471,"AST",date/time ack rec'd,status,patient,pcmm trans log ien)
  1. ;
  1. N NODE
  1. ;
  1. Q:'$G(SCLOGIEN)
  1. Q:'$G(PAT)
  1. S NODE=$G(^SCPT(404.471,SCLOGIEN,0))
  1. Q:($P(NODE,"^",4)']"")
  1. Q:'+$P(NODE,"^",5)
  1. ;
  1. I $P(NODE,"^",4)="RJ"!($P(NODE,"^",4)="M") D
  1. .K ^SCPT(404.471,"AST",+$P(NODE,"^",5),$P(NODE,"^",4),PAT,SCLOGIEN)
  1. Q