> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.emtelligent.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.emtelligent.com/_mcp/server.

# Metadata schema

Schema for structured entry metadata items as stored in the database.

## Root

Type: `object`.

| Property              | Type                                                     | Required | Description |
| --------------------- | -------------------------------------------------------- | -------- | ----------- |
| `label`               | [`label`](#label)                                        | yes      |             |
| `code_system`         | `null` or `string`                                       | yes      |             |
| `code_system_name`    | `null` or `string`                                       | yes      |             |
| `code_system_version` | `null` or `string`                                       | yes      |             |
| `code`                | `null` or `string`                                       | yes      |             |
| `display_name`        | `null` or `string`                                       | yes      |             |
| `text`                | `null` or `string`                                       | yes      |             |
| `text_spans`          | `null` or array of [`span`](#span)                       | yes      |             |
| `text_source`         | `null` or enum                                           | yes      |             |
| `text_id`             | `null` or [`xml_id`](#xml-id)                            | yes      |             |
| `class_code`          | `null` or `string`                                       | yes      |             |
| `mood_code`           | `null` or `string`                                       | yes      |             |
| `parent_reference`    | `null` or [`label`](#label)                              | yes      |             |
| `relation_type_code`  | `null` or `string`                                       | yes      |             |
| `effective_time`      | array of [`time_item`](#time-item)                       | yes      |             |
| `reference_range`     | array of [`reference_range_item`](#reference-range-item) | yes      |             |
| `status_code`         | `null` or [`status_code`](#status-code)                  | yes      |             |
| `value`               | `null` or [`metadata_item_value`](#metadata-item-value)  | yes      |             |
| `translation_of`      | `null` or [`label`](#label)                              | yes      |             |
| `section`             | `null` or [`label`](#label)                              | yes      |             |
| `for_elt_tag`         | [`xml_tag`](#xml-tag)                                    | yes      |             |
| `code_elt_tag`        | [`xml_tag`](#xml-tag)                                    | yes      |             |
| `template_id`         | array of [`id_value`](#id-value)                         | yes      |             |
| `id`                  | array of [`id_value`](#id-value)                         | yes      |             |
| `negation_ind`        | `null` or `boolean`                                      | yes      |             |

## id_value

| Property    | Type               | Required | Description |
| ----------- | ------------------ | -------- | ----------- |
| `root`      | `null` or `string` | yes      |             |
| `extension` | `null` or `string` | yes      |             |

## label

Type: `string`.

## measurement_item

| Property | Type               | Required | Description |
| -------- | ------------------ | -------- | ----------- |
| `value`  | `null` or `string` | yes      |             |
| `unit`   | `null` or `string` | yes      |             |

## metadata_item_value

| Property | Type               | Required | Description |
| -------- | ------------------ | -------- | ----------- |
| `type`   | `null` or `string` | yes      |             |
| `value`  | `null` or `string` | yes      |             |
| `unit`   | `null` or `string` | yes      |             |

## reference_range_item

| Property        | Type                                              | Required | Description |
| --------------- | ------------------------------------------------- | -------- | ----------- |
| `unit`          | `null` or `string`                                | yes      |             |
| `low`           | `null` or [`measurement_item`](#measurement-item) | yes      |             |
| `high`          | `null` or [`measurement_item`](#measurement-item) | yes      |             |
| `width`         | `null` or [`measurement_item`](#measurement-item) | yes      |             |
| `inner_elt_tag` | `null` or `string`                                | yes      |             |
| `type`          | `null` or `string`                                | yes      |             |
| `text`          | `null` or `string`                                | yes      |             |
| `value`         | `null` or `string`                                | yes      |             |

## span

| Property | Type      | Required | Description |
| -------- | --------- | -------- | ----------- |
| `start`  | `integer` | yes      |             |
| `end`    | `integer` | yes      |             |

## status_code

| Property      | Type               | Required | Description |
| ------------- | ------------------ | -------- | ----------- |
| `code`        | `null` or `string` | yes      |             |
| `null_flavor` | `null` or `string` | yes      |             |

## time_item

Extends [`measurement_item`](#measurement-item).

No additional properties.

## xml_id

Type: `string`.

## xml_tag

Type: `string`.