Organisation Data Terminology - FHIR API - Question

Is anyone using the above API and does it let you get practitioner details for a given GP Practice ODS code? Thanks

Hi Rahim

Yes it does! Below is a sandbox query that shows how to return the GP practitioners associated with G81086.

General guidance for this API, including a postman collection can be viewed here: Organisation Data Terminology - FHIR API - NHS England Digital

POST: https://sandbox.api.service.nhs.uk/organisation-data-terminology-api/fhir/ValueSet/$expand

BODY:

{
“resourceType”: “Parameters”,
“parameter”: [
{
“name”: “valueSet”,
“resource”: {
“resourceType”: “ValueSet”,
“compose”: {
“inactive”: true,
“include”: [

                    {
                        "system": "https://digital.nhs.uk/services/organisation-data-service/CodeSystem/practitioner-relationship-instance",
                        "filter": [
                            {
                                "property": "orgCode",
                                "op": "=",
                                "value":  "G81086"
                            }
                            
                        ]
                    }
                ]
            }
        }
    },
    {
        "name": "activeOnly",
        "valueBoolean": false
    },
    {
        "name": "property",
        "valueString": "AAID8"
    }
]

}

I can’t see the list of GP Practitioners associated with this GP Practice example you have given and the response you provide

(resolved outside this forum but sharing here so others can see), alternative call:

use this body to get a full list of all GPs at a practice (with any type of PGP role) and then pick out the PGP1 entry from the full result set:

{

"resourceType": "Parameters",

"parameter": \[

    {

        "name": "valueSet",

        "resource": {

            "resourceType": "ValueSet",

            "compose": {

                "inactive": **false**,

                "include": \[

                    {

                        "system": "[https://digital.nhs.uk/services/organisation-data-service/CodeSystem/practitioner"](https://digital.nhs.uk/services/organisation-data-service/CodeSystem/practitioner%22 "https://digital.nhs.uk/services/organisation-data-service/codesystem/practitioner%22"),

                        "filter": \[

                            {

                                "property": "type",

                                "op": "=",

                                "value": "PGP"

                            },

                            {

                                "property": "ME1",

                                "op": "=",

                                "value": "L83084"

                            }

                           

                        \]

                    }

                \]

            }

        }

    },

    {

        "name": "activeOnly",

        "valueBoolean": **true**

    },

    {

        "name": "property",

        "valueString": "\*"

    }

\]

}

Thank you Laura, this works great. It’s so useful to have this type of mechanism to reach out to you and the team at NHS England and be able to get quick answers to solutions we are working on. It’s much appreciated