+ All Categories
Home > Documents > Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField...

Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField...

Date post: 05-Jul-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
47
Querying CDW Meta Views by Margaret Gonsoulin, PhD May 23, 2018
Transcript
Page 1: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Querying CDW Meta Views

by Margaret Gonsoulin PhD

May 23 2018

2

Thanks

bull Richard Pham

bull Trinity Hall

bull Andy Kelly

bull BISL

3

The manual search for metadata amp other introductory talks

The manual search for metadata

httpsvawwcdwvagovPagesCDWHomeaspx

Click to launch

Arrive at BISLrsquos Metadata Page

Keep scrolling to domain of interest

The most current list of production domains

Click the name of the domain to view the Entity Relationship Diagram

Or

Expand the domain tables using the plus sign to the left of the domain name

7

Looking for introductory information

httpvawwvirecresearchvagovCDWDocumentationhtmFactbooks

8

By using basic SQL skills to electronically search CDW metadata

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

CDW= Corporate Data Warehouse

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Corporate Data Warehouse (CDW)

Production Domains

The modeledarchitected data domains are built to make using

the information inside easier they are updated nightly

Raw Domains

The un-modeled data domains (close to VistA source) are

updated on a variety of schedules

Only for Production Domains

VistA = Veterans Information Systems and Technology Architecture

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 2: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

2

Thanks

bull Richard Pham

bull Trinity Hall

bull Andy Kelly

bull BISL

3

The manual search for metadata amp other introductory talks

The manual search for metadata

httpsvawwcdwvagovPagesCDWHomeaspx

Click to launch

Arrive at BISLrsquos Metadata Page

Keep scrolling to domain of interest

The most current list of production domains

Click the name of the domain to view the Entity Relationship Diagram

Or

Expand the domain tables using the plus sign to the left of the domain name

7

Looking for introductory information

httpvawwvirecresearchvagovCDWDocumentationhtmFactbooks

8

By using basic SQL skills to electronically search CDW metadata

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

CDW= Corporate Data Warehouse

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Corporate Data Warehouse (CDW)

Production Domains

The modeledarchitected data domains are built to make using

the information inside easier they are updated nightly

Raw Domains

The un-modeled data domains (close to VistA source) are

updated on a variety of schedules

Only for Production Domains

VistA = Veterans Information Systems and Technology Architecture

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 3: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

3

The manual search for metadata amp other introductory talks

The manual search for metadata

httpsvawwcdwvagovPagesCDWHomeaspx

Click to launch

Arrive at BISLrsquos Metadata Page

Keep scrolling to domain of interest

The most current list of production domains

Click the name of the domain to view the Entity Relationship Diagram

Or

Expand the domain tables using the plus sign to the left of the domain name

7

Looking for introductory information

httpvawwvirecresearchvagovCDWDocumentationhtmFactbooks

8

By using basic SQL skills to electronically search CDW metadata

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

CDW= Corporate Data Warehouse

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Corporate Data Warehouse (CDW)

Production Domains

The modeledarchitected data domains are built to make using

the information inside easier they are updated nightly

Raw Domains

The un-modeled data domains (close to VistA source) are

updated on a variety of schedules

Only for Production Domains

VistA = Veterans Information Systems and Technology Architecture

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 4: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

The manual search for metadata

httpsvawwcdwvagovPagesCDWHomeaspx

Click to launch

Arrive at BISLrsquos Metadata Page

Keep scrolling to domain of interest

The most current list of production domains

Click the name of the domain to view the Entity Relationship Diagram

Or

Expand the domain tables using the plus sign to the left of the domain name

7

Looking for introductory information

httpvawwvirecresearchvagovCDWDocumentationhtmFactbooks

8

By using basic SQL skills to electronically search CDW metadata

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

CDW= Corporate Data Warehouse

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Corporate Data Warehouse (CDW)

Production Domains

The modeledarchitected data domains are built to make using

the information inside easier they are updated nightly

Raw Domains

The un-modeled data domains (close to VistA source) are

updated on a variety of schedules

Only for Production Domains

VistA = Veterans Information Systems and Technology Architecture

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 5: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Click to launch

Arrive at BISLrsquos Metadata Page

Keep scrolling to domain of interest

The most current list of production domains

Click the name of the domain to view the Entity Relationship Diagram

Or

Expand the domain tables using the plus sign to the left of the domain name

7

Looking for introductory information

httpvawwvirecresearchvagovCDWDocumentationhtmFactbooks

8

By using basic SQL skills to electronically search CDW metadata

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

CDW= Corporate Data Warehouse

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Corporate Data Warehouse (CDW)

Production Domains

The modeledarchitected data domains are built to make using

the information inside easier they are updated nightly

Raw Domains

The un-modeled data domains (close to VistA source) are

