Social Care Record

There are multiple scenarios where visibility of the social care context for a patient will assist a care giver to make better decisions and hence improve the patient’s experience and level of service received, for example:

  • An Emergency Department may be able to avoid an hospital admission if they can identify that the patient has a care package, and they can contact the provider to make sure they have been alerted of the incident and will be checking on the individual later
  • A Community Health Worker may be able to see that social care have recently undertaken an Occupational Therapy Assessment, and therefore avoid duplication of activity by discussing the outcome with the appropriate social care team
  • A hospital discharge team could use the social care context to help identify the appropriate discharge needs of an individual.

The diagram below shows the system interactions:

SocialCareDataService-SequenceDiagram



Business Context

The Social Care Data Service supports sharing of the following:

Data Object Business Context FHIR Resource
Citizen/Service User Basic demographic details of individual, as per local social care system Patient
Packages of Care Social care packages/services that have been commissioned by the Local Authority EpisodeOfCare
Referrals Details of any referrals received by the Local Authority ReferralRequest
Assessments/Tasks Summary of assessments and tasks/actions that the Local Authority has performed (or is performing) on behalf of a patient Task
Warnings/Alerts Local Authority's view of prospective warnings of potential issues regarding a patient Flag
Equipment/Assets Details of equipment/asset (or modifications) that the Local Authority has provided to the patient. Device
Related People Detail of individuals that the Local Authority have recorded as having a relationship to the patient RelatedPerson
Support Reasons Why Social Care are involved with the Patient, including the ‘Primary’ Support Reason which is used to classify an individual for National Reporting on Short and Long Term Services (SALT) Procedure
Key Workers Key Workers who are involved with a Patient from a Social Care perspective CareTeam
Local Authority Local Authority Responsible for Social Care for the Person CareTeam

HTTPS Request

Method:

GET

Host Environments:

The Host URLs will determined by the service provider, for example the host URLs for the Nottinghamshire County Council Social Care Data Service are:

Environment Host
Test health-interoperability-test.nottscc.gov.uk
Live health-interoperability.nottscc.gov.uk

Base URL:

/CareDataService/v2/Patient

Query Parameters:

Name Card. Type Note
_format 0..1 Coded Optional parameter for the consumer to specify alternative response formats to the default. Both json and xml formats currently supported.
identifier 1..1 String The NHS number of the Patient in the format https://fhir.nhs.uk/Id/nhs-number|{NHS Number}.

The value SHALL be URL Encoded
_revinclude 0..* Coded Optional parameter for the consumer to request any additional resource (by type) that reference the requested Patient Resource, see table below for supported resource types.

The value SHALL be URL Encoded

The HTTP GET will consist of 'https://'+'{Host}'+'{BaseURL}'+'?'+'{QueryString}'

See examples for an illustration of a search query and respective URL encoding

Supported _revinclude Resources

Resource Property value Business Context
EpisodeofCare EpisodeOfCare:patient Packages of Care
ReferralRequest ReferralRequest:subject Referrals
Task Task:for Assessments/Events
Flag Flag:subject Alerts/Warnings
Device Device:patient Equipment/Assets
RelatedPerson RelatedPerson:patient Related People
Procedure Procedure:subject Primary Support Reason
CareTeam CareTeam:subject Key Workers




Response

The API resposne will be a single Bundle Resource with zero or one Patient entries, plus any resourcs (of the requested types) that reference the Patient:

SocialCareDataService-ClassDiagram

In addition to the core resources (in blue), those resouces may also refererence supporting resourcse, namely:

  • Organization that is providing a care package, has submitted a referral, etc
  • Practitioner who is undertaking an assessment, who submitted a referral, or part of a CareTeam etc.

Partial Response

The Social Care Data Service also supports the inclusion of an OperationOutcome to indicate if the provider was unable to provide all the data requested, see below:

{
    "resourceType": "OperationOutcome",
    "id": "search-outcome-1",
    "issue":  [
        {
            "severity": "warning",
            "code": "incomplete",
            "diagnostics": "Failed to return 1 Task resource due to internal errors",
            "expression":  [
                "Task"
            ]
        },
        {
            "severity": "warning",
            "code": "incomplete",
            "diagnostics": "Failed to return 2 ReferralRequest resources due to internal errors",
            "expression":  [
                "ReferralRequest"
            ]
        }
    ]
}

Resource metadata

Each resource contains an element "meta", of type "Meta", which is a set of metadata that provides technical and workflow context to the resource. The metadata items are all optional, though some or all of them may be required in particular implementations or contexts of use.

id0..1string
extensionI0..*Extension
versionIdS Σ0..1id
lastUpdatedS Σ0..1instant
profileS Σ0..*uri
securityΣ0..*CodingBinding
id0..1string
extensionI0..*Extension
systemΣ1..1uri
versionΣ0..1string
codeΣ1..1code
displayΣ0..1string
userSelectedΣ0..1boolean


The table below highlights how the meta element of the resources provided in the CDS Bundle response can be used to support a Shared Care Record implementation:
FHIR Element Card. Type Description/Business Context
{Resource}.meta.versionId 0..1 id Some shared care record may required the ability to recreate a view of a patient record presented to a clinician at a point in time, the tracking of FHIR resource versions will support that, and therefore a versionId SHOULD be included were possible.

