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

PXCEVIMM.m

Go to the documentation of this file.
  1. PXCEVIMM ;ISL/dee - Used to edit and display V IMMUNIZATION ;3/19/97
  1. ;;1.0;PCE PATIENT CARE ENCOUNTER;**27**;Aug 12, 1996
  1. ;; ;
  1. Q
  1. ;
  1. ;Line with the line label "FORMAT"
  1. ;;Long name~File Number~Node Subscripts~Allow Duplicate entries (1=yes, 0=no)~File global name
  1. ; 1 2 3 4 5
  1. ;
  1. ;Followning lines:
  1. ;;Node~Piece~,Field Number~Edit Label~Display Label~Display Routine~Edit Routine~Help Text for DIR("?")~Set of PXCEKEYS that can Edit~D if Detail Display Only~
  1. ; 1 ~ 2 ~ 3 ~ 4 ~ 5 ~ 6 ~ 7 ~ 8 ~ 9 ~ 10
  1. ;The Display & Edit routines are for special caces.
  1. ; (The .01 field cannot have a special edit.)
  1. ;
  1. FORMAT ;;Immunization~9000010.11~0,11,12,811,812~0~^AUPNVIMM
  1. ;;0~1~.01~Immunization: ~Immunization: ~~~~~B
  1. ;;12~4~1204~Encounter Provider: ~Encounter Provider: ~~EPROV12^PXCEPRV~~~D
  1. ;;0~4~.04~Series: ~Series: ~~~~~D
  1. ;;0~6~.06~Reaction: ~Reaction: ~~~~~D
  1. ;;0~7~.07~Repeat Contraindicated: ~Repeat Contraindicated: ~~ECONTRAI^PXCEVIMM~~~D
  1. ;;12~1~1201~Administered Date and (optional) Time~Administered Date and Time: ~~E1201^PXCEPOV1(0,30,30)~~~D
  1. ;;811~1~81101~Comments: ~Comments: ~~~~~D
  1. ;;
  1. ;
  1. ;Cannot ask work processing
  1. ;;12~2~1202~Ordering Provider: ~Ordering Provider: ~~EPROV12^PXCEPRV~~~D
  1. ;
  1. ;The interface for AICS to get list on form for help.
  1. INTRFACE ;;PX SELECT IMMUNIZATIONS
  1. ;
  1. ;********************************
  1. ;Special cases for display.
  1. ;
  1. ;********************************
  1. ;Special cases for edit.
  1. ;
  1. ECONTRAI ;
  1. I $P(PXCEAFTR($P(PXCETEXT,"~",1)),"^",$P(PXCETEXT,"~",2))'="" D
  1. . N DIERR,PXCEDILF,PXCEINT,PXCEEXT
  1. . S PXCEINT=$P(PXCEAFTR($P(PXCETEXT,"~",1)),"^",$P(PXCETEXT,"~",2))
  1. . S PXCEEXT=$$EXTERNAL^DILFD(PXCEFILE,$P(PXCETEXT,"~",3),"",PXCEINT,"PXCEDILF")
  1. . S DIR("B")=$S('$D(DIERR):PXCEEXT,1:PXCEINT)
  1. E S DIR("B")="NO"
  1. S DIR(0)=PXCEFILE_","_$P(PXCETEXT,"~",3)_"A"
  1. S DIR("A")=$P(PXCETEXT,"~",4)
  1. S:$P(PXCETEXT,"~",8)]"" DIR("?")=$P(PXCETEXT,"~",8)
  1. D ^DIR
  1. K DIR,DA
  1. I X="@" S Y="@"
  1. E I $D(DTOUT)!$D(DUOUT) S PXCEEND=1 Q
  1. S $P(PXCEAFTR($P(PXCETEXT,"~",1)),"^",$P(PXCETEXT,"~",2))=$P(Y,"^")
  1. Q
  1. ;
  1. ELOT ;
  1. I $P(PXCEAFTR($P(PXCETEXT,"~",1)),"^",$P(PXCETEXT,"~",2))'="" D
  1. . N DIERR,PXCEDILF,PXCEINT,PXCEEXT
  1. . S PXCEINT=$P(PXCEAFTR($P(PXCETEXT,"~",1)),"^",$P(PXCETEXT,"~",2))
  1. . S PXCEEXT=$$EXTERNAL^DILFD(PXCEFILE,$P(PXCETEXT,"~",3),"",PXCEINT,"PXCEDILF")
  1. . S DIR("B")=$S('$D(DIERR):PXCEEXT,1:PXCEINT)
  1. S DIR(0)="PAO^9999999.41:EM^K:$P(^(0),U,3)'=0!($P(^(0),U,4)'=$P(PXCEAFTR(0),U,1)) X"
  1. S DIR("A")=$P(PXCETEXT,"~",4)
  1. S:$P(PXCETEXT,"~",8)]"" DIR("?")=$P(PXCETEXT,"~",8)
  1. D ^DIR
  1. K DIR,DA
  1. I X="@" S Y="@"
  1. E I $D(DTOUT)!$D(DUOUT) S PXCEEND=1 Q
  1. S:Y'<0 $P(PXCEAFTR($P(PXCETEXT,"~",1)),"^",$P(PXCETEXT,"~",2))=$P(Y,"^")
  1. Q
  1. ;
  1. ;********************************
  1. ;Display text for the .01 field which is a pointer to Immunization.
  1. ;(Must have is called by ASK^PXCEVFI2 and DEL^PXCEVFI2.)
  1. DISPLY01(PXCEIMM) ;
  1. N DIERR,PXCEDILF,PXCEINT,PXCEEXT
  1. S PXCEINT=$P(PXCEIMM,"^",1)
  1. S PXCEEXT=$$EXTERNAL^DILFD(9000010.11,.01,"",PXCEINT,"PXCEDILF")
  1. Q $S('$D(DIERR):PXCEEXT,1:PXCEINT)
  1. ;