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

VSITHLP.m

Go to the documentation of this file.
  1. VSITHLP ;ISD/RJP - Visit Information ;8/8/96
  1. ;;1.0;PCE PATIENT CARE ENCOUNTER;**76,111**;Aug 12, 1996
  1. ; Patch PX*1*76 changes the 2nd line of all VSIT* routines to reflect
  1. ; the incorporation of the module into PCE. For historical reference,
  1. ; the old (VISIT TRACKING) 2nd line is included below to reference VSIT
  1. ; patches.
  1. ;
  1. ;;2.0;VISIT TRACKING;;Aug 12, 1996;
  1. ;
  1. N TXT,DIR,DX,DY,VSITI,X
  1. I '$D(IOSL) S IOP=0 D ^%ZIS K IOP
  1. D HOME^%ZIS W @IOF
  1. F VSITI=1:1 S TXT=$T(TXT+VSITI) Q:TXT="" D
  1. . W $P(TXT,";;",2)
  1. . I $Y>(IOSL-3) D
  1. . . S DIR(0)="E" D ^DIR
  1. . . N X S $P(X," ",79)="" W $C(13),X,$C(13)
  1. . . S (DX,DY)=0 X ^%ZOSF("XY")
  1. . E W !
  1. Q
  1. ;
  1. TXT ;
  1. ;; VSIT(0) A string of characters which defines how the visit
  1. ;; processor will function.
  1. ;;
  1. ;; F - Force adding a new entry.
  1. ;; I - Interactive mode.
  1. ;; E - Use pt's primary eligibility if now passed on
  1. ;; call w/ VSIT("ELG").
  1. ;; N - Allow creation of a new visit.
  1. ;; D - Look back "n" number of days for a match, default
  1. ;; is one (1). e.g. VSIT(0)="D5" (v/dt to v/dt-4)
  1. ;; Use "D0" to require exact match on date & time.
  1. ;; M - Impose criteria on matching or creation of visits.
  1. ;; Uses the VSIT(<xxx>) array:
  1. ; [<fld-value>[^...]] for multiple values
  1. ;; - If trying to match with existing visit, each element
  1. ;; must match each corresponding field.
  1. ;;
  1. ;; Variable names for VISIT file fields: #9000010 gbl: ^AUPNVSIT(
  1. ;; (format) -> <internal format>[^<external format>]
  1. ;; except VSIT(<ien>) = N^S[^1]
  1. ;; where N = internal entry number
  1. ;; S = value of .01 filed
  1. ;; 1 = indicated new entry added
  1. ;; .001 - VSIT("IEN") ; NUMBER (internal entry number)
  1. ;; .01 - VSIT("VDT") ; VISIT/ADMIT DATE&TIME (date)
  1. ;; .02 - VSIT("CDT") ; DATE VISIT CREATED (date)
  1. ;; .03 - VSIT("TYP") ; TYPE (set)
  1. ;; .05 - VSIT("PAT") ; PATIENT (pointer to PATIENT file #9000001)
  1. ;; (IHS file DINUM'ed to PATIENT file #2)
  1. ;; .06 - VSIT("INS") ; LOC. OF ENCOUNTER (pointer to LOCATION file
  1. ;; #9999999.06)
  1. ;; (IHS file DINUM'ed to INSTITUTION file #4)
  1. ;; .07 - VSIT("SVC") ; SERVICE CATEGORY (set)
  1. ;; .08 - VSIT("DSS") ; CLINIC (pointer to CLINIC STOP file #40.7)
  1. ;; .09 - VSIT("CTR") ; DEPENDENT ENTRY COUNTER (number)
  1. ;; .11 - VSIT("DEL") ; DELETE FLAG (set)
  1. ;; .12 - VSIT("LNK") ; PARENT VISIT LINK (pointer to VISIT file)
  1. ;; .13 - VSIT("MDT") ; DATE LAST MODIFIED (date)
  1. ;; .18 - VSIT("COD") ; CHECK OUT DATE&TIME (date)
  1. ;; .21 - VSIT("ELG") ; ELIGIBILITY (pointer to ELIGIBILITY CODE
  1. ;; file #8)
  1. ;; .22 - VSIT("LOC") ; HOSPITAL LOCATION (pointer to HOSPITAL
  1. ;; LOCATION file #44)
  1. ;; .23 - VSIT("USR") ; CREATED BY USER (pointer to USER file #200)
  1. ;; .24 - VSIT("OPT") ; OPTION USED TO CREATE (pointer to OPTION
  1. ;; file #19)
  1. ;; .25 - VSIT("PRO") ; PROTOCOL (pointer to PROTOCOL file #101)
  1. ;; 2101 - VSIT("OUT") ; OUTSIDE LOCATION (free text)
  1. ;; 15001 - VSIT("VID") ; VISIT ID (free text)
  1. ;; 15002 - VSIT("IO") ; PATIENT STATUS IN/OUT (set)
  1. ;; 15003 - VSIT("PRI") ; ENCOUNTER TYPE (set)
  1. ;; 80001 - VSIT("SC") ; SERVICE CONNECTED (set)
  1. ;; 80002 - VSIT("AO") ; AGENT ORANGE EXPOSURE (set)
  1. ;; 80003 - VSIT("IR") ; IONIZING RADIATION EXPOSURE (set)
  1. ;; 80004 - VSIT("EC") ; PERSIAN GULF EXPOSURE (set)
  1. ;; 80006 - VSIT("HNC") ; HEAD AND/OR NECK CANCER (set)
  1. ;; 81101 - VSIT("COM") ; COMMENTS (free text)
  1. ;; 81202 - VSIT("PKG") ; PACKAGE (pointer to PACKAGE file #9.4)
  1. ;; 81203 - VSIT("SOR") ; DATA SOURCE (pointer to PCE DATA SOURCE
  1. ;; file #839.7)