STANDARD DATA DICTIONARY #9000010 -- VISIT FILE 3/24/25 PAGE 1
STORED IN ^AUPNVSIT( *** NO DATA STORED YET *** SITE: WWW.BMIRWIN.COM UCI: VISTA,VISTA (VERSION 1.0)
DATA NAME GLOBAL DATA
ELEMENT TITLE LOCATION TYPE
-----------------------------------------------------------------------------------------------------------------------------------
This file contains a record of all patient visits at health care facilities or by health care providers, including direct
outpatient and clinic visits, as well as inpatient encounters with providers of care. All other visit related files, such as
purpose of visit (diagnoses), operative procedures, immunizations, examinations, etc., will point to a visit in this file. The
records are maintained by date/time of visit, and the patient name field is a pointer to the IHS Patient file, where the patient
must exist before data can be added here.
FILE SCREEN (SCR-node) : I '$P(^(0),U,11),($P(^(0),U,9)!($D(APCDOVRR)!$D(VSIT)!($G(DUZ("AG"))?1"V"0.1"A")))
POST-SELECTION ACTION : S X="AUPNVSIT" X ^%ZOSF("TEST") I $T D:$G(DUZ("AG"))?1"I"0.1"HS" POSTSLCT^AUPNVSIT
DD ACCESS:
RD ACCESS:
WR ACCESS:
DEL ACCESS:
LAYGO ACCESS:
AUDIT ACCESS:
IDENTIFIED BY: PATIENT NAME (#.05)[R], HOSPITAL LOCATION (#.22), VISIT ID (#15001)[R]
POINTED TO BY: VISIT NUMBER field (#.06) of the CPT RECORD DATE/TIME sub-field (#45.06) of the PTF File (#45)
VISIT field (#27) of the EXAMINATIONS sub-field (#70.03) of the REGISTERED EXAMS sub-field (#70.02) of the RAD/NUC
MED PATIENT File (#70)
VISIT field (#.015) of the SURGERY File (#130)
VISIT field (#.12) of the ED LOG File (#230)
VISIT field (#.03) of the CLAIMS TRACKING File (#356)
VISIT FILE ENTRY field (#.27) of the PATIENT MOVEMENT File (#405)
VISIT FILE ENTRY field (#.05) of the OUTPATIENT ENCOUNTER File (#409.68)
PCE field (#8.12) of the RECORD OF PROS APPLIANCE/REPAIR File (#660)
PCC POINTER field (#900) of the ECHO File (#691)
PCC POINTER field (#900) of the CARDIAC CATHETERIZATION File (#691.1)
PCC POINTER field (#900) of the ELECTROCARDIOGRAM (EKG) File (#691.5)
PCC POINTER field (#900) of the HOLTER File (#691.6)
PCC POINTER field (#900) of the EXERCISE TOLERANCE TEST File (#691.7)
PCC POINTER field (#900) of the ELECTROPHYSIOLOGY (EP) File (#691.8)
PCC POINTER field (#900) of the HEMATOLOGY File (#694)
PCC POINTER field (#900) of the GENERATOR IMPLANT File (#698)
PCC POINTER field (#900) of the V LEAD IMPLANT File (#698.1)
PCC POINTER field (#900) of the A LEAD IMPLANT File (#698.2)
PCC POINTER field (#900) of the PACEMAKER SURVEILLANCE File (#698.3)
PCC POINTER field (#900) of the ENDOSCOPY/CONSULT File (#699)
PCC POINTER field (#900) of the GENERALIZED PROCEDURE/CONSULT File (#699.5)
PCC POINTER field (#900) of the PULMONARY FUNCTION TESTS File (#700)
PCC POINTER field (#900) of the RHEUMATOLOGY File (#701)
VISIT field (#.13) of the CP TRANSACTION File (#702)
VISIT field (#28) of the EVENT CAPTURE PATIENT File (#721)
VISIT field (#2) of the PROCEDURE ACTIONS sub-field (#790.23) of the WV PROCEDURE File (#790.1)
VISIT field (#.07) of the EXTRACT FINDINGS sub-field (#810.31) of the REMINDER EXTRACT SUMMARY File (#810.3)
VISIT field (#.01) of the VISIT sub-field (#818.141) of the EPISODES OF CARE sub-field (#818.01) of the COMPACT ACT
EPISODE OF CARE File (#818)
VISIT field (#.03) of the PCE DEVICE INTERFACE MODULE ERRORS File (#839.01)
VISIT field (#.03) of the TIU DOCUMENT File (#8925)
SECONDARY VISIT field (#1207) of the TIU DOCUMENT File (#8925)
INITIAL VISIT RECORD field (#1.11) of the TIU AUDIT TRAIL File (#8925.5)
FINAL VISIT RECORD field (#1.12) of the TIU AUDIT TRAIL File (#8925.5)
PARENT VISIT LINK field (#.12) of the VISIT File (#9000010)
VISIT field (#.03) of the V PROVIDER File (#9000010.06)
VISIT field (#.03) of the V POV File (#9000010.07)
VISIT field (#.03) of the V IMMUNIZATION File (#9000010.11)
VISIT field (#.03) of the V SKIN TEST File (#9000010.12)
VISIT field (#.03) of the V EXAM File (#9000010.13)
VISIT field (#.03) of the V TREATMENT File (#9000010.15)
VISIT field (#.03) of the V PATIENT ED File (#9000010.16)
VISIT field (#.03) of the V CPT File (#9000010.18)
VISIT field (#.03) of the V HEALTH FACTORS File (#9000010.23)
VISIT field (#.03) of the V IMM CONTRA/REFUSAL EVENTS File (#9000010.707)
VISIT field (#.03) of the V STANDARD CODES File (#9000010.71)
VISIT field (#.03) of the V IMMUNIZATION DELETED File (#9000080.11)
CROSS
REFERENCED BY: PATIENT NAME(AA), VISIT/ADMIT DATE&TIME(AA-TOO), SERVICE CATEGORY(AAH), VISIT/ADMIT DATE&TIME(AAHTOO),
PATIENT NAME(AAHTOO2), PARENT VISIT LINK(AD), DEPENDENT ENTRY COUNT(ADEL), VISIT/ADMIT DATE&TIME(ADEL2),
ENCOUNTER TYPE(AET), VISIT/ADMIT DATE&TIME(AET1), PATIENT NAME(AET2), HOSPITAL LOCATION(AET3),
HOSPITAL LOCATION(AHL), VISIT/ADMIT DATE&TIME(AHL2), PARENT VISIT LINK(APV), ELIGIBILITY(AVAA2),
VISIT/ADMIT DATE&TIME(B), PATIENT NAME(C), VISIT ID(VID)
LAST MODIFIED: MAY 4,2021@15:57:23
9000010,.01 VISIT/ADMIT DATE&TIME 0;1 DATE (Required)
VISIT DATE & TIME
INPUT TRANSFORM: S %DT="EST" D ^%DT S X=Y K:Y<1 X
LAST EDITED: OCT 18, 2018
HELP-PROMPT: Enter the Visit/Admit Date and Time
DESCRIPTION: VISIT/ADMIT DATE & TIME must be between the patient's date of birth and today. In the VA this
reflects the visit appointment and or event date time.
DELETE TEST: .01,0)= I 1
GROUP: VA/IHS
NOTES: XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER
CROSS-REFERENCE: 9000010^B
1)= S ^AUPNVSIT("B",$E(X,1,30),DA)=""
2)= K ^AUPNVSIT("B",$E(X,1,30),DA)
Regular B cross reference on .01 Visit/Admit Date&Time ^AUPNVSIT("B",Visit/Admit Date&Time,ien)=""
CROSS-REFERENCE: 9000010^AAHTOO^MUMPS
1)= I $P(^AUPNVSIT(DA,0),U,5),$P(^(0),U,7)]"",$P(^(0),U,7)="H" S ^AUPNVSIT("AAH",$P(^AUPNVSIT(DA,0)
,U,5),((9999999-$P(X,".",1))_$S($P(X,".",2)'="":"."_$P(X,".",2),1:"")),DA)=""
2)= I $P(^AUPNVSIT(DA,0),U,5),$P(^(0),U,7)]"",$P(^(0),U,7)="H" K ^AUPNVSIT("AAH",$P(^AUPNVSIT(DA,0)
,U,5),((9999999-$P(X,".",1))_$S($P(X,".",2)'="":"."_$P(X,".",2),1:"")),DA)
This cross-reference indexes hospitalization visits (#.07=H) by patient and inverse visit date.
Used to get at the last N hospitalizations.
CROSS-REFERENCE: 9000010^AA-TOO^MUMPS
1)= I $P(^AUPNVSIT(DA,0),U,5) S ^AUPNVSIT("AA",$P(^AUPNVSIT(DA,0),U,5),((9999999-$P(X,".",1))_$S($P
(X,".",2)'="":"."_$P(X,".",2),1:"")),DA)=$S(+$P(^AUPNVSIT(DA,0),U,21):+$P(^(0),U,21),1:"")
2)= I $P(^AUPNVSIT(DA,0),U,5) K ^AUPNVSIT("AA",$P(^AUPNVSIT(DA,0),U,5),((9999999-$P(X,".",1))_$S($P
(X,".",2)'="":"."_$P(X,".",2),1:"")),DA)
This cross-reference indexes visits by patient and inverse date. It is used to find the last N
visits for a patient. The name AA-TOO signifies that the cross-reference uses several field values
and therefore, the index AA is set on all the fields.
CROSS-REFERENCE: 9000010^AET1^MUMPS
1)= I $P($G(^AUPNVSIT(DA,150)),U,3)]"",$P($G(^AUPNVSIT(DA,0)),U,22)]"",$P($G(^AUPNVSIT(DA,0)),U,5)]
"" S ^AUPNVSIT("AET",$P(^AUPNVSIT(DA,0),U,5),X,$P(^AUPNVSIT(DA,0),U,22),$P(^AUPNVSIT(DA,150),U,3),D
A)=""
2)= I $P($G(^AUPNVSIT(DA,150)),U,3)]"",$P($G(^AUPNVSIT(DA,0)),U,22)]"",$P($G(^AUPNVSIT(DA,0)),U,5)]
"" K ^AUPNVSIT("AET",$P(^AUPNVSIT(DA,0),U,5),X,$P(^AUPNVSIT(DA,0),U,22),$P(^AUPNVSIT(DA,150),U,3),D
A)
Cross-reference for OE 3 and CPRS, this gives the patient, visit date/time, hospital location,
encounter type, visit IEN.
CROSS-REFERENCE: 9000010^ADEL2^MUMPS
1)= I $G(DUZ("AG"))'?1"I"0.1"HS",+$P(^AUPNVSIT(DA,0),"^",9)'>0 S ^AUPNVSIT("ADEL",+X,DA)=""
2)= K ^AUPNVSIT("ADEL",+X,DA)
This sets the "delete" flag based upon the Dependent Entry Count.
CROSS-REFERENCE: 9000010^AHL2^MUMPS
1)= I $P(^AUPNVSIT(DA,0),U,22) S ^AUPNVSIT("AHL",$P(^AUPNVSIT(DA,0),U,22),((9999999-$P(X,".",1))_$S
($P(X,".",2)'="":"."_$P(X,".",2),1:"")),DA)=""
2)= I $P(^AUPNVSIT(DA,0),U,22) K ^AUPNVSIT("AHL",$P(^AUPNVSIT(DA,0),U,22),((9999999-$P(X,".",1))_$S
($P(X,".",2)'="":"."_$P(X,".",2),1:"")),DA)
This cross-reference indexes visits by hospital location and inverse date. It is used to find a
date/time range of visits by hospital location. The cross-reference uses several field values and
therefore, the index 'AHL' is set on all the fields. The name AHL2 signifies that the
cross-reference uses several field values and therefore, the index AHL is set on all the fields.
9000010,.02 DATE VISIT CREATED 0;2 DATE (Required)
INPUT TRANSFORM: S %DT="EXRS" D ^%DT S X=Y K:DTX) X
LAST EDITED: OCT 17, 2018
HELP-PROMPT: Enter the date and time the visit was created.
DESCRIPTION: The date and time when a new visit is added. It is generated automatically and set to NOW.
GROUP: IHS/VA
UNEDITABLE
NOTES: XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER
9000010,.03 TYPE 0;3 SET (Required)
'I' FOR IHS;
'C' FOR CONTRACT;
'T' FOR TRIBAL;
'O' FOR OTHER;
'6' FOR 638 PROGRAM;
'V' FOR VA;
'AF' FOR AIR FORCE;
'N' FOR NAVY;
'E' FOR EHR;
'ARMY' FOR ARMY;
'USCG' FOR COAST GUARD;
LAST EDITED: SEP 25, 2019
HELP-PROMPT: Select the type of visit.
DESCRIPTION: The type of visit. The purpose is to differentiate between various categories of visits, such as a
visit provided by contract care funds versus a regular VA visit. This field is set automatically.
GROUP: IHS
9000010,.05 PATIENT NAME 0;5 POINTER TO PATIENT/IHS FILE (#9000001) (Required)
PATIENT/IHS
LAST EDITED: OCT 17, 2018
HELP-PROMPT: Enter the patient.
DESCRIPTION: Pointer to the Patient file.
GROUP: IHS
UNEDITABLE
CROSS-REFERENCE: 9000010^C
1)= S ^AUPNVSIT("C",$E(X,1,30),DA)=""
2)= K ^AUPNVSIT("C",$E(X,1,30),DA)
CROSS-REFERENCE: 9000010^AA^MUMPS
1)= S ^AUPNVSIT("AA",X,((9999999-$P(+^AUPNVSIT(DA,0),".",1))_$S($P(+^AUPNVSIT(DA,0),".",2)'="":"."_
$P(+^(0),".",2),1:"")),DA)=$S(+$P(^AUPNVSIT(DA,0),U,21):+$P(^(0),U,21),1:"")
2)= K ^AUPNVSIT("AA",X,((9999999-$P(+^AUPNVSIT(DA,0),".",1))_$S($P(+^AUPNVSIT(DA,0),".",2)'="":"."_
$P(+^(0),".",2),1:"")),DA)
Indexes visits by patient and inverse visit date. Used to find the last N visits of a patient.
CROSS-REFERENCE: 9000010^AAHTOO2^MUMPS
1)= I $P(^AUPNVSIT(DA,0),U,7)]"",$P(^(0),U,7)="H" S ^AUPNVSIT("AAH",X,((9999999-$P(+^AUPNVSIT(DA,0)
,".",1))_$S($P(+^AUPNVSIT(DA,0),".",2)'="":"."_$P(+^(0),".",2),1:"")),DA)=""
2)= I $P(^AUPNVSIT(DA,0),U,7)]"",$P(^(0),U,7)="H" K ^AUPNVSIT("AAH",X,((9999999-$P(+^AUPNVSIT(DA,0)
,".",1))_$S($P(+^AUPNVSIT(DA,0),".",2)'="":"."_$P(+^(0),".",2),1:"")),DA)
Indexes hospitalization visits by patient and inverse visit date. Used to find the last N
hospitalizations for a given patient.
CROSS-REFERENCE: 9000010^AET2^MUMPS
1)= I $P($G(^AUPNVSIT(DA,150)),U,3)]"",$P($G(^AUPNVSIT(DA,0)),U,22)]"" S ^AUPNVSIT("AET",X,$P(^AUPN
VSIT(DA,0),U,1),$P(^AUPNVSIT(DA,0),U,22),$P(^AUPNVSIT(DA,150),U,3),DA)=""
2)= I $P($G(^AUPNVSIT(DA,150)),U,3)]"",$P($G(^AUPNVSIT(DA,0)),U,22)]"" K ^AUPNVSIT("AET",X,$P(^AUPN
VSIT(DA,0),U,1),$P(^AUPNVSIT(DA,0),U,22),$P(^AUPNVSIT(DA,150),U,3),DA)
Cross-reference for OE 3 and CPRS, this gives the patient, visit date/time, hospital location,
encounter type, and visit IEN.
9000010,.06 LOC. OF ENCOUNTER 0;6 POINTER TO LOCATION FILE (#9999999.06)
LAST EDITED: SEP 12, 2018
HELP-PROMPT: Enter the Institution where the Visit took place.
DESCRIPTION: Pointer to the Location file, location where the visit took place. In the VA, the Location file
entries will be based on the current entries in the Institution file, so this field represents the
institution.
GROUP: IHS
9000010,.07 SERVICE CATEGORY 0;7 SET (Required)
'A' FOR AMBULATORY;
'H' FOR HOSPITALIZATION;
'I' FOR IN HOSPITAL;
'C' FOR CHART REVIEW;
'T' FOR TELECOMMUNICATIONS;
'N' FOR NOT FOUND;
'S' FOR DAY SURGERY;
'O' FOR OBSERVATION;
'E' FOR EVENT (HISTORICAL);
'R' FOR NURSING HOME;
'D' FOR DAILY HOSPITALIZATION DATA;
'X' FOR ANCILLARY PACKAGE DAILY DATA;
LAST EDITED: SEP 12, 2018
HELP-PROMPT: Enter the Service Category
DESCRIPTION: Service Category represents what kind of service was provided.
The population of this field is dependent upon entries provided by applications as well as default
values and calculated codes.
GROUP: IHS
CROSS-REFERENCE: 9000010^AAH^MUMPS
1)= I X="H",$P(^AUPNVSIT(DA,0),U,5)]"" S ^AUPNVSIT("AAH",$P(^AUPNVSIT(DA,0),U,5),((9999999-$P(+^(0)
,".",1))_$S($P(+^(0),".",2):"."_$P(+^(0),".",2),1:"")),DA)=""
2)= I X="H",$P(^AUPNVSIT(DA,0),U,5)]"" K ^AUPNVSIT("AAH",$P(^AUPNVSIT(DA,0),U,5),((9999999-$P(+^(0)
,".",1))_$S($P(+^(0),".",2):"."_$P(+^(0),".",2),1:"")),DA)
Indexes hospitalization visits by patient and inverse visit date. Used to find the last N
hospitalizations for a patient.
9000010,.08 DSS ID 0;8 POINTER TO CLINIC STOP FILE (#40.7)
INPUT TRANSFORM: S DIC("S")="I $P(^(0),U,3)=""""!($P(^(0),U,3)'<$P(^AUPNVSIT(DA,0),U))" D ^DIC K DIC S DIC=DIE,X=+Y
K:Y<0 X
LAST EDITED: OCT 17, 2018
HELP-PROMPT: Enter the clinic in which the visit took place.
DESCRIPTION: This is a pointer to the Clinic Stop file. It is the clinic in which this visit took place.
SCREEN: S DIC("S")="I $P(^(0),U,3)=""""!($P(^(0),U,3)'<$P(^AUPNVSIT(DA,0),U))"
EXPLANATION: ALLOW PAST VISITS
GROUP: IHS/VA
9000010,.09 DEPENDENT ENTRY COUNT 0;9 NUMBER
INPUT TRANSFORM: K:+X'=X!(X>999)!(X<0)!(X?.E1"."1N.N) X
LAST EDITED: OCT 17, 2018
HELP-PROMPT: Enter an integer between 0 and 999.
DESCRIPTION: This is a count of how many "V" file entries are pointing to this visit. If the count is zero, the
visit should be deleted. This field is updated by a cross-reference in each "V" file that calls
routine ADD^AUPNVSIT or SUB^AUPNVSIT. This field should never be edited by hand.
WRITE AUTHORITY: ^
GROUP: IHS/VA
UNEDITABLE
CROSS-REFERENCE: 9000010^ADEL^MUMPS
1)= I $G(DUZ("AG"))'?1"I"0.1"HS" S:X'>0 ^AUPNVSIT("ADEL",+^AUPNVSIT(DA,0),DA)="" K:X>0 ^AUPNVSIT("A
DEL",+^AUPNVSIT(DA,0),DA)
2)= Q
9000010,.11 DELETE FLAG 0;11 SET
'0' FOR ACTIVE;
'1' FOR DELETED;
LAST EDITED: OCT 17, 2018
HELP-PROMPT: Enter 1 to signify the visit has been deleted, 0 otherwise.
DESCRIPTION: Flag set to signify that the visit has been deleted.
WRITE AUTHORITY: ^
GROUP: IHS/VA
UNEDITABLE
9000010,.12 PARENT VISIT LINK 0;12 POINTER TO VISIT FILE (#9000010)
LAST EDITED: OCT 22, 2018
HELP-PROMPT: Enter the Parent Visit Link.
DESCRIPTION: The Parent Visit Link field points back to the Visit file.
GROUP: IHS/VA
CROSS-REFERENCE: 9000010^AD
1)= S ^AUPNVSIT("AD",$E(X,1,30),DA)=""
2)= K ^AUPNVSIT("AD",$E(X,1,30),DA)
PARENT VISIT LINK
CROSS-REFERENCE: 9000010^APV^MUMPS
1)= D ADD^AUPNVSIT
2)= D SUB^AUPNVSIT
This updates the dependent entry count when a child visit is created.
9000010,.13 DATE LAST MODIFIED 0;13 DATE
INPUT TRANSFORM: S %DT="EXRS" D ^%DT S X=Y K:DTX) X
LAST EDITED: OCT 17, 2018
HELP-PROMPT: Enter the date and time when visit was last modified.
DESCRIPTION: Date and time when the visit was last modified. Any time a field in the visit file or a V-File is
added or deleted, this field is automatically updated with the current date and time. This field is
set automatically.
GROUP: IHS/VA
NOTES: XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER
9000010,.18 CHECK OUT DATE&TIME 0;18 DATE
INPUT TRANSFORM: S %DT="ESTXR" D ^%DT S X=Y K:Y<1 X
LAST EDITED: FEB 17, 1994
HELP-PROMPT: Enter the date and time the patient checked out.
DESCRIPTION: This field is the date and time the patient checked out for this visit.
TECHNICAL DESCR: This data is passed from the MCCR event data capture and then passed from PCE to PIMS 5.3 for
automated check-out.
9000010,.21 ELIGIBILITY 0;21 POINTER TO ELIGIBILITY CODE FILE (#8)
INPUT TRANSFORM: S DIC("S")="I $D(^DPT($S($D(DFN):DFN,1:$P(^AUPNVSIT(DA,0),""^"",5)),""E"",+Y,0))" D ^DIC K DIC S DI
C=DIE,X=+Y K:Y<0 X
LAST EDITED: SEP 13, 2018
HELP-PROMPT: Select the eligibility which best describes the patient's entitlement to care for this visit.
DESCRIPTION:
Defines the patient's eligibility for this visit.
SCREEN: S DIC("S")="I $D(^DPT($S($D(DFN):DFN,1:$P(^AUPNVSIT(DA,0),""^"",5)),""E"",+Y,0))"
EXPLANATION: Only valid eligibilities for this patient.
GROUP: VA
NOTES: XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER
CROSS-REFERENCE: 9000010^AVAA2^MUMPS
1)= I +$P(^AUPNVSIT(DA,0),"^",5) S ^AUPNVSIT("AA",$P(^AUPNVSIT(DA,0),"^",5),((9999999-$P(+^AUPNVSIT
(DA,0),"."))_$S($P(+^AUPNVSIT(DA,0),".",2)'="":"."_$P(+^(0),".",2),1:"")),DA)=$S(+X:+X,1:"")
2)= I +$P(^AUPNVSIT(DA,0),"^",5),$D(^AUPNVSIT("AA",$P(^AUPNVSIT(DA,0),"^",5),((9999999-$P(+^AUPNVSI
T(DA,0),"."))_$S($P(+^AUPNVSIT(DA,0),".",2)'="":"."_$P(+^(0),".",2),1:"")),DA)) S ^(DA)=""
3)= This is a required field.
Set the "AA" cross-reference equal to the patient's eligibility (pointer).
9000010,.22 HOSPITAL LOCATION 0;22 POINTER TO HOSPITAL LOCATION FILE (#44)
LAST EDITED: FEB 23, 2007
HELP-PROMPT: Answer with the name of the hospital location where this visit occurred.
DESCRIPTION:
The hospital location where this visit occurred.
GROUP: VA
CROSS-REFERENCE: 9000010^AHL^MUMPS
1)= S ^AUPNVSIT("AHL",X,(9999999-$P($P(^AUPNVSIT(DA,0),U,1),".",1))_$S($P($P(^(0),U,1),".",2)'="":"
."_$P($P(^(0),U,1),".",2),1:""),DA)=""
2)= K ^AUPNVSIT("AHL",X,(9999999-$P($P(^AUPNVSIT(DA,0),U,1),".",1))_$S($P($P(^(0),U,1),".",2)'="":"
."_$P($P(^(0),U,1),".",2),1:""),DA)
This cross-reference indexes visits by hospital location and inverse date. It is used to find a
date/time range of visits by hospital location. The cross-reference uses several field values and
therefore, the index 'AHL' is set on all the fields.
CROSS-REFERENCE: 9000010^AET3^MUMPS
1)= I $P($G(^AUPNVSIT(DA,150)),U,3)]"",$P($G(^AUPNVSIT(DA,0)),U,5)]"" S ^AUPNVSIT("AET",$P(^AUPNVSI
T(DA,0),U,5),$P(^AUPNVSIT(DA,0),U,1),X,$P(^AUPNVSIT(DA,150),U,3),DA)=""
2)= I $P($G(^AUPNVSIT(DA,150)),U,3)]"",$P($G(^AUPNVSIT(DA,0)),U,5)]"" K ^AUPNVSIT("AET",$P(^AUPNVSI
T(DA,0),U,5),$P(^AUPNVSIT(DA,0),U,1),X,$P(^AUPNVSIT(DA,150),U,3),DA)
Cross-reference for OE 3 and CPRS, this gives the patient, visit date/time, hospital location,
encounter type, and visit IEN.
9000010,.23 CREATED BY USER 0;23 POINTER TO NEW PERSON FILE (#200)
LAST EDITED: OCT 17, 2018
HELP-PROMPT: Enter the user who created or updated the visit.
DESCRIPTION: This field contains the USER passed in by the application calling the PCE API ($$DATA2PCE^PXAPI) to
create or update the visit. If USER is not defined DUZ will be used.
If something other than $$DATA2PCE^PXAPI is used to create or update the entry then DUZ will be
used.
GROUP: VA
9000010,.24 OPTION USED TO CREATE 0;24 POINTER TO OPTION FILE (#19)
LAST EDITED: OCT 17, 2018
HELP-PROMPT: Enter the option under which this visit was created.
DESCRIPTION: If known, the option under which this visit was created.
GROUP: VA
9000010,.25 PROTOCOL 0;25 POINTER TO PROTOCOL FILE (#101)
LAST EDITED: OCT 15, 2018
HELP-PROMPT: Select the Protocol that was used to create this visit.
DESCRIPTION: This is the protocol which was used to create this visit. This field is set automatically.
9000010,.26 PFSS ACCOUNT REFERENCE 0;26 POINTER TO PFSS ACCOUNT FILE (#375)
LAST EDITED: JUN 02, 2005
DESCRIPTION: The number by which all VistA applications will reference an external medical billing system
account number for purposes of attaching charges for 1st or 3rd party billing.
TECHNICAL DESCR:
A pointer to the PFSS ACCOUNT FILE (#375)
9000010,2101 OUTSIDE LOCATION 21;1 FREE TEXT
INPUT TRANSFORM: K:$L(X)>50!($L(X)<2) X
LAST EDITED: JUN 03, 1992
HELP-PROMPT: Answer must be 2-50 characters in length.
DESCRIPTION:
Free text location of service.
9000010,15001 VISIT ID 150;1 FREE TEXT (Required)
INPUT TRANSFORM: K:$L(X)>15!($L(X)<8)!'(X?4.10NU1"-"3.4U) X
LAST EDITED: OCT 18, 2018
HELP-PROMPT: Enter the unique visit ID.
DESCRIPTION: This is the unique visit ID, it is set by Visit Tracking and cannot be changed.
UNEDITABLE
CROSS-REFERENCE: 9000010^VID
1)= S ^AUPNVSIT("VID",$E(X,1,30),DA)=""
2)= K ^AUPNVSIT("VID",$E(X,1,30),DA)
9000010,15002 PATIENT STATUS IN/OUT 150;2 SET
'1' FOR IN;
'0' FOR OUT;
LAST EDITED: OCT 15, 2018
HELP-PROMPT: Enter the patient's status at the time of the visit.
DESCRIPTION: This is an indicator of the patient's status at the time of the visit. It is set automatically
using the API $$IP^VSITCK1.
9000010,15003 ENCOUNTER TYPE 150;3 SET
'P' FOR PRIMARY;
'O' FOR OCCASION OF SERVICE;
'S' FOR STOP CODE;
'A' FOR ANCILLARY;
'C' FOR CREDIT STOP;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: Enter the Encounter Type.
DESCRIPTION: This field notes the encounter type.
CROSS-REFERENCE: 9000010^AET^MUMPS
1)= I $P($G(^AUPNVSIT(DA,0)),U,5)]"",$P($G(^AUPNVSIT(DA,0)),U,22)]"" S ^AUPNVSIT("AET",$P(^AUPNVSIT
(DA,0),U,5),$P(^AUPNVSIT(DA,0),U,1),$P(^AUPNVSIT(DA,0),U,22),X,DA)=""
2)= I $P($G(^AUPNVSIT(DA,0)),U,5)]"",$P($G(^AUPNVSIT(DA,0)),U,22)]"" K ^AUPNVSIT("AET",$P(^AUPNVSIT
(DA,0),U,5),$P(^AUPNVSIT(DA,0),U,1),$P(^AUPNVSIT(DA,0),U,22),X,DA)
Cross-reference for OE 3 and CPRS, this gives the patient, visit date/time, hospital location,
encounter type, and visit IEN.
9000010,80001 SERVICE CONNECTED 800;1 SET
'1' FOR YES;
'0' FOR NO;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: If this visit is treating a service connected problem, enter 'YES' here.
DESCRIPTION: This field will be used to indicate if this visit was for treating a VA patient based on a service
connected problem.
TECHNICAL DESCR:
This field may be passed to the Visit based on the MCCR event data capture.
9000010,80002 AGENT ORANGE EXPOSURE 800;2 SET
'1' FOR YES;
'0' FOR NO;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: If this visit is treating an agent orange exposure problem, enter 'YES' here.
DESCRIPTION: This field is used to indicate that this visit represents treatment of a VA patient for a problem
that is related to Agent Orange Exposure.
TECHNICAL DESCR:
This data may be passed to the Visit from MCCR event data capture.
9000010,80003 IONIZING RADIATION EXPOSURE 800;3 SET
'1' FOR YES;
'0' FOR NO;
LAST EDITED: OCT 17, 2018
HELP-PROMPT: If this visit is treating a problem related to Ionizing Radiation Exposure, enter 'YES'.
DESCRIPTION: This field is used to indicate that this visit represents treatment of a VA patient for a problem
that is related to Ionizing Radiation Exposure.
TECHNICAL DESCR:
This data may be passed to the Visit from MCCR event data capture.
9000010,80004 SW ASIA CONDITIONS 800;4 SET
'1' FOR YES;
'0' FOR NO;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: If this visit is treating a problem related to SW Asia Conditions Exposure, enter 'YES'.
DESCRIPTION: This field is used to indicate that this visit represents treatment of a VA patient for a problem
that is related to Southwest Asia Conditions Exposure.
TECHNICAL DESCR:
This data may be passed to the Visit from the MCCR event data capture.
9000010,80005 MILITARY SEXUAL TRAUMA 800;5 SET
'1' FOR YES;
'0' FOR NO;
LAST EDITED: OCT 17, 2018
HELP-PROMPT: If this visit is treating a problem related to Military Sexual Trauma, enter 'YES'.
DESCRIPTION: Indicates whether the patient's visit was related to Military Sexual Trauma.
9000010,80006 HEAD AND/OR NECK CANCER 800;6 SET
'1' FOR YES;
'0' FOR NO;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: If this visit is treating a problem related to Head/Neck Cancer, enter 'YES'.
DESCRIPTION: This field is used to indicate that the visit represents treatment of a VA patient for a problem
that is related to Head and/or Neck Cancer.
9000010,80007 COMBAT VETERAN 800;7 SET
'1' FOR YES;
'0' FOR NO;
LAST EDITED: OCT 17, 2018
HELP-PROMPT: If this visit is treating a problem related to combat, enter 'YES'.
DESCRIPTION: This field is used to indicate that the visit represents treatment of a VA patient for a problem
that is related to combat.
9000010,80008 PROJ 112/SHAD 800;8 SET
'1' FOR YES;
'0' FOR NO;
LAST EDITED: JUN 02, 2005
HELP-PROMPT: If this visit is treating a problem related to PROJ 112/SHAD, enter 'YES'.
DESCRIPTION: Project 112/SHAD was the name of the overall program for both shipboard and land-based biological
and chemical testing that was conducted by the United States (U.S.) military between 1962 and 1973.
Project SHAD (Shipboard Hazard and Defense) was the shipboard portion of these tests.
9000010,80011 SERVICE CONNECTION EDIT FLAG 800;11 SET
'0' FOR EDITABLE;
'1' FOR NOT EDITABLE;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: Enter 1 to prevent user editing of the Service Connection classification.
DESCRIPTION: This field is used to determine if the Service Connection Classification for the Visit can be
edited by the user.
TECHNICAL DESCR: The Service Connected classification is not editable if either any of the diagnosis Service
Connection classifications are 'Yes' or all the diagnosis Service Connection classifications are
'No'.
9000010,80012 AGENT ORANGE EDIT FLAG 800;12 SET
'0' FOR EDITABLE;
'1' FOR NOT EDITABLE;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: Enter 1 to prevent user editing of the Agent Orange classification.
DESCRIPTION: This field is used to determine if the Agent Orange Classification for the Visit can be edited by
the user.
TECHNICAL DESCR: The Agent Orange classification is not editable if either any of the diagnosis Agent Orange
classifications are 'Yes' or all the diagnosis Agent Orange classifications are 'No'.
9000010,80013 IONIZING RADIATION EDIT FLAG 800;13 SET
'0' FOR EDITABLE;
'1' FOR NOT EDITABLE;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: Enter 1 to prevent user editing of the Ionizing Radiation classification
DESCRIPTION: This field is used to determine if the Ionizing Radiation classification for the Visit can be
edited by the user.
TECHNICAL DESCR: The Ionizing Radiation classification is not editable if either any of the diagnosis Ionizing
Radiation classifications are 'Yes' or all the diagnosis Ionizing Radiation classifications are
'No'.
9000010,80014 SW ASIA CONDITIONS EDIT FLAG 800;14 SET
'0' FOR EDITABLE;
'1' FOR NOT EDITABLE;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: Enter 1 to prevent user editing of the SW Asia Conditions classification.
DESCRIPTION: This field is used to determine if the Southwest Asia Conditions classification for the Visit can
be edited by the user.
TECHNICAL DESCR: The Southwest Asia Conditions classification is not editable if either any of the diagnosis
Southwest Asia Conditions classifications are 'Yes', or all the diagnosis Southwest Asia Conditions
classifications are 'No'.
9000010,80015 MST EDIT FLAG 800;15 SET
'0' FOR EDITABLE;
'1' FOR NOT EDITABLE;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: Enter 1 to prevent user editing of the Military Sexual Trauma classification
DESCRIPTION: This field is used to determine if the Military Sexual Trauma classification for the Visit can be
edited by the user.
TECHNICAL DESCR: The Military Sexual Trauma classification is not editable if either any of the diagnosis Military
Sexual Trauma classifications are 'Yes', or all the diagnosis Military Sexual Trauma
classifications are 'No'.
9000010,80016 HEAD AND NECK CANCER EDIT FLAG 800;16 SET
'0' FOR EDITABLE;
'1' FOR NOT EDITABLE;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: Enter 1 to prevent user editing of the Head and Neck Cancer classification
DESCRIPTION: This field is used to determine if the Head and/or Neck Cancer classification can be edited by the
user.
TECHNICAL DESCR: The Head and/or Neck Cancer classification is not editable if either any of the diagnosis Head
and/or Neck Cancer classifications are 'Yes', or all the diagnosis Head and/or Neck Cancer
classifications are 'No'.
9000010,80017 COMBAT VETERAN EDIT FLAG 800;17 SET
'0' FOR EDITABLE;
'1' FOR NOT EDITABLE;
LAST EDITED: OCT 22, 2018
HELP-PROMPT: Enter 1 to prevent user editing of the combat Veteran classification.
DESCRIPTION: This field is used to determine if the Combat Veteran classification can be edited by the user.
TECHNICAL DESCR: The Combat Veteran classification is not editable if either any of the diagnosis Combat Veteran
classifications are 'Yes', or all the diagnosis Combat Veteran classifications are 'No'.
9000010,80018 PROJ 112/SHAD EDIT FLAG 800;18 SET
'0' FOR EDITABLE;
'1' FOR NOT EDITABLE;
LAST EDITED: OCT 18, 2018
HELP-PROMPT: Enter 1 to prevent user editing of the PROJ 112/SHAD classification.
DESCRIPTION: This field is used to determine if the PROJ 112/SHAD classification can be edited by the user.
TECHNICAL DESCR: The PROJ 112/SHAD classification is not editable if either any of the diagnosis PROJ 112/SHAD
classifications are 'Yes, or all the diagnosis PROJ 112/SHAD classifications are 'No'.
9000010,81101 COMMENTS 811;1 FREE TEXT
INPUT TRANSFORM: K:$L(X)>245!($L(X)<1) X
MAXIMUM LENGTH: 245
LAST EDITED: SEP 13, 2018
HELP-PROMPT: Answer must be 1-245 characters in length.
DESCRIPTION: A field to add comments as they pertain to a visit.
9000010,81202 PACKAGE 812;2 POINTER TO PACKAGE FILE (#9.4)
LAST EDITED: OCT 22, 2018
HELP-PROMPT: Enter the Package that wanted the visit created.
DESCRIPTION: This is a pointer to the Package that wanted the visit created.
UNEDITABLE
9000010,81203 DATA SOURCE 812;3 POINTER TO PCE DATA SOURCE FILE (#839.7)
LAST EDITED: OCT 22, 2018
HELP-PROMPT: Enter the PCE Data Source that wanted this visit created.
DESCRIPTION: This is a pointer to the PCE Data Source file and is the source that wanted the visit created.
UNEDITABLE
FILES POINTED TO FIELDS
CLINIC STOP (#40.7) DSS ID (#.08)
ELIGIBILITY CODE (#8) ELIGIBILITY (#.21)
HOSPITAL LOCATION (#44) HOSPITAL LOCATION (#.22)
LOCATION (#9999999.06) LOC. OF ENCOUNTER (#.06)
NEW PERSON (#200) CREATED BY USER (#.23)
OPTION (#19) OPTION USED TO CREATE (#.24)
PACKAGE (#9.4) PACKAGE (#81202)
PATIENT/IHS (#9000001) PATIENT NAME (#.05)
PCE DATA SOURCE (#839.7) DATA SOURCE (#81203)
PFSS ACCOUNT (#375) PFSS ACCOUNT REFERENCE (#.26)
PROTOCOL (#101) PROTOCOL (#.25)
VISIT (#9000010) PARENT VISIT LINK (#.12)
INPUT TEMPLATE(S):
PRINT TEMPLATE(S):
SORT TEMPLATE(S):
FORM(S)/BLOCK(S):