Programme Managing Deanery to TIS Programme Owner

TIS is using the [vwProgramme].ManagingDeanery field to determine the Programme Owner value in TIS, and will NOT be using the Hicom [vwLocalOffice] data.


The data reported below has been taken from the Consolidated DR v1 on  


For Discussion 





#
Comment
Owner
1

Can HEYH resolve their current 33 programmes below without a ManagingDeanery value ?

Without this information, TIS will not been able to filter the Programme data correctly.

2

What  should we do with the 16,892 Inactive Programmes without a Managing Deanery ?



DR v2 Programmes with No ManagingDeanery.xlsx

There are the 33 Current Programmes without a Managing Deanery value set;

LocalOfficeNameStatusRecordOriginStatusManagingDeaneryProgrammeNameProgrammeNumberProgrammeIDLeadProviderTrustIDLeadProviderNameLeadProviderKnownAsLeadProviderTrustNumberProgrammeDirectorsDateAddedCurr_peopleInactive_peopleCurr_postsInactive_posts
HEYHCurrentHEELIVECurrentNULLGP RetainerYAHGPRET3236655NULLNULLNULLNULLNULL27/09/201700270
HEYHCurrentHEELIVECurrentNULLNeurosurgeryYAH912/3422251469NULLNULLNULLNULLNULL27/09/2017300290
HEYHCurrentHEELIVECurrentNULLImmunologyYAH880/3184156483NULLNULLNULLNULLNULL27/09/20173040
HEYHCurrentHEELIVECurrentNULLVascular SurgeryYAH24055266349NULLNULLNULLNULLNULL27/09/201711010
HEYHCurrentHEELIVECurrentNULLChild and Adolescent PsychiatryYAH873/3645125838NULLNULLNULLNULLNULL27/09/2017172180
HEYHCurrentHEELIVECurrentNULLPaediatric Surgery ConsortiumEMD/NTH7614239NULLNULLNULLNULLNULL27/09/20176000
HEYHCurrentHEELIVECurrentNULLACCS AnaestheticsYAH24557653841NULLNULLNULLNULLNULL27/09/20179302230
HEYHCurrentHEELIVECurrentNULLEmergency Medicine DRE_EMYAHDRE867/3248585584NULLNULLNULLNULLNULL27/09/2017190290
HEYHCurrentHEELIVECurrentNULLMedical VirologyYAH23839564045NULLNULLNULLNULLNULL27/09/201700100
HEYHCurrentHEELIVECurrentNULLPaediatricsYAH517/32910271598NULLNULLNULLNULLNULL27/09/201742343940
HEYHCurrentHEELIVECurrentNULLRehabilitation MedicineYAH911/31311808903NULLNULLNULLNULLNULL27/09/2017100110
HEYHCurrentHEELIVECurrentNULLForensic PsychiatryYAH36212400083NULLNULLNULLNULLNULL27/09/20174090
HEYHCurrentHEELIVECurrentNULLRespiratory MedicineYAH870/71514690954NULLNULLNULLNULLNULL27/09/2017631760
HEYHCurrentHEELIVECurrentNULLMedical OphthalmologyYAH237811196934NULLNULLNULLNULLNULL27/09/20171010
HEYHCurrentHEELIVECurrentNULLPublic Health MedicineYAH32811462287NULLNULLNULLNULLNULL27/09/2017380460
HEYHCurrentHEELIVECurrentNULLDiagnostic Neuropathology YAH241511074895NULLNULLNULLNULLNULL27/09/20171010
HEYHCurrentHEELIVECurrentNULLACCS General YAHACS14552775NULLNULLNULLNULLNULL27/09/20170000
HEYHCurrentHEELIVECurrentNULLRheumatologyYAH865/34718776978NULLNULLNULLNULLNULL27/09/2017290270
HEYHCurrentHEELIVECurrentNULLOccupational MedicineYAH30719936952NULLNULLNULLNULLNULL27/09/20174050
HEYHCurrentHEELIVECurrentNULLAcute Care Common StemYAHACC23152897NULLNULLNULLNULLNULL27/09/20170000
HEYHCurrentHEELIVECurrentNULLGeneral SurgeryYAH878/32117868406NULLNULLNULLNULLNULL27/09/20178401280
HEYHCurrentHEELIVECurrentNULLSport and Exercise MedicineYAH917/72122190033NULLNULLNULLNULLNULL27/09/20174050
HEYHCurrentHEELIVECurrentNULLMedical PsychotherapyYAH879/36526126466NULLNULLNULLNULLNULL27/09/20170020
HEYHCurrentHEELIVECurrentNULLCombined Infection TrainingYAH267522384672NULLNULLNULLNULLNULL27/09/2017180300
HEYHCurrentHEELIVECurrentNULLEndocrinology and Diabetes MellitusYAH874/31526949308NULLNULLNULLNULLNULL27/09/2017360470
HEYHCurrentHEELIVECurrentNULLTrauma and Orthopaedic SurgeryYAH872/33927529605NULLNULLNULLNULLNULL27/09/2017742900
HEYHCurrentHEELIVECurrentNULLACCS Emergency MedicineYAH243827846357NULLNULLNULLNULLNULL27/09/20171402120
HEYHCurrentHEELIVECurrentNULLBroad Based TrainingYAH247128946454NULLNULLNULLNULLNULL27/09/201710120
HEYHCurrentHEELIVECurrentNULLPaediatric and perinatal pathologyYAH399230534660NULLNULLNULLNULLNULL27/09/20172020
HEYHCurrentHEELIVECurrentNULLACCS Intensive Care MedicineYAHAIC31235757NULLNULLNULLNULLNULL27/09/20170000
HEYHCurrentHEELIVECurrentNULLPsychiatry of Learning DisabilityYAH36119856952NULLNULLNULLNULLNULL27/09/20176070
HEYHCurrentHEELIVECurrentNULLOral and Maxillo-Facial SurgeryYAH333276055916NULLNULLNULLNULLNULL27/09/2017130160
HEYHCurrentHEELIVECurrentNULLClinical GeneticsYAH875/310276055924NULLNULLNULLNULLNULL27/09/20176070


