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

PXCETRT.m

Go to the documentation of this file.
  1. PXCETRT ;ISL/dee - Used to edit and display V TREATMENT ;02/20/2019
  1. ;;1.0;PCE PATIENT CARE ENCOUNTER;**27,211**;Aug 12, 1996;Build 454
  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 ;;Treatment~9000010.15~0,12,802,811,812~1~^AUPNVTRT
  1. ;;0~1~.01~Treatment: ~Treatment: ~~~~~B
  1. ;;0~6~.06~Provider Narrative: ~Provider Narrative: ~$$DNARRAT^PXCETRT~ENARRAT^PXCEPOV1(1,1,1,9999999.17,.01)~~~B
  1. ;;0~4~.04~How Many: ~How Many: ~~EQUAN^PXCECPT~~~D
  1. ;;12~4~1204~Encounter Provider: ~Encounter Provider: ~~EPROV12^PXCEPRV~~~D
  1. ;;802~1~80201~Provider Narrative Category: ~Provider Narrative Category: ~~ENARRAT^PXCEPOV1(0,2,0)~~C~D
  1. ;;811~1~81101~Comments: ~Comments: ~~~~~D
  1. ;;
  1. ;
  1. ;The interface for AICS to get list on form for help.
  1. INTRFACE ;;PX SELECT TREATMENTS
  1. ;
  1. ;********************************
  1. ;Special cases for display.
  1. ;
  1. DNARRAT(PNAR,PXCEDT) ;Provider Narrative for Treatments
  1. N PXCEPNAR
  1. S PXCEPNAR=$P(^AUTNPOV(PNAR,0),"^")
  1. I $G(VIEW)="B",$D(ENTRY)>0 D
  1. . N DIC,DR,DA,DIQ,PXCEDIQ1
  1. . S DIC=9999999.17
  1. . S DR=.01
  1. . S DA=$P(ENTRY(0),"^",1)
  1. . S DIQ="PXCEDIQ1("
  1. . S DIQ(0)="E"
  1. . D EN^DIQ1
  1. . S:PXCEDIQ1(9999999.17,DA,.01,"E")=PXCEPNAR PXCEPNAR=""
  1. Q PXCEPNAR
  1. ;
  1. ;********************************
  1. ;Special cases for edit.
  1. ;
  1. ;********************************
  1. ;Display text for the .01 field which is a pointer to Treatment Type.
  1. ;(Must have is called by ASK^PXCEVFI2 and DEL^PXCEVFI2.)
  1. DISPLY01(PXCETRT) ;
  1. Q $P($G(^AUTTTRT(+PXCETRT,0)),"^",1)
  1. ;