ODS ORD API: Inactive Trusts returned as Active

Hi,

We’re currently using the ODS Api to return a list of active Trusts based on a given name. However, we seem to be seeing Trusts that we think should be inactive.

Is there a reason why the API returns a different list to what we see on https://odsportal.digital.nhs.uk?

Request

curl 'https://directory.spineservices.nhs.uk/ORD/2-0-0/organisations?_format=json&Status=Active&PrimaryRoleId=RO197&Name=manchester' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json'

Response

{
  "Organisations": [
    {
      "Name": "CENTRAL MANCHESTER UNIVERSITY HOSPITALS NHS FOUNDATION TRUST",
      "OrgId": "RW3",
      "Status": "Active",
      "OrgRecordClass": "RC1",
      "PostCode": "M13 9WL",
      "LastChangeDate": "2017-10-02",
      "PrimaryRoleId": "RO197",
      "PrimaryRoleDescription": "NHS TRUST",
      "OrgLink": "https://directory.spineservices.nhs.uk/ORD/2-0-0/organisations/RW3"
    },
    {
      "Name": "GREATER MANCHESTER MENTAL HEALTH NHS FOUNDATION TRUST",
      "OrgId": "RXV",
      "Status": "Active",
      "OrgRecordClass": "RC1",
      "PostCode": "M25 3BL",
      "LastChangeDate": "2020-04-04",
      "PrimaryRoleId": "RO197",
      "PrimaryRoleDescription": "NHS TRUST",
      "OrgLink": "https://directory.spineservices.nhs.uk/ORD/2-0-0/organisations/RXV"
    },
    {
      "Name": "MANCHESTER UNIVERSITY NHS FOUNDATION TRUST",
      "OrgId": "R0A",
      "Status": "Active",
      "OrgRecordClass": "RC1",
      "PostCode": "M13 9WL",
      "LastChangeDate": "2020-04-03",
      "PrimaryRoleId": "RO197",
      "PrimaryRoleDescription": "NHS TRUST",
      "OrgLink": "https://directory.spineservices.nhs.uk/ORD/2-0-0/organisations/R0A"
    },
    {
      "Name": "UNIVERSITY HOSPITAL OF SOUTH MANCHESTER NHS FOUNDATION TRUST",
      "OrgId": "RM2",
      "Status": "Active",
      "OrgRecordClass": "RC1",
      "PostCode": "M23 9LT",
      "LastChangeDate": "2021-02-04",
      "PrimaryRoleId": "RO197",
      "PrimaryRoleDescription": "NHS TRUST",
      "OrgLink": "https://directory.spineservices.nhs.uk/ORD/2-0-0/organisations/RM2"
    }
  ]
}

Results from ODS Portal

Hello rowell.heria,
I have raised this with the exeter.helpdesk@nhs.net for support.

Hello rowell.heria,

I can confirm that the API status is based on operational end dates - if no op end date then active, if op end date then closed. RW3 is legally closed but op open so status is active. The ODS Portal currently only displays legal start/end dates so appears ‘inactive’ on there.

I hope this answers your question.

thanks so much for clarifying that