> For the complete documentation index, see [llms.txt](https://docs.b2ihealthcare.com/snow-owl-authoring-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.b2ihealthcare.com/snow-owl-authoring-platform/local-code-systems/authoring/adding-local-codes.md).

# Adding Local Codes

To add a code to your Local Code System, right-click on the desired Local Code System's name to reveal the **Context Menu**, and select  **`New child code...`** action.

![Adding a new Local Code](https://snowowl.atlassian.net/wiki/download/thumbnails/1199079575/image2020-12-15_13-36-58.png?version=1\&modificationDate=1608035819717\&cacheVersion=1\&api=v2\&width=272)

<figure><img src="/files/FQW0yqsw1SoCbCz06lVk" alt=""><figcaption><p>Creating new Local Code System Code</p></figcaption></figure>

Enter the code ID and the code term.&#x20;

{% hint style="info" %}
The code ID is optional, the system will generate a quasi-sequential integer ID if the ID field is omitted.&#x20;
{% endhint %}

{% hint style="success" %}
After finishing the wizard the new code is displayed in the **Local Code System View** and its editor opens automatically.&#x20;
{% endhint %}

If you want to specify other terms, click on the **`Add new description`** ![](https://snowowl.atlassian.net/wiki/download/attachments/611026132/descr-icon-02.png?version=1\&modificationDate=1578402206718\&cacheVersion=1\&api=v2) button and enter the information.&#x20;

{% hint style="info" %}
If the entry field is not visible, click on the triangle next to Descriptions to expand the section for descriptions.&#x20;
{% endhint %}

To delete an alternative term or if you unintentionally added an entry field click on the ![](/files/eA03aSEJ1RIk6TdtXlcK) button next to the entry field.

The user-defined additional properties are listed under the *Additional Properties* section. Mandatory properties are added by default, optional properties can be added by pressing the **`+`** button on the header. The **`+`** button reveals a **Context Menu** with all the properties defined for the Local Code System with the applicable properties enabled. Properties can be removed by pressing the ![](/files/9Oas5czWpk138aQDJFAP) button next to the property.  Property values are validated against the validation expression configured for the corresponding definition set on the Local Code System.

<figure><img src="/files/VakrVIEwOrrUHbXyIryg" alt=""><figcaption><p>Mandatory properties validation</p></figcaption></figure>

{% hint style="info" %}
To add a code of the same hierarchy level as your new code, right-click the root. To add a code of a lower hierarchy level, right-click on the parent and select the **`New child code...`** action from the **Context Menu***.*
{% endhint %}

Double-click the code in the **Local Code System View** to open its editor. Modify the information by overwriting the text fields, or adding or deleting additional terms, properties.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.b2ihealthcare.com/snow-owl-authoring-platform/local-code-systems/authoring/adding-local-codes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
