MDR Training June 4, 2012 Keith Hofmann. Purpose and Objective Purpose To provide a detailed training on the use of the MHS Data Repository Objectives:

Slides:



Advertisements
Similar presentations
Today: Run SAS programs on Saturn (UNIX tutorial) Runs SAS programs on the PC.
Advertisements

ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
Working Environment - - Linux - -.
Linux+ Guide to Linux Certification, Second Edition
Guide To UNIX Using Linux Third Edition
Unix Basics. Systems Programming: Unix Basics 2 Unix Basics  Unix directories  Important Unix file commands  File and Directory Access Rights through.
UNIX By Darcy Tatlock. 1. Successful Log Into Unix To actively manipulate your website you need to be logged in. Without being logged in you cannot enter.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Systems Programming Concepts
Learning basic Unix command IT 325 operating system.
Brief introduction to UNIX A. Emerson CINECA, High Performance Systems.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
© Crown copyright Met Office An Introduction to Linux PRECIS Workshop, University of Reading, 23rd – 27th April 2012.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
1 Unix Text Editors Creating files on the Unix system.
Linux Directory Navigation. File & Directory Commands This is a minimal list of Unix commands that you must know for file management: ls (list) mkdir.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
A Guide to Unix Using Linux Fourth Edition
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
The UNIX development environment CS 400/600 – Data Structures.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
Productivity Programs Common Features and Commands.
Intro. To Unix commands For those who’ve never used Unix before Quick tutorial to let you move around your Unix Accounts No discussion of inner workings.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
ACCESS IC LAB Graduate Institute of Electronics Engineering, NTU Usage of Workstation Lecturer: Yu-Hao( 陳郁豪 ) Date:
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Introduction To UNIX. FAQReferencesSummaryInfo Resources Introduction Learning Objectives Log on User Interface Commands List of Commands Useful Info.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Linux+ Guide to Linux Certification, Third Edition
Introduction to Programming Using C An Introduction to Operating Systems.
Linux Commands C151 Multi-User Operating Systems.
Chapter 1: Overview of SAS System Basic Concepts of SAS System.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
The Unix File sytem. Introduction Tree structure …
ICE UNIX TUTORIAL. File System Commands cd – change directory cd – change directory ls – list contents ls – list contents rm – remove/delete rm – remove/delete.
Learning basic Unix command It 325 operating system.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Operating systems Lecture #3 Modern OS characteristics.
Reports for Managers Wendy Funk Kennell and Associates.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Introduction to Unix for FreeSurfer Users
ENEE150 Discussion 01 Section 0101 Adam Wang.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
CS1010: Intro Workshop.
Development Environment Basics
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Prepared by: Eng. Maryam Adel Abdel-Hady
Andy Wang Object Oriented Programming in C++ COP 3330
C151 Multi-User Operating Systems
The Command Prompt Commands are the way to “do things” in Unix
Useful Linux Commands.
Lecture #3 Modern OS characteristics
Guide To UNIX Using Linux Third Edition
Assignment Preliminaries
Lecture #3 Modern OS characteristics
Operating Systems and Using Linux
Web Programming Essentials:
Chapter Four UNIX File Processing.
Lab 2: Terminal Basics.
Presentation transcript:

MDR Training June 4, 2012 Keith Hofmann

Purpose and Objective Purpose To provide a detailed training on the use of the MHS Data Repository Objectives: Attendees will be able to: Access the BEA website, and use the MDR Data Dictionary and MDR Functional Specifications to inform programming Sign on to the MDR Navigate the MDR using UNIX commands Use the PICO editor to write SAS programs Run SAS programs, debug syntactical and logical errors, and perform Quality Control checks FOR OFFICIAL USE ONLY 2

3 What is the MDR? MDR: Military Health System Data Repository “Home Grown” Data Warehouse initially intended for internal use Data from throughout the enterprise (CHCS, DEERS, PDTS, Claims, etc.) available to analysts via SAS

BEA Website Home to: MDR Data Dictionary MDR Functional Specifications Interface Control Documents MDR Users Guide MDR Functional Guide FOR OFFICIAL USE ONLY 4

BEA Website Screenshot FOR OFFICIAL USE ONLY 5 <-Specs

