# Domain

The tree on the top left quadrant of the editor represents all the domains for which an MRCM rule is defined. The child nodes of a domain node represent domain definitions that are subsets of their parent domain node.  The domain nodes correspond to the referenced component of the in-scope MRCM domain reference set. The referenced component is usually a concept at the top of a hierarchy or a reference set.

<figure><img src="/files/5tLWUMalZN1X2vCrwSsp" alt=""><figcaption><p>MRCM Domains</p></figcaption></figure>

{% hint style="info" %}
Selecting a node displays its details on the right side of the editor in the Domains tab. It also displays allowed attribute types within this domain under the Attributes section in the bottom left quadrant of the editor.
{% endhint %}

<figure><img src="/files/ArpsZG9VdNHzSyDBSVCh" alt=""><figcaption><p>MRCM Domain details</p></figcaption></figure>

You can add a new domain member by using the ![](/files/zi4dPtFbU8yBlRLHZ1mM) *Add new domain member* button in the top right corner of the Domains section. It will open the wizard below. The first field will let you choose the referenced concept of the domain Member. The second field will let you specify an ECL expression to define this domain. The third field allows you to select the parent domain.&#x20;

<figure><img src="/files/xzGiILH2ZqOup9qqCXQO" alt=""><figcaption><p>Add new domain member wizard</p></figcaption></figure>

{% hint style="info" %}
Once a domain concept is chosen the wizard will autofill the domain constraint and the nearest parent domain assuming a hierarchical domain definition as in the example below. If this isn't the intended definition or domain parent these fields can be overridden with the correct values. The parent domain can also be left blank if this domain isn't the subset of another domain.
{% endhint %}

<figure><img src="/files/zpp65UBJz6v4vBYzuUH3" alt=""><figcaption><p>Autofilled domain constraint and parent domain</p></figcaption></figure>

{% hint style="info" %}
If the new domain is a subset of an existing domain definition you can also add it by right-clicking its existing parent domain and choosing ![](/files/hTLfEE9NzKnKbntFesSg) *Add new domain member*. In this case, the parent domain will be automatically filled and non-editable on open and the domain concept will be restricted to concepts within the parent domain.
{% endhint %}

Deleting a member is also accessible from the same context menu through the ![](/files/zKaulXGkMzcYkmLPZ8PW)*Delete domain member* action. Released members will be inactivated, unpublished members will be removed by this action.

<figure><img src="/files/TllX0AuHvRQ8BvmVBoLN" alt=""><figcaption><p>Remove domain member action</p></figcaption></figure>

{% hint style="info" %}
You can only remove/inactivate members if they are in your extension's module.
{% endhint %}

{% hint style="info" %}
If you choose to remove a domain member that already has associated MRCM attribute members then those attribute members (and their associated attribute range members) will be removed too (as long as they are in your extension's module).
{% endhint %}

The attributes of a domain member in your extension can also be modified on the details page on the right under the domain tab.&#x20;

<figure><img src="/files/dcjW7gwecauteNfd70As" alt=""><figcaption><p>Domain details</p></figcaption></figure>

ECL-valued fields can be edited by clicking on the ![](/files/rpvTRNQvv6FIZsbTfDpj) *Edit* button - which will open an ECL editor -, while other fields can be edited in place.


---

# Agent Instructions: 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:

```
GET https://docs.b2ihealthcare.com/snow-owl-authoring-platform/concept-model/editing-mrcm/domains.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
