Integration tags are defined in the following database views:
- nFORMExport.VW_SITE_EXPORT - Imports data from nFORM into nCORE SITE details.
- nFORMExport.VW_SUBM_EXPORT - Imports data from nFORM into nCORE SUBM details (applications, complaints, etc.).
- nFORMExport.VW_FEATR_EXPORT - Imports data from nFORM into nCORE FEATR details.
- nFORMExport.VW_CONTCT_EXPORT - Imports data from nFORM into nCORE CONTCT details.
Document attachments are always imported from an nFORM submission and attached to the Submission record in nCORE. If a description has been provided for the document within the nFORM attachment control, the description will be carried forward into nCORE.
Site Integration into nCORE (including Person and Organization)
nFORMExportnFORM Target IDThis is used in conjunction with SITE_RLNSHP_TYPE_DESCR below.
Mapping will only be inserted if both SITE_RLTD_SITE_NUM and SITE_RLNSHP_TYPE_DESCR are supplied and are valid.
Permits
Section Tag Value = PRMT
A section tagged PRMT should only be included on Permit Change forms or Compliance Schedule forms. Since Permit Change forms (e.g., modifications, renewals) and Compliance Schedules (e.g., annual reports, notifications) are typically used in the context of an existing, in-effect permit, including a PRMT section on these forms provides a convenient way of automatically displaying information about that permit on the form. For example, the permit number and issue date can be displayed at the beginning of the form so that the applicant can confirm that they are filling out the form for the correct permit.
A maximum of one permit can be specified on a form using these tags. The PRMT section should never be marked repeatable. Information about other permits can be collected on the form but the controls for these permits should be given tag values that are not in the reserved list below.
Permit Change forms and Compliance Schedules can also contain site information, but this should be done by using a section tagged SITE containing the appropriate SITE tagged controls.
Tag Name
Data Type
Length
Description
Submission Import Behavior
PRMT_ID
bigint
n/a
Internal Permit unique identifier. Not user editable
If specified, indicates the permit (and site) to which the submission will be related
PRMT_NUM
nvarchar
50
Permit Number
NOT SUPPORTED
PRMT_VERSN
int
n/a
Permit Version
NOT SUPPORTED
REF_PRMT_CATG_DESCR
nvarchar
255
Permit Category
NOT SUPPORTED
REF_PRMT_STAT_DESCR
nvarchar
255
Permit Status
NOT SUPPORTED
ISSUE_DATE
text
10
Permit Issue Date. Read-only. Only available for prepopulation.
Not imported from a submission into nVIRO
NOT SUPPORTED
EFCTV_DATE
text
10
Permit Effective Date. Read-only. Only available for prepopulation.
Not imported from a submission into nVIRO
NOT SUPPORTED
EXPR_DATE
text
10
Permit Expiration Date. Read-only. Only available for prepopulation.
Not imported from a submission into nVIRO
NOT SUPPORTED
PERMT (contact control)
n/a
n/a
Permittee
Yes. The contact will be created with affiliation type “Permittee” on the application record in SCEP
Submission Integration into nCORE
nFORM control tag mapping is defined in nFORMExport.VW_SUBMFeature Integration into nCORE
nFORM control tag mapping is defined in nFORMExport.VW_FEATR_EXPORT. Integration logic is defined in dbo.SP_nFORM_STG_TO_SUBM_FEATR.
Feature information is gathered from nFORM sections tagged either SITE or FEATR.
For FEATR-tagged sections, the section can be repeating to create multiple features. A feature will be created for every instance of the section if one does not exist and an nFORM location control has been placed on the form.
If an existing Feature is found with a matching FEATR_ID_TXT, the feature will be updated with all fields. If a feature is not found with a matching FEATR_ID_TXT, a new feature will be created upon import.
Feature Identifier business key (e.g. "001")
Contact Integration into nCORE
nFORM control tag mapping is defined in nFORMExport.VW_CONTCT_EXPORT. Integration logic is defined in dbo.SP_nFORM_STG_TO_SUBM_CONTCT_AFFIL.
Contacts are always created from nFORM Contact Controls.
The Affiliation Type assigned to the contact upon import is determined when either
The Label value on the nFORM contact control matches a Description from REF_AFFIL TYPEOnly one SUBM record is ever associated with a given nFORM submission.
This value is mapped to the Description column from REF_APP_REQST_ACTN_TYPE.
If not supplied, import will fall back to Form's Action/Deadline setting for mapped nFORM Reason Type.
- If multiple contact controls need to map to a single affiliation type in the same section, use the "+" sign to add text at the end of the tag to retain uniqueness. For example, a contact control with tag CMPLNT+TEST1 will yield a contact with affiliation type CMPLNT.
A single contact can be assigned multiple affiliations by adding a separate single or multi-select nFORM control with the tag AFFIL in the same section as the contact control.
When the Applicant is also the Site, the contact control may be used to create both (Contact control Label "Applicant" and Contact control Tag = "SITE"). Note: The Site Name comes from contact Company Name / Organization field. Do not use first name/last name.
Saves the tag mapped to "phone" as the REF_PHONE_TYPE_CODE = "OFFICE" phone. Appears to be for legacy form use only.
Uses FN_FORMAT_PHONE to format the phone number.
Saves phone_0, phone_1... phone_3 to distinct phone records of different phoneType.
Uses FN_FORMAT_PHONE to format the phone number.
Saves the phoneType of phone_0, phone_1... phone_3 to distinct phone records of different phoneTypes.
- WHEN phoneType = "BUSINESS" THEN "OFFICE"
- WHEN phoneType = "MAIN" THEN "OTHER"
- ELSE phoneType END
Integration from nCORE into nFORM (prepopulation)
Prepopulation form nCORE into nFORM is accomplished through nFormImport.SOURCE_* views where the view name suffix indicates the section tag to populate.
Info |
---|
To prepopulate forms, Pre-fill → Import from External Source (SQL) must be checked, the section must have Enable Form Pre-Fill (via Context ID) checked, and the Section Tag should be set to view name suffix of the source name eg. (SITE, PRMT, or FEATR, ) |
Available sources are:
Sites
Populated from view: nFormImport.SOURCE_SITE
This view may also pre-populate a contact control (e.g., for a Person or Org) by using "SITE" as the contact control tab SITEPermits
Populated from view: nFormImport.SOURCE_PRMT
Available standard data for pre-population in a section tagged PRMT are:
Features
Populated from view: nFormImport.SOURCE_FEATR
Available standard data for pre-population in a section tagged FEATR are:
On this page
Table of Contents |
---|
Sub-Topics