From 834ce06f4e6f994032f0dc9d07451a0914f82c8e Mon Sep 17 00:00:00 2001 From: eatyourpeas Date: Thu, 27 Jun 2024 15:10:23 +0100 Subject: [PATCH] add jersey to PZ codes and organisations list --- .../hospitals/constants/country_codes.py | 21 ++++----------- .../constants/paediatric_diabetes_units.py | 4 +++ .../constants/rcpch_organisations.py | 26 +++++++++++++++++++ 3 files changed, 35 insertions(+), 16 deletions(-) diff --git a/rcpch_nhs_organisations/hospitals/constants/country_codes.py b/rcpch_nhs_organisations/hospitals/constants/country_codes.py index 3c25cdc..8b829af 100644 --- a/rcpch_nhs_organisations/hospitals/constants/country_codes.py +++ b/rcpch_nhs_organisations/hospitals/constants/country_codes.py @@ -1,18 +1,7 @@ COUNTRY_CODES = [ - { - 'country_ons_code': 'E92000001', - 'country_ons_name': 'England' - }, - { - 'country_ons_code': 'W92000004', - 'country_ons_name': 'Wales' - }, - { - 'country_ons_code': 'N92000002', - 'country_ons_name': 'Northern Ireland' - }, - { - 'country_ons_code': 'S92000003', - 'country_ons_name': 'Scotland' - }, + {"country_ons_code": "E92000001", "country_ons_name": "England"}, + {"country_ons_code": "W92000004", "country_ons_name": "Wales"}, + {"country_ons_code": "N92000002", "country_ons_name": "Northern Ireland"}, + {"country_ons_code": "S92000003", "country_ons_name": "Scotland"}, + {"country_ons_code": "E92000003", "country_ons_name": "Jersey"}, ] diff --git a/rcpch_nhs_organisations/hospitals/constants/paediatric_diabetes_units.py b/rcpch_nhs_organisations/hospitals/constants/paediatric_diabetes_units.py index 21aad84..5b31768 100644 --- a/rcpch_nhs_organisations/hospitals/constants/paediatric_diabetes_units.py +++ b/rcpch_nhs_organisations/hospitals/constants/paediatric_diabetes_units.py @@ -183,4 +183,8 @@ {"ods_code": "RHU03", "npda_code": "PZ238"}, {"ods_code": "RNA01", "npda_code": "PZ240"}, {"ods_code": "RTE01", "npda_code": "PZ242"}, + { + "ods_code": "RGT1W", + "npda_code": "PZ248", + }, # Jersey General Hospital added 22/6/24 ] diff --git a/rcpch_nhs_organisations/hospitals/constants/rcpch_organisations.py b/rcpch_nhs_organisations/hospitals/constants/rcpch_organisations.py index 8b2434f..52b4762 100644 --- a/rcpch_nhs_organisations/hospitals/constants/rcpch_organisations.py +++ b/rcpch_nhs_organisations/hospitals/constants/rcpch_organisations.py @@ -8427,6 +8427,31 @@ "Fax": "", "LocalAuthority": "E08000028", }, # 01/04/2023 QHL NHS BIRMINGHAM AND SOLIHULL INTEGRATED CARE BOARD, MIDLANDS, Birmingham Regional Paediatric Neurology Forum + { + "OrganisationID": "", + "OrganisationCode": "RGT1W", + "OrganisationType": "", + "SubType": "", + "Sector": "", + "OrganisationStatus": "", + "IsPimsManaged": "", + "OrganisationName": "JERSEY GENERAL HOSPITAL", + "Address1": "The Parade", + "Address2": "", + "Address3": "", + "City": "St Helier", + "County": "", + "Postcode": "JE1 3QS", + "Latitude": "49.1877254", + "Longitude": "-2.112157", + "ParentODSCode": "RGT", + "ParentName": "CAMBRIDGE UNIVERSITY HOSPITALS NHS FOUNDATION TRUST", + "Phone": "01534 442000", + "Email": "", + "Website": "https://www.gov.je/Health/Hospitals/HospitalDepartments/pages/index.aspx", + "Fax": "", + "LocalAuthority": "", + }, # Addition 22.6.2024 - Jersey is not part of the UK and is not included in the NHS Digital data. It is included here as is now a PDU ] """ @@ -8439,3 +8464,4 @@ from epilepsy12.common_view_functions import _seed_all_aggregation_models _seed_all_aggregation_models() """ +# Organisation.objects.create(ods_code="RGT1W",name="JERSEY GENERAL HOSPITAL",website=,address1="The Parade",address2="",address3="",telephone="",city="St Helier",county="",latitude=49.1877254,longitude=-2.112157,postcode="JE1 3QS",geocode_coordinates=Point(x=-2.112157,y=49.1877254),active=True,published_at=Date(1993,4,1),paediatric_diabetes_unit="PZ248",trust=,local_health_board,integrated_care_board,nhs_england_region,openuk_network,london_borough,country,)