---
title: "PFS API FHIR Response Examples"
canonical: "https://wiki.patientsknowbest.com/space/api/4212555779/PFS%20API%20FHIR%20Response%20Examples"
format: markdown
---
> 📝 This page is a **work in progress**. The FHIR responses shown are **examples exclusively from the GP Data PFS API integration** and **do not represent the complete FHIR data available within PKB** from other sources. These examples originate from the **upstream FHIR stores**, and their format **may differ slightly from the aggregated store**.

## Contents

> Macro (toc)

---

## Patient

R4 FHIR Resource - [Patient](https://www.hl7.org/fhir/R4/patient.html)

Data Model - [Entity: Patient](https://wiki.patientsknowbest.com/space/api/3749543951/Entity%3A+Patient)

<details>
<summary>TPP/SystmOne - Patient</summary>

```
  {
   "resource": {
    "address": [
     {
      "use": "home",
      "line": [
       "1 Low Lane",
       "Horsforth",
       "Leeds",
       "West Yorkshire"
      ],
      "postalCode": "LS18 5PX"
     }
    ],
    "meta": {
     "lastUpdated": "2025-06-19T15:53:21.505593Z",
     "versionId": "8023",
     "extension": [
      {
       "url": "ex:createdAt",
       "valueInstant": "2024-11-26T14:55:12.492078Z"
      }
     ]
    },
    "managingOrganization": {
     "display": "HSCIC Test environment 71",
     "reference": "Organization/bbc83d8c-43fb-44e7-956e-1490d52a5cc7"
    },
    "name": [
     {
      "use": "usual",
      "given": [
       "Gamora"
      ],
      "family": "Titan",
      "prefix": [
       "Miss"
      ]
     }
    ],
    "birthDate": "1990-01-01",
    "resourceType": "Patient",
    "active": true,
    "id": "77f14fe9-ab1b-4055-a628-49ee2e299f19",
    "identifier": [
     {
      "value": "9991377964",
      "system": "https://fhir.nhs.uk/Id/nhs-number"
     },
     {
      "value": "5c67600000000000",
      "system": "http://fhir.patientsknowbest.com/id/systmone-pfs-patient-guid"
     },
     {
      "value": "7HqE+cTvvlhUocrrIMzO/z550DlWxe8OIAd9Ic2qotE9Nf0mf3mtRI+8KEAVIUO09FXXrnoxpJQU0+EI3xfWy++C75mCIUz2yO+qhCPqtjfNYwwna11AH7Lc/a2xEqPBuisurT8xTkS76Qtb/jz/E69Sm6cwWs1r1tdDbNABPJg=",
      "system": "http://fhir.patientsknowbest.com/id/systmone-rosu-patient-guid"
     }
    ],
    "telecom": [
     {
      "use": "home",
      "value": "gamora@pkbtest.com",
      "system": "email"
     }
    ],
    "generalPractitioner": [
     {
      "display": "HSCIC Test environment 71",
      "reference": "Organization/bbc83d8c-43fb-44e7-956e-1490d52a5cc7"
     }
    ],
    "gender": "female"
   },
   "search": {
    "mode": "match"
   },
   "fullUrl": "https://gditpp.fhir-api.rc.pkb.io/Patient/77f14fe9-ab1b-4055-a628-49ee2e299f19",
   "link": [
    {
     "relation": "self",
     "url": "https://gditpp.fhir-api.rc.pkb.io/Patient/77f14fe9-ab1b-4055-a628-49ee2e299f19"
    }
   ]
  }
```
</details>

<details>
<summary>Optum/EmisWeb - Patient</summary>

```
  {
   "resource": {
    "address": [
     {
      "use": "home",
      "city": "Leeds",
      "line": [
       "1 Emis Street"
      ],
      "district": "West Yorkshire",
      "postalCode": "LS19 6BA"
     }
    ],
    "meta": {
     "lastUpdated": "2025-06-17T23:19:09.405817Z",
     "versionId": "7649",
     "extension": [
      {
       "url": "ex:createdAt",
       "valueInstant": "2025-05-08T11:53:30.912428Z"
      }
     ]
    },
    "managingOrganization": {
     "display": "Emis Test Organisation 28826",
     "reference": "Organization/C84143"
    },
    "name": [
     {
      "use": "official",
      "given": [
       "Stephen"
      ],
      "family": "Strange",
      "prefix": [
       "Dr"
      ]
     },
     {
      "use": "usual",
      "given": [
       "Stephen"
      ],
      "family": "Strange",
      "prefix": [
       "Dr"
      ]
     }
    ],
    "birthDate": "1990-01-01",
    "resourceType": "Patient",
    "active": true,
    "id": "c4858055-62b1-47ce-b8f7-25c4a8ffc3b5",
    "identifier": [
     {
      "value": "9994487663",
      "system": "https://fhir.nhs.uk/Id/nhs-number"
     },
     {
      "value": "8c28914a-08d5-439d-942f-37d2c0a5c235",
      "system": "http://fhir.patientsknowbest.com/id/emis-pfs-patient-guid"
     },
     {
      "value": "54fea460-4079-4bbf-9be5-ea4ad7063d9d",
      "system": "http://fhir.patientsknowbest.com/id/emis-rosu-patient-guid"
     }
    ],
    "telecom": [
     {
      "use": "home",
      "value": "01132050001",
      "system": "phone"
     },
     {
      "use": "home",
      "value": "emis_stephen@pkbtest.com",
      "system": "email"
     }
    ],
    "generalPractitioner": [
     {
      "display": "Emis Test Organisation 28826",
      "reference": "Organization/C84143"
     }
    ],
    "gender": "male"
   },
   "search": {
    "mode": "match"
   },
   "fullUrl": "https://gdiemis.fhir-api.rc.pkb.io/Patient/c4858055-62b1-47ce-b8f7-25c4a8ffc3b5",
   "link": [
    {
     "relation": "self",
     "url": "https://gdiemis.fhir-api.rc.pkb.io/Patient/c4858055-62b1-47ce-b8f7-25c4a8ffc3b5"
    }
   ]
  }
```
</details>

---

## Appointment

R4 FHIR Resource - [Appointment](https://www.hl7.org/fhir/R4/appointment.html)

Data Model - [Entity: Appointment](https://wiki.patientsknowbest.com/space/api/3729195048/Entity%3A+Appointment)

<details>
<summary>TPP/SystmOne - Appointment (aggregated store)</summary>

```
  {
   "resource": {
    "description": "Dr Name - Finished",
    "meta": {
     "security": [
      {
       "code": "0b2da82b-5829-3362-9819-92add3d885d3",
       "system": "http://fhir.patientsknowbest.com/codesystem/source-organization",
       "display": "Denormalized source information"
      },
      {
       "code": "GENERAL_HEALTH",
       "system": "http://fhir.patientsknowbest.com/codesystem/privacy-label"
      }
     ],
     "extension": [
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/responsible-organization",
       "valueString": "HSCIC Test environment 71"
      },
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/version-persisted",
       "valueDateTime": "2025-12-04T11:26:43.012+00:00"
      },
      {
       "url": "https://fhir.patientsknowbest.com/structuredefinition/last-updated-source",
       "valueString": "gditpp"
      },
      {
       "url": "https://fhir.patientsknowbest.com/structuredefinition/upstream-last-updated",
       "valueDateTime": "2026-01-20T11:42:45.977+00:00"
      },
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/access-route",
       "valueCoding": {
        "code": "FHIR_API",
        "system": "http://fhir.patientsknowbest.com/codesystem/access-route",
        "display": "Integration (FHIR)"
       }
      },
      {
       "url": "ex:createdAt",
       "valueInstant": "2025-12-04T11:26:50.126870Z"
      }
     ],
     "lastUpdated": "2026-01-20T11:42:49.072900Z",
     "versionId": "6127408"
    },
    "start": "2025-11-11T11:40:00+00:00",
    "participant": [
     {
      "actor": {
       "reference": "Patient/318bb447-9a5b-3112-ac68-a415330e856a"
      },
      "status": "accepted",
      "required": "required"
     },
     {
      "actor": {
       "display": "Dr Name",
       "reference": "Practitioner/7cead112-7ca4-3b61-81ce-2f18a8cdebe6"
      },
      "status": "accepted",
      "required": "required"
     },
     {
      "actor": {
       "display": "HSCIC Test environment 71",
       "reference": "Location/bf5b20da-1cf6-3297-a030-f75381ec289e"
      },
      "status": "accepted",
      "required": "required"
     }
    ],
    "resourceType": "Appointment",
    "extension": [
     {
      "url": "https://fhir.patientsknowbest.com/structuredefinition/upstream",
      "extension": [
       {
        "url": "https://fhir.patientsknowbest.com/structuredefinition/upstream-source-id",
        "valueString": "gditpp"
       },
       {
        "url": "https://fhir.patientsknowbest.com/structuredefinition/upstream-resource-id",
        "valueString": "Appointment/4c6e142b-943f-452f-9363-d6e8d024b355"
       }
      ]
     }
    ],
    "status": "fulfilled",
    "id": "2420251a-5c14-32c1-971f-0781158c37c1",
    "identifier": [
     {
      "value": "cc34725c-59b6-4ca0-9805-97da55bfe45c-f04e972000000000",
      "system": "http://fhir.patientsknowbest.com/id/systmone-appointment-event-guid"
     }
    ],
    "end": "2025-11-11T11:50:00+00:00"
   },
   "search": {
    "mode": "match"
   },
   "fullUrl": "https://rcaggregated.fhir-api.rc.pkbinternal.com/Appointment/2420251a-5c14-32c1-971f-0781158c37c1",
   "link": [
    {
     "relation": "self",
     "url": "https://rcaggregated.fhir-api.rc.pkbinternal.com/Appointment/2420251a-5c14-32c1-971f-0781158c37c1"
    }
   ]
  }
```
</details>

<details>
<summary>Optum/EmisWeb - Appointment (aggregated store)</summary>

```
  {
   "resource": {
    "meta": {
     "security": [
      {
       "code": "975abb52-7f7e-3136-bb17-b5c3445958e9",
       "system": "http://fhir.patientsknowbest.com/codesystem/source-organization",
       "display": "Denormalized source information"
      },
      {
       "code": "GENERAL_HEALTH",
       "system": "http://fhir.patientsknowbest.com/codesystem/privacy-label"
      }
     ],
     "extension": [
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/responsible-organization",
       "valueString": "Emis Test Organisation 28826"
      },
      {
       "url": "https://fhir.patientsknowbest.com/structuredefinition/upstream-last-updated",
       "valueDateTime": "2024-11-26T13:02:14.710+00:00"
      },
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/access-route",
       "valueCoding": {
        "code": "FHIR_API",
        "system": "http://fhir.patientsknowbest.com/codesystem/access-route",
        "display": "Integration (FHIR)"
       }
      },
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/version-persisted",
       "valueDateTime": "2024-11-26T13:02:14.710+00:00"
      },
      {
       "url": "ex:createdAt",
       "valueInstant": "2024-11-26T13:02:16.702799Z"
      }
     ],
     "lastUpdated": "2024-11-26T13:02:16.702799Z",
     "versionId": "5525093"
    },
    "start": "2023-08-18T08:40:00+01:00",
    "created": "2023-08-18T00:23:40.753+01:00",
    "participant": [
     {
      "actor": {
       "reference": "Patient/577501e5-3230-3c58-a971-9005d5aa10ca"
      },
      "status": "accepted"
     },
     {
      "actor": {
       "display": "Master Practice",
       "reference": "Location/f48ec790-746f-3259-92a6-222eccbba080"
      },
      "status": "accepted",
      "required": "required"
     }
    ],
    "resourceType": "Appointment",
    "extension": [
     {
      "url": "https://fhir.patientsknowbest.com/structuredefinition/upstream",
      "extension": [
       {
        "url": "https://fhir.patientsknowbest.com/structuredefinition/upstream-source-id",
        "valueString": "gdiemis"
       },
       {
        "url": "https://fhir.patientsknowbest.com/structuredefinition/upstream-resource-id",
        "valueString": "Appointment/7086440b-20a0-455e-b3a1-ddf2a42a14bb"
       }
      ]
     }
    ],
    "appointmentType": {
     "coding": [
      {
       "display": "Default"
      }
     ]
    },
    "status": "booked",
    "id": "60e033bf-f391-3a32-b338-cdd696b2a3b5",
    "identifier": [
     {
      "value": "e9ddc839-c65a-4c6f-9702-5e21367eec22-656097",
      "system": "http://fhir.patientsknowbest.com/id/emis-appointment-event-guid"
     }
    ],
    "end": "2023-08-18T08:50:00+01:00"
   },
   "search": {
    "mode": "match"
   },
   "fullUrl": "https://rcaggregated.fhir-api.rc.pkbinternal.com/Appointment/60e033bf-f391-3a32-b338-cdd696b2a3b5",
   "link": [
    {
     "relation": "self",
     "url": "https://rcaggregated.fhir-api.rc.pkbinternal.com/Appointment/60e033bf-f391-3a32-b338-cdd696b2a3b5"
    }
   ]
  }
```
</details>

---

## Medication

R4 FHIR Resource - [MedicationStatement](https://www.hl7.org/fhir/R4/medicationstatement.html)

Data Model - [Entity: Medication](https://pkbdev.atlassian.net/wiki/spaces/api/pages/edit-v2/4212555779#Medications)

<details>
<summary>TPP/SystmOne - MedicationStatement</summary>

```
  {
   "resource": {
    "meta": {
     "lastUpdated": "2025-04-30T11:19:49.471692Z",
     "createdAt": "2025-02-13T16:17:24.626181Z",
     "versionId": "6910"
    },
    "dosage": [
     {
      "patientInstruction": "take one daily"
     }
    ],
    "resourceType": "MedicationStatement",
    "status": "completed",
    "effective": {
     "Period": {
      "start": "2025-01-28T16:07:49+00:00"
     }
    },
    "id": "afddbeba-8834-48e4-a31d-f21310a39ce3",
    "identifier": [
     {
      "value": "MjAyNTAxMjgxNjA3NDkoUikgQXRvcnZhc3RhdGluIDIwbWcgdGFibGV0cyAtIDI4IHRhYmxldCAtIHRha2Ugb25lIGRhaWx5",
      "system": "http://fhir.patientsknowbest.com/id/systmone-medication-statement-event-guid"
     }
    ],
    "subject": {
     "id": "77f14fe9-ab1b-4055-a628-49ee2e299f19",
     "resourceType": "Patient"
    },
    "medication": {
     "CodeableConcept": {
      "coding": [
       {
        "code": "39733011000001106",
        "system": "http://snomed.info/sct",
        "display": "Atorvastatin 20mg tablets"
       }
      ]
     }
    }
   },
   "search": {
    "mode": "match"
   },
   "fullUrl": "https://gditpp.fhir-api.rc.pkb.io/MedicationStatement/afddbeba-8834-48e4-a31d-f21310a39ce3",
   "link": [
    {
     "relation": "self",
     "url": "https://gditpp.fhir-api.rc.pkb.io/MedicationStatement/afddbeba-8834-48e4-a31d-f21310a39ce3"
    }
   ]
  }
```
</details>

<details>
<summary>Optum/EmisWeb - MedicationStatement</summary>

```
  {
   "resource": {
    "meta": {
     "extension": [
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
       "valueDateTime": "2025-05-07T01:18:42+01:00"
      }
     ],
     "lastUpdated": "2025-06-17T23:19:09.791149Z",
     "createdAt": "2025-06-17T23:19:09.791149Z",
     "versionId": "7654"
    },
    "dosage": [
     {
      "patientInstruction": "One Or Two Puffs To Be Inhaled Up To Four Times A Day"
     }
    ],
    "resourceType": "MedicationStatement",
    "status": "active",
    "effective": {
     "Period": {
      "start": "2025-06-18T00:18:08+01:00"
     }
    },
    "id": "3222357c-89a2-4b4d-b3b0-ee765c452bd6",
    "identifier": [
     {
      "value": "fd5108ce-e6c7-4e54-a133-32d130065eaf",
      "system": "http://fhir.patientsknowbest.com/id/emis-medication-statement-event-guid"
     }
    ],
    "informationSource": {
     "id": "cd2821b1-4e5f-4016-bfc8-bc22394dc780",
     "display": "Dr PatientKnows Best",
     "resourceType": "Practitioner"
    },
    "subject": {
     "id": "c4858055-62b1-47ce-b8f7-25c4a8ffc3b5",
     "resourceType": "Patient"
    },
    "medication": {
     "CodeableConcept": {
      "coding": [
       {
        "code": "1751341000033111",
        "system": "http://snomed.info/sct",
        "display": "Salbutamol 100micrograms/dose breath actuated inhaler CFC free"
       }
      ]
     }
    }
```
</details>

---

## Condition

R4 FHIR Resource - [Condition](https://www.hl7.org/fhir/R4/condition.html)

Data Model - [Entity: Diagnosis](https://wiki.patientsknowbest.com/space/api/3734601729/Entity%3A+Diagnosis)

<details>
<summary>TPP/SystmOne - Condition</summary>

```
  {
   "resource": {
    "onset": {
     "dateTime": "2025-05-19T14:08:07+00:00"
    },
    "category": [
     {
      "coding": [
       {
        "code": "problem-list-item",
        "system": "http://terminology.hl7.org/CodeSystem/condition-category"
       }
      ]
     }
    ],
    "meta": {
     "extension": [
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
       "valueDateTime": "2025-05-19T14:08:07+01:00"
      }
     ],
     "lastUpdated": "2025-06-19T15:53:36.124988Z",
     "createdAt": "2025-05-21T14:38:08.835602Z",
     "versionId": "8101"
    },
    "encounter": {
     "id": "cc24b752-ca5b-4a83-ac89-cc09dda87776",
     "resourceType": "Encounter"
    },
    "resourceType": "Condition",
    "id": "556aa526-d978-471a-95a5-14a22c32d207",
    "recorder": {
     "id": "34f5a9c9-6cad-44e1-946f-be198ebd718d",
     "display": "Sarah Staff",
     "resourceType": "Practitioner"
    },
    "code": {
     "coding": [
      {
       "code": "32398004",
       "system": "http://snomed.info/sct",
       "display": "Bronchitis"
      }
     ]
    },
    "identifier": [
     {
      "value": "MjAyNTA1MTkxNDA4MDdCcm9uY2hpdGlzIChYYUR0UCk=",
      "system": "http://fhir.patientsknowbest.com/id/systmone-condition-event-guid"
     }
    ],
    "subject": {
     "id": "77f14fe9-ab1b-4055-a628-49ee2e299f19",
     "resourceType": "Patient"
    },
    "text": {
     "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Bronchitis (XaDtP)</div>",
     "status": "generated"
    }
   },
   "search": {
    "mode": "match"
   },
   "fullUrl": "https://gditpp.fhir-api.rc.pkb.io/Condition/556aa526-d978-471a-95a5-14a22c32d207",
   "link": [
    {
     "relation": "self",
     "url": "https://gditpp.fhir-api.rc.pkb.io/Condition/556aa526-d978-471a-95a5-14a22c32d207"
    }
   ]
  }
```
</details>

<details>
<summary>Optum/EmisWeb - Condition</summary>

```
  {
   "resource": {
    "onset": {
     "dateTime": "2001-06-18T13:20:00+01:00"
    },
    "category": [
     {
      "coding": [
       {
        "code": "problem-list-item",
        "system": "http://terminology.hl7.org/CodeSystem/condition-category"
       }
      ]
     }
    ],
    "clinicalStatus": {
     "coding": [
      {
       "code": "active",
       "system": "http://terminology.hl7.org/CodeSystem/condition-clinical"
      }
     ]
    },
    "meta": {
     "extension": [
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
       "valueDateTime": "2025-05-07T01:23:23+01:00"
      }
     ],
     "lastUpdated": "2025-05-08T11:53:32.302783Z",
     "createdAt": "2025-05-08T11:53:32.302783Z",
     "versionId": "7158"
    },
    "resourceType": "Condition",
    "extension": [
     {
      "url": "https://fhir.nhs.uk/R4/CodeSystem/UKCore-ConditionEpisodicity",
      "valueCoding": {
       "code": "first",
       "display": "First"
      }
     }
    ],
    "id": "0ba92384-e046-4497-9743-4d1c52b63488",
    "recorder": {
     "id": "cd2821b1-4e5f-4016-bfc8-bc22394dc780",
     "display": "Dr PatientKnows Best",
     "resourceType": "Practitioner"
    },
    "code": {
     "coding": [
      {
       "code": "195967001",
       "system": "http://snomed.info/sct",
       "display": "Asthma"
      }
     ]
    },
    "identifier": [
     {
      "value": "36e4e0c5-113a-4b4e-a379-cf69fd6e8af0",
      "system": "http://fhir.patientsknowbest.com/id/emis-condition-event-guid"
     }
    ],
    "subject": {
     "id": "c4858055-62b1-47ce-b8f7-25c4a8ffc3b5",
     "resourceType": "Patient"
    },
    "text": {
     "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Asthma</div>",
     "status": "generated"
    }
   },
   "search": {
    "mode": "match"
   },
   "fullUrl": "https://gdiemis.fhir-api.rc.pkb.io/Condition/0ba92384-e046-4497-9743-4d1c52b63488",
   "link": [
    {
     "relation": "self",
     "url": "https://gdiemis.fhir-api.rc.pkb.io/Condition/0ba92384-e046-4497-9743-4d1c52b63488"
    }
   ]
  }
```
</details>

---

## Observation

R4 FHIR Resource - [Observation](https://www.hl7.org/fhir/R4/observation.html)

### Test Result

<details>
<summary>TPP/SystmOne - Observation (test result)</summary>

To be added…
</details>

<details>
<summary>Optum/EmisWeb - Observation (test result)</summary>

```
{
      "resource": {
          "referenceRange": [
              {
                  "low": {
                      "value": 4500
                  },
                  "high": {
                      "value": 11000
                  },
                  "text": "4500  - 11000"
              }
          ],
          "meta": {
              "lastUpdated": "2024-06-20T10:26:51.077748Z",
              "versionId": "119",
              "extension": [
                  {
                      "url": "ex:createdAt",
                      "valueInstant": "2024-06-20T10:26:51.077748Z"
                  }
              ]
          },
          "interpretation": [
              {
                  "text": "Abnormal"
              }
          ],
          "valueQuantity": {
              "unit": "cells/uL",
              "value": 4500,
              "comparator": "<"
          },
          "resourceType": "Observation",
          "extension": [
              {
                  "url": "<http://fhir.patientsknowbest.com/structuredefinition/recorded-date>",
                  "valueDateTime": "2023-12-06T14:14:59.253+00:00"
              }
          ],
          "status": "final",
          "id": "1d99f059-62a9-40a1-a293-06720f34ec9f",
          "code": {
              "coding": [
                  {
                      "code": "42331000237103",
                      "system": "<http://snomed.info/sct>",
                      "display": "White blood cell count in urine"
                  }
              ]
          },
          "identifier": [
              {
                  "value": "088bd111-7f7b-4de7-87b8-e0b50d5af040",
                  "system": "http://fhir.patientsknowbest.com/id/emis-observation-event-guid"
              }
          ],
          "subject": {
              "reference": "Patient/10e55609-d188-4174-9887-e7d43aefbc91"
          },
          "performer": [
              {
                  "display": "Mr PKB Test",
                  "reference": "Practitioner/b7746e7c-2976-4663-ac88-f252e1bce21d"
              }
          ],
          "text": {
              "div": "<div xmlns=\\"<http://www.w3.org/1999/xhtml\\>"> - White blood cell count in urine</div>",
              "status": "generated"
          }
      },
      "search": {
          "mode": "match"
      },
      "fullUrl": "<http://fhir-emis:9443/Observation/1d99f059-62a9-40a1-a293-06720f34ec9f>",
      "link": [
          {
              "relation": "self",
              "url": "<http://fhir-emis:9443/Observation/1d99f059-62a9-40a1-a293-06720f34ec9f>"
          }
      ]
  }
```

  ]  
}
</details>

### Measurement

<details>
<summary>TPP SystmOne - Observation (measurement)</summary>

```
  {
   "resource": {
    "meta": {
     "extension": [
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
       "valueDateTime": "2024-10-14T09:00:00+01:00"
      }
     ],
     "lastUpdated": "2025-06-19T15:53:34.348510Z",
     "createdAt": "2024-11-26T14:55:14.815207Z",
     "versionId": "8090"
    },
    "encounter": {
     "id": "3230daa0-5fed-43a0-9cb6-06b92444e7b7",
     "resourceType": "Encounter"
    },
    "resourceType": "Observation",
    "status": "final",
    "id": "55a10dc0-0cf6-482b-b72f-88ba2ff0ff41",
    "code": {
     "coding": [
      {
       "code": "162763007",
       "system": "http://snomed.info/sct",
       "display": "O/E - weight"
      }
     ]
    },
    "identifier": [
     {
      "value": "MjAyNDEwMTQwOTAwMDBPL0UgLSB3ZWlnaHQgKDIyQS4uKSA3NyBLZyAo4omIIDEyIHN0IDIgbGIp",
      "system": "http://fhir.patientsknowbest.com/id/systmone-observation-event-guid"
     }
    ],
    "subject": {
     "id": "77f14fe9-ab1b-4055-a628-49ee2e299f19",
     "resourceType": "Patient"
    },
    "performer": [
     {
      "id": "34f5a9c9-6cad-44e1-946f-be198ebd718d",
      "display": "Sarah Staff",
      "resourceType": "Practitioner"
     }
    ],
    "text": {
     "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Coded entry: O/E - weight (22A..) 77 Kg (≈ 12 st 2 lb)</div>",
     "status": "generated"
    }
   },
   "search": {
    "mode": "match"
   },
   "fullUrl": "https://gditpp.fhir-api.rc.pkb.io/Observation/55a10dc0-0cf6-482b-b72f-88ba2ff0ff41",
   "link": [
    {
     "relation": "self",
     "url": "https://gditpp.fhir-api.rc.pkb.io/Observation/55a10dc0-0cf6-482b-b72f-88ba2ff0ff41"
    }
   ]
  }
```
</details>

<details>
<summary>Optum/EmisWeb - Observation (measurement)</summary>

```
{
 "meta": {
  "extension": [
   {
    "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
    "valueDateTime": "2023-08-18T00:29:11.633+01:00"
   }
  ],
  "lastUpdated": "2025-02-24T23:25:02.418941Z",
  "createdAt": "2025-02-24T23:25:02.418941Z",
  "versionId": "6927"
 },
 "interpretation": [
  {
   "coding": [
    {
     "code": "A",
     "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
     "display": "Abnormal"
    }
   ]
  }
 ],
 "value": {
  "Quantity": {
   "unit": "kg",
   "value": 120
  }
 },
 "resourceType": "Observation",
 "status": "final",
 "id": "c6b6d7f6-8303-4eae-842c-ad7a57567b6c",
 "code": {
  "coding": [
   {
    "code": "27113001",
    "system": "http://snomed.info/sct",
    "display": "Body weight"
   }
  ]
 },
 "identifier": [
  {
   "value": "0380fee0-b855-4540-97a6-e2fee9fb4705",
   "system": "http://fhir.patientsknowbest.com/id/emis-observation-event-guid"
  }
 ],
 "subject": {
  "id": "e9ddc839-c65a-4c6f-9702-5e21367eec22",
  "resourceType": "Patient"
 },
 "performer": [
  {
   "id": "bf780046-5540-4ff3-8493-9acc9496302a",
   "display": "Mr PKB Test",
   "resourceType": "Practitioner"
  }
 ],
 "text": {
  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"> - Body weight</div>",
  "status": "generated"
 }
}
```
</details>

### Procedure

<details>
<summary>TPP/SystmOne - Observation (procedure)</summary>

```
  {
   "resource": {
    "meta": {
     "extension": [
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
       "valueDateTime": "2025-06-25T14:45:22+01:00"
      }
     ],
     "lastUpdated": "2025-06-25T13:48:37.161083Z",
     "createdAt": "2025-06-25T13:48:37.161083Z",
     "versionId": "8182"
    },
    "encounter": {
     "id": "14708072-a718-48b9-a19c-455e8dd981ee",
     "resourceType": "Encounter"
    },
    "resourceType": "Observation",
    "status": "final",
    "id": "8edb4555-31a0-467b-80ab-c8667a4d1211",
    "code": {
     "coding": [
      {
       "code": "284181007",
       "system": "http://snomed.info/sct",
       "display": "Incision and drainage of abscess"
      }
     ]
    },
    "identifier": [
     {
      "value": "MjAyNTA2MjUxNDQ1MjJJbmNpc2lvbiBhbmQgZHJhaW5hZ2Ugb2YgYWJzY2VzcyAoWGEyZFIp",
      "system": "http://fhir.patientsknowbest.com/id/systmone-observation-event-guid"
     }
    ],
    "subject": {
     "id": "77f14fe9-ab1b-4055-a628-49ee2e299f19",
     "resourceType": "Patient"
    },
    "performer": [
     {
      "id": "34f5a9c9-6cad-44e1-946f-be198ebd718d",
      "display": "Sarah Staff",
      "resourceType": "Practitioner"
     }
    ],
    "text": {
     "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Coded entry: Incision and drainage of abscess (Xa2dR)</div>",
     "status": "generated"
    }
   },
   "search": {
    "mode": "match"
   },
   "fullUrl": "https://gditpp.fhir-api.rc.pkb.io/Observation/8edb4555-31a0-467b-80ab-c8667a4d1211",
   "link": [
    {
     "relation": "self",
     "url": "https://gditpp.fhir-api.rc.pkb.io/Observation/8edb4555-31a0-467b-80ab-c8667a4d1211"
    }
   ]
  }
```
</details>

<details>
<summary>Optum/EmisWeb - Observation (procedure)</summary>

```
{
 "meta": {
  "extension": [
   {
    "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
    "valueDateTime": "2023-08-17T23:58:37.873+01:00"
   }
  ],
  "lastUpdated": "2024-11-28T14:22:41.344797Z",
  "createdAt": "2024-11-26T13:02:15.234971Z",
  "versionId": "5021"
 },
 "interpretation": [
  {
   "coding": [
    {
     "code": "N",
     "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
     "display": "Normal"
    }
   ]
  }
 ],
 "resourceType": "Observation",
 "status": "final",
 "id": "39c3324e-fbbf-4b45-a3db-3129b121b2e5",
 "code": {
  "coding": [
   {
    "code": "182531007",
    "system": "http://snomed.info/sct",
    "display": "Dressing of wound"
   }
  ]
 },
 "identifier": [
  {
   "value": "4fd00ac6-537b-43f8-b1a2-4fc8695430ee",
   "system": "http://fhir.patientsknowbest.com/id/emis-observation-event-guid"
  }
 ],
 "subject": {
  "id": "e9ddc839-c65a-4c6f-9702-5e21367eec22",
  "resourceType": "Patient"
 },
 "performer": [
  {
   "id": "bf780046-5540-4ff3-8493-9acc9496302a",
   "display": "Mr PKB Test",
   "resourceType": "Practitioner"
  }
 ],
 "text": {
  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Procedure - Dressing of wound</div>",
  "status": "generated"
 }
}
```
</details>

### Finding

<details>
<summary>TPP/SystmOne - Observation (finding)</summary>

```
{
 "meta": {
  "extension": [
   {
    "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
    "valueDateTime": "2025-05-19T14:08:07+01:00"
   }
  ],
  "lastUpdated": "2025-06-19T15:53:34.348510Z",
  "createdAt": "2025-05-21T14:38:08.490722Z",
  "versionId": "8042"
 },
 "encounter": {
  "id": "cc24b752-ca5b-4a83-ac89-cc09dda87776",
  "resourceType": "Encounter"
 },
 "resourceType": "Observation",
 "status": "final",
 "id": "bf50961d-087c-41b4-91e2-2dd80257f005",
 "code": {
  "coding": [
   {
    "code": "77176002",
    "system": "http://snomed.info/sct",
    "display": "Smoker"
   }
  ]
 },
 "identifier": [
  {
   "value": "MjAyNTA1MTkxNDA4MDdTbW9rZXIgKDEzN1IuKQ==",
   "system": "http://fhir.patientsknowbest.com/id/systmone-observation-event-guid"
  }
 ],
 "subject": {
  "id": "77f14fe9-ab1b-4055-a628-49ee2e299f19",
  "resourceType": "Patient"
 },
 "performer": [
  {
   "id": "34f5a9c9-6cad-44e1-946f-be198ebd718d",
   "display": "Sarah Staff",
   "resourceType": "Practitioner"
  }
 ],
 "text": {
  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Coded entry: Smoker (137R.)</div>",
  "status": "generated"
 }
}
```
</details>

<details>
<summary>Optum/EmisWeb - Observation (finding)</summary>

```
  {
   "resource": {
    "meta": {
     "extension": [
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
       "valueDateTime": "2025-05-07T01:19:47+01:00"
      }
     ],
     "lastUpdated": "2025-05-08T11:53:31.769938Z",
     "createdAt": "2025-05-08T11:53:31.769938Z",
     "versionId": "7142"
    },
    "interpretation": [
     {
      "coding": [
       {
        "code": "N",
        "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
        "display": "Normal"
       }
      ]
     }
    ],
    "resourceType": "Observation",
    "status": "final",
    "id": "ca0e010c-8f06-45e1-90a6-cab8ba070907",
    "code": {
     "coding": [
      {
       "code": "301708006",
       "system": "http://snomed.info/sct",
       "display": "Chest clear"
      }
     ]
    },
    "identifier": [
     {
      "value": "78921adf-fefb-4bf7-8547-d64307a387bb",
      "system": "http://fhir.patientsknowbest.com/id/emis-observation-event-guid"
     }
    ],
    "subject": {
     "id": "c4858055-62b1-47ce-b8f7-25c4a8ffc3b5",
     "resourceType": "Patient"
    },
    "performer": [
     {
      "id": "cd2821b1-4e5f-4016-bfc8-bc22394dc780",
      "display": "Dr PatientKnows Best",
      "resourceType": "Practitioner"
     }
    ],
    "text": {
     "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Examination - Chest clear</div>",
     "status": "generated"
    }
   },
   "search": {
    "mode": "match"
   },
   "fullUrl": "https://gdiemis.fhir-api.rc.pkb.io/Observation/ca0e010c-8f06-45e1-90a6-cab8ba070907",
   "link": [
    {
     "relation": "self",
     "url": "https://gdiemis.fhir-api.rc.pkb.io/Observation/ca0e010c-8f06-45e1-90a6-cab8ba070907"
    }
   ]
  }
```
</details>

### Consultation notes

<details>
<summary>TPP/SystmOne - Observation (consultation notes)</summary>

```
{
 "meta": {
  "extension": [
   {
    "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
    "valueDateTime": "2025-05-19T13:25:54+01:00"
   }
  ],
  "lastUpdated": "2025-06-19T15:53:34.348510Z",
  "createdAt": "2025-05-19T12:54:09.882298Z",
  "versionId": "8047"
 },
 "encounter": {
  "id": "8c29309c-fc9d-4f83-9639-83934da7832d",
  "resourceType": "Encounter"
 },
 "resourceType": "Observation",
 "status": "final",
 "id": "73aaa206-b8ae-4e26-a344-6e3017c898ee",
 "code": {
  "coding": [
   {
    "display": "History: Gamora presents with a persistent cough for the past three weeks. She reports that it started as a dry cough but has recently become more productive, with some whitish phlegm. She also mentions feeling more tired than usual and experiencing occasional night sweats. She denies any fever, chest pain, or shortness of breath.\n\nmother has asthma\nTeetotaller (1361.)\nExamination: General appearance: Well-nourished, appears slightly fatigued.\nLungs: Auscultation reveals scattered wheezes bilaterally. No crackles heard.\nHeart: Regular rate and rhythm, no murmurs.\nTemperature: 37.2°C O/E - temperature normal (2E31.)\nOxygen saturation: 98% on room air. Oxygen saturation at periphery (X770D)\nDiagnosis: Acute bronchitis (XE0Xr)"
   }
  ]
 },
 "identifier": [
  {
   "value": "MjAyNTA1MTkxMzI1NTRIaXN0b3J5OiBHYW1vcmEgcHJlc2VudHMgd2l0aCBhIHBlcnNpc3RlbnQgY291Z2ggZm9yIHRoZSBwYXN0IHRocmVlIHdlZWtzLiBTaGUgcmVwb3J0cyB0aGF0IGl0IHN0YXJ0ZWQgYXMgYSBkcnkgY291Z2ggYnV0IGhhcyByZWNlbnRseSBiZWNvbWUgbW9yZSBwcm9kdWN0aXZlLCB3aXRoIHNvbWUgd2hpdGlzaCBwaGxlZ20uIFNoZSBhbHNvIG1lbnRpb25zIGZlZWxpbmcgbW9yZSB0aXJlZCB0aGFuIHVzdWFsIGFuZCBleHBlcmllbmNpbmcgb2NjYXNpb25hbCBuaWdodCBzd2VhdHMuIFNoZSBkZW5pZXMgYW55IGZldmVyLCBjaGVzdCBwYWluLCBvciBzaG9ydG5lc3Mgb2YgYnJlYXRoLgoKbW90aGVyIGhhcyBhc3RobWEKVGVldG90YWxsZXIgKDEzNjEuKQpFeGFtaW5hdGlvbjogR2VuZXJhbCBhcHBlYXJhbmNlOiBXZWxsLW5vdXJpc2hlZCwgYXBwZWFycyBzbGlnaHRseSBmYXRpZ3VlZC4KTHVuZ3M6IEF1c2N1bHRhdGlvbiByZXZlYWxzIHNjYXR0ZXJlZCB3aGVlemVzIGJpbGF0ZXJhbGx5LiBObyBjcmFja2xlcyBoZWFyZC4KSGVhcnQ6IFJlZ3VsYXIgcmF0ZSBhbmQgcmh5dGhtLCBubyBtdXJtdXJzLgpUZW1wZXJhdHVyZTogMzcuMsKwQyBPL0UgLSB0ZW1wZXJhdHVyZSBub3JtYWwgKDJFMzEuKQpPeHlnZW4gc2F0dXJhdGlvbjogOTglIG9uIHJvb20gYWlyLiBPeHlnZW4gc2F0dXJhdGlvbiBhdCBwZXJpcGhlcnkgKFg3NzBEKQpEaWFnbm9zaXM6IEFjdXRlIGJyb25jaGl0aXMgKFhFMFhyKQ==",
   "system": "http://fhir.patientsknowbest.com/id/systmone-observation-event-guid"
  }
 ],
 "subject": {
  "id": "77f14fe9-ab1b-4055-a628-49ee2e299f19",
  "resourceType": "Patient"
 },
 "performer": [
  {
   "id": "34f5a9c9-6cad-44e1-946f-be198ebd718d",
   "display": "Sarah Staff",
   "resourceType": "Practitioner"
  }
 ],
 "text": {
  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Note: History: Gamora presents with a persistent cough for the past three weeks. She reports that it started as a dry cough but has recently become more productive, with some whitish phlegm. She also mentions feeling more tired than usual and experiencing occasional night sweats. She denies any fever, chest pain, or shortness of breath.\n\nmother has asthma\nTeetotaller (1361.)\nExamination: General appearance: Well-nourished, appears slightly fatigued.\nLungs: Auscultation reveals scattered wheezes bilaterally. No crackles heard.\nHeart: Regular rate and rhythm, no murmurs.\nTemperature: 37.2°C O/E - temperature normal (2E31.)\nOxygen saturation: 98% on room air. Oxygen saturation at periphery (X770D)\nDiagnosis: Acute bronchitis (XE0Xr)</div>",
  "status": "generated"
 }
}
```
</details>

<details>
<summary>Optum/EmisWeb - Observation (consultation notes)</summary>

To be added…
</details>

### Social

<details>
<summary>TPP/SystmOne - Observation (social)</summary>

```
  {
   "resource": {
    "meta": {
     "extension": [
      {
       "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
       "valueDateTime": "2025-03-24T10:47:52+00:00"
      },
      {
       "url": "ex:createdAt",
       "valueInstant": "2025-03-24T10:48:49.703459Z"
      }
     ],
     "lastUpdated": "2025-07-14T08:52:31.171978Z",
     "versionId": "8534"
    },
    "resourceType": "Observation",
    "status": "final",
    "id": "6ee2792f-ddec-405f-9d0f-f154fe981ea6",
    "code": {
     "coding": [
      {
       "code": "494131000000105",
       "system": "http://snomed.info/sct",
       "display": "White British - ethnic category 2001 census"
      }
     ]
    },
    "identifier": [
     {
      "value": "MjAyNTAzMjQxMDQ3NTJXaGl0ZSBCcml0aXNoIC0gZXRobmljIGNhdGVnb3J5IDIwMDEgY2Vuc3VzIChYYVFFYSk=",
      "system": "http://fhir.patientsknowbest.com/id/systmone-observation-event-guid"
     }
    ],
    "subject": {
     "reference": "Patient/77f14fe9-ab1b-4055-a628-49ee2e299f19"
    },
    "performer": [
     {
      "display": "Sarah Staff",
      "reference": "Practitioner/34f5a9c9-6cad-44e1-946f-be198ebd718d"
     }
    ],
    "text": {
     "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Coded entry: White British - ethnic category 2001 census (XaQEa)</div>",
     "status": "generated"
    }
   },
   "search": {
    "mode": "match"
   },
   "fullUrl": "https://gditpp.fhir-api.rc.pkb.io/Observation/6ee2792f-ddec-405f-9d0f-f154fe981ea6",
   "link": [
    {
     "relation": "self",
     "url": "https://gditpp.fhir-api.rc.pkb.io/Observation/6ee2792f-ddec-405f-9d0f-f154fe981ea6"
    }
   ]
  }
```
</details>

<details>
<summary>Optum/EMIS - Observation (social)</summary>

To be added…
</details>

---

## Allergies

R4 FHIR Resource - [AllergyIntolerance](https://www.hl7.org/fhir/R4/allergyintolerance.html)

Data model - [Entity: Allergy](https://wiki.patientsknowbest.com/space/api/3736141825/Entity%3A+Allergy)

<details>
<summary>TPP/SystmOne - AllergyIntolerance</summary>

```
{
 "patient": {
  "id": "203219f8-07a9-4747-a95e-e318744969ac",
  "resourceType": "Patient"
 },
 "clinicalStatus": {
  "text": "Active",
  "coding": [
   {
    "code": "active",
    "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"
   }
  ]
 },
 "meta": {
  "lastUpdated": "2025-05-14T09:59:54.718723Z",
  "createdAt": "2025-05-14T09:59:54.718723Z",
  "versionId": "7304"
 },
 "resourceType": "AllergyIntolerance",
 "asserter": {
  "id": "34f5a9c9-6cad-44e1-946f-be198ebd718d",
  "display": "Sarah Staff",
  "resourceType": "Practitioner"
 },
 "recordedDate": "2023-11-10T12:49:49+00:00",
 "id": "53f699bf-2fff-4776-bf0c-3e594642fba3",
 "recorder": {
  "id": "34f5a9c9-6cad-44e1-946f-be198ebd718d",
  "display": "Sarah Staff",
  "resourceType": "Practitioner"
 },
 "code": {
  "coding": [
   {
    "code": "213021008",
    "system": "http://snomed.info/sct",
    "display": "Peanut allergy"
   }
  ]
 },
 "identifier": [
  {
   "value": "MjAyMzExMTAxMjQ5NDlQZWFudXQgYWxsZXJneSAoWGExbm8p",
   "system": "http://fhir.patientsknowbest.com/id/systmone-allergy-intolerance-event-guid"
  }
 ],
 "text": {
  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Peanut allergy (Xa1no)</div>",
  "status": "generated"
 }
}
```
</details>

<details>
<summary>Optum/EmisWeb - AllergyIntolerance</summary>

```
{
 "patient": {
  "id": "e9ddc839-c65a-4c6f-9702-5e21367eec22",
  "resourceType": "Patient"
 },
 "onset": {
  "dateTime": "2023-09-22"
 },
 "clinicalStatus": {
  "text": "Active",
  "coding": [
   {
    "code": "active",
    "system": "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"
   }
  ]
 },
 "meta": {
  "extension": [
   {
    "url": "http://fhir.patientsknowbest.com/structuredefinition/recorded-date",
    "valueDateTime": "2023-09-22T14:55:39.82+01:00"
   }
  ],
  "lastUpdated": "2024-11-28T14:22:39.319776Z",
  "createdAt": "2024-11-26T13:02:13.726593Z",
  "versionId": "4934"
 },
 "resourceType": "AllergyIntolerance",
 "asserter": {
  "id": "bf780046-5540-4ff3-8493-9acc9496302a",
  "display": "Mr PKB Test",
  "resourceType": "Practitioner"
 },
 "id": "0fc5e833-2c35-45f0-ab6e-94a153d24c3c",
 "recorder": {
  "id": "bf780046-5540-4ff3-8493-9acc9496302a",
  "display": "Mr PKB Test",
  "resourceType": "Practitioner"
 },
 "code": {
  "coding": [
   {
    "code": "236761000006114",
    "system": "http://snomed.info/sct",
    "display": "Allergy to peanuts"
   }
  ]
 },
 "identifier": [
  {
   "value": "ce87a60c-f981-4b54-9eda-780d310f0725",
   "system": "http://fhir.patientsknowbest.com/id/emis-allergy-intolerance-event-guid"
  }
 ],
 "text": {
  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Allergy to peanuts</div>",
  "status": "generated"
 }
}
```
</details>

---

## DiagnosticReport

R4 FHIR Resource - [DiagnosticReport](https://www.hl7.org/fhir/R4/diagnosticreport.html)

Data Model - 

<details>
<summary>TPP/SystmOne - DiagnosticReport</summary>

```
{
  "entry": [
      {
          "resource": {
              "meta": {
                  "lastUpdated": "2024-06-20T10:40:02.842394Z",
                  "versionId": "43",
                  "extension": [
                      {
                          "url": "ex:createdAt",
                          "valueInstant": "2024-06-20T10:40:02.842394Z"
                      }
                  ]
              },
              "resourceType": "DiagnosticReport",
              "effectiveDateTime": "2023-08-18",
              "status": "final",
              "id": "35072aa7-b972-4d19-9dcc-5eb8a5e8cafb",
              "code": {
                  "coding": [
                      {
                          "code": "166362002",
                          "system": "http://snomed.info/sct",
                          "display": "Serum TSH level (NHS Terminology LookUp)"
                      }
                  ]
              },
              "identifier": [
                  {
                      "value": "cfaa000000000000",
                      "system": "Tpp"
                  }
              ],
              "issued": "2023-08-18T00:00:00+00:00",
              "subject": {
                  "reference": "Patient/c3727dcb-4845-4e07-b9aa-76ba80748de9"
              },
              "text": {
                  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Pathology - Serum TSH Level</div>",
                  "status": "generated"
              }
          },
          "search": {
              "mode": "match"
          },
          "fullUrl": "http://fhir-tpp:9443/DiagnosticReport/35072aa7-b972-4d19-9dcc-5eb8a5e8cafb",
          "link": [
              {
                  "relation": "self",
                  "url": "http://fhir-tpp:9443/DiagnosticReport/35072aa7-b972-4d19-9dcc-5eb8a5e8cafb"
              }
          ]
      }
  ]
}
```
</details>

<details>
<summary>Optum/EmisWeb - DiagnosticReport</summary>

```
{
 "meta": {
  "lastUpdated": "2025-02-24T23:25:03.058737Z",
  "createdAt": "2024-11-26T13:02:16.629653Z",
  "versionId": "6985"
 },
 "resourceType": "DiagnosticReport",
 "status": "unknown",
 "result": [
  {
   "id": "170060fb-004a-412a-a434-9fb28e4a6419",
   "resourceType": "Observation"
  }
 ],
 "effective": {
  "dateTime": "2024-01-23"
 },
 "id": "d8285850-a730-474f-a378-0140e4c3a044",
 "code": {
  "coding": [
   {
    "code": "1000731000000107",
    "system": "http://snomed.info/sct",
    "display": "Serum creatinine level"
   }
  ]
 },
 "identifier": [
  {
   "value": "4cec8cbe-6313-4068-902e-9ed18ba29121",
   "system": "http://fhir.patientsknowbest.com/id/emis-diagnostic-report-event-guid"
  }
 ],
 "issued": "2024-01-23T00:00:00+00:00",
 "subject": {
  "id": "e9ddc839-c65a-4c6f-9702-5e21367eec22",
  "resourceType": "Patient"
 },
 "performer": [
  {
   "id": "bf780046-5540-4ff3-8493-9acc9496302a",
   "display": "Mr PKB Test",
   "resourceType": "Practitioner"
  }
 ],
 "text": {
  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Serum creatinine level0.9 umol/L</div>",
  "status": "generated"
 }
}
```
</details>

---

## Immunisation

R4 FHIR Resource - [Immunization](https://www.hl7.org/fhir/R4/immunization.html)

Data Model - 

<details>
<summary>TPP/SystmOne - Immunization</summary>

```
{
 "patient": {
  "id": "77f14fe9-ab1b-4055-a628-49ee2e299f19",
  "resourceType": "Patient"
 },
 "meta": {
  "lastUpdated": "2024-11-28T13:34:19.733241Z",
  "createdAt": "2024-11-28T13:34:19.733241Z",
  "versionId": "4892"
 },
 "vaccineCode": {
  "text": "Anti-D Immunoglobulin 1 0.5 ml"
 },
 "resourceType": "Immunization",
 "status": "completed",
 "id": "cfd17aa3-8ce7-4f33-ba14-b4468840ec9c",
 "identifier": [
  {
   "value": "MjAyNDExMDUxMzMyMzRBbnRpLUQgSW1tdW5vZ2xvYnVsaW4gMSAwLjUgbWw=",
   "system": "http://fhir.patientsknowbest.com/id/systmone-immunization-event-guid"
  }
 ],
 "occurrence": {
  "dateTime": "2024-11-05T13:32:34+00:00"
 },
 "performer": [
  {
   "actor": {
    "id": "34f5a9c9-6cad-44e1-946f-be198ebd718d",
    "display": "Sarah Staff",
    "resourceType": "Practitioner"
   }
  }
 ],
 "text": {
  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Anti-D Immunoglobulin 1 0.5 ml</div>",
  "status": "generated"
 }
}
```
</details>

<details>
<summary>Optum/EmisWeb - Immunization</summary>

```
{
 "patient": {
  "id": "c4858055-62b1-47ce-b8f7-25c4a8ffc3b5",
  "resourceType": "Patient"
 },
 "meta": {
  "lastUpdated": "2025-05-08T11:53:32.177976Z",
  "createdAt": "2025-05-08T11:53:32.177976Z",
  "versionId": "7154"
 },
 "vaccineCode": {
  "coding": [
   {
    "code": "838481000006115",
    "system": "http://snomed.info/sct",
    "display": "Booster diphtheria tetanus pertussis (DTaP) + polio vaccintn"
   }
  ]
 },
 "resourceType": "Immunization",
 "status": "completed",
 "id": "b77ee4f8-c510-4813-a387-7ff69deb3318",
 "identifier": [
  {
   "value": "f8f25786-5e3e-4774-9799-e10725b62cf4",
   "system": "http://fhir.patientsknowbest.com/id/emis-immunization-event-guid"
  }
 ],
 "occurrence": {
  "dateTime": "1994-09-05"
 },
 "performer": [
  {
   "actor": {
    "id": "cd2821b1-4e5f-4016-bfc8-bc22394dc780",
    "display": "Dr PatientKnows Best",
    "resourceType": "Practitioner"
   }
  }
 ],
 "text": {
  "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Booster diphtheria tetanus pertussis (DTaP) + polio vaccintn</div>",
  "status": "generated"
 }
}
```
</details>

---

## Practitioner

R4 FHIR Resource - [Practitioner](https://www.hl7.org/fhir/R4/practitioner.html)

Data Model - 

<details>
<summary>TPP/SystmOne - Practitioner</summary>

```
{
 "name": [
  {
   "use": "usual",
   "given": [
    "Sarah"
   ],
   "family": "Staff"
  }
 ],
 "active": true,
 "identifier": [
  {
   "value": "MTAySFNDSUNTYXJhaCBTdHVmZmlucw==",
   "system": "http://fhir.patientsknowbest.com/id/systmone-practitioner-guid"
  }
 ],
 "id": "34f5a9c9-6cad-44e1-946f-be198ebd718d",
 "resourceType": "Practitioner",
 "meta": {
  "lastUpdated": "2024-11-26T14:55:12.384627Z",
  "createdAt": "2024-11-26T14:55:12.384627Z",
  "versionId": "4736"
 }
}
```
</details>

<details>
<summary>Optum/EmisWeb - Practitioner</summary>

```
{
 "name": [
  {
   "given": [
    "PKB"
   ],
   "family": "Test",
   "prefix": [
    "Mr"
   ]
  }
 ],
 "active": true,
 "identifier": [
  {
   "value": "579eb193-a104-4105-b548-e45aa7e29fd4",
   "system": "http://fhir.patientsknowbest.com/id/emis-practitioner-guid"
  }
 ],
 "id": "bf780046-5540-4ff3-8493-9acc9496302a",
 "resourceType": "Practitioner",
 "meta": {
  "lastUpdated": "2024-11-28T14:22:38.694295Z",
  "createdAt": "2024-11-28T14:22:38.694295Z",
  "versionId": "4928"
 }
}
```
</details>

---

## Organisation

R4 FHIR Resource - [Organization](https://www.hl7.org/fhir/R4/organization.html)

Data Model - [Entity: Organisation](https://wiki.patientsknowbest.com/space/api/3752722465/Entity:+Organisation)

<details>
<summary>TPP/SystmOne - Organisation</summary>

```
{
 "address": [
  {
   "use": "work",
   "line": [
    "2 Trevelyan Square",
    "Leeds",
    "West Yorkshire"
   ],
   "postalCode": "LS1 6AE"
  }
 ],
 "meta": {
  "lastUpdated": "2024-11-26T14:55:12.264580Z",
  "createdAt": "2024-11-26T14:55:12.264580Z",
  "versionId": "4734"
 },
 "name": "HSCIC Test environment 71",
 "resourceType": "Organization",
 "extension": [
  {
   "url": "GeneralTelephone2",
   "valueContactPoint": {
    "use": "work",
    "value": "02222222222",
    "system": "phone"
   }
  },
  {
   "url": "AppointmentsTelephone",
   "valueContactPoint": {
    "use": "work",
    "value": "03333333333",
    "system": "phone"
   }
  },
  {
   "url": "PrescriptionTelephone",
   "valueContactPoint": {
    "use": "work",
    "value": "05555555555",
    "system": "phone"
   }
  },
  {
   "url": "EmergencyTelephone",
   "valueContactPoint": {
    "use": "work",
    "value": "04444444444",
    "system": "phone"
   }
  }
 ],
 "active": true,
 "id": "bbc83d8c-43fb-44e7-956e-1490d52a5cc7",
 "identifier": [
  {
   "value": "102HSCIC",
   "system": "https://fhir.nhs.uk/Id/ods-organization-code"
  }
 ],
 "telecom": [
  {
   "use": "work",
   "value": "01111111111",
   "system": "phone"
  }
 ]
}
```
</details>

<details>
<summary>Optum/EmisWeb - Organisation</summary>

```
{
 "address": [
  {
   "city": "WAKEFIELD",
   "line": [
    "UNIT 1",
    "PARAGON BUSINESS PARK",
    "RED HALL COURT"
   ],
   "country": "ENGLAND",
   "postalCode": "WF1 2UY"
  }
 ],
 "meta": {
  "profile": [
   "https://fhir.nhs.uk/STU3/StructureDefinition/ODSAPI-Organization-1"
  ],
  "lastUpdated": "2024-11-26T13:02:12.953664Z",
  "createdAt": "2024-11-26T13:02:12.953664Z",
  "versionId": "4473"
 },
 "name": "Emis Test Organisation 28826",
 "type": [
  {
   "coding": [
    {
     "code": "1",
     "system": "https://fhir.nhs.uk/STU3/CodeSystem/ODSAPI-OrganizationRecordClass-1",
     "display": "HSCOrg"
    }
   ]
  }
 ],
 "resourceType": "Organization",
 "extension": [
  {
   "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ODSAPI-ActivePeriod-1",
   "valuePeriod": {
    "start": "2021-05-28",
    "extension": [
     {
      "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ODSAPI-DateType-1",
      "valueString": "Operational"
     }
    ]
   }
  },
  {
   "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ODSAPI-OrganizationRole-1",
   "extension": [
    {
     "url": "role",
     "valueCoding": {
      "code": "157",
      "system": "https://directory.spineservices.nhs.uk/STU3/CodeSystem/ODSAPI-OrganizationRole-1",
      "display": "NON-NHS ORGANISATION"
     }
    },
    {
     "url": "primaryRole",
     "valueBoolean": true
    },
    {
     "url": "activePeriod",
     "valuePeriod": {
      "start": "2021-05-28",
      "extension": [
       {
        "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ODSAPI-DateType-1",
        "valueString": "Operational"
       }
      ]
     }
    },
    {
     "url": "status",
     "valueString": "Active"
    }
   ]
  }
 ],
 "active": true,
 "id": "A28826",
 "identifier": [
  {
   "value": "A28826",
   "system": "https://fhir.nhs.uk/Id/ods-organization-code"
  }
 ],
 "telecom": [
  {
   "value": "HTTPS://6B.DIGITAL",
   "system": "url"
  }
 ]
}
```
</details>

---

## Location

R4 FHIR Resource - [Location](https://www.hl7.org/fhir/R4/location.html)

Data Model -

<details>
<summary>TPP/SystmOne - Location</summary>

```
{
 "name": "Branch of HSCIC Test env 71",
 "address": {
  "use": "work",
  "line": [
   "Branch House",
   "Low Lane",
   "Horsforth",
   "Leeds",
   "West Yorkshire"
  ],
  "postalCode": "LS18 5PX"
 },
 "identifier": [
  {
   "value": "QnJhbmNoIG9mIEhTQ0lDIFRlc3QgZW52IDcx",
   "system": "http://fhir.patientsknowbest.com/id/systmone-location-guid"
  }
 ],
 "id": "0205d722-f42d-4a55-bec4-8524df773563",
 "resourceType": "Location",
 "meta": {
  "lastUpdated": "2025-05-14T09:59:53.799197Z",
  "createdAt": "2025-05-14T09:59:53.799197Z",
  "versionId": "7300"
 }
}
```
</details>

<details>
<summary>Optum/EmisWeb - Location</summary>

```
{
 "name": "Master Practice",
 "address": {
  "city": "3-Leeds",
  "line": [
   "1-Fulford Grange, Micklefield Lane",
   "1-2",
   "2-Rawdon"
  ],
  "postalCode": "LS19 6BA"
 },
 "identifier": [
  {
   "value": "4884",
   "system": "http://fhir.patientsknowbest.com/id/emis-location-guid"
  }
 ],
 "id": "513feb32-558c-4b79-9e1e-443bc73a63fc",
 "resourceType": "Location",
 "meta": {
  "lastUpdated": "2024-11-26T13:02:13.064045Z",
  "createdAt": "2024-11-26T13:02:13.064045Z",
  "versionId": "4475"
 }
}
```
</details>

---

## Encounter

R4 FHIR Resource - [Encounter](https://www.hl7.org/fhir/R4/encounter.html)

Data Model - [Entity: Encounter](https://wiki.patientsknowbest.com/space/api/3744497665/Entity:+Encounter)

<details>
<summary>TPP/SystmOne - Encounter</summary>

```
{
 "meta": {
  "lastUpdated": "2025-05-19T12:54:07.966611Z",
  "createdAt": "2025-05-19T12:54:07.966611Z",
  "versionId": "7600"
 },
 "participant": [
  {
   "individual": {
    "id": "34f5a9c9-6cad-44e1-946f-be198ebd718d",
    "display": "Sarah Staff",
    "resourceType": "Practitioner"
   }
  }
 ],
 "resourceType": "Encounter",
 "status": "unknown",
 "id": "8c29309c-fc9d-4f83-9639-83934da7832d",
 "class": {
  "code": "AMB",
  "display": "ambulatory"
 },
 "identifier": [
  {
   "value": "MjAyNTA1MTkxMzI1NTQ=",
   "system": "http://fhir.patientsknowbest.com/id/systmone-encounter-event-guid"
  }
 ],
 "period": {
  "start": "2025-05-19T13:25:54+01:00"
 },
 "location": [
  {
   "location": {
    "id": "df1c517f-2a2f-435e-82ee-7bfa22850c38",
    "display": "HSCIC Test environment 71",
    "resourceType": "Location"
   }
  }
 ],
 "subject": {
  "id": "77f14fe9-ab1b-4055-a628-49ee2e299f19",
  "resourceType": "Patient"
 }
}
```
</details>

<details>
<summary>Optum/EmisWeb - Encounter</summary>

```
{
 "meta": {
  "lastUpdated": "2025-02-13T09:41:09.922620Z",
  "createdAt": "2024-11-26T13:02:14.429826Z",
  "versionId": "5860"
 },
 "participant": [
  {
   "individual": {
    "id": "bf780046-5540-4ff3-8493-9acc9496302a",
    "display": "Mr PKB Test",
    "resourceType": "Practitioner"
   }
  }
 ],
 "resourceType": "Encounter",
 "status": "unknown",
 "id": "95d6044c-0b16-4c08-82e3-b45226ca681a",
 "class": {
  "code": "OBSENC"
 },
 "identifier": [
  {
   "value": "a609c0f6-f226-47a8-9688-2f5e461f272e",
   "system": "http://fhir.patientsknowbest.com/id/emis-encounter-event-guid"
  }
 ],
 "period": {
  "start": "2023-10-26T10:32:00+01:00"
 },
 "location": [
  {
   "location": {
    "id": "513feb32-558c-4b79-9e1e-443bc73a63fc",
    "display": "Master Practice",
    "resourceType": "Location"
   }
  }
 ],
 "subject": {
  "id": "e9ddc839-c65a-4c6f-9702-5e21367eec22",
  "resourceType": "Patient"
 }
}
```
</details>