The versionId should only change between consecutive resource retrievals if one or more of the properties of the resource have changed.
{Resource}.meta.lastUpdated 0..1 instant lastUpdated can be used by a shared care record to easily sort and display a timeline of interventions (regardless of resource type) to an end user. A lastUpdated SHOULD be provided wherever possible, where the source system does not provide a full audit log, lastUpdated may be the same as the created or authored DateTime.
{Resource}.meta.profile 0..* uri An assertion that the content conforms to a resource profile (i.e. StructureDefinition). The profile can be used by the consuming system to validate the resource content and/or apply business rule as to how to treat/display the resource.

When the type of the canonical reference is a uri, the URL may include a version, in order be precise about which version of the resource is being referred to. To do this, append the version to the canonical url with a '|' like this:

<ProfileUri value="http://hl7.org/fhir/StructureDefinition/my-profile|1.0.1"/>
{Resource}.meta.tag:dataProvider 0..* Coding The meta ‘dataProvider’ tag is a method of determining the provenance of a FHIR resource. It is especially important in federated shared care record solutions which aggregate data from multiple feeder systems, some of which may also be a federated solution (e.g. sharing LHCR to LHCR).

In the absence of a national standard, each local solution will determine it's own dataProvider system and allocate codes accordingly. Some providers may be part of more than one shared care record, and hence include multiple ‘dataProvider’ tags.

Example of metadata elements in JSON

{
    "resourceType": "Meta",
    "versionId": "3",
    "lastUpdated": "2021-02-18T09:19:32.000+00:00",
    "profile":  [
        "http://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-ReferralRequest-1|0.0.1"
    ],
    "tag":  [
        {
            "system": "http://fhir.nottinghamshire.gov.uk/data-provider",
            "code": "NCC-001-S",
            "display": "Nottinghamshire County Council"
        }
    ]
}


Example of metadata elements in XML

<Meta xmlns="http://hl7.org/fhir">
    <versionId value="3" />
    <lastUpdated value="2021-02-18T09:19:32.000+00:00" />
    <profile value="http://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-ReferralRequest-1|0.0.1" />
    <tag>
        <system value="http://fhir.nottinghamshire.gov.uk/data-provider" />
        <code value="NCC-001-S" />
        <display value="Nottinghamshire County Council" />
    </tag>
</Meta>



Examples

Search Query

Unencoded query string

https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Patient?_format=json&_revinclude=Task:for&_revinclude=ReferralRequest:subject&_revinclude=EpisodeOfCare:patient&_revinclude=Flag:subject&_revinclude=Procedure:subject&_revinclude=Device:patient&_revinclude=RelatedPerson:patient&identifier=https://fhir.nhs.uk/Id/nhs-number|9994449877

URL Encoded version

https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Patient?_format=json&_revinclude=Task%3Afor&_revinclude=ReferralRequest%3Asubject&_revinclude=EpisodeOfCare%3Apatient&_revinclude=Flag%3Asubject&_revinclude=Procedure%3Asubject&_revinclude=Device%3Apatient&_revinclude=RelatedPerson%3Apatient&_revinclude=CareTeam%3Asubject&identifier=https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C9994449877

Responses

A JSON example of a resposne to a Social Care Data Service query, in the form of a Bundle Resource is displayed below

