---
title: "Create an observation"
method: POST
path: "/healthcare/{connection_id}/observation"
tags: ["healthcare", "observation"]
---

# Create an observation

`POST /healthcare/{connection_id}/observation`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/healthcare/{connection_id}/observation`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- HealthcareObservation
  - `id` string: Unique identifier for the observation
  - `created_at` string, date-time: When the observation record was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: When the observation record was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `patient_id` string: The patient the observation is about
  - `encounter_id` string: The encounter in which the observation was made
  - `practitioner_id` string: The practitioner who performed the observation
  - `name` string: Human-readable name of what was observed
  - `codes` HealthcareCode[]: Codings for what was observed (e.g. LOINC)
    - `system` string: The code system URI (e.g. http://loinc.org, http://snomed.info/sct)
    - `code` string: The code within the system
    - `display` string: Human-readable display text for the code
  - `status` 'REGISTERED' | 'PRELIMINARY' | 'FINAL' | 'AMENDED' | 'CORRECTED' | 'CANCELLED' | 'ENTERED_IN_ERROR' | 'UNKNOWN' | 'OTHER': Status of the observation result
  - `type` 'LABORATORY' | 'VITAL_SIGNS' | 'SOCIAL_HISTORY' | 'IMAGING' | 'SURVEY' | 'EXAM' | 'PROCEDURE' | 'THERAPY' | 'ACTIVITY' | 'OTHER': Category of the observation
  - `value_number` number: Numeric result value
  - `value_unit` string: Unit of the numeric result (e.g. mg/dL)
  - `value_text` string: Text or coded result value
  - `interpretation` 'NORMAL' | 'ABNORMAL' | 'LOW' | 'HIGH' | 'CRITICAL_LOW' | 'CRITICAL_HIGH' | 'OTHER': Interpretation of the result (e.g. high, low)
  - `reference_range` HealthcareObservationReferenceRange: Normal range for the result
    - `low_value` number: Lower bound of the range
    - `high_value` number: Upper bound of the range
    - `unit` string: Unit of the range bounds
    - `text` string: Text description of the range
  - `components` HealthcareObservationComponent[]: Component results (e.g. systolic and diastolic blood pressure)
    - `name` string: Human-readable name of the component
    - `codes` HealthcareCode[]: Codings for the component (e.g. LOINC)
      - `system` string: The code system URI (e.g. http://loinc.org, http://snomed.info/sct)
      - `code` string: The code within the system
      - `display` string: Human-readable display text for the code
    - `value_number` number: Numeric component value
    - `value_unit` string: Unit of the numeric component value
    - `value_text` string: Text or coded component value
    - `interpretation` 'NORMAL' | 'ABNORMAL' | 'LOW' | 'HIGH' | 'CRITICAL_LOW' | 'CRITICAL_HIGH' | 'OTHER': Interpretation of the component value
  - `observed_at` string, date-time: When the observation was made (effective time) (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `issued_at` string, date-time: When the result was released (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `notes` string: Free-text notes about the observation
  - `metadata` HealthcareMetadata[]: Custom field values
    - `id` string: Identifier of the custom field
    - `value` unknown
    - `namespace` string: The scope or origin of the custom field
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the value
    - `extra_data` unknown
    - `slug` string: The custom field key
  - `raw` unknown

## Response `200`

Successful

- HealthcareObservation
  - `id` string: Unique identifier for the observation
  - `created_at` string, date-time: When the observation record was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: When the observation record was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `patient_id` string: The patient the observation is about
  - `encounter_id` string: The encounter in which the observation was made
  - `practitioner_id` string: The practitioner who performed the observation
  - `name` string: Human-readable name of what was observed
  - `codes` HealthcareCode[]: Codings for what was observed (e.g. LOINC)
    - `system` string: The code system URI (e.g. http://loinc.org, http://snomed.info/sct)
    - `code` string: The code within the system
    - `display` string: Human-readable display text for the code
  - `status` 'REGISTERED' | 'PRELIMINARY' | 'FINAL' | 'AMENDED' | 'CORRECTED' | 'CANCELLED' | 'ENTERED_IN_ERROR' | 'UNKNOWN' | 'OTHER': Status of the observation result
  - `type` 'LABORATORY' | 'VITAL_SIGNS' | 'SOCIAL_HISTORY' | 'IMAGING' | 'SURVEY' | 'EXAM' | 'PROCEDURE' | 'THERAPY' | 'ACTIVITY' | 'OTHER': Category of the observation
  - `value_number` number: Numeric result value
  - `value_unit` string: Unit of the numeric result (e.g. mg/dL)
  - `value_text` string: Text or coded result value
  - `interpretation` 'NORMAL' | 'ABNORMAL' | 'LOW' | 'HIGH' | 'CRITICAL_LOW' | 'CRITICAL_HIGH' | 'OTHER': Interpretation of the result (e.g. high, low)
  - `reference_range` HealthcareObservationReferenceRange: Normal range for the result
    - `low_value` number: Lower bound of the range
    - `high_value` number: Upper bound of the range
    - `unit` string: Unit of the range bounds
    - `text` string: Text description of the range
  - `components` HealthcareObservationComponent[]: Component results (e.g. systolic and diastolic blood pressure)
    - `name` string: Human-readable name of the component
    - `codes` HealthcareCode[]: Codings for the component (e.g. LOINC)
      - `system` string: The code system URI (e.g. http://loinc.org, http://snomed.info/sct)
      - `code` string: The code within the system
      - `display` string: Human-readable display text for the code
    - `value_number` number: Numeric component value
    - `value_unit` string: Unit of the numeric component value
    - `value_text` string: Text or coded component value
    - `interpretation` 'NORMAL' | 'ABNORMAL' | 'LOW' | 'HIGH' | 'CRITICAL_LOW' | 'CRITICAL_HIGH' | 'OTHER': Interpretation of the component value
  - `observed_at` string, date-time: When the observation was made (effective time) (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `issued_at` string, date-time: When the result was released (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `notes` string: Free-text notes about the observation
  - `metadata` HealthcareMetadata[]: Custom field values
    - `id` string: Identifier of the custom field
    - `value` unknown
    - `namespace` string: The scope or origin of the custom field
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the value
    - `extra_data` unknown
    - `slug` string: The custom field key
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