There are a further 16,892 Inactive Programmes without a Managing Deanery value set, of these there are 363 Programmes in HEEM where the ProgrammeName starts with Trent, Rotation or Standalone (Stand Alone);

i.e.

Row LabelsCount of LocalOfficeName
Rotation 69
Stand 3
Standalone 1
Trent 290
Grand Total363
LocalOfficeNameProgrammeNumberProgrammeName
HEEMTrent FP 047 2009/11047 - 2009/10 starters
HEEMTrent FP 059059 - 2009/10 starters
HEEMTrent FP 034034 - 2008/9 starters
HEEMRotation 47KGH F1
HEEMTrent FP 045045 - 2008/9 starters
HEEMRotation 41KGH F1
LocalOfficeNameProgrammeNumberProgrammeName
HEEMStand Alone 002Pilgrim Stand Alone 002
HEEMStandalone SSNotts City Small Speciality Standalone
HEEMStand Alone 001Pilgrim Stand Alone 001
HEEMStand Alone 003Pilgrim Stand Alone 003

There are 15,698 HELASE Inactive programmes that have no consitent ProgrammeName or Number;

LocalOfficeNameProgrammeNumberProgrammeName
HELASEKSS/RWF02/01/F2/002KS07/02
HELASE09/KSS/03/RWF03/02/F2/02309/KSS/03/RWF03/02/F2/023
HELASE12/KSS/03/RTP04/02/F2/02710/KSS/03/RTP04/02/F2/027
HELASE08/KSS/01/RWF02/01/F2/00408/KSS/RWF02/01/F2/004
HELASE11/KSS/03/RXC02/01/F1/01410/KSS/03/RXC02/01/F1/014
HELASE12/KSS/03/RXH01/01/F2/00110/KSS/03/RXH01/01/F2/001
HELASE13/KSS/03/RXC02/01/F2/01310/KSS/03/RXC02/01/F2/013
HELASE12/KSS/03/RYR18/01/F1/1710/KSS/03/RYR18/01/F1/17
HELASEKSS/RPA02/01/F2/017KSS/RPA02/01/F2/017
HELASE09/KSS/01/RN707/01/F1/02309/KSS/01/RN707/01/F1/023
HELASE15/KSS/02/RA201/01/F1/032Created to cover 2013-14 over-subscription
HELASEKSS/RPR01/01/F1/021SR7/21
HELASE08/KSS/01/RPA02/01/F1/04208/KSS/01/RPA02/01/F1/042
HELASE14/KSS/02/RA201/01/F1/01610/KSS/02/RA201/01/F1/016
HELASE15/LDN/01/RJ121/01/F1/04910/LDN/01/RJ121/01/F1/049
HELASE10/KSS/02/RA201/01/F1/00610/KSS/02/RA201/01/F1/006
HELASE09/KSS/01/RXH01/01/F1/08009/KSS/01/RXH01/01/F1/080
HELASE09/LDN/01/RG222/001/F1/01709/LDN/01/RG222/001/F1/017
HELASE13/LDN/02/RAX01/01/F1/00510/LDN/02/RAX01/01/F1/005

