Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article describes how data is integrated between nSPECT and nCORE.

Configuring Inspection Types

The nCORE "Evaluation Type" and the nSPECT "Inspection Type" drive the initial data integration between the two systems. Inspections are scheduled in nSPECT via the Evaluation Type provided by nCORE. 

When a new Evaluation Type is added to nCORE, a new Inspection Type will be added to nSpect when the user clicks the checkbox "Enable nSPECT Integration" and saves the record:

Once the "Enable nSPECT Integration" checkbox is clicked, a number of additional settings are displayed, as shown in the image above:

  1. Set Inspection Report to "Final" Status when nSpect Inspection is Completed - the Inspection Report Document will be set to "Final" status in nCORE automatically
  2. nSPECT Inspection Report File Type - Can be set to "docx" or "pdf". Default file type is set in APP_DEPLOY_SETTING where CODE = 'NSPECT_RPT_EXT'
  3. Default Followup Evaluation Type -  If an Inspection Form in nSPECT is configured to schedule a followup evaluation, it will be created with the type specified. If no type is specified, the followup will be created as the same type as the current inspection. See section Outbound Tags for more information on configuring Followup Evaluations.

Configuring Integration Tags in

nSpect

nSPECT

Integration tags are configured on nSPECT questions, and can be used to pass data from nCORE into nSPECT (CME Prefill), and from nSPECT to nCORE to perform various actions. There are four flavors of data transfer:

  1. Prefilling nSPECT Forms with CME data from nCORE using Data Integration Tags
  2. Updating nCORE data and performing actions using Data Integration Tags
  3. Populating the nCORE "Inspection Results" tab using the Data Integration Context
  4. Creating Violations in nCORE using the Regulation Reference

Inbound to

nSpect

nSPECT

Data can be prefilled into nSPECT forms using nCORE data. Data elements are defined in the nSpectImport.CME_INSPECTION_% database views:

  1. nSpectImport.CME_INSPECTION_MASTER - base view required for Prefill, defines any non-repeating data elements
  2. nSpectImport.CME_INSPECTION_EVAL_CONTCT - prefills repeating contact sections. Pulls all contacts related to the source evaluation (EVAL) record
  3. nSpectImport.CME_INSPECTION_PRMT_FEATR - prefills repeating feature sections using features referenced on the source permit. Useful for sampling inspections

Additional repeating or custom views can be developed on client request.

See below for tag definitions for each of the above views:

nSpectImport.CME_INSPECTION_MASTER (non-repeating data)

nSPECT Data Integration TagnCORE Database Field NameComments
SITE_NUMSITE.SITE_NUMSite Number
SITE_SITE_NAMESITE.SITE_NAME Site Name, non-standard tag as SITE_NAME is reserved by nSpect
SITE_ADDRSITE.ADDR_1, SITE.ADDR_2, SITE.CITY, SITE.REF_STATE_CODE, SITE.ZIP_CODEConcatenated Site Address fields
SITE_ADDR_1SITE.ADDR_1 
SITE_ADDR_2S.ADDR_2 
SITE_CITYSITE.CITY 
SITE_STATESITE.REF_STATE_CODE 
SITE_ZIP_CODESITE.ZIP_CODE 
SITE_CNTYREF_CNTY.DESCR 
EVAL_NUMEVAL.EVAL_NUM 
PRMT_NUMPRMT.PRMT_NUMPermit information is pulled from corresponding EVAL.PRMT_ID record
PRMT_VERSNPRMT.PRMT_VERSN
REF_PRMT_CATG_DESCRREF_PRMT_CATG.DESCR
REF_PRMT_STAT_DESCRREF_PRMT_STAT.DESCR
REF_PRMT_TYPE_DESCRREF_PRMT_TYPE.DESCR
PRMT_ISSUE_DATEPRMT.ISSUE_DATE
PRMT_EFCTV_DATEPRMT.EFCTV_DATE
PRMT_EXPR_DATEPRMT.EXPR_DATE
PROJ_NAMESUBM.RESRC_PROJ_NAME
ICONT_CONTCT_NAMECONTCT.CONTCT_NAMEPulled from EVAL.ICONT_CONTCT_ID
ICONT_CONTCT_FIRST_NAMECONTCT.FIRST_NAME
ICONT_CONTCT_LAST_NAMECONTCT.LAST_NAME
ICONT_CONTCT_ORG_NAMECONTCT.ORG_NAME
ICONT_CONTCT_ADDRCONTCT.ADDR_1, CONTCT.ADDR_2, CONTCT.CITY, CONTCT.REF_STATE_CODE, CONTCT.ZIP_CODEConcatenated Contact Address fields
ICONT_CONTCT_ADDR_1CONTCT.ADDR_1
ICONT_CONTCT_ADDR_2CONTCT.ADDR_2
ICONT_CONTCT_CITYCONTCT.CITY
ICONT_CONTCT_STATECONTCT.REF_STATE_Code
ICONT_CONTCT_PHONEPHONE.PHONE
PERMT_CONTCT_NAMECONTCT.CONTCT_NAMEPulled from PRMT.PERMT_CONTCT_ID
PERMT_CONTCT_FIRST_NAMECONTCT.FIRST_NAME
PERMT_CONTCT_LAST_NAMECONTCT.LAST_NAME
PERMT_CONTCT_ORG_NAMECONTCT.ORG_NAME
PERMT_CONTCT_ADDRCONTCT.ADDR_1, CONTCT.ADDR_2, CONTCT.CITY, CONTCT.REF_STATE_CODE, CONTCT.ZIP_CODEConcatenated Contact Address fields
PERMT_CONTCT_ADDR_1CONTCT.ADDR_1
PERMT_CONTCT_ADDR_2CONTCT.ADDR_2
PERMT_CONTCT_CITYCONTCT.CITY
PERMT_CONTCT_STATECONTCT.REF_STATE_CODE
PERMT_CONTCT_PHONEPHONE.PHONE

