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