updated on a variety of schedules

Only for Production Domains

VistA = Veterans Information Systems and Technology Architecture

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 6: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Keep scrolling to domain of interest

The most current list of production domains

Click the name of the domain to view the Entity Relationship Diagram

Or

Expand the domain tables using the plus sign to the left of the domain name

7

Looking for introductory information

httpvawwvirecresearchvagovCDWDocumentationhtmFactbooks

8

By using basic SQL skills to electronically search CDW metadata

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

CDW= Corporate Data Warehouse

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Corporate Data Warehouse (CDW)

Production Domains

The modeledarchitected data domains are built to make using

the information inside easier they are updated nightly

Raw Domains

The un-modeled data domains (close to VistA source) are

updated on a variety of schedules

Only for Production Domains

VistA = Veterans Information Systems and Technology Architecture

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 7: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

7

Looking for introductory information

httpvawwvirecresearchvagovCDWDocumentationhtmFactbooks

8

By using basic SQL skills to electronically search CDW metadata

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

CDW= Corporate Data Warehouse

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Corporate Data Warehouse (CDW)

Production Domains

The modeledarchitected data domains are built to make using

the information inside easier they are updated nightly

Raw Domains

The un-modeled data domains (close to VistA source) are

updated on a variety of schedules

Only for Production Domains

VistA = Veterans Information Systems and Technology Architecture

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 8: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

8

By using basic SQL skills to electronically search CDW metadata

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

CDW= Corporate Data Warehouse

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Corporate Data Warehouse (CDW)

Production Domains

The modeledarchitected data domains are built to make using

the information inside easier they are updated nightly

Raw Domains

The un-modeled data domains (close to VistA source) are

updated on a variety of schedules

Only for Production Domains

VistA = Veterans Information Systems and Technology Architecture

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 9: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

CDW= Corporate Data Warehouse

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Corporate Data Warehouse (CDW)

Production Domains

The modeledarchitected data domains are built to make using

the information inside easier they are updated nightly

Raw Domains

The un-modeled data domains (close to VistA source) are

updated on a variety of schedules

Only for Production Domains

VistA = Veterans Information Systems and Technology Architecture

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 10: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Corporate Data Warehouse (CDW)

Production Domains

The modeledarchitected data domains are built to make using

the information inside easier they are updated nightly

Raw Domains

The un-modeled data domains (close to VistA source) are

updated on a variety of schedules

Only for Production Domains

VistA = Veterans Information Systems and Technology Architecture

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 11: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Corporate Data Warehouse (CDW)

Production Domains

The modeledarchitected data domains are built to make using

the information inside easier they are updated nightly

Raw Domains

The un-modeled data domains (close to VistA source) are

updated on a variety of schedules

Only for Production Domains

VistA = Veterans Information Systems and Technology Architecture

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 12: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

12

Getting the Right Place

bull Open SSMS software from your program menu

bull Type in your full server name (eg VHACDWrb02vhamedvagov)

bull Locate the folder called CDWWork

bull Expand CDWWork

bull Expand Views

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 13: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

13

Finding Meta Views

bull Scroll down through the views

bull They are in alphabetic order

bull Metaxxx holds a variety of helpful information

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 14: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

14

Fields in MetaDWViewField

bull There are numerous fields in this view

bull This screenshot only shows some of them

bull Letrsquos explore the columns that are most useful for finding documentation on CDW

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 15: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 16: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Start with an Automatic Query

Click ldquoselect top 1000 rowsrdquo from the drop down menu

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 17: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Customize the code

1 Select the columnsinformation you want 2 Add a WHERE statement to ask for the column of

interest

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 18: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

18

Example for Column lsquoAgersquo

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 19: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Column Content

View Name(s) PatientPatient SPatientSPatient

Technical Description This field is calculated from DOB the following formula floor(datediff(Day DateOfBirth ISNULL(DateOfDeath GetDate()))36525)rdquo

Field Codes NA

Source Field Description NA

19

Age

This is telling you that Age may contain either the patientrsquos age as of today or the patientrsquos age at date of death

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 20: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Column Content

View Name(s) OutpatVisit OutpatWorkload

Technical Description ETL Team to populate from AmbEncDemogPeriodOfService to this field

Entries to be converted to NULL

