Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

The source is from the attached SQL queries one for Adult and one for Child. The destination Java Object classes are in the attached compress file.

Database

EnvironmentConnecion String
Training (scrambled personal data)jdbc:oracle:thin:@//dbtrain.csd.toronto.ca:1521/CSISTR

Adult Mapping

The source is the RESPONSIBLE_ADULT table. The destination is the JSON representation of the Salesforce Account sobject.

Source

Destination

Comment

trim(rad_given_name)

FirstName

 

trim (rad_surname)

LastName

 

trim(rad_middle_name)

MiddleName

 

trim(rad_suffix_name)

Suffix

 

rad_social_insurance_number

Social_Insurance_Number__c

There's some magic that needs to be done to create the encrypted user ID

Salesforce "triggers" will encrypt the SIN.

rad_ow_member_id

Ontario_Works_Id__c

 

to_char(rad_birthdate,'yyyy-mm-dd')

personBirthDate

 

rad_email_address

personEmail

 

(select rpc_area_code || rpc_local_number
from resp_adult_phone_cntct
where rpc_responsible_adult_id = rad_responsible_adult_id
and rpc_phone_type_code = 'HOME')

Phone

 

(select rpc_area_code || rpc_local_number
from resp_adult_phone_cntct
where rpc_responsible_adult_id = rad_responsible_adult_id
and rpc_phone_type_code = 'WORK')

Secondary_Phone__c

This is the work phone number

(select rpc_area_code || rpc_local_number
from resp_adult_phone_cntct
where rpc_responsible_adult_id = rad_responsible_adult_id
and rpc_phone_type_code = 'MOBILE')

PersonMobilePhone

 

cast (rad_reference_applicant_id,varchar2(20))Children_Services_Id__c 
pad_street_nbr || ' ' || pad_street_namestreet 
pad_citycity 
pad_province_codestate_code 
pad_postal_codepostal_code 
pad_country_codecountry_code 
'Address'geocodeAccuracy 

012W000000016s9IAA

RecordTypeId

This is the ID for the Adult Account Record Type

Child Mapping

The source is the CHILD table. The destination is the JSON representation of the Salesforce Account sobject.

Source

Destination

Comment

trim(chl_given_name)

FirstName

 

trim (chl_surname)

LastName

 

trim(chl_middle_name)

MiddleName

 

trim(chl_suffix_name)

Suffix

 

to_char(chl_birthdate,'yyyy-mm-dd')

personBirthDate

 

chl_social_insurance_number

Social_Insurance_Number__c

 

chl_ow_member_id

Ontario_Works_Id__c

 

chl_reference_child_idChildren_Services_Id__c 
012W000000016sEIAQ

RecordTypeId

 This is the ID for the Child Account Record Type

CCFS Household Mapping

The source is a number of tables identifying the status of the Child Care Fee Subsidy case. See this sample SQL.

SourceDestinationComment
household_idhousehold_id__cThe TCS Household ID
household_statuscase_status__c

The code is one of:

  • Waiting
  • Allocated
  • Enrolled
  • Inactive

 

start_datecase_start__cThe case start date
inactive_datecase_inactive_date__cIf the household status is inactive, this is the start of the inactive status, after 60 days this case expires
last_update_date_timeNot uploaded to SalesforceUsed to determine the maximum date time is used for this run is used as the start of the next run
Must be saved in the Process Log

Update the Process Log

Once the information is successfully loaded update the log with the most recent version using an update similar to this.

  • No labels