Thanks to David Gillespie of Nueces County for sharing this with us!

The following tables consist of various fields to create SAPs that will pull the same records that the CDA checks for. For example, the first table below corresponds to Referral Check 5. The last section includes instructions for looking at the MAYSI dates in Excel.

If you need assistance with creating SAP, please contact the CASEWORKER Help Desk at (512) 424-6724.

Weapon Offense, No weapon Listed

Name / Audit01(weapons)
Table / Offenses
Scan Fields / Weapon Used / (WeaponUsed=’NA’)
Offense Codes / (Off Code = ’13150007’ Or OffCode = ‘13150005’)
Print Field / Current Probation Officer / P.O.

Missing Program End Date

Name / Audit02(missing program end date)
Table / Programs
Scan Fields / Program Begin Date / >=6/1/2009
Program Actual Completion Date / Is empty
Print Field / P.O.

On probation Mental Health Unknown

Name / Audit03(Mental Health Unknown)
Table / Dispositions
Scan Fields / Disposition / = Probation
Mental Health Needs / =unknown
Referral Date / >=1/1/2006
Print Field / P.O.

Pending > 1 Year (remember to change the date when you run it)

Name / Audit04(pending > 1 yr)
Table / Dispositions
Scan Fields / Disposition Date / Is empty
Referral Date / >=today-1year
Print Field / P.O.

Non-Secure Detention

Name / Audit05(non-secure)
Table / Detention
Scan Fields / Detention Type / = ‘N’
Print Field / Referral Number

Missing MAYSI Date

Name / Audit06(Maysi Date Blank)
Table / MAYSI
Scan Fields / MAYSI Date / Is Empty
Print Field / Referral Date

Blank Sex

Name / Audit07(Blank Sex)
Table / Children
Scan Fields / Sex / Is Null OR =’’
Print Field / P.O.

Blank Race

Name / Audit08(Blank Race)
Table / Children
Scan Fields / Race / Is Null OR =’’
Print Field / P.O.

Status Offense Detention

Name / Audit09(Status Offense Detention)
Table / Detentions
Scan Fields / Detention Date Detained / >= 1/1/2010
Offense at referral / =50059001 OR 84000001 OR 50050014
Print Field / P.O.
Detention Days
Primary Alleged Offense
Referral Date

Invalid Violation of court order

Name / Audit10(Court Order)
Table / Referrals
Scan Fields / Offense at Referral / =50129003
Originating Offense Referral Number / Is Empty OR Null
Referral Date / >=1/1/2009
Print Field / Primary Alleged Offense

Invalid Maysi Dates (this one requires additional steps for Excel analysis)

Name / Audit11(Maysi)
Table / Maysi
Scan Fields / Referral Dates / >=1/1/2009
Referral Type / = Formal OR Paper Formal
Print Field / P.O.
MAYSI Assessment Date
Referral Date

Export a txt copy

Navigate to the file

Right Click

Open with Excel

Select Column A

Select Text to columns (in 2007 it’s found in the Data tab)

Click Next

Check the following boxes

Comma

Other in the textbox for other enter ‘(‘ this will isolate the PID numbers

Click Next

In the preview window, click the date clomuns and select the date radio Buttons (see screen print)

Click Finish

In cell H2 enter the fiormula =e2-f2

Copy the formula down the entire column until you reach the end of your data

Hit Ctrl + end to go to the bottom of your data

Select the end of your data and highlight everything to cell a2

Click sort

Select Column H, largest to smallest

Scroll down until clomn h value is equal to 13, anything below this is within the required timeframe

Just added

Audit 12 Missing RANA

Name / Audit12(RANA - risk)
Table / Dispositions
Scan Fields / Referral Date / >=9/1/2009
Risk Level / Is Empty
Referral Type / = Formal OR Paper Formalized
Print Field / P.O.
Referral Number

Mising RANA - Needs

Name / Audit13(RANA - needs)
Table / Dispositions
Scan Fields / Referral Date / >=9/1/2009
Needs Level / Is Empty
Referral Type / = Formal OR Paper Formalized
Print Field / P.O.
Referral Number