Field Codes DIC(21

Source Field Description From the available listing select the period of service which best classifies this applicant The selections displayed are limited based on the

eligibility code which must have been entered in order to select a period of service Once the service

record is verified only those users who hold the designated security key may enteredit this field

20

PatientPeriodOfService

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 21: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Column Content

View Name(s) DimCollectionMethod PatSubPatientRace PatSubPatientEthnicity

Technical Description NA

Field Codes NA

Source Field Description This field contains the name of a collection method used to obtain a value for race and ethnicity during

enteredit of patient data information These entries are maintained by VA Central Office

and entryedit of entries is not allowed

21

CollectionMethod

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 22: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Column Content

View Name(s) InpatCensusSurgicalProcedure Inpat InpatientSurgicalProcedure

Technical Description NA

Field Codes 1Live Donor2Cadaver

Source Field Description This field will indicate where the transplant organ was received from

22

KidneySource

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 23: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special keys to improve your query

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 24: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Search for data on a topic

bull Search for key words in

DWViewFieldTechnicalDescription

FieldCodes

SourceFieldDescription

WHERE DWViewName LIKE OEF or DWViewFieldName LIKE OEF or DWViewFieldTechnicalDescription LIKE OEF or FieldCodes LIKE OEF or SourceFieldDescription LIKE OEF

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 25: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 26: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Looking for Something from VistA

bull Letrsquos start by looking at the Data Architecture Repository (DAR)

This site serves as a repository for metadata from around the VA

It includes metadata for VistA

VistA is one of the primary sources of CDW data

Referencing these files can help clarify the meaning of CDW data

VistA = Veterans Health Information Systems and Technology Architecture

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 27: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

DARrsquos VistA Metadata

httpsvaausdarmul81aacdvavagovplsapexfp=200014160078295662946ResetNORP1

Select ldquoVHArdquo from the left banner Then select ldquoVistArdquo from the menu

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 28: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Search for a subject

29

Enter key word and press ldquoSearch VistArdquo

httpsvaausdarmul81aacdvavagovplsapexfp=VISTA14009097484869177

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 29: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Search Results Eligibility

30

File Name and Number

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 30: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

31

VistA File ldquoEligibility Coderdquo 8

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 31: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

32

Keep columns on CDW table amp column source (VistA in this case) information

Search for SourceEntityName ldquoEligibility Coderdquo

Tailor the query- search for ldquoEligibility Coderdquo

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 32: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

33

Results of querywhere it is in CDW

Eligibility Code 8 Data can be found in DimEligibility

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 33: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 34: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

35

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 35: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

36

Your are in VistA file ldquoPatient Movementrdquo

1st Entry ndash from VistA pointer

We will use file 405 and field 06 to find this in CDW

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 36: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

37

Use ldquoRelatedrdquo File and Field

Remember from VistA - the WARD to which this patient is being admitted or transferred This field will only be prompted for movements to WARDS at the home facility

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 37: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

38

From Two Entry Points

1 You are in VistA metadata and see a ldquopointerrdquo You wonder how to find the corresponding linking key in CDW

2 You are in CDW metadata (or other documentation) see a linking key and wonder how that linking key is defined

Linking keys end with ldquoSIDrdquo in CDW

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 38: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

39

Click the ldquo+rdquo to expand metadata

From CDW Metadata

httpsvawwcdwvagovmetadata_layouts15ReportServerRSViewerPageaspxrv3aRelativeReportUrl=metadataReportsMetadata20Rep ortrdlampSource=http3avawwcdwr02medvagovmetadataReportsFormsAllItemsaspxampDefaultItemOpen=1

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 39: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

40

Search Linking Keys for PatientTransfer

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 40: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

41

MetaFileManField

ldquoFilemanrdquo is a term used in VistA to describe the control of files in that system

So this will view contain information that we might other look in the DAR to find

Will need both tables

Using another meta view Make a plan

DAR = Data Architecture RepositoryVistA Metadata are here

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 41: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

42

From DWViewField

Link on three columns

From FileManField

Writing a Query

For the CDW table PatientTransfer and column AttendingPhysicianSID

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 42: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

43

Query Results

Description Reads ndash Enter the supervising physician who is responsible for the care of the patient Nonaffiliated hospitals may choose not to use this field This field will be prompted for movements with a transaction type of specialty change only

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 43: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

In todayrsquos talkhellip

1 Locate the views beginning with ldquometardquo schema

2 Explore the columns in the view that allow for you to search for

a descriptions of a specific CDW column

b fields capturing data on a subject

c whether a specific VistA fieldfile is in CDW

3 Find information on linking keys

4 Use special columns to improve your query

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 44: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

Another view

A domain I am working with

MetaDWIndex

Column that are indexed

bull An index helps SQL Server find the row or rows of values more quickly and efficiently

bull Clustered indexes sort and store the data rows in the table or view based on their values

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 45: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

46

Partition Keys Listed in Metadata

47

Feel free to email us anytime as additionalnew questions arise at virecvagov

Page 46: Querying CDW Meta Views - Health Services Research › for_researchers › ...Meta.FileManField “Fileman” is a term used in VistA to describe the control of files in that system.

47

Feel free to email us anytime as additionalnew questions arise at virecvagov


Recommended