M2 Tables and Their MDR Equivalents FOR OFFICIAL USE ONLY 6 M2 ClassMDR Equivalent Eligibility Population Summary (DEERS)/mdr/pub/deers/summary/vm6agg/fyXX/fmZZ/popagg.sas7bdat DEERS Person Detail/mdr/pub/deers/detail/vm6ben/fyXX/fmZZ.txt.Z Longitudinal Eligibility/mdr/pub/deers/lelg/vm6lelg/fyXX.sas7bdat MCFAS /mdr/pub/mcfas/fyXX/mcfaspop.sas7bdat Reservists /mdr/pub/reservist/reservist.sas7bdat and /mdr/pub/reservist/legacyreservist.sas7bdat TRICARE Relationships (DEERS) Relationship Detail /mdr/pub/deers/enr/vm6enr/fyXX/fmZZ.sas7bdat Health Care Services Case Management /mdr/pub/casemgmt/cm.sas7bdat Dental Direct Care Dental/mdr/pub/dental/ded/fyXX/fyXX.sas7bdat Purchased Care Dental /mdr/pub/dental/tdp/claims/fyXX.sas7bdat and /mdr/pub/dental/addp/claims/fyXX/fyXX.sas7bdat Direct Care Ancillary Services Laboratory Detail and Radiology Detail /mdr/pub/ancillary/fyXX/ancillary.fyXX/fyXX.sas7bdat Appointment Detail/mdr/pub/appt/detail/fyXX/fyXX.sas7bdat Inpatient Admissions (SIDR) Inpatient Admissions Detail/mdr/pub/sidr/fyXX/sidr.fyXX/fyXX.sas7bdat Professional Encounters (CAPER) CAPER Detail/mdr/pub/caper/enhanced/fyXX.sas7bdat Professional Encounters (SADR) Professional Encounters Detail/mdr/pub/sadr/fyXX.sas7bdat Purchased Care Institutional (HCSR/TED) Institutional Detail/mdr/pub/tedi/fyXX/header.sas7bdat Non-institutional (HCSR/TED) Non-institutional Detail /mdr/pub/tedni/fyXX/champus.sas7bdat and /mdr/pub/tedni/fyXX/tdefic.sas7bdat Pharmacy (PDTS) PDTS Detail/mdr/pub/pdts/detail/fyXX/pdts.detail.fyXX.txt.Z Referrals /mdr/pub/referral/referral.sas7bdat System Production (MEPRS/WWR) MEPRS /mdr/pub/eas4/fyXX/eas4.fyXX/fyXX.sas7bdat MEPRS Personnel Detail/mdr/pub/eas4/personnel/fyXX/eas4.personnel.fyXX/fyXX.sas7bdat WWR /mdr/pub/wwr/fyXX/wwr.fyXX/fyXX.sas7bdat Reference Tables DMIS ID Table /mdr/ref/dmisid.index/fyXX.sas7bdat or /mdr/ref/dmisid.index.fyXX.txt

Other Useful MDR Files FOR OFFICIAL USE ONLY 7 DEERS Longitudinal Enrollment/mdr/pub/deers/lenr/vm6lenr/fyXX.sas7bdat SIDR Completion Factors/mdr/pub/sidr/compfac/fyXX/sidr.compfac.fyXX.txt.Z TEDI Completion Factors /hpae2/kennell/ref/ibnrinst.fmt TEDN Completion Factors /hpae2/kennell/ref/ibnrnon.fmt TED Provider /mdr/pub/tedpr/tedpr.sas7bdat CDR Vitals /mdr/pub/cdr/vitals/fyXX.sas7bdat CDR Immunizations/mdr/pub/cdr/imm/immunizations.sas7bdat CDR Historical Procedures/mdr/pub/cdr/procedures/histproc.sas7bdat CDR Medications Fills and Results /mdr/pub/cdr/med/fyXX/fills.sas7bdat /mdr/pub/cdr/med/fyXX/orders.sas7bdat CDR Lab Chemistry Results/mdr/pub/cdr/chem/fyXX.sas7bdat MEPRS Ancillary /mdr/pub/eas4/ancillary/fyXX/eas4.ancillary.fyXX/fyXX.sas7bdat MEPRS Expense Detail /mdr/pub/eas4/exp_detail/fyXX/eas4.exp_detail.fyXX/fyXX.sas7bdat MEPRS Workload Detail /mdr/pub/eas4/wk_detail/fyXX/eas4.wk_detail.fyXX/fyXX.sas7bdat Designated Provider /mdr/pub/desprov/fyXX/clin.sas7bdat Active Duty Dental (ADDP)/mdr/pub/dental/addp/claims/fyXX/fyXX.sas7bdat Direct Care Dental (DED)/mdr/pub/dental/ded/fyXX.sas7bdat TRICARE Dental Program (TDP)/mdr/pub/dental/tdp/claims/fyXX.sas7bdat

