Let GP surgeries create their own organisations

We have a bunch of GP surgeries who want to go live. They don’t
automatically assigned to organisations. So this means a lot of back and
forth to get these organisations set up, and then the service has to
re-request to go live, and… it’s painful.

Instead, let’s let GPs create their own organisations, by confirming the
name of their organisation before going on to letting them accept the
agreement.
This commit is contained in:
Chris Hill-Scott
2019-09-04 16:27:25 +01:00
parent d41effe8ce
commit daeefefeaa
7 changed files with 156 additions and 0 deletions

View File

@@ -152,6 +152,12 @@ class Organisation(JSONModel):
response = organisations_client.update_organisation(self.id, **kwargs)
self.__init__(response)
def associate_service(self, service_id):
organisations_client.update_service_organisation(
str(service_id),
self.id
)
class Organisations(ModelList):
client = organisations_client.get_organisations