This page captures consolidated DR ETL which was used to migrate data from Intrepid to TIS for Local Offices. This page will be used to review and set out the mapping of Source entities to target entities for Northern Ireland data migration to TIS from the National Data Warehouse Hicom_Northern_Ireland Data Repository.
Working Group
Overarching assumptions
The solution design the dev team has come up with is a separate instance of TIS that sits in parallel with HEE TIS with a synchronisation mechanism in-between to sync the data.
Reference although desirable to be a common service to serve the different instances may not be available for MVP
Reference are separate for MVP and no sync mechanism for MVP. Making changes in one by the users may therefore result in those no reflecting in the other. Need to however look into a way of re-syncing the reference Post-MVP with those changes.
We do not have Reference from Hicom Intrepid DR, therefore will be derived with the exception of Site, Trusts and Grade.
ID’s (Primary Keys) are not overlapped or duplicated across instances.
The Consolidated DR ETL used previously may not be fully fit-for-purpose in its current form and will need some adjustments to use with Northern Ireland data migration which is highlighted in the tables that follow.
Intrepid Id’s in TIS NI would need to be removed when when migrated so that there is no overlap with Leave Manager in HEE TIS.
MVP: https://hee-tis.atlassian.net/browse/TISNEW-3822
It looks like we’ll need to run the OLD
ETL for at least reference and that it would be wise to use both as fully as they can be: a)enable all steps in the old ETL & then the other ETL to patch over the top.
POST MVP SYNC: https://hee-tis.atlassian.net/browse/TISNEW-5691
TIS Reference
TIS table | Intrepid | Query | Hicom_Northern_Ireland DR - Data to migrate to TIS | Existing ETL Dev Notes | Dev Progress |
---|---|---|---|---|---|
College | Populating from Intrepid | select DISTINCT(College) from vwSpecialty |
| Merge rules handled. | |
Country | Populating from Intrepid | select distinct(Country) from vwPersonQualification |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. | |
CurriculumSubType | Hard coded in Reference Service then populating from Intrepid | select distinct(CurriculumSubtype) from vwCurriculum |
| Migration disabled. |
|
DBC | Hard coded in Reference Service |
| No query in existing ETL. Currently taken from DR only, using:
|
| |
EthinicOrigin | Populating from Intrepid | SELECT distinct(EthnicOrigin) FROM vwPerson |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. | |
Fundingissue | Populating from Intrepid | SELECT distinct(Issue) from vwPostFunding | N/A | No data to migrate. | |
FundingType | Hard coded in Reference Service |
| Migration disabled. |
| |
GdcStatus | Hard coded in Reference Service | SELECT distinct(GdcStatus) FROM vwPerson |
| Migration disabled. Requires manual step: extract and load CURRENT from HEE TIS |
|
Gender | Hard coded in Reference Service then populating from Intrepid | SELECT distinct(Gender) FROM vwPerson |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
|
GmcStatus | Hard coded in Reference Service then populating from Intrepid | SELECT distinct(GMCStatus) FROM vwPerson |
| Migration disabled. |
|
Grade | Hard coded in Reference Service then populating from Intrepid | select * from vwGrade |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
|
InactiveReason | Populating from Intrepid | SELECT distinct(InactiveNotes) FROM vwPerson |
| The field |
|
JsonPath | Internal table | N/A | Not required. | ||
LeavingDestination | Populating from Intrepid | SELECT distinct(LeavingDestination) FROM vwCurriculumMembership |
Note: This field is a legacy field. NI to use the new Leaving Reason field going forward. | Currently taken from DR only. Seems to work with tweaked query (“Other” & “Western HSC Trust”) |
|
LocalOffice | Hard coded in Reference Service |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
| |
MaritalStatus | Hard coded in Reference Service then populating from Intrepid | SELECT distinct(MaritalStatus) FROM vwPerson |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
|
MedicalSchool | Populating from Intrepid | SELECT distinct(MedicalSchool) from vwPersonQualification |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
|
Nationality | Populating from Intrepid | SELECT distinct(Nationality) FROM vwPerson |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
|
PlacementType | Hard coded in Reference Service then populating from Intrepid | SELECT distinct(PlacementType) FROM vwPlacement |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
|
ProgrammeMembershipType | Hard coded in Reference Service |
| Merge rules handled. |
| |
RecordType | Hard coded in Reference Service then populating from Intrepid | SELECT distinct(RecordType) FROM vwPerson | N/A | Currently taken from DR only. Seems to work with tweaked query (“Both”, “Contact”, “Staff”) |
|
ReligiousBelief | Populating from Intrepid | SELECT distinct(ReligiousBelief) FROM vwPerson |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
|
PermitToWork |
Note: This is currently hard coded on TIS rather than reference. There are tickets in the backlog to sort this out in the future for all. | Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
| ||
Role | Hard coded in Reference Service |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
| |
Rotation | N/A | Not required. | |||
Settled | Hard coded in Reference Service then populating from Intrepid | SELECT distinct(Settled) FROM vwPerson |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
|
SexualOrientation | Hard coded in Reference Service then populating from Intrepid | SELECT distinct(SexualOrientation) FROM vwPerson |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. |
|
Site | Hard coded in Reference Service then populating from Intrepid | select * from vwSite | MVP:
POST MVP (With Sync):
| Currently taken from DR only. Seems to work with tweaked query | |
Status | Hard coded in Reference Service | N/A | Required? | ||
TariffRate | Populating from Intrepid | SELECT distinct(TariffRate) FROM vwPostFunding | N/A - Not in use by NI | 👈 Ignoring because of comment. | Not required. |
Title | Hard coded in Reference Service then populating from Intrepid | SELECT distinct(Title) FROM vwPerson |
| Merge rules handled. Requires manual step: extract and load CURRENT from HEE TIS. | ​​ |
TrainingNumberType | Hard coded in Reference Service | N/A | Required? | ||
Trust | Hard coded in Reference Service then populating from Intrepid | select * from vwTrust | MVP:
POST MVP (With Sync):
| Currently taken from DR only. Seems to work with tweaked query |
TCS
Ensure the NI TIS ID’s/Primary Keys do not overlap with the ID’s in HEE TIS.
TIS table | Intrepid | From old/new ETL | Source | Hicom_Northern_Ireland DR - Data to migrate toTIS | Dev Progress |
---|---|---|---|---|---|
ContactDetails | Populating from Intrepid | New | from vwPerson |
|
|
Curriculum | Populating from Intrepid | old | select c.*, s.SpecialtyID from vwCurriculum c left outer join vwSpecialty s on c.CurriculumSpecialtyID = s.SpecialtyID |
| |
Funding | Populating from Intrepid | old | Select * from vwPostFunding | N/A | No data to migrate. |
FundingComponents | Populating from Intrepid | old | select * from vwPostFundingComponent | N/A | No data to migrate. |
GdcDetails | Populating from Intrepid | New | from vwPerson |
|
|
GmcDetails | Populating from Intrepid | New | from vwPerson |
|
|
Person | Populating from Intrepid | New | from vwPerson |
|
|
PersonOwner | Internal populated by stored proc | Populated by TIS SYNC | Not required. | ||
PersonView | Internal populated by stored proc | N/A Ashley Ransoo - Get rid of this on TIS | Not required. | ||
PersonalDetails | Populating from Intrepid | New | from vwPerson |
|
|
Placement | Populating from Intrepid | New | from vwPlacement |
|
|
PlacementFunder | N/A Ashley Ransoo - Get rid of this on TIS | Not required. | |||
PlacementSpecialty | Populating from Intrepid | New | from vwPlacement |
|
|
PlacementSupervisor | Select PlacementId, SupervisorPersonID, SupervisorType from vwPlacementSupervisor
| Is getting populated, need to confirm data looks good. | |||
Post | Populating from Intrepid | New | from vwPost |
|
|
PostFunding | Populating from Intrepid | old | select * from vwPostFundingComponent | N/A
| No data to migrate. |
PostGrade | Populating from Intrepid | New | from vwPost and vwPostOtherGrade | from vwPost and vwPostOtherGrade |
|
PostSite | Populating from Intrepid | New | from vwPost and vwPostOtherSite | from vwPost and vwPostOtherSite |
|
PostSpecialty | Populating from Intrepid | New | SELECT PostID as postIntrepidId, Specialty1ID as specialtyIntrepidIdTemp FROM HEELIVE.vwPost p WHERE Specialty1ID IS NOT NULL and SELECT PostID as postIntrepidId, SpecialtyID as specialtyIntrepidIdTemp FROM HEELIVE.vwPostOtherSpecialty p WHERE SpecialtyID IS NOT NULL; | from PostSpecialty and PostOtherSpecialty |
|
ProgrammePost | To do | TISDEV-3446 - Post to Programme many to many not one to one DONE | Select PostID, ProgrammeID from vwProgrammePost
| Is getting populated, need to confirm data looks good. | |
PostView | Internal populated by stored proc | old | N/A Ashley Ransoo - Get rid of this on TIS | Not required. | |
Programme | Populating from Intrepid | old | SELECT * FROM vwProgramme | SELECT * FROM vwProgramme |
|
ProgrammeCurriculum | Populating from Intrepid | old | Join of vwProgramme and vwCurriculum table | Join of vwProgramme and vwCurriculum table Note: |
|
ProgrammeMembership | Populating from Intrepid | New | from vwCurriculumMembership | from vwCurriculumMembership | Query on field source. Can we do this as part of migration or should it be done with existing script? |
Qualification | Populating from Intrepid | New | from vwPersonQualification | from vwPersonQualification |
|
RightToWork | Populating from Intrepid | New | SELECT EEAResident, PermitToWork, Settled, PersonID as personIntrepidId, VisaDetails, VisaIssued, VisaValidTo, AmendedDate as amendedDate FROM HEELIVE.vwPerson p | SELECT EEAResident, PermitToWork, Settled, PersonID as personIntrepidId, VisaDetails, VisaIssued, VisaValidTo, AmendedDate as amendedDate FROM vwPerson p |
|
Specialty | Populating from Intrepid | old | SELECT * from vwSpecialty |
| Requires manual step: extract and load CURRENT from HEE TIS. |
SpecialtyGroup | Populating from Intrepid | old | Select distinct(SpecialtyGroup) from vwSpecialty |
| Requires manual step: extract and load CURRENT from HEE TIS. |
SpecialtyTypes | Hard coded in TCS service |
| Only populated for inserted specialty, not populated when match found in HEE data. | ||
TariffFundingTypeFields | Populating from Intrepid | old | select * from vwPostFunding | N/A | Not required. |
TrainingNumber | Populating from Intrepid | New | SELECT NTNID as intrepidId, NTNTrainingNumber as trainingNumber FROM HEELIVE.vwNTN | SELECT NTNID as intrepidId, NTNTrainingNumber as trainingNumber FROM vwNTN |
|
Assessment
Full copy of Assessment records against the newly created NI TIS PersonIDs
TIS table | Intrepid | From old/new ETL | Source | Hicom_Northern_Ireland DR - Data to migrate to TIS | Dev Progress |
---|---|---|---|---|---|
Assessment | populating from intrepid | New | from vwAssessment |
|
|
AssessmentType | Hard coded in Reference Service | Old | from vwAssessment |
| Requires manual step: extract and load CURRENT from HEE TIS. |
AssessmentDetail | populating from intrepid | New | from vwAssessment |
|
|
AssessmentOutcome | populating from intrepid | New | from vwAssessment |
|
|
AssessmentOutcome_AUD | Internal for history | N/A | | ||
Outcome | populating from intrepid | New | from vwAssessment |
| |
OutcomeReasons | Internal |
|
| ||
Reason | populating from intrepid | New | from vwAssessment |
| |
Revalidation | populating from intrepid | New | from vwAssessment |
|
|
DEV Queries
https://docs.google.com/spreadsheets/d/1njsFOWLQfWd4H3RwYd-DW56Su3KB2HfvxQef33iUNBQ/edit#gid=0
Add Comment