# Test Codes

### What are test codes?

Test codes are unique identifiers for medical tests that help clinicians and lab staff quickly manage tests, reducing errors and improving patient care efficiency.

**How they work:** Test codes connect lab results to specific tests, enabling proper filtering and routing of critical results throughout Rooster.

## Creating new Test Codes

1. Navigate to '**Clinical**' and click on '**Test Code Config**' from the dropdown list

<figure><img src="/files/szfvshSMAPwCdyZ9AThF" alt="" width="546"><figcaption></figcaption></figure>

2. Click '**+ Create New Test Code'**
3. Fill in required fields:
   * **Lab:** Select from dropdown (Biochemistry, Haematology, etc.)
   * **Name:** Descriptive test name (e.g., "Absolute Neutrophil Count")
   * **Code:** Unique identifier (e.g., "NEU")
4. Click '**Create'**

<figure><img src="/files/zzYC7NEdFK2sHBiuGBJT" alt=""><figcaption></figcaption></figure>

**System prevents duplicates:** Each test code (both active and inactive) must be unique across the system.

## Editing Test Codes

{% hint style="info" %}

#### Understanding field editing restrictions

**✅ Can Edit:**

* **Name:** Test Name can be updated anytime

**❌ Cannot Edit:**

* **Code:** Fixed identifier from lab system
* **Lab:** Fixed categorisation from lab system

**Why the restriction:** Code and Lab fields are tied to actual lab system data and cannot be changed to maintain data integrity.
{% endhint %}

### How to edit Test Code name

1. **Search** for the test code using the search bar
2. **Click** on the three dots for the test code to open edit dialog
3. **Update** the Name field as needed
4. **Click** "Update" to save changes
5. **Disable** any test codes by clicking on three dots for the test code&#x20;

**Note for disabling your test code**:&#x20;

* You can’t disable a test code if it’s used in a result filter. Remove the test code from the relevant filter or disable the result filter first.
* You can **Enable** the test code again anytime by clicking on the three dots.&#x20;

  <figure><img src="/files/0iNyyLA3sFWcAD9XiOQj" alt=""><figcaption></figcaption></figure>

  * Note: If both your Result Filters and Test Codes have been **disabled**, navigate to Result Filters and click on ‘Enable Result Filter’. This will automatically enable both the filter and the associated test codes.&#x20;

## Searching and Filtering - Finding specific test codes

**Search options:**

* **By name:** Search for test description
* **By code:** Search for test identifier

**Lab filter:** Filter by lab type to narrow down results (Biochemistry, Haematology, etc.)


---

# 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://guide.rooster.gov.sg/features/test-codes.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.
