Skip to content

Commit

Permalink
update rcpch organisations seed, fix urls for apim and azure urls
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourpeas committed May 28, 2024
1 parent af59a4f commit 962874e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8402,4 +8402,40 @@
"Fax": "",
"LocalAuthority": "E06000043",
}, # 01/04/2021, QNX NHS SUSSEX INTEGRATED CARE BOARD, SOUTH EAST, SOUTH EAST THAMES EPILEPSY GROUP
]
{
"OrganisationID": "",
"OrganisationCode": "I3W1A",
"OrganisationType": "",
"SubType": "",
"Sector": "",
"OrganisationStatus": "",
"IsPimsManaged": "",
"OrganisationName": "MIDLAND METROPOLITAN UNIVERSITY HOSPITAL",
"Address1": "GROVE LANE",
"Address2": "",
"Address3": "",
"City": "SMETHWICK",
"County": "WEST MIDLANDS",
"Postcode": "B66 2QT",
"Latitude": "52.491258",
"Longitude": "-1.949846",
"ParentODSCode": "RXK",
"ParentName": "SANDWELL AND WEST BIRMINGHAM HOSPITALS NHS TRUST",
"Phone": "",
"Email": "",
"Website": "",
"Fax": "",
"LocalAuthority": "E08000028",
}, # 01/04/2023 QHL NHS BIRMINGHAM AND SOLIHULL INTEGRATED CARE BOARD, MIDLANDS, Birmingham Regional Paediatric Neurology Forum
]

"""
Steps to update organisation in the console once created in the admin
from django.contrib.gis.geos import Point
point = Point(x=longitude,y=latitude)
o = Organisation.objects.get(ods_code="####")
o.geocode_coordinates=point
o.save()
from epilepsy12.common_view_functions import _seed_all_aggregation_models
_seed_all_aggregation_models()
"""
14 changes: 12 additions & 2 deletions rcpch_nhs_organisations/hospitals/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,27 @@
# rest framework paths
path("", include(router.urls)),
# JSON Schema
path("schema/", SpectacularJSONAPIView.as_view(), name="schema"),
# Swagger UI
path("swagger-ui/", SpectacularSwaggerView.as_view(), name="swagger-ui"),
]

apim_routes = [
path(
"nhs-organisations/v1/schema/", SpectacularJSONAPIView.as_view(), name="schema"
"nhs-organisations/v1/schema/",
SpectacularJSONAPIView.as_view(),
name="apim-schema",
),
# Swagger UI
path(
"nhs-organisations/v1/swagger-ui/",
SpectacularSwaggerView.as_view(),
name="swagger-ui",
name="apim-swagger-ui",
),
]

urlpatterns = []

drf_routes += apim_routes

urlpatterns += drf_routes

0 comments on commit 962874e

Please sign in to comment.