Skip to content

Commit

Permalink
Merge pull request #15 from rcpch/development
Browse files Browse the repository at this point in the history
add jersey to PZ codes and organisations list
  • Loading branch information
eatyourpeas authored Jun 27, 2024
2 parents 3c65893 + 834ce06 commit 8689ddd
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 16 deletions.
21 changes: 5 additions & 16 deletions rcpch_nhs_organisations/hospitals/constants/country_codes.py
Original file line number Diff line number Diff line change
@@ -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"},
]
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
26 changes: 26 additions & 0 deletions rcpch_nhs_organisations/hospitals/constants/rcpch_organisations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]

"""
Expand All @@ -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,)

0 comments on commit 8689ddd

Please sign in to comment.