nSpectImport.CME_INSPECTION_EVAL_CONTCT (repeating data)

nSPECT Data Integration TagnCORE Database Field NameComments
EVAL_CONTCT_NAMECONTCT.CONTCT_NAME
EVAL_CONTCT_FIRST_NAMECONTCT.FIRST_NAME
EVAL_CONTCT_LAST_NAMECONTCT.LAST_NAME
EVAL_CONTCT_TITLECONTCT.TITLE
EVAL_CONTCT_ORG_NAMECONTCT.ORG_NAME
EVAL_CONTCT_ADDRCONTCT.ADDR_1, CONTCT.ADDR_2, CONTCT.CITY, CONTCT.REF_STATE_CODE, CONTCT.ZIP_CODEConcatenated Contact Address fields
EVAL_CONTCT_ADDR_1CONTCT.ADDR_1
EVAL_CONTCT_ADDR_2CONTCT.ADDR_2
EVAL_CONTCT_CITYCONTCT.CITY
EVAL_CONTCT_STATECONTCT.REF_STATE_CODE
EVAL_CONTCT_ZIP_CODECONTCT.ZIP_CODE
EVAL_CONTCT_PHONEPHONE.PHONE
EVAL_CONTCT_PHONE_EXTPHONE.PHONE_EXT
EVAL_CONTCT_AFFIL_CONCATREF_AFFIL_TYPE.DESCRConcatenated Contact Evaluation Affiliation (Role) Types separated by commas

nSpectImport.CME_INSPECTION_PRMT_FEATR (repeating data)

These tags populate features for the permit specified in the evaluation record.

nSPECT Data Integration TagnCORE Database Field NameComments
FEATR_LOCFEATR_LOC_GEOG.LAT, FEATR_LOC_GEOG.LONGConcatenated feature latitude, longitude separated by a comma
PRMT_FEATR_DESCRFEATR.DESCR
PRMT_FEATR_ID_TXTFEATR.FEATR_ID_TXT
PRMT_FEATR_TYPEREF_FEATR_TYPE.DESCR


Outbound to nCORE

Data integration tags can also be used to populate data in nCORE, and perform various actions. See below for configured tags and integration descriptions:

nSPECT Data Integration TagnCORE Field TagDescription
START_DATE (valid on nSPECT "Date" control)EVAL.START_DATEIn conjunction with START_TIME, Will fill in nCORE Evaluation Field "Start Date" when inspection is completed in nSPECT. APP_DEPLOY_SETTING for code NSPECT_OVRRD_START_DATE must be set to "1".
START_TIME (valid on nSPECT "Time" control)EVAL.START_TIMEIn conjunction with START_DATE, Will fill in nCORE Evaluation Field "Start Date" when inspection is completed in nSPECT. APP_DEPLOY_SETTING for code NSPECT_OVRRD_START_DATE must be set to "1".
END_DATE (valid on nSPECT "Date" control)EVAL.END_DATEIn conjunction with END_TIME, Will fill in nCORE Evaluation Field "End Date" when inspection is completed in nSPECT. APP_DEPLOY_SETTING for code NSPECT_OVRRD_START_DATE must be set to "1".

END_TIME (valid on nSPECT "Time" control)

EVAL.END_TIMEIn conjunction with END_DATE, Will fill in nCORE Evaluation Field "End Date" when inspection is completed in nSPECT. APP_DEPLOY_SETTING for code NSPECT_OVRRD_START_DATE must be set to "1".
FOLLOWUP_DATE (valid on nSPECT "Date" control)See DescriptionCreates a new Evaluation (EVAL) record in nCORE using the date specified in the control and the Evaluation Type (REF_EVAL_TYPE_CODE) specified as the followup inspection type.
EVAL_DCSNEVAL.REF_DCSN_CODEMatches values from nSPECT control to REF_DCSN.DESCR, and populates Evaluation Decision (EVAL.REF_DCSN_CODE) with the matching value.

Inspection Results Tab

Entering "AREA" into the "Data Integration Context" field in an nSPECT inspection question causes the question and response to display in the nCORE evaluation record's Inspection Results tab.

Violations

nSPECT Violation Integration

Questions marked as Violations in nSPECT can be configured to create violation records in nCORE using the "Reference / Citation" field on the nSPECT screen where form questions are edited. First, Citation Reference Text must be entered in the nSPECT "Reference / Citation" field (field QUESTION_REFERENCE in nSPECT FORM_CONTROL table). Then, the same text must be entered into the appropriate "Violation Types to Categories" record in the nCORE Lookups admin screen in the "nSPECT Data Integration Tag" field:


 Once the appropriate record is found, enter the violation reference text in "nSPECT Data Integration Tag" field:


On this page

Table of Contents


Sub-Topics

Page Tree
root@self


Related Content