OOB OOB: Out of Band Users not behind a *.mil network will have to use this to access the MDR Requires CAC FOR OFFICIAL USE ONLY 8

OOB Screenshot FOR OFFICIAL USE ONLY 9 The yellow lock means you are connected

WinSCP FOR OFFICIAL USE ONLY 10 Used for transferring files between your computer and the MDR Some prefer to use this for editing programs Cannot submit programs

PuTTY Used for submitting programs UNIX based (must be navigated using keyboard commands) Mouse can be used for copy and paste (highlight to copy, right click to paste) FOR OFFICIAL USE ONLY 11

UNIX Commands cd – Change Directories. Used to navigate among directories (like folders) pwd – Print Working Directory. Shows what directory you are in (where am I?) ls – LiSt. Shows contents of the working directory mkdir – MaKe DIRectory. Creates a new directory chmod – CHange MODe. Change the permissions on a directory or file cp – CoPy. Copy files or directories within or across directories mv – MoVe. Move or rename files or directories within or across directories rm – ReMove. Delete files. rmdir – ReMove DIRectories. Delete directories (directory must be empty) pico – PICO. Open PICO text editor more – Open one page of a file at a time. Use Enter to navigate one line at a time and Space to navigate one page at a time. Useful for examining large files tail – View last 10 lines of a file. Useful for examining large files. Can be used in tandem with more to look at sections of a file besides the beginning and end. gzip/gunzip – Use GZip to compress or uncompress files FOR OFFICIAL USE ONLY 12

Using UNIX Commands FOR OFFICIAL USE ONLY 13

PICO Editor FOR OFFICIAL USE ONLY 14 Use Control Key + a letter to use the commands at the bottom ctrl+x = “Exit”. Leave PICO editor ctrl+o = “WriteOut”. Works like “Save As” in Windows ctrl+k and ctrl+u = “Cut Text” and “UnCut Text”. Can be used to cut and paste text, one or more lines at a time ctrl+w = “Where is”. Works like “Find” (ctrl+f) in Windows ctrl+a and ctrl+e: Goes to the beginning or the end of the line

SAS SAS (formerly Statistical Analysis Software) is the programming language used to access the data on the MDR SAS programs have three basic sections 1. UNIX Housekeeping. This contains libname and filename statements, detailing where files are to be read from or written to. 2. The Data Step(s). This is the meat of a SAS program. Files are read in one record at a time, and the data can be manipulated using math, functions, formulas and other techniques. Multiple data sets can be read in or written out simultaneously 3. Procedures. These are canned processes available in SAS that can produce reports and summaries or manage data files FOR OFFICIAL USE ONLY 15

Proc Examples proc contents – lists the contents of libraries and data sets, and provides general information about their size and other characteristics proc datasets – provides library management functions (e.g. deleting data sets) proc sort – sorts observations in a SAS data set by one or more variables proc print – prints the observations in a SAS data set, using all or some of the variables proc freq – produces one-way or many-way frequency and cross-tabulation tables. Very useful for QC purposes. proc summary – computes descriptive statistics on numeric variables and/or aggregates data across one or more stratifications proc means – same purpose as “proc summary”, but slightly different syntax proc format – allows creation of formats for character or numeric variables. Can be used like VLOOKUP in Excel proc append – adds data sets together FOR OFFICIAL USE ONLY 16

Submitting a Program FOR OFFICIAL USE ONLY 17 To stop a running program:

Hands On  Powerpoint Presentations are boring, so let’s get our hands dirty and get on the MDR! FOR OFFICIAL USE ONLY 18