{
    "resourceType": "Bundle",
    "id": "e7c01000-2985-4e0e-b7c7-008292733cda",
    "meta": {
        "lastUpdated": "2020-01-30T10:40:37.456+00:00"
    },
    "type": "searchset",
    "total": 13,
    "link":  [
        {
            "relation": "self",
            "url": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Patient?_format=json&_revinclude=Task%3Afor&_revinclude=ReferralRequest%3Asubject&_revinclude=EpisodeOfCare%3Apatient&_revinclude=Flag%3Asubject&_revinclude=Procedure%3Asubject&_revinclude=Device%3Apatient&_revinclude=RelatedPerson%3Apatient&_revinclude=CareTeam%3Asubject&identifier=https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C9994449877"
        }
    ],
    "entry":  [
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Patient/101539520",
            "resource": {
                "resourceType": "Patient",
                "id": "101539520",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Patient-1|0.0.1"
                    ]
                },
                "identifier":  [
                    {
                        "extension":  [
                            {
                                "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1",
                                "valueCodeableConcept": {
                                    "coding":  [
                                        {
                                            "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1",
                                            "code": "01",
                                            "display": "Number present and verified"
                                        }
                                    ]
                                }
                            }
                        ],
                        "use": "official",
                        "system": "https://fhir.nhs.uk/Id/nhs-number",
                        "value": "9994449877"
                    }
                ],
                "name":  [
                    {
                        "use": "official",
                        "text": "Testcommunityfifty Testpatient",
                        "family": "Testpatient",
                        "given":  [
                            "Testcommunityfifty"
                        ]
                    }
                ],
                "gender": "male",
                "birthDate": "1967-06-06",
                "address":  [
                    {
                        "use": "home",
                        "text": "44a Sir John Robinson Way,  Arnold, Nottingham, NG5 6DB",
                        "line":  [
                            "44a Sir John Robinson Way",
                            "Arnold",
                            "Nottingham"
                        ],
                        "postalCode": "NG5 6DB"
                    }
                ]
            },
            "search": {
                "mode": "match"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Procedure/03dba7a6-d3de-4b1f-a286-4ce742f7a36b",
            "resource": {
                "resourceType": "Procedure",
                "id": "03dba7a6-d3de-4b1f-a286-4ce742f7a36b",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Procedure-1|0.0.1"
                    ]
                },
                "status": "in-progress",
                "category": {
                    "coding":  [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "299751000000102",
                            "display": "Social services procedure"
                        }
                    ],
                    "text": "Primary Support Reason"
                },
                "subject": {
                    "reference": "Patient/101539520"
                },
                "performedPeriod": {
                    "start": "2017-04-01"
                },
                "reasonCode":  [
                    {
                        "extension":  [
                            {
                                "url": "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/Extension-CDS-PrimarySupportReasonFlag",
                                "valueBoolean": "true"
                            }
                        ],
                        "coding":  [
                            {
                                "system": "hhttps://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareSupportReason",
                                "code": "mental-health",
                                "display": "Mental Health Support"
                            },
                            {
                                "system": "https://nottscc.gov.uk/service_user_group",
                                "display": "Mental Health Support"
                            },
                            {
                                "system": "https://nottscc.gov.uk/service_user_sub_group",
                                "display": "Mental Health Support"
                            }
                        ],
                        "text": "Mental Health Support"
                    }
                ]
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Flag/3653ff7b-4d18-4892-9903-bade2fc23131",
            "resource": {
                "resourceType": "Flag",
                "id": "3653ff7b-4d18-4892-9903-bade2fc23131",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Flag-1|0.0.1"
                    ]
                },
                "status": "active",
                "code": {
                    "coding":  [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "514331000000104",
                            "display": "Referral to safeguarding adults team"
                        }
                    ],
                    "text": "Referral to safeguarding adults team"
                },
                "subject": {
                    "reference": "Patient/101539520"
                },
                "period": {
                    "start": "2019-03-04"
                }
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Device/2766fd1c-d0d1-461a-b448-b070106725a2",
            "resource": {
                "resourceType": "Device",
                "id": "2766fd1c-d0d1-461a-b448-b070106725a2",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CDS-Device|0.0.1"
                    ]
                },
                "type": {
                    "text": "Keysafe"
                },
                "patient": {
                    "reference": "Patient/101539520"
                },
                "note":  [
                    {
                        "text": "Keysafe by back door (not main front door)"
                    }
                ]
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Device/bbf2702c-41b0-4aac-a3b8-bb86c43d906g",
            "resource": {
                "resourceType": "Device",
                "id": "bbf2702c-41b0-4aac-a3b8-bb86c43d906g",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CDS-Device|0.0.1"
                    ]
                },
                "type": {
                    "text": "Lifeline Alarm"
                },
                "patient": {
                    "reference": "Patient/101539520"
                },
                "note":  [
                    {
                        "text": "Optional note about Lifeline alarm"
                    }
                ]
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/EpisodeOfCare/ae04b8ea-f27b-4702-9967-3e6c0b711036",
            "resource": {
                "resourceType": "EpisodeOfCare",
                "id": "ae04b8ea-f27b-4702-9967-3e6c0b711036",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-EpisodeOfCare-1|0.0.1"
                    ]
                },
                "contained":  [
                    {
                        "resourceType": "Organization",
                        "id": "cds-organization-a",
                        "meta": {
                            "profile":  [
                                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Organization-1|0.0.1"
                            ]
                        },
                        "type":  [
                            {
                                "text": "Local Authority"
                            }
                        ],
                        "name": "Nottinghamshire County Council",
                        "contact":  [
                            {
                                "purpose": {
                                    "text": "Adult Social Care Enquiries"
                                },
                                "telecom":  [
                                    {
                                        "system": "phone",
                                        "value": "0115 984 2222",
                                        "use": "work"
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "status": "active",
                "type":  [
                    {
                        "id": "6683",
                        "coding":  [
                            {
                                "system": "https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory",
                                "code": "package-name",
                                "display": "Package Name"
                            }
                        ],
                        "text": "Gemini Exclusive Care_NwkSher_AP_2"
                    },
                    {
                        "id": "381",
                        "coding":  [
                            {
                                "system": "https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory",
                                "code": "package-type",
                                "display": "Package Type"
                            }
                        ],
                        "text": "Adults Home Support"
                    }
                ],
                "patient": {
                    "reference": "Patient/101539520"
                },
                "managingOrganization": {
                    "reference": "#cds-organization-a"
                },
                "period": {
                    "start": "2019-03-11"
                }
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/EpisodeOfCare/cb22b5b2-179c-4f8b-96ba-266b3f7c5a48",
            "resource": {
                "resourceType": "EpisodeOfCare",
                "id": "cb22b5b2-179c-4f8b-96ba-266b3f7c5a48",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-EpisodeOfCare-1|0.0.1"
                    ]
                },
                "contained":  [
                    {
                        "resourceType": "Organization",
                        "id": "cds-organization-b",
                        "meta": {
                            "profile":  [
                                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Organization-1|0.0.1"
                            ]
                        },
                        "type":  [
                            {
                                "text": "Local Authority"
                            }
                        ],
                        "name": "START Internal Supplier",
                        "contact":  [
                            {
                                "purpose": {
                                    "text": "Adult Social Care Enquiries"
                                },
                                "telecom":  [
                                    {
                                        "system": "phone",
                                        "value": "0115 984 2222",
                                        "use": "work"
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "status": "finished",
                "type":  [
                    {
                        "id": "6841",
                        "coding":  [
                            {
                                "system": "https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory",
                                "code": "package-name",
                                "display": "Package Name"
                            }
                        ],
                        "text": "START"
                    },
                    {
                        "id": "369",
                        "coding":  [
                            {
                                "system": "https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory",
                                "code": "package-type",
                                "display": "Package Type"
                            }
                        ],
                        "text": "Reablement Service"
                    }
                ],
                "patient": {
                    "reference": "Patient/101539520"
                },
                "managingOrganization": {
                    "reference": "#cds-organization-b"
                },
                "period": {
                    "start": "2018-12-29",
                    "end": "2019-02-03"
                }
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/ReferralRequest/3a16c7bd-17f7-4810-bb41-fb3e97650660",
            "resource": {
                "resourceType": "ReferralRequest",
                "id": "3a16c7bd-17f7-4810-bb41-fb3e97650660",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-ReferralRequest-1|0.0.1"
                    ]
                },
                "contained":  [
                    {
                        "resourceType": "Practitioner",
                        "id": "cds-practitioner-gp",
                        "meta": {
                            "profile":  [
                                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Practitioner-1|0.0.1"
                            ]
                        },
                        "name":  [
                            {
                                "text": "Dr Hannah Smith"
                            }
                        ]
                    },
                    {
                        "resourceType": "Organization",
                        "id": "cds-organization-s",
                        "meta": {
                            "profile":  [
                                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Organization-1|0.0.1"
                            ]
                        },
                        "name": "Riverside Surgery"
                    }
                ],
                "status": "active",
                "intent": "plan",
                "type": {
                    "text": "GP Referral"
                },
                "subject": {
                    "reference": "Patient/101539520"
                },
                "authoredOn": "2019-03-24T08:10:16+00:00",
                "requester": {
                    "agent": {
                        "reference": "#cds-practitioner-gp"
                    },
                    "onBehalfOf": {
                        "reference": "#cds-organization-s"
                    }
                },
                "description": "The patient has complained about difficultly getting dressed in a morning."
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/ReferralRequest/3a16c7bd-17f7-4810-bb41-fe3e97650660",
            "resource": {
                "resourceType": "ReferralRequest",
                "id": "3a16c7bd-17f7-4810-bb41-fe3e97650660",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-ReferralRequest-1|0.0.1"
                    ]
                },
                "contained":  [
                    {
                        "resourceType": "Practitioner",
                        "id": "cds-practitioner-a",
                        "meta": {
                            "profile":  [
                                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Practitioner-1|0.0.1"
                            ]
                        },
                        "name":  [
                            {
                                "text": "IDT Nurse"
                            }
                        ]
                    },
                    {
                        "resourceType": "Organization",
                        "id": "cds-organization-c",
                        "meta": {
                            "profile":  [
                                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Organization-1|0.0.1"
                            ]
                        },
                        "name": "Nottingham Hospital"
                    }
                ],
                "status": "completed",
                "intent": "plan",
                "type": {
                    "coding":  [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "715591000000108",
                            "display": "Hospital Discharge Notification to Social Care"
                        }
                    ],
                    "text": "Hospital Discharge Notification to Social Care"
                },
                "subject": {
                    "reference": "Patient/101539520"
                },
                "authoredOn": "2018-12-24T08:10:16+00:00",
                "requester": {
                    "agent": {
                        "reference": "#cds-practitioner-a"
                    },
                    "onBehalfOf": {
                        "reference": "#cds-organization-c"
                    }
                },
                "description": "The patient was admitted due to a fall and will require some reablement support on discharge."
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Task/d53f2ed0-aa9d-4c86-9359-c77c3fc591e7",
            "resource": {
                "resourceType": "Task",
                "id": "d53f2ed0-aa9d-4c86-9359-c77c3fc591e7",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Task|0.0.1"
                    ]
                },
                "contained":  [
                    {
                        "resourceType": "Practitioner",
                        "id": "cds-practitioner-contact",
                        "meta": {
                            "profile":  [
                                "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Practitioner-1|0.0.1"
                            ]
                        },
                        "name":  [
                            {
                                "text": "Hannah Smith"
                            }
                        ],
                        "telecom":  [
                            {
                                "system": "phone",
                                "value": "0115 917 5544",
                                "use": "work"
                            }
                        ]
                    }
                ],
                "basedOn":  [
                    {
                        "reference": "ReferralRequest/3a16c7bd-17f7-4810-bb41-fe3e97650660"
                    }
                ],
                "status": "completed",
                "intent": "plan",
                "code": {
                    "id": "696",
                    "coding":  [
                        {
                            "system": "https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskDetailCategory",
                            "code": "task-name",
                            "display": "Task Name"
                        }
                    ],
                    "text": "Occupational Therapy Assessment"
                },
                "for": {
                    "reference": "Patient/101539520"
                },
                "executionPeriod": {
                    "start": "2018-12-27",
                    "end": "2018-12-29"
                },
                "owner": {
                    "reference": "#cds-practitioner-contact"
                },
                "output":  [
                    {
                        "type": {
                            "coding":  [
                                {
                                    "system": "https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskOutcomeType",
                                    "code": "outcome-summary",
                                    "display": "Outcome Summary"
                                }
                            ],
                            "text": "Outcome Summary"
                        },
                        "valueString": "START Package Commissioned"
                    }
                ]
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/RelatedPerson/007bb927-9e35-4f8f-b478-cf7ab04f8056",
            "resource": {
                "resourceType": "RelatedPerson",
                "id": "007bb927-9e35-4f8f-b478-cf7ab04f8056",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-RelatedPerson-1|0.0.1"
                    ]
                },
                "identifier":  [
                    {
                        "use": "official",
                        "system": "https://fhir.nhs.uk/Id/nhs-number",
                        "value": "9111111720"
                    }
                ],
                "patient": {
                    "reference": "Patient/101539520"
                },
                "relationship": {
                    "coding":  [
                        {
                            "system": "http://CareDataService/RelatedPerson/relationship-type",
                            "display": "Wife"
                        },
                        {
                            "system": "http://CareDataService/RelatedPerson/relationship-flag",
                            "display": "Next Of Kin"
                        },
                        {
                            "system": "http://CareDataService/RelatedPerson/relationship-flag",
                            "display": "Carer"
                        }
                    ]
                },
                "name":  [
                    {
                        "use": "official",
                        "text": "Test-16 Patient",
                        "family": "Patient",
                        "given":  [
                            "Test-16"
                        ]
                    }
                ],
                "birthDate": "1964-04-03"
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/CareTeam/3653ff7b-4d18-4892-9903-bade2fc12345",
            "resource": {
                "resourceType": "CareTeam",
                "id": "3653ff7b-4d18-4892-9903-bade2fc12345",
                "meta": {
                    "profile":  [
                        "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-CareTeam-1|0.0.1"
                    ]
                },
                "contained":  [
                    {
                        "resourceType": "Practitioner",
                        "id": "pr1",
                        "name":  [
                            {
                                "family": "Key-OT-Worker",
                                "given":  [
                                    "Orlando"
                                ]
                            }
                        ],
                        "telecom":  [
                            {
                                "system": "phone",
                                "value": "0115 917 5678",
                                "use": "work"
                            }
                        ]
                    },
                    {
                        "resourceType": "Practitioner",
                        "id": "pr2",
                        "name":  [
                            {
                                "family": "Key-SocialWorker",
                                "given":  [
                                    "Sara"
                                ]
                            }
                        ],
                        "telecom":  [
                            {
                                "system": "phone",
                                "value": "0115 917 1234",
                                "use": "work"
                            }
                        ]
                    }
                ],
                "category":  [
                    {
                        "coding":  [
                            {
                                "system": "http://hl7.org/fhir/care-team-category",
                                "code": "longitudinal"
                            }
                        ]
                    }
                ],
                "name": "Social Care Team",
                "subject": {
                    "reference": "Patient/101539520"
                },
                "participant":  [
                    {
                        "role": {
                            "coding":  [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "106328005",
                                    "display": "Social worker"
                                }
                            ],
                            "text": "Key Social Worker"
                        },
                        "member": {
                            "reference": "#pr2"
                        }
                    },
                    {
                        "role": {
                            "coding":  [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "309427003",
                                    "display": "Social services occupational therapist"
                                }
                            ],
                            "text": "Key OT Worker"
                        },
                        "member": {
                            "reference": "#pr1"
                        }
                    }
                ]
            },
            "search": {
                "mode": "include"
            }
        },
        {
            "fullUrl": "https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/OperationOutcome/CDS-search-outcome",
            "resource": {
                "resourceType": "OperationOutcome",
                "id": "CDS-search-outcome",
                "issue":  [
                    {
                        "severity": "warning",
                        "code": "incomplete",
                        "diagnostics": "Failed to return 1 Task resource due to internal errors",
                        "expression":  [
                            "Task"
                        ]
                    },
                    {
                        "severity": "warning",
                        "code": "incomplete",
                        "diagnostics": "Failed to return 2 ReferralRequest resources due to internal errors",
                        "expression":  [
                            "ReferralRequest"
                        ]
                    }
                ]
            },
            "search": {
                "mode": "outcome"
            }
        }
    ]
}


A XML example of a resposne to a Social Care Data Service query, in the form of a Bundle Resource is displayed below

<Bundle xmlns="http://hl7.org/fhir">
    <id value="e7c01000-2985-4e0e-b7c7-008292733cda" />
    <meta>
        <lastUpdated value="2020-01-30T10:40:37.456+00:00" />
    </meta>
    <type value="searchset" />
    <total value="13" />
    <link>
        <relation value="self" />
        <url value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Patient?_format=json&amp;_revinclude=Task%3Afor&amp;_revinclude=ReferralRequest%3Asubject&amp;_revinclude=EpisodeOfCare%3Apatient&amp;_revinclude=Flag%3Asubject&amp;_revinclude=Procedure%3Asubject&amp;_revinclude=Device%3Apatient&amp;_revinclude=RelatedPerson%3Apatient&amp;_revinclude=CareTeam%3Asubject&amp;identifier=https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C9994449877" />
    </link>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Patient/101539520" />
        <resource>
            <Patient>
                <id value="101539520" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Patient-1|0.0.1" />
                </meta>
                <identifier>
                    <extension url="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1">
                        <valueCodeableConcept>
                            <coding>
                                <system value="https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1" />
                                <code value="01" />
                                <display value="Number present and verified" />
                            </coding>
                        </valueCodeableConcept>
                    </extension>
                    <use value="official" />
                    <system value="https://fhir.nhs.uk/Id/nhs-number" />
                    <value value="9994449877" />
                </identifier>
                <name>
                    <use value="official" />
                    <text value="Testcommunityfifty Testpatient" />
                    <family value="Testpatient" />
                    <given value="Testcommunityfifty" />
                </name>
                <gender value="male" />
                <birthDate value="1967-06-06" />
                <address>
                    <use value="home" />
                    <text value="44a Sir John Robinson Way,  Arnold, Nottingham, NG5 6DB" />
                    <line value="44a Sir John Robinson Way" />
                    <line value="Arnold" />
                    <line value="Nottingham" />
                    <postalCode value="NG5 6DB" />
                </address>
            </Patient>
        </resource>
        <search>
            <mode value="match" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Procedure/03dba7a6-d3de-4b1f-a286-4ce742f7a36b" />
        <resource>
            <Procedure>
                <id value="03dba7a6-d3de-4b1f-a286-4ce742f7a36b" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Procedure-1|0.0.1" />
                </meta>
                <status value="in-progress" />
                <category>
                    <coding>
                        <system value="http://snomed.info/sct" />
                        <code value="299751000000102" />
                        <display value="Social services procedure" />
                    </coding>
                    <text value="Primary Support Reason" />
                </category>
                <subject>
                    <reference value="Patient/101539520" />
                </subject>
                <performedPeriod>
                    <start value="2017-04-01" />
                </performedPeriod>
                <reasonCode>
                    <extension url="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/Extension-CDS-PrimarySupportReasonFlag">
                        <valueBoolean value="true" />
                    </extension>
                    <coding>
                        <system value="hhttps://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareSupportReason" />
                        <code value="mental-health" />
                        <display value="Mental Health Support" />
                    </coding>
                    <coding>
                        <system value="https://nottscc.gov.uk/service_user_group" />
                        <display value="Mental Health Support" />
                    </coding>
                    <coding>
                        <system value="https://nottscc.gov.uk/service_user_sub_group" />
                        <display value="Mental Health Support" />
                    </coding>
                    <text value="Mental Health Support" />
                </reasonCode>
            </Procedure>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Flag/3653ff7b-4d18-4892-9903-bade2fc23131" />
        <resource>
            <Flag>
                <id value="3653ff7b-4d18-4892-9903-bade2fc23131" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Flag-1|0.0.1" />
                </meta>
                <status value="active" />
                <code>
                    <coding>
                        <system value="http://snomed.info/sct" />
                        <code value="514331000000104" />
                        <display value="Referral to safeguarding adults team" />
                    </coding>
                    <text value="Referral to safeguarding adults team" />
                </code>
                <subject>
                    <reference value="Patient/101539520" />
                </subject>
                <period>
                    <start value="2019-03-04" />
                </period>
            </Flag>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Device/2766fd1c-d0d1-461a-b448-b070106725a2" />
        <resource>
            <Device>
                <id value="2766fd1c-d0d1-461a-b448-b070106725a2" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CDS-Device|0.0.1" />
                </meta>
                <type>
                    <text value="Keysafe" />
                </type>
                <patient>
                    <reference value="Patient/101539520" />
                </patient>
                <note>
                    <text value="Keysafe by back door (not main front door)" />
                </note>
            </Device>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Device/bbf2702c-41b0-4aac-a3b8-bb86c43d906g" />
        <resource>
            <Device>
                <id value="bbf2702c-41b0-4aac-a3b8-bb86c43d906g" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CDS-Device|0.0.1" />
                </meta>
                <type>
                    <text value="Lifeline Alarm" />
                </type>
                <patient>
                    <reference value="Patient/101539520" />
                </patient>
                <note>
                    <text value="Optional note about Lifeline alarm" />
                </note>
            </Device>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/EpisodeOfCare/ae04b8ea-f27b-4702-9967-3e6c0b711036" />
        <resource>
            <EpisodeOfCare>
                <id value="ae04b8ea-f27b-4702-9967-3e6c0b711036" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-EpisodeOfCare-1|0.0.1" />
                </meta>
                <contained>
                    <Organization>
                        <id value="cds-organization-a" />
                        <meta>
                            <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Organization-1|0.0.1" />
                        </meta>
                        <type>
                            <text value="Local Authority" />
                        </type>
                        <name value="Nottinghamshire County Council" />
                        <contact>
                            <purpose>
                                <text value="Adult Social Care Enquiries" />
                            </purpose>
                            <telecom>
                                <system value="phone" />
                                <value value="0115 984 2222" />
                                <use value="work" />
                            </telecom>
                        </contact>
                    </Organization>
                </contained>
                <status value="active" />
                <type id="6683">
                    <coding>
                        <system value="https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory" />
                        <code value="package-name" />
                        <display value="Package Name" />
                    </coding>
                    <text value="Gemini Exclusive Care_NwkSher_AP_2" />
                </type>
                <type id="381">
                    <coding>
                        <system value="https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory" />
                        <code value="package-type" />
                        <display value="Package Type" />
                    </coding>
                    <text value="Adults Home Support" />
                </type>
                <patient>
                    <reference value="Patient/101539520" />
                </patient>
                <managingOrganization>
                    <reference value="#cds-organization-a" />
                </managingOrganization>
                <period>
                    <start value="2019-03-11" />
                </period>
            </EpisodeOfCare>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/EpisodeOfCare/cb22b5b2-179c-4f8b-96ba-266b3f7c5a48" />
        <resource>
            <EpisodeOfCare>
                <id value="cb22b5b2-179c-4f8b-96ba-266b3f7c5a48" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-EpisodeOfCare-1|0.0.1" />
                </meta>
                <contained>
                    <Organization>
                        <id value="cds-organization-b" />
                        <meta>
                            <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Organization-1|0.0.1" />
                        </meta>
                        <type>
                            <text value="Local Authority" />
                        </type>
                        <name value="START Internal Supplier" />
                        <contact>
                            <purpose>
                                <text value="Adult Social Care Enquiries" />
                            </purpose>
                            <telecom>
                                <system value="phone" />
                                <value value="0115 984 2222" />
                                <use value="work" />
                            </telecom>
                        </contact>
                    </Organization>
                </contained>
                <status value="finished" />
                <type id="6841">
                    <coding>
                        <system value="https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory" />
                        <code value="package-name" />
                        <display value="Package Name" />
                    </coding>
                    <text value="START" />
                </type>
                <type id="369">
                    <coding>
                        <system value="https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCarePackageDetailCategory" />
                        <code value="package-type" />
                        <display value="Package Type" />
                    </coding>
                    <text value="Reablement Service" />
                </type>
                <patient>
                    <reference value="Patient/101539520" />
                </patient>
                <managingOrganization>
                    <reference value="#cds-organization-b" />
                </managingOrganization>
                <period>
                    <start value="2018-12-29" />
                    <end value="2019-02-03" />
                </period>
            </EpisodeOfCare>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/ReferralRequest/3a16c7bd-17f7-4810-bb41-fb3e97650660" />
        <resource>
            <ReferralRequest>
                <id value="3a16c7bd-17f7-4810-bb41-fb3e97650660" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-ReferralRequest-1|0.0.1" />
                </meta>
                <contained>
                    <Practitioner>
                        <id value="cds-practitioner-gp" />
                        <meta>
                            <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Practitioner-1|0.0.1" />
                        </meta>
                        <name>
                            <text value="Dr Hannah Smith" />
                        </name>
                    </Practitioner>
                </contained>
                <contained>
                    <Organization>
                        <id value="cds-organization-s" />
                        <meta>
                            <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Organization-1|0.0.1" />
                        </meta>
                        <name value="Riverside Surgery" />
                    </Organization>
                </contained>
                <status value="active" />
                <intent value="plan" />
                <type>
                    <text value="GP Referral" />
                </type>
                <subject>
                    <reference value="Patient/101539520" />
                </subject>
                <authoredOn value="2019-03-24T08:10:16+00:00" />
                <requester>
                    <agent>
                        <reference value="#cds-practitioner-gp" />
                    </agent>
                    <onBehalfOf>
                        <reference value="#cds-organization-s" />
                    </onBehalfOf>
                </requester>
                <description value="The patient has complained about difficultly getting dressed in a morning." />
            </ReferralRequest>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/ReferralRequest/3a16c7bd-17f7-4810-bb41-fe3e97650660" />
        <resource>
            <ReferralRequest>
                <id value="3a16c7bd-17f7-4810-bb41-fe3e97650660" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-ReferralRequest-1|0.0.1" />
                </meta>
                <contained>
                    <Practitioner>
                        <id value="cds-practitioner-a" />
                        <meta>
                            <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Practitioner-1|0.0.1" />
                        </meta>
                        <name>
                            <text value="IDT Nurse" />
                        </name>
                    </Practitioner>
                </contained>
                <contained>
                    <Organization>
                        <id value="cds-organization-c" />
                        <meta>
                            <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Organization-1|0.0.1" />
                        </meta>
                        <name value="Nottingham Hospital" />
                    </Organization>
                </contained>
                <status value="completed" />
                <intent value="plan" />
                <type>
                    <coding>
                        <system value="http://snomed.info/sct" />
                        <code value="715591000000108" />
                        <display value="Hospital Discharge Notification to Social Care" />
                    </coding>
                    <text value="Hospital Discharge Notification to Social Care" />
                </type>
                <subject>
                    <reference value="Patient/101539520" />
                </subject>
                <authoredOn value="2018-12-24T08:10:16+00:00" />
                <requester>
                    <agent>
                        <reference value="#cds-practitioner-a" />
                    </agent>
                    <onBehalfOf>
                        <reference value="#cds-organization-c" />
                    </onBehalfOf>
                </requester>
                <description value="The patient was admitted due to a fall and will require some reablement support on discharge." />
            </ReferralRequest>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/Task/d53f2ed0-aa9d-4c86-9359-c77c3fc591e7" />
        <resource>
            <Task>
                <id value="d53f2ed0-aa9d-4c86-9359-c77c3fc591e7" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Task|0.0.1" />
                </meta>
                <contained>
                    <Practitioner>
                        <id value="cds-practitioner-contact" />
                        <meta>
                            <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-Practitioner-1|0.0.1" />
                        </meta>
                        <name>
                            <text value="Hannah Smith" />
                        </name>
                        <telecom>
                            <system value="phone" />
                            <value value="0115 917 5544" />
                            <use value="work" />
                        </telecom>
                    </Practitioner>
                </contained>
                <basedOn>
                    <reference value="ReferralRequest/3a16c7bd-17f7-4810-bb41-fe3e97650660" />
                </basedOn>
                <status value="completed" />
                <intent value="plan" />
                <code id="696">
                    <coding>
                        <system value="https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskDetailCategory" />
                        <code value="task-name" />
                        <display value="Task Name" />
                    </coding>
                    <text value="Occupational Therapy Assessment" />
                </code>
                <for>
                    <reference value="Patient/101539520" />
                </for>
                <executionPeriod>
                    <start value="2018-12-27" />
                    <end value="2018-12-29" />
                </executionPeriod>
                <owner>
                    <reference value="#cds-practitioner-contact" />
                </owner>
                <output>
                    <type>
                        <coding>
                            <system value="https://fhir.nottinghamshire.gov.uk/STU3/codesystem/CDS-SocialCareTaskOutcomeType" />
                            <code value="outcome-summary" />
                            <display value="Outcome Summary" />
                        </coding>
                        <text value="Outcome Summary" />
                    </type>
                    <valueString value="START Package Commissioned" />
                </output>
            </Task>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/RelatedPerson/007bb927-9e35-4f8f-b478-cf7ab04f8056" />
        <resource>
            <RelatedPerson>
                <id value="007bb927-9e35-4f8f-b478-cf7ab04f8056" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-RelatedPerson-1|0.0.1" />
                </meta>
                <identifier>
                    <use value="official" />
                    <system value="https://fhir.nhs.uk/Id/nhs-number" />
                    <value value="9111111720" />
                </identifier>
                <patient>
                    <reference value="Patient/101539520" />
                </patient>
                <relationship>
                    <coding>
                        <system value="http://CareDataService/RelatedPerson/relationship-type" />
                        <display value="Wife" />
                    </coding>
                    <coding>
                        <system value="http://CareDataService/RelatedPerson/relationship-flag" />
                        <display value="Next Of Kin" />
                    </coding>
                    <coding>
                        <system value="http://CareDataService/RelatedPerson/relationship-flag" />
                        <display value="Carer" />
                    </coding>
                </relationship>
                <name>
                    <use value="official" />
                    <text value="Test-16 Patient" />
                    <family value="Patient" />
                    <given value="Test-16" />
                </name>
                <birthDate value="1964-04-03" />
            </RelatedPerson>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/CareTeam/3653ff7b-4d18-4892-9903-bade2fc12345" />
        <resource>
            <CareTeam>
                <id value="3653ff7b-4d18-4892-9903-bade2fc12345" />
                <meta>
                    <profile value="https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-CDS-CareTeam-1|0.0.1" />
                </meta>
                <contained>
                    <Practitioner>
                        <id value="pr1" />
                        <name>
                            <family value="Key-OT-Worker" />
                            <given value="Orlando" />
                        </name>
                        <telecom>
                            <system value="phone" />
                            <value value="0115 917 5678" />
                            <use value="work" />
                        </telecom>
                    </Practitioner>
                </contained>
                <contained>
                    <Practitioner>
                        <id value="pr2" />
                        <name>
                            <family value="Key-SocialWorker" />
                            <given value="Sara" />
                        </name>
                        <telecom>
                            <system value="phone" />
                            <value value="0115 917 1234" />
                            <use value="work" />
                        </telecom>
                    </Practitioner>
                </contained>
                <category>
                    <coding>
                        <system value="http://hl7.org/fhir/care-team-category" />
                        <code value="longitudinal" />
                    </coding>
                </category>
                <name value="Social Care Team" />
                <subject>
                    <reference value="Patient/101539520" />
                </subject>
                <participant>
                    <role>
                        <coding>
                            <system value="http://snomed.info/sct" />
                            <code value="106328005" />
                            <display value="Social worker" />
                        </coding>
                        <text value="Key Social Worker" />
                    </role>
                    <member>
                        <reference value="#pr2" />
                    </member>
                </participant>
                <participant>
                    <role>
                        <coding>
                            <system value="http://snomed.info/sct" />
                            <code value="309427003" />
                            <display value="Social services occupational therapist" />
                        </coding>
                        <text value="Key OT Worker" />
                    </role>
                    <member>
                        <reference value="#pr1" />
                    </member>
                </participant>
            </CareTeam>
        </resource>
        <search>
            <mode value="include" />
        </search>
    </entry>
    <entry>
        <fullUrl value="https://health-interoperability-test.nottscc.gov.uk/CareDataService/v2/OperationOutcome/CDS-search-outcome" />
        <resource>
            <OperationOutcome>
                <id value="CDS-search-outcome" />
                <issue>
                    <severity value="warning" />
                    <code value="incomplete" />
                    <diagnostics value="Failed to return 1 Task resource due to internal errors" />
                    <expression value="Task" />
                </issue>
                <issue>
                    <severity value="warning" />
                    <code value="incomplete" />
                    <diagnostics value="Failed to return 2 ReferralRequest resources due to internal errors" />
                    <expression value="ReferralRequest" />
                </issue>
            </OperationOutcome>
        </resource>
        <search>
            <mode value="outcome" />
        </search>
    </entry>
</Bundle>