There are 637 HESW Inactive programmes that have no consitent ProgrammeName or Number;

LocalOfficeNameProgrammeNumberProgrammeName
HESWPEN/RBZ12/01/F1/005NDHT_F1_05
HESW09/F2/111/112/113TS/F2/03
HESWPEN/RA901/01F1/005TORBAY_F1_2
HESWPEN/REF12/02/F2/013RCHT_F2_05
HESWWES/RW148/01/FP2/001Hampshire P'nership Trust
HESWSEV/RVJ20/11/F1/091/092/093/094NB/F1/11
HESW09/SEV/RTE01/04/F1/014GL/F1/04
HESWPEN/REF12/02/F2/010RCHT_F2_03
HESW09/F2/277/278NB/F2/04
HESWSEV/RTE01/05/F1/019GL/F1/05
HESWPEN/RBZ12/01/F2/012NDHT_F2_02
HESWBS4BS4 - AUG 09

There are 52 HEWTV Inactive programmes that have no consitent ProgrammeName or Number;

LocalOfficeNameProgrammeNumberProgrammeName
HEWTVWES/RNZ01/01/FP1/001Salisbury - FY1
HEWTVWES/RBD01/01/FP1/001Dorchester - FY1
HEWTVWES/RHM01/01/FP2/002Southampton FY2 Rotations
HEWTVTestAgain a test
HEWTVWES/RHM01/01/FP1/001Southampton - FY1
HEWTVWES/RDZ20/01/FP1/002F1 Bournemouth 2011 (4m)
HEWTVWES/RHU03/01/FP1/001Portsmouth FY1 Programme
HEWTVWES/RDZ20/001/FY2/001Bournemouth
HEWTVWES/RBD01/01/FP2/002FY2/007
HEWTVWES/FY2/RHU03/001Portsmouth FY2
HEWTVWES/RR201/001/YP2/001IOW
HEWTVNULLJersey Southampton GSTR1 Aug 2011
HEWTVWES/RDZ20/01/FP1/001Bournemouth - FY1
HEWTVWES/RNZ01/01/FP2/001Salisbury FY2 Rotations

There are 142 HEYH Inactive programmes that have ProgrammeName starts with Trent, Rotation, Chesterfield or Standalone (Stand Alone);

Row LabelsCount of ProgrammeNumber
CHESTERFIELD 1
Rotation 24
Stand 3
Standalone 1
Trent 113
Grand Total142
LocalOfficeNameProgrammeNumberProgrammeNameProgName
HEYHCHESTERFIELD STGP 015CHERSTERFIELD ST1 PROGRAMME 15CHESTERFIELD 
HEYHTrent FP 047047 - 2008 startersTrent 
HEYHTrent FP 008008 - 2009/10 startersTrent 
HEYHTrent FP 090090 - 2008/9/10 startersTrent 
HEYHTrent FP 048048 - 2008/9/10 startersTrent 
HEYHTrent FP 010010 - 2008/9/10 startersTrent 
HEYHTrent FP SA2 - 2008SA2 - 2008Trent 
HEYHTrent FP 086086 - 2008/9/10 startersTrent 
HEYHTrent FP 029029 - 2008/9/10 startersTrent 
HEYHTrent FP 027027 - 2008/9 startersTrent 
HEYHTrent FP 068(Ac)068(Ac) - 2009/10 startersTrent 
HEYHTrent FP 002002 - 2009/10 startersTrent 
HEYHTrent FP 013013 - 2008 startersTrent 
HEYHTrent FP 056056 - 2008/9 startersTrent 
HEYHTrent FP 031031 - 2008/9 startersTrent 
HEYHTrent FP 036036 - 2008/9 startersTrent 
HEYHRotation 49NGH F1Rotation 

ManagingDeanery to TIS LocalOffice Mapping

Using the following ManagingDeanery value to TIS LocalOffice Mapping;

