49
Developing QueryContent for IBIS- PH

Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Embed Size (px)

Citation preview

Page 1: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Developing QueryContent for IBIS-PH

Page 2: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Let’s check a few things.1. Do you have a “Q:\” drive mapped

to the backend ibis-q server?

Page 3: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

2. Do you have an apache-tomcat-7.0.42 folder on your C:\ drive?

Page 4: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Open the webapps folder, and then the ibisph-view folder.

Page 5: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

3. Do you have a Tomcat startup icon on your desktop? What happens when you click on it?

Page 6: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

4. Open a browser window and put this in the address bar:

http://localhost:8080

What happens?

Page 7: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

HOW IT WORKS

Page 8: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Files Maintained by PH Staff: IBIS-Q

IBIS-Admin

IBIS-View

IBIS-Q

Page 9: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Web Basics

web

Client / Internet User…

…sends request (URL)…

… to Web server.

…to Client / Internet User.

…sends response (HTML)…

Web server

http://ibis.health.utah.gov

<html> <head> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title> IBIS-PH Welcome to IBIS-PH; Utah's Public Health Data Resource</title> . . .

Page 10: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

10

System/Software Components

ibisph-view interface

IBIS XML, XSLT files

IBIS CGI app

IBIS-Q CGI App

SAS

SAS for server

Data

SAS Data Sets

web

IBIS System

Back-end SAS/IBIS-q Server

ibisph-view on Tomcat app Server

Page 11: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?
Page 12: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

NM Data Users 2013New Mexico

Department of Health

12

Page 13: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

13

System/Software Components

ibisph-view interface

IBIS XML, XSLT files

IBIS CGI app

IBIS-Q CGI App

SAS

SAS for server

Data

SAS Data Sets

web

IBIS System

Back-end SAS/IBIS-q Server

ibisph-view on Tomcat app Server

Page 14: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

IBIS-Q Custom Query System

html

IBIS-Admin

IBIS-View

IBIS-Q

Page 15: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?
Page 16: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?
Page 17: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

17

System/Software Components

ibisph-view interface

IBIS XML, XSLT files

IBIS CGI app

IBIS-Q CGI App

SAS

SAS for server

Data

SAS Data Sets

web

IBIS System

Back-end SAS/IBIS-q Server

ibisph-view on Tomcat app Server

Page 18: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

The Query URL

http://10.135.2.142/cgi-bin/hi_iq_func.exe?config=E%3A%5Cibisq%5CqModules%5Cbirth%5CBirth12.cfg&sas=0&test=0&func=NM_BirthRate.def&data_where=15%3C%3Dmage%3C%3D17&pop_where=16%3C%3Dagegrp35%3C%3D18+and+sex%3D2+and+1990%3C%3DYear%3C%3D2012&GeoProxy=GeoCnty&Year=2012&GeoRes=1&cross1=GeoProxy

http://10.135.2.142/cgi-bin/hi_iq_func.exe?config=E%3A%5Cibisq%5CqModules%5Cbirth%5CBirth12.cfg&sas=0&test=0 &func=NM_BirthRate.def&data_where=15%3C%3Dmage%3C%3D17&pop_where=16%3C%3Dagegrp35%3C%3D18+and+sex%3D2+and+1990%3C%3DYear%3C%3D2012&GeoProxy=GeoCnty&Year=2012&GeoRes=1&cross1=GeoProxy

Page 19: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

IBIS-Q Custom Query System

IBIS-Admin

IBIS-View

IBIS-Q

Page 20: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

IBIS-Q Custom Query System

IBIS-Admin

IBIS-View

IBIS-Q

html

Page 21: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Results include query filter criteria, a data table...

Page 22: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?
Page 23: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Quick Review

Page 24: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Web Basics

web

Client / Internet User…

…sends request (URL)…

… to Web server.

…to Client / Internet User.

…sends response (HTML)…

Web server

http://ibis.health.utah.gov

<html> <head> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title> IBIS-PH Welcome to IBIS-PH; Utah's Public Health Data Resource</title> . . .

Page 25: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

25

System/Software Components

ibisph-view interface

IBIS XML, XSLT files

IBIS CGI app

IBIS-Q CGI App

SAS

SAS for server

Data

SAS Data Sets

web

IBIS System

Back-end SAS/IBIS-q Server

ibisph-view on Tomcat app Server

Page 26: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?
Page 27: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

A CLOSER LOOK AT THE IBIS-Q BACK-END FILES

Page 28: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

IBIS-Q, Back- end file structure

Page 29: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Back- end Query Module Files

Page 30: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

HANDS-ONcreating a CFG file

Page 31: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

IBIS-Q Modules DirectoryModule.CFG file (crosswalk between IBIS-view, IBIS-q and SAS)

e.g., ibisq\qModules\mort\ MortUSET11.cfg

.DEF files (SAS templates)

e.g., ibisq\qModules\mort\Count.def.MAP files (define content of SAS output for IBIS-q to create xml version)

e.g., XMLCount.map.HEAD and .TAIL files (xml wrapper elements)

XMLResponse.head XMLResponse.tail

Page 32: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Birth.cfg

Page 33: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Birth.cfg

Page 34: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Variable Mapping Table

#value name_sas name_html name_pop prompt type1 type2 length

21 bbthyear Year year Year num 0 4

31 magegrp MomAgeGrp magegrp Mother's&Age num 0 4

32 medugrp MomEdu null Mother's&Education num 0 4

33 mmarital MomMar null Mother's&Marital&Status num 0 4

34 btobacyn MomTobaccoUse null Mother's&Tobacco&Use num 0 4

35 balchoyn MomAlcoholUse null Mother's&Alcohol&Use num 0 4

72 brescnty GeoCnty county County num 0 4

Page 35: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Comments Inside Each .CFG File

Page 36: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

TotalFertRate.DEF

This is an excerpt from the SAS template (.DEF) file that runs the total fertility rate measure.The CGI App creates a SAS program from this template and the additional information in the query URL and Module.cfg file.

Page 37: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Example .MAP File

XMLPercentNumerDenomLCLUCL.MAP

Page 38: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Front-end, Interface Files: Module.XML Files

Page 39: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

View Application (Interface) XML File Structure

C:\apache-tomcat-7.0.42\webapps\ibisph-view\WEB-INF\xml\query\module\mort

Page 40: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Module.xml Files

Selection Page .XML file BirthSelection.XML

Module.XML files BirthBirthCnty.XML BirthPopCnty.XML AdolBirth15_17.XML PNCTri1.XML etc. …

Page 41: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

…xml\query\module\birth\BirthSelection.XML

Page 42: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?
Page 43: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

…xml\query\module\birth\AdolBirthCnty.xml

Page 44: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

…xml\query\module\birth\section\Geo.xml

Page 45: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Dimension/GeoCnty.xml

Page 46: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?
Page 47: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?
Page 48: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?
Page 49: Developing QueryContent for IBIS-PH. Let’s check a few things. 1.Do you have a “Q:\” drive mapped to the backend ibis-q server?

Questions?