PXCESIT ;ISL/dee,ISA/KWP - Used to edit a new visit and display (use most) a visit ;3/17/04 12:10pm
;;1.0;PCE PATIENT CARE ENCOUNTER;**22,74,111,130,124,168**;Aug 12, 1996;Build 14
;+ The classifications show in the Display Detail Protocol
Q
;
;Line with the line label "FORMAT"
;;Long name~File Number~Node Subscripts~Allow Duplicate entries (not used on visit)~File global name
; 1 2 3 4 5
;
;Following 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 cases.
;
FORMAT ;;Encounter~9000010~0,21,150,800,811,812~~^AUPNVSIT
;;0~1~.01~Encounter Date and Time: ~Encounter Date and Time: ~~EVISITDT^PXCEVSIT(1)~~~B
;;0~5~.05~Patient Name: ~Patient Name: ~~EPAT^PXCEVSIT~~~D
;;0~22~.22~Hospital Location: ~Hospital Location: ~~EHOSPLOC^PXCEVSIT~^D HELPHLOC^PXCEVSIT~~D
;;0~8~.08~Clinic Stop: ~Clinic Stop: ~$$DISPLY08^PXCECSTP~EWORKLOD^PXCEVSIT(0)~~~D
;;0~18~.18~Check Out ~Check Out Date and Time: ~~ECODT^PXCEVSIT~~~D
;;800~1~80001~Service Connected: ~Service Connected: ~~SKIP^PXCEVSIT~~~D
;;800~7~80007~Combat Veteran: ~Combat Veteran: ~~SKIP^PXCEVSIT~~~D
;;800~2~80002~Agent Orange Exposure: ~Agent Orange Exposure: ~~SKIP^PXCEVSIT~~~D
;;800~3~80003~Ionizing Radiation Exposure: ~Ionizing Radiation Exposure: ~~SKIP^PXCEVSIT~~~D
;;800~4~80004~SW Asia Conditions: ~SW Asia Conditions: ~~SKIP^PXCEVSIT~~~D
;;800~8~80008~Project 112/SHAD: ~Project 112/SHAD: ~~SKIP^PXCEVSIT~~~D
;;800~5~80005~Military Sexual Trauma: ~Military Sexual Trauma: ~~SKIP^PXCEVSIT~~~D
;;800~6~80006~Head and/or Neck Cancer: ~Head and/or Neck Cancer: ~~SKIP^PXCEVSIT~~~D
;;
;
;********************************
;Special cases for display of visit are in PXCEVSIT.
;
;********************************
;Special cases for edit of visit are in PXCEVSIT.
;
;********************************
;Display text for the .01 field which is a Date and Time.
;(Must have is called by ASK^PXCEVFI2 and DEL^PXCEVFI2.)
DISPLY01(PXCEVSIT) ;
N DIERR,PXCEDILF,PXCEINT,PXCEEXT
N TEXT
S PXCEINT=$P(PXCEVSIT,"^",1)
S PXCEEXT=$$EXTERNAL^DILFD(9000010,.01,"",PXCEINT,"PXCEDILF")
S TEXT=$S('$D(DIERR):PXCEEXT,1:PXCEINT)
S PXCEINT=$P(PXCEVSIT,"^",22)
S PXCEEXT=$$EXTERNAL^DILFD(9000010,.22,"",PXCEINT,"PXCEDILF")
S TEXT=TEXT_" "_$S('$D(DIERR):PXCEEXT,1:PXCEINT)
S PXCEINT=$P(PXCEVSIT,"^",8)
S PXCEEXT=$$EXTERNAL^DILFD(9000010,.08,"",PXCEINT,"PXCEDILF")
S TEXT=TEXT_" "_$S('$D(DIERR):PXCEEXT,1:PXCEINT)
Q TEXT
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPXCESIT 2873 printed Sep 15, 2024@21:52:24 Page 2
PXCESIT ;ISL/dee,ISA/KWP - Used to edit a new visit and display (use most) a visit ;3/17/04 12:10pm
+1 ;;1.0;PCE PATIENT CARE ENCOUNTER;**22,74,111,130,124,168**;Aug 12, 1996;Build 14
+2 ;+ The classifications show in the Display Detail Protocol
+3 QUIT
+4 ;
+5 ;Line with the line label "FORMAT"
+6 ;;Long name~File Number~Node Subscripts~Allow Duplicate entries (not used on visit)~File global name
+7 ; 1 2 3 4 5
+8 ;
+9 ;Following 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 cases.
+13 ;
FORMAT ;;Encounter~9000010~0,21,150,800,811,812~~^AUPNVSIT
+1 ;;0~1~.01~Encounter Date and Time: ~Encounter Date and Time: ~~EVISITDT^PXCEVSIT(1)~~~B
+2 ;;0~5~.05~Patient Name: ~Patient Name: ~~EPAT^PXCEVSIT~~~D
+3 ;;0~22~.22~Hospital Location: ~Hospital Location: ~~EHOSPLOC^PXCEVSIT~^D HELPHLOC^PXCEVSIT~~D
+4 ;;0~8~.08~Clinic Stop: ~Clinic Stop: ~$$DISPLY08^PXCECSTP~EWORKLOD^PXCEVSIT(0)~~~D
+5 ;;0~18~.18~Check Out ~Check Out Date and Time: ~~ECODT^PXCEVSIT~~~D
+6 ;;800~1~80001~Service Connected: ~Service Connected: ~~SKIP^PXCEVSIT~~~D
+7 ;;800~7~80007~Combat Veteran: ~Combat Veteran: ~~SKIP^PXCEVSIT~~~D
+8 ;;800~2~80002~Agent Orange Exposure: ~Agent Orange Exposure: ~~SKIP^PXCEVSIT~~~D
+9 ;;800~3~80003~Ionizing Radiation Exposure: ~Ionizing Radiation Exposure: ~~SKIP^PXCEVSIT~~~D
+10 ;;800~4~80004~SW Asia Conditions: ~SW Asia Conditions: ~~SKIP^PXCEVSIT~~~D
+11 ;;800~8~80008~Project 112/SHAD: ~Project 112/SHAD: ~~SKIP^PXCEVSIT~~~D
+12 ;;800~5~80005~Military Sexual Trauma: ~Military Sexual Trauma: ~~SKIP^PXCEVSIT~~~D
+13 ;;800~6~80006~Head and/or Neck Cancer: ~Head and/or Neck Cancer: ~~SKIP^PXCEVSIT~~~D
+14 ;;
+15 ;
+16 ;********************************
+17 ;Special cases for display of visit are in PXCEVSIT.
+18 ;
+19 ;********************************
+20 ;Special cases for edit of visit are in PXCEVSIT.
+21 ;
+22 ;********************************
+23 ;Display text for the .01 field which is a Date and Time.
+24 ;(Must have is called by ASK^PXCEVFI2 and DEL^PXCEVFI2.)
DISPLY01(PXCEVSIT) ;
+1 NEW DIERR,PXCEDILF,PXCEINT,PXCEEXT
+2 NEW TEXT
+3 SET PXCEINT=$PIECE(PXCEVSIT,"^",1)
+4 SET PXCEEXT=$$EXTERNAL^DILFD(9000010,.01,"",PXCEINT,"PXCEDILF")
+5 SET TEXT=$SELECT('$DATA(DIERR):PXCEEXT,1:PXCEINT)
+6 SET PXCEINT=$PIECE(PXCEVSIT,"^",22)
+7 SET PXCEEXT=$$EXTERNAL^DILFD(9000010,.22,"",PXCEINT,"PXCEDILF")
+8 SET TEXT=TEXT_" "_$SELECT('$DATA(DIERR):PXCEEXT,1:PXCEINT)
+9 SET PXCEINT=$PIECE(PXCEVSIT,"^",8)
+10 SET PXCEEXT=$$EXTERNAL^DILFD(9000010,.08,"",PXCEINT,"PXCEDILF")
+11 SET TEXT=TEXT_" "_$SELECT('$DATA(DIERR):PXCEEXT,1:PXCEINT)
+12 QUIT TEXT
+13 ;