Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

DR v2 Programmes with No ManagingDeanery.xlsx

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

...

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

...

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 LocalOffice Mapping

/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;

Code Block
sql
sql

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

Code Block
sql
sql
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 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