EPA Exchange Network SDWIS Data Flow Maine SDWIS/State system using FedRep XML output files.

Post on 27-Dec-2015

223 views 0 download

Transcript of EPA Exchange Network SDWIS Data Flow Maine SDWIS/State system using FedRep XML output files.

EPA Exchange Network SDWIS Data Flow

Maine SDWIS/State system using FedRep XML output files

New Data FlowFedRep

EPA Regional

OfficeODS

Data Warehouse

Monthly

Quarterly

Annual

Ad Hoc Reports

Standard Reports

OLAP Tools

Federal Enf Data

Flow

Staging Tables

CDXXML Doc Repository

SDWIS/STATE

XML Doc

Other State Data Systems

DIRECT PULL

Certification

SDWIS Data Flow using FedRep Output

• SDWIS/FedRep v1.1, dated 8/9/04, is an integrated set of tools, including a message notification tool, that extracts data from SDWIS/State applications using SQL Server, DB2 DBMS's, and ORACLE.

• FedRep assists DW Public Water System Supervision Primacy Agencies, EPA regions and EPA Headquarters with the extraction (SDWIS/State only), formatting (SDWIS/State only), validation, and certification of federally reportable drinking water data.

SDWIS Data Flow using FedRep Output

• Primacy agencies not using the SDWIS/State application, or using it for only part of their federally reportable data flow, have the responsibility of mapping and extracting data from their own database(s). The data must be formatted into XML documents compatible with the published XML schema used by FedRep.

• SDWIS/FedRep is based upon the J2EE architecture so it can be deployed in diverse operating environments.

SDWIS Data Flow using FedRep Output

• The majority of states use SDWIS/STATE.• EPA has used SDWIS/FED database.• An Oracle database, known as

Operational Data System or ODS/SDWIS, is replacing the SDWIS/FED database.

• The cutoff date for EPA to turn off SDWIS/FED is fast approaching. It is important that States keep informed of the status of SDWIS modernization.

SDWIS Data Flow using FedRep Output

• The Drinking Water Protection Division at EPA headquarters issued a 2/3/05 memo requesting “assistance in encouraging primacy agencies to provide quarterly data using the modernized SDWIS data flow.”

• Call 202-564-4624 or 202-564-3942 to subscribe to the “SDWIS Modernization Update” e-mail newsletter to stay up to date on the progress.

SDWIS Data Flow using FedRep Output

ODS/SDWIS Timeline• Test ODS/SDWIS is now accepting zipped

XML files up to 10 MB in size via CDX.• Production ODS/SDWIS is expected to be

ready to accept XML files pushed to CDX by state nodes by 07/05.

• Phase III of SDWIS modernization will implement pull of data from state node. A pilot was to begin 9/04. (?)

SDWIS Data Flow using FedRep Output

• EPA’s FedRep software extracts quarterly report information from the SDWIS/STATE database into an XML file that is compliant with the EN drinking water schema.

• FedRep runs a majority of the EPA data edits on your local system so you can correct most data errors before sending your files to CDX. Win-Win!

SDWIS Data Flow using FedRep Output

• Maine’s Drinking Water program, part of DHHS/Division of Health Engineering/ Bureau of Health, beta tested FedRep for EPA.

• BOH decided to join ME DEP in using the EN node to transmit its reports to EPA and to leverage its FedRep system at the same time.

SDWIS Data Flow using FedRep Output

FedRep Features• Extract EPA-format XML output files for 3 EPA

quarterly reports (Inventory, Actions, Samples) from SDWIS/STATE or custom DW database.

• Validates data in files extracted from SDWIS/STATE, creating a separate “rejected” file for your attention.

• E-mails you that the job is done. The e-mail contains links to validated and rejected XML files and to a reports list. Sample report follows…

EPA

SDWIS/FedRep Summary Report

Inventory

United States Environmental Protection Agency

Originating Agency Name : MEOriginating Agency Type : S

Extraction Begin Date : 2004-12-31Extraction End Date :

Information

SourceUser ID Requested Date Origin Name Job Number

Contact Information

(Email Address)

Extracted Information FedRep2005-02-17

09:13:54bob.peterson@m

aine.gov

Validation Information From State

