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"
}
]
}