---
title: "Creating Measurements"
canonical: "https://wiki.patientsknowbest.com/space/api/5006655510/Creating%20Measurements"
format: markdown
---
> Macro (toc)

# How

1. Assign the <u>[Observation resource](https://hl7.org/fhir/R4/observation.html)</u> a **[logical id](https://wiki.hub.patientsknowbest.com/wiki/spaces/api/pages/5003673621)****.**
2. Reference the logical ID of a previously created Patient resource in the **subject** field of the Observation.
3. [Status](https://hl7.org/fhir/R4/valueset-observation-status.html) must be included.
4. [Category](https://hl7.org/fhir/R4/valueset-observation-category.html) must be included.
5. [Code](https://hl7.org/fhir/R4/observation-definitions.html#Observation.code) to describe the measurement must be included.  SNOMED CT is preferred.
6. Include any other applicable information in the Observation, using coding when possible.
7. POST https://{client}<u>.fhir-api.sandbox.patientsknowbest.com/fhir/Observation</u>

> 📝 - Sending the SNOMED CT code is required for the measurement to appear in PKB’s UI.
> 📝 - Speak to a member of PKB to ensure the codes you want to send are mapped in PKB.

## Blood Pressure Example

```
{
  "resourceType": "Observation",
  "id" : "18a60e1f-8f54-490c-baa2-a300e30aaf28",
  "status": "final",
  "category": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/observation-category",
          "code": "vital-signs",
          "display": "Vital Signs"
        }
      ]
    }
  ],
  "code": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "75367002",
        "display": "Blood pressure"
      }
    ],
    "text": "Blood pressure"
  },
  "subject": {
    "reference": "Patient/f4bd895b-0dbf-49d2-8130-4cb52679972d"
  },
  "component": [
    {
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "163030003",
            "display": "Systolic blood pressure"
          }
        ],
        "text": "Systolic blood pressure"
      },
      "valueQuantity": {
        "value": 120,
        "unit": "mmHg",
        "system": "http://unitsofmeasure.org",
        "code": "mm[Hg]"
      }
    },
    {
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "163031004",
            "display": "Diastolic blood pressure"
          }
        ],
        "text": "Diastolic blood pressure"
      },
      "valueQuantity": {
        "value": 80,
        "unit": "mmHg",
        "system": "http://unitsofmeasure.org",
        "code": "mm[Hg]"
      }
    }
  ]
}
```