This is one of the steps the Ministry Client performs during the School Synchronization with SADS process.
As the School data structure between SADS and PASI are different, the data loaded from SADS is transformed to match the structure of the data within PASI.
This information is used to create the base School entity.
This field is populated with the value of the org_code attribute from the Org table in SADS.
This field is populated with the value of the tel_item attribute from the OrgTel table in SADS contained in the record meeting the following criteria:
This field is populated with the value of the tel_item attribute from the OrgTel table in SADS contained in the record meeting the following criteria:
This field is populated with the value of the tel_item attribute from the OrgTel table in SADS contained in the record meeting the following criteria:
This field is populated with the value of the lst_mod_ts attribute from the Org table in SADS where org_type is ’S’.
Each school is populated with a set of names based on the names available within SADS contained within the OrgNm table in SADS. An Organization Name is created for each associated OrgNm record in SADS that has an eff_end_dt greater than or equal to 2009-01-01.
The Name field is populated with the value of the Corporate Name (contained in the orgnm_corp_nm attribute) if populated within SADS. If a Corporate Name is not defined within SADS (i.e. is null, an empty string, or a string with just spaces), then the school’s Legal Name (contained in the orgnm_legal_nm attribute) is used.
The Effective Date field is populated with the value of the eff_start_dt attribute.
Each school is associated with a School Authority, and this association may change over time. To establish this association, records from the OrgRel table are used. The relationship between a school and an authority may be defined using one of two Relationship Types (contained within OrgRel.orgrty_cd). The relationship type is used to describe the relationship between two organizations, defined by the OrgRel.org_From_id and the OrgRel.org_To_id.
Therefore, every OrgRel record with a type of AB or BA, and an eff_end_dt >= 2009-01-01 is considered when loading the school authority association from SADS. Note, that as the relationship can be defined in two different directions (and sometimes the relationship is defined in both directions), only 1 of the records will actually be used to ensure that duplicate School Authority Association records are not loaded.
The School Authority code is populated based on the value of org_To_id when the orgrty_cd is AB, and is populated based on the value of org_From_id when the orgrty_cd is BA. The Organization ID is used to determine the School Authority Code by using a join to the Org table to determine the org_code.
The Effective Date is populated using the value contained in OrgRel.eff_start_dt.
Each school is populated with a set of Organization Status records based on the records within SADS contained within the OrgStat table in SADS. An Organization Status is created for each associated OrgStat record in SADS that has an eff_end_dt greater than or equal to 2009-01-01 as long as the most recent AudJnl record (based on aj_aud_upd_dt) meeting the following criteria, does not have an aj_op value of D:
The Is Active field is populated based on the value of the orgstty_cd attribute.
The Effective Date is populated with the value of the eff_start_dt attribute.
Each school is populated with a set of School Classification records based on the records within SADS contained within the OrgSchCls table in SADS. A School Classification record is created for each associated OrgSchCls record in SADS that has an eff_end_dt greater than or equal to 2009-01-01.
This field is populated with the value of the schcl_cd attribute.
This field is populated with the value of the eff_start_dt attribute.
A single Mailing Address record will be created as an Address in PASI based on the record in the OrgAddr table meeting the following criteria:
The details of the address come from the associated Addr table in SADS.
The field is populated with the value Mailing.
This field is populated based on the value of addr_ln_1 and addr_ln_2.
This field is populated with the value of the muni_nm attribute.
This field is populated with the value of the prov_cd attribute.
This field is populated with the value of the addr_pcd attribute.
This field is populated based on the value of the addr_cntry attribute. If the addr_cntry is a value representing Canada (i.e. CAND, CANA, or CAN) then Country is populated with the value Canada. If the addr_cntry field is any other value, Country is populated with the value of addr_cntry.
This field is populated with the value of eff_start_dt attribute.
This field is populated with a Min Date value.
A single Delivery Address record will be created as an Address is PASI based on the record in the OrgAddr table meeting the following criteria:
The address details are populated in the same fashion as the Mailing Address, except for Address Type which is populated with a value of Delivery.