18
1 http://ndar.nih.gov NDAR Data Dictionary | Data Structure Mapping NDAR Data Dictionary Data Structure Definition: Creating a Mapping File Create a mapping file if your local data structure has already been defined and published in the NDAR Data Dictionary. For help, contact [email protected]

NDAR Data Structure Mapping Instructions

Embed Size (px)

Citation preview

Page 1: NDAR Data Structure Mapping Instructions

1http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

NDAR Data DictionaryData Structure Definition:Creating a Mapping File

Create a mapping file if your local data structurehas already been defined and published in theNDAR Data Dictionary.

For help, contact [email protected]

Page 2: NDAR Data Structure Mapping Instructions

2http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

Before we begin, let’s define some terms…

Data Element – A “variable” or “field” with documented attributes that establish a consistent format for recording research data

NDAR Data Dictionary – A compendium of data elements

NDAR Data Structure – A group of data elements published by name in the NDAR Data Dictionary e.g., the ADI-R is published in the NDAR Data Dictionary

as “Autism Diagnostic Interview-Revised - (ADI-R) - (2003)” and contains 406 associated data elements

Local Data Structure – A group of data elements defined at the research site

Page 3: NDAR Data Structure Mapping Instructions

3http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

Let’s start with a typical scenario…

A small research team has been using the ADI-R for two years. The team records and maintains data in a spreadsheet for all of the 406 assessment items.

As a data capture system, the spreadsheet meets the needs of this small team. They’ve never needed to develop a codebook, which would have required them to define and document the format and attributes for the research data.

Eight new participants have consented to share data with NDAR. The data submission cycle is fast approaching.

What does the research team do?

Page 4: NDAR Data Structure Mapping Instructions

4http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

What does the research team do?

Create a mapping file to specify the relationship between their local data structure for the ADI-R and the NDAR data structure for the ADI-R. The mapping file provides a direct link from the local

data element name to the NDAR data element name. This allows NDAR to understand that the two data elements are

the same even though they may have different names. When the researchers submit their data, NDAR will use

the value ranges that have already been defined in the NDAR data structure to validate their data.

This process only needs to be completed one time.

Page 5: NDAR Data Structure Mapping Instructions

5http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

How do I create a mapping file?

1. Locate the desired NDAR data structure on the NDAR Web site. The NDAR Web site provides a current list of data structures

published to the NDAR Data Dictionary.

2. View and download the list of data elements contained in the NDAR data structure.

3. Copy only the NDAR data element names and paste them into a new spreadsheet.

4. Enter each of your local data element names next to its corresponding NDAR data element name.

5. Save the mapping relationship to an XML file.

Page 6: NDAR Data Structure Mapping Instructions

6http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

Can you show me an example?

In this example, we’ll generate a mapping file for 4 data elements contained in the NDAR ADI-R. These 4 data elements are required in every data

submission to NDAR.

Let’s begin.

Page 7: NDAR Data Structure Mapping Instructions

7http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

Example

1. Locate the desired NDAR data structure on the NDAR Web site. Go to http://ndar.nih.gov. Click on the “Tools” tab in the menu.

Page 8: NDAR Data Structure Mapping Instructions

8http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

Example

1. Locate the desired NDAR data structure on the NDAR Web site. Click on the “NDAR Data Structures” link.

Page 9: NDAR Data Structure Mapping Instructions

9http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

Example

2. View and download the list of data elements contained in the NDAR data structure. Click on the desired data structure (in our example, the ADI-R).

Page 10: NDAR Data Structure Mapping Instructions

10http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

Example

2. View and download the list of data elements contained in the NDAR data structure. Download the CSV file.

Page 11: NDAR Data Structure Mapping Instructions

11http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

3. Copy only the NDAR data element names and paste them into a new spreadsheet.

Example

Page 12: NDAR Data Structure Mapping Instructions

12http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

4. Enter each of your local data element names next to its corresponding NDAR data element name.

Example

Your Local Data StructureElementName

NDAR Data StructureElementName

Page 13: NDAR Data Structure Mapping Instructions

13http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

Example

5. Save the mapping relationship to an XML file. Ensure that the file follows this format:

<?xml version="1.0" ?> <map_file> <map_structure name="adi_200301">  <map_element alias="NDAR_GUID" ndar="subjectkey" /> <map_element alias="ID" ndar="src_subject_id" />   <map_element alias="test_date" ndar="interview_date" />   <map_element alias="subject_age" ndar="interview_age" />   </map_structure>  </map_file>

Page 14: NDAR Data Structure Mapping Instructions

14http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

5. Save the mapping relationship to an XML file Ensure that the file follows this format:

<?xml version="1.0" ?> <map_file> <map_structure name="adi_200301">  <map_element alias="NDAR_GUID" ndar="subjectkey" /> <map_element alias="ID" ndar="src_subject_id" />   <map_element alias="test_date" ndar="interview_date" />   <map_element alias="subject_age" ndar="interview_age" />   </map_structure>  </map_file>

Example

How do I derive themap_structure name?

Page 15: NDAR Data Structure Mapping Instructions

15http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

5. Save the mapping relationship to an XML file Ensure that the file follows this format. Use the NDAR Data Structure Short Name and Version.

<?xml version="1.0" ?> <map_file> <map_structure name="adi_200301">  <map_element alias="NDAR_GUID" ndar="subjectkey" /> <map_element alias="ID" ndar="src_subject_id" />   <map_element alias="test_date" ndar="interview_date" />   <map_element alias="subject_age" ndar="interview_age" />   </map_structure>  </map_file>

Example

Page 16: NDAR Data Structure Mapping Instructions

16http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

5. Save the mapping relationship to an XML file. Find the Short Name and Version on the NDAR Web site.

Example

Page 17: NDAR Data Structure Mapping Instructions

17http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

Questions & Answers

What do I do with my completed XML mapping files? Send your mapping files to [email protected] with a

request to publish them to the NDAR Data Dictionary.

What if I have multiple clinical assessments? Generate a mapping file for each clinical assessment.

What if I can’t find a matching data structure in the NDAR Data Dictionary? Use the NDAR Data Structure Definition Template to define a

data structure for your data submission.http://ndar.nih.gov/ndarpublicweb/Documents/NDAR_Data_Structure_Definition_Template.xls

Page 18: NDAR Data Structure Mapping Instructions

18http://ndar.nih.gov

NDAR Data Dictionary | Data Structure Mapping

NDAR Technical Assistance

E-mail: [email protected] Web site: http//:ndar.nih.gov

Standard Operating Procedures (Policy & Procedures page) Webinars (Training page) Online Tutorials (Training page, Spring 2010)

Listservs: http://ndar.nih.gov/ndarpublicweb/Listserv.go NDAR General: System enhancements, Web updates, training

schedules, meetings and special events NDAR Data: Timely technical updates, system releases, new

data structures, data management-related tools and trainings Demonstration Environment: http://ndardemo.nih.gov

Request an Account Practice setting up data structures and submitting test data