FedRep2005-02-17

09:13:54ME 19

bob.peterson@maine.gov

Certification Information From State

FedRep2005-02-17

09:36:26ME 20

Contact Information Name : Bob Peterson Organization : Maine Telephone : 207-287-1979 Comment : for test onlyEmail : bob.peterson@maine.govEmail : david.h.ellis@maine.gov

State Inventory Counts

ObjectsExtracted Accepted Rejected Both

WaterSystem 1993 1991 2 0

WaterSystemFacility 9465 9464 1 0

LegalEntity 3791 3791 0 0

LegalEntityAffiliation 5279 5279 0 0

ServiceArea 1954 1954 0 0

GeographicArea 1976 1976 0 0

Location 2227 2227 0 0

Treatment 1230 1230 0 0

FacilityFlow 1786 1786 0 0

Error Counts

WaterSystem

Error Code Error Count

R50100 - If the water system is a non-wholesaler of water

and the Retail Service Connections is less than 15, the Retail Population Served

should be greater than or equal to 25.

2

R50120 - If the water system is a non-wholesaler of water

and the Retail Population Served is less than 25, the Retail Service Connections

should be equal to or greater than 15.

2

Total 4WaterSystemFacility

Error CodeError Count

R50530 - The submission of the Seller Source Treatment Code is required for purchased sources (Facility Type Code = CC or NP).

1

R50470 - The submission of the Seller PWS ID is required for a purchased source (Facility Type Code = CC or NP).

1

Total 2

SDWIS Data Flow using FedRep Output

• To create a drinking water flow, a.k.a. “exchange”, to CDX via the node using FedRep output files:– Zip the FedRep output files.– Place files on a server that’s accessible to the

node.– Build a scheduler job that checks the server

for the 3 file names each calendar quarter.– Pick up files, place in a SOAP message, send

to CDX.

SDWIS Data Flow using FedRep Output

1. A UNIX CRON job executes a script every morning at 0015.

2. The executed UNIX script executes a Java .jar file.

3. The main method in the .jar file belongs to the DocSubmitterManager.  It does the following:

a) Query a database table to retrieve a result set of all the "active" ("A") jobs.

SDWIS Data Flow using FedRep Output

b) Loop through the result set of jobs, performing these steps per job:

• Verify that the job needs to be sent. • If job needs to be sent, call a method on the

DocSubmitter object which does the following: i. Create a stub to the Node to which the document (file)

is to be sent.

ii. Ping the stub to verify the Node is available.

SDWIS Data Flow using FedRep Output

iii. Create an FTP client to retrieve the file for this job.

iv. Create a NodeDocument object, populate it with the information from the method call and change the File into a byte[] to use in the NodeDocument.

v. Place the created NodeDocument in an NodeDocument array.

vi. Authenticate against the node that will be receiving the document (file).

vii. Invoke the Submit method on the receiving node (pushing the file to the node).

viii. Return the transactionId (resulting from the Submit call) to the calling method in DocSubmitterManager.java.

SDWIS Data Flow using FedRep Output

• If job needs to be sent, log the results of the call to the node's Submit method for this job.

• Loop to the next job.

4. Log success or failure of running jobs.

5. E-mail results to developer.

SDWIS Data Flow using FedRep Output

Helpful Resources• State IT profiles now available on ECOS website

ECOS has added detailed profiles of each state to its website containing information about integration and information technology projects, Exchange Network grants, Network node status, Exchange Network data flows, and contact information for staff working on specific projects and initiatives. This tool will help to facilitate the exchange of information between states and it also highlights the interesting and innovative ways that states are managing environmental data. If you have any questions about the profiles please contact Kristen Dunne at kdunne@sso.org.

SDWIS Data Flow using FedRep Output

Helpful Resources• eDWR XML Schema-to-SDWIS/State Sampling via EDI

Converter is available thanks to the efforts of the Network Exchange Drinking Water Challenge Grant Project Team and support from the EPA Office of Environmental Information. This converter is a valuable tool for any State that wishes to implement an e-Reporting solution of laboratory analysis results and who also uses SDWIS/State to manage their drinking water data. Read more about the converter at http://www.exchangenetwork.net/flow/water/edwr_converter.htm.