case when p.managingdeaneryletb = 'Health Education England North West' THEN 'HENW'
	when p.managingdeaneryletb = 'Health Education England West Midlands' THEN 'HEWM'
	when p.managingdeaneryletb = 'Health Education England Yorkshire and the Humber' THEN 'HEYH'
	when p.managingdeaneryletb = 'Health Education England North East' THEN 'HENE'
	when p.managingdeaneryletb = 'Health Education England East of England' THEN 'HEEOE'
	when p.managingdeaneryletb IN ('Health Education England South West',
							   'Peninsula Local Office - HESW',
							   'Severn Local Office - HESW') THEN 'HESW'
	when p.managingdeaneryletb IN ('Health Education England East Midlands',
							   'Yorkshire & Humber Deanery (North East)') THEN 'HEEM'
	when p.managingdeaneryletb IN ('Health Education England Kent, Surrey and Sussex',
							   'London LETBs',
							   'Health Education England North West London',
							   'Health Education England North Central and East London',
							   'Health Education England South London') THEN 'HELASE'
	when p.managingdeaneryletb IN ('Health Education England Wessex', 
	                               'Health Education England Thames Valley') THEN 'HEWTV'
	else 'UNKNOWN'
end as mapped_lo

Using the above logic, leaves the following Programmes unable to determine the TIS LocalOffice

statusLocalOfficeNameManagingDeanerymapped_lorc
CurrentHEEOELondonUNKNOWN1
CurrentHEWMDefence Postgraduate Medical DeaneryUNKNOWN1
CurrentHEYHNULLUNKNOWN33
InactiveHEEMNULLUNKNOWN363
InactiveHELASENULLUNKNOWN15698
InactiveHESWNULLUNKNOWN637
InactiveHEWTVNULLUNKNOWN52
InactiveHEYHNULLUNKNOWN142

vwLocalOffice to vwProgramme MD.xlsx

select p.status, lop.LocalOfficeName, p.ProgrammeNumber, p.ProgrammeName, p.ManagingDeanery, 
	   case when p.ManagingDeanery = 'Health Education England North West' THEN 'HENW'
			when p.ManagingDeanery = 'Health Education England West Midlands' THEN 'HEWM'
			when p.ManagingDeanery = 'Health Education England Yorkshire and the Humber' THEN 'HEYH'
			when p.ManagingDeanery = 'Health Education England North East' THEN 'HENE'
			when p.ManagingDeanery = 'Health Education England East of England' THEN 'HEEOE'
			when p.ManagingDeanery IN ('Health Education England South West', 
									   'Peninsula Local Office - HESW', 
									   'Severn Local Office - HESW') THEN 'HESW'
			when p.ManagingDeanery IN ('Health Education England East Midlands', 
									   'Yorkshire & Humber Deanery (North East)') THEN 'HEEM'
			when p.ManagingDeanery IN ('Health Education England Kent, Surrey and Sussex', 
									   'London LETBs', 
								       'Health Education England North West London', 
								       'Health Education England North Central and East London', 
								       'Health Education England South London') THEN 'HELASE'
			when p.ManagingDeanery IN ('Health Education England Wessex', 
                                       'Health Education England Thames Valley') THEN 'HEWTV'
			else 'UNKNOWN'
		end as mapped_lo
from [HEELIVE].[vwProgramme] as p
join [HEELIVE].[vwLocalOffice] as lop on (lop.ItemType = 'Programme' and lop.UniqueID = p.programmeid)
--where status = 'Current'
--and managingdeanery is not null
order by 6,1,2 desc

select p.status, lop.LocalOfficeName, p.ManagingDeanery, 
	   case when p.ManagingDeanery = 'Health Education England North West' THEN 'HENW'
			when p.ManagingDeanery = 'Health Education England West Midlands' THEN 'HEWM'
			when p.ManagingDeanery = 'Health Education England Yorkshire and the Humber' THEN 'HEYH'
			when p.ManagingDeanery = 'Health Education England North East' THEN 'HENE'
			when p.ManagingDeanery = 'Health Education England East of England' THEN 'HEEOE'
			when p.ManagingDeanery IN ('Health Education England South West', 
									   'Peninsula Local Office - HESW', 
									   'Severn Local Office - HESW') THEN 'HESW'
			when p.ManagingDeanery IN ('Health Education England East Midlands', 
									   'Yorkshire & Humber Deanery (North East)') THEN 'HEEM'
			when p.ManagingDeanery IN ('Health Education England Kent, Surrey and Sussex', 
									   'London LETBs', 
								       'Health Education England North West London', 
								       'Health Education England North Central and East London', 
								       'Health Education England South London') THEN 'HELASE'
			when p.ManagingDeanery IN ('Health Education England Wessex', 
                                       'Health Education England Thames Valley') THEN 'HEWTV'
			else 'UNKNOWN'
		end as mapped_lo, count(*) as rc
from [HEELIVE].[vwProgramme] as p
join [HEELIVE].[vwLocalOffice] as lop on (lop.ItemType = 'Programme' and lop.UniqueID = p.programmeid)
--where status = 'Current'
--and managingdeanery is not null
--order by 6,1,2 desc
group by p.status, lop.LocalOfficeName, p.ManagingDeanery, 
	   case when p.ManagingDeanery = 'Health Education England North West' THEN 'HENW'
			when p.ManagingDeanery = 'Health Education England West Midlands' THEN 'HEWM'
			when p.ManagingDeanery = 'Health Education England Yorkshire and the Humber' THEN 'HEYH'
			when p.ManagingDeanery = 'Health Education England North East' THEN 'HENE'
			when p.ManagingDeanery = 'Health Education England East of England' THEN 'HEEOE'
			when p.ManagingDeanery IN ('Health Education England South West', 
									   'Peninsula Local Office - HESW', 
									   'Severn Local Office - HESW') THEN 'HESW'
			when p.ManagingDeanery IN ('Health Education England East Midlands', 
									   'Yorkshire & Humber Deanery (North East)') THEN 'HEEM'
			when p.ManagingDeanery IN ('Health Education England Kent, Surrey and Sussex', 
									   'London LETBs', 
								       'Health Education England North West London', 
								       'Health Education England North Central and East London', 
								       'Health Education England South London') THEN 'HELASE'
			when p.ManagingDeanery IN ('Health Education England Wessex', 
                                       'Health Education England Thames Valley') THEN 'HEWTV'
			else 'UNKNOWN'
		end


statusLocalOfficeNameManagingDeanerymapped_lorc
CurrentHEEMHealth Education England East MidlandsHEEM88
CurrentHEEMHealth Education England Yorkshire and the HumberHEYH2
CurrentHEEOEHealth Education England East of EnglandHEEOE109
CurrentHEEOELondonUNKNOWN1
CurrentHELASEHealth Education England Kent, Surrey and SussexHELASE57
CurrentHELASEHealth Education England North West LondonHELASE46
CurrentHELASEHealth Education England North Central and East LondonHELASE62
CurrentHELASEHealth Education England South LondonHELASE64
CurrentHELASEHealth Education England WessexHEWTV5
CurrentHELASELondon LETBsHELASE23
CurrentHENEHealth Education England North EastHENE94
CurrentHENEHealth Education England Yorkshire and the HumberHEYH6
CurrentHENWHealth Education England North WestHENW197
CurrentHESWHealth Education England South WestHESW148
CurrentHEWMDefence Postgraduate Medical DeaneryUNKNOWN1
CurrentHEWMHealth Education England West MidlandsHEWM165
CurrentHEWTVHealth Education England Thames ValleyHEWTV77
CurrentHEWTVHealth Education England WessexHEWTV74
CurrentHEYHNULLUNKNOWN33
CurrentHEYHHealth Education England Yorkshire and the HumberHEYH75
InactiveHEEMNULLUNKNOWN363
InactiveHEEMHealth Education England East MidlandsHEEM4
InactiveHEEMYorkshire & Humber Deanery (North East)HEEM1
InactiveHEEOEHealth Education England East of EnglandHEEOE1
InactiveHELASENULLUNKNOWN15698
InactiveHELASEHealth Education England Kent, Surrey and SussexHELASE22
InactiveHELASEHealth Education England North West LondonHELASE3
InactiveHELASEHealth Education England North Central and East LondonHELASE3
InactiveHELASEHealth Education England South LondonHELASE4
InactiveHELASELondon LETBsHELASE82
InactiveHENEHealth Education England North EastHENE1
InactiveHENWHealth Education England North WestHENW7
InactiveHESWNULLUNKNOWN637
InactiveHESWPeninsula Local Office - HESWHESW1
InactiveHESWSevern Local Office - HESWHESW9
InactiveHEWTVNULLUNKNOWN52
InactiveHEWTVHealth Education England Thames ValleyHEWTV15
InactiveHEWTVHealth Education England WessexHEWTV12
InactiveHEYHNULLUNKNOWN142