Ontology Manager
The Ontology Manager is where you create and maintain reusable rule snippets for complex clinical concepts, define custom LOINC codes, and adopt pre-built ontology rules and custom LOINC codes from the Ethicos library.
Accessing the Ontology Manager
From the Settings gear menu in the top navigation, select Ontology Manager.
The page has up to three tabs: Ontology Rules, Custom LOINC codes, and Library. The Library tab is only shown to tenant administrators on non-global tenants.
Ontology Rules tab
Viewing and searching rules
The Ontology Rules tab lists all rule snippets available in your tenant. Each row shows the rule Name, its Tags, and its Scope (Global rules are built-in platform rules; Tenant rules are ones your organization has created or adopted). A row shows up to three tags, followed by +N more when the rule has additional tags.
Type in Search ontology rules… to find rules by name or description. To narrow the list to a group of rules, choose one or more tags in Filter by tags. The list shows rules that have any of the selected tags. Search text and tag filters work together, and clearing both shows every rule again.
Adding a rule
Select Add Rule to open the rule editor dialog. Enter a name, add any Tags that group the rule with related rules, and define the rule using the rule builder. For a demographics gender condition, choose Male or Female from the value list rather than typing a code. If you set the operator to is one of or is not one of, the value list lets you pick more than one. Select Create Rule when done. The new rule appears in the list and is immediately available to reference in guidelines.
If the rule cannot be saved, the dialog stays open with a red message at the top explaining why, and your name, description, and rule builder work are preserved so you can correct the problem and try again.
Tagging rules
Tags group related rules so you can find them quickly as the list grows. In the rule editor, the Tags field suggests the tags already used on your organization’s rules; pick one, or type a new tag and press Enter. Tags are saved in lowercase, and extra spaces and repeated tags are removed.
When you copy a rule from a library, its tags come with it. When the library changes a rule’s tags, your copy shows Update Available, and adopting the update takes the library’s tags.
The rule builder tabs
The rule editor has three tabs:
- Builder — add and arrange rules visually.
- JSON — view and edit the rule definition in this tab.
- Describe — write a plain-language description (for example, a list of drugs or clinical criteria), then select Generate Rules. The generated rules appear in the Builder tab.
If the AI cannot produce any rules from your description, you see: The AI could not generate rules from this description. Try rephrasing or shortening it. Existing rules in the builder are left unchanged.
Editing a rule
Click any rule row (or select the pencil icon) to open the rule editor with that rule’s current definition loaded. Make your changes and select Update Rule. You can add or remove tags here too; removing a rule’s last tag leaves it untagged. As with adding a rule, a failed save leaves the dialog open with an explanation rather than discarding your edits.
Keeping a copied rule up to date
When a rule you copied from a shared library has a newer version, its row shows an Update Available chip and a Preview Update icon. Select Preview Update to compare the library’s current rule with your copy, then select Adopt to take the library’s version or Decline to keep yours. If the library item is no longer available, the panel says The library copy of this ontology rule is no longer available, Adopt and Decline are disabled, and the row shows a Source unavailable chip. See Libraries.
Exporting a rule to a library
If you are a tenant administrator and your organization can publish to at least one shared library, the rule editor shows an Export to library button for a rule you have already saved. Select it, choose the library, and select Export. The ontology rules nested inside it and the custom LOINC codes it uses are included in the export. Exporting again replaces the library copy and lets the organizations that copied it know an update is available. If the list of libraries cannot be loaded, you see the error and a Retry button, and the button appears only after that list has loaded and your organization can publish to a library.
Deleting a rule
Select the delete icon on any tenant-scoped rule. A confirmation dialog asks you to confirm before the rule is removed. Global rules cannot be deleted.
Building observation rules
When you add or edit a rule leaf and set Field Type to Observations, the rule builder shows how to pick the lab or vital sign you mean, how to choose which reading to compare, and the threshold itself.
Picking groups and codes together
The Observations panel has two areas:
- LOINC groups — official Regenstrief rollups for a clinical concept (for example, an LDL cholesterol group). Select Add group, search by name or group ID, and choose one or more groups. Each group chip shows the group name.
- Individual LOINC codes — specific observation codes that are not covered by your selected groups, or codes you want to include explicitly. Select Add code and search by code or test name. Custom organization codes (GEMA codes) appear in the same search; each custom result shows the code’s name as the primary line, with the GEMA code and description underneath.
You can use groups only, codes only, or both on the same rule. One Selection Rule, Max Age (days), Operator, and Value apply to every group and code you selected — you do not need separate rules for each variant of the same test.
Example: To require LDL cholesterol, add the official LDL group and add calculated LDL as an individual code if your members sometimes have that result under a code the group does not include. The patient satisfies the rule if they have a qualifying reading under any member of a selected group or under any explicit code you added.
Selection, age, and threshold
On the first row of the observation rule:
- Selection Rule — choose which reading to evaluate (for example Use latest value or Baseline value). Comparison options such as month-over-month change appear here when relevant.
- Max Age (days) — optional freshness limit. Leave blank to consider any observation on the chart.
On the second row, set Operator and Value (and Units when more than one unit is valid for the test). These apply to the combined set of groups and codes.
When Use latest value is selected, the system treats the most recent reading across all selected groups and codes as the value to compare — not the latest per code separately.
Mixed scale warning
If the tests you selected use incompatible result scales (for example ordinal vs numeric), a warning appears under the observation picker. You can still save the rule, but review that your threshold still makes clinical sense for every code in the set.
About official LOINC groups
LOINC groups are maintained by Regenstrief and marked as Beta reference rollups. Membership can change when LOINC releases a new version — a group you selected may gain or lose member codes over time without you editing the rule. If you need a fixed, frozen set of codes, add those codes individually under Individual LOINC codes and omit the group.
The same observation picker appears anywhere the shared rule builder is used (ontology rules, guideline initiation and continuation rules, interchange conversion rules, legacy therapy discontinuation rules, and GoldCard matching rules).
Building cardiovascular risk rules
When cardiovascular risk is enabled for your organization, set Field Type to Cardiovascular Risk (PREVENT) to base a rule on the patient’s calculated cardiovascular risk instead of a single lab or vital sign. Then choose:
- Risk Measure — one of ten calculated risks: total cardiovascular disease, ASCVD, heart failure, coronary heart disease, or stroke, each over 10 years or 30 years (for example, 10-year total cardiovascular disease risk).
- Operator — =, !=, >, >=, <, or <=.
- Risk (%) — the threshold as a percent. Enter 7.5 to mean 7.5%.
The rule summary reads like Patient’s 10-year total cardiovascular disease risk is greater than or equal to 7.5%.
When the guideline is evaluated, the system calculates the risk from the patient’s chart. It uses the most recent systolic blood pressure, total cholesterol, HDL cholesterol, kidney function (eGFR, or serum creatinine), BMI (or height and weight), smoking status, date of birth, and sex. It also needs to know whether the patient has diabetes, takes a statin, and takes a blood pressure medication. Each of these must be documented on the chart. An empty section is never treated as “No,” and optional lab results such as HbA1c are never requested.
If any required detail is missing, the evaluation asks for it through a data request, with one request for each missing item. For diabetes, statin use, and blood pressure medication use, the person completing the request confirms either that the patient has or takes it, or that the patient does not.
The risk calculation applies to patients aged 30 to 79. For a patient outside that range, the rule is not met and no data is requested. The same is true when a required value is already on the chart but outside the range the estimate can use, such as a blood pressure or BMI the calculation does not accept: the rule is not met, and that value is not requested again. The 30-year measures are also not met for patients older than 59, because the calculation does not produce a 30-year risk for them.
Custom LOINC codes tab
The Custom LOINC codes tab lists observation codes your organization has defined outside the standard LOINC catalog. Each entry shows an auto-assigned GEMA-NNN code (for example, GEMA-001), a name, description, scale type, and active status.
Adding a custom LOINC code
Select Add Custom LOINC Code to open the editor. Enter a name and description, choose a scale type (quantitative or ordinal), and configure the related fields (units for quantitative codes, or answer options for ordinal picklists). For a quantitative code you can also enter an optional Minimum value and Maximum value to record the valid range — for example, 0 and 16 for a score that runs from 0 to 16. The minimum cannot be greater than the maximum. Select Create when done. GEMA assigns the next available GEMA-NNN code automatically — you do not enter the code yourself.
Editing a custom LOINC code
Select the pencil icon on any row to open the editor with the existing values. The code is shown read-only. Update the other fields and select Update.
Keeping a copied custom LOINC code up to date
When a custom LOINC code you copied from a shared library has a newer version, its row shows an Update Available chip and a Preview Update icon. Select Preview Update to see the library’s current definition next to yours, with the fields that differ highlighted. Select Adopt Update to take the library’s definition, or Decline to keep yours.
If the library item is no longer available, the panel says The library copy of this custom LOINC code is no longer available, Adopt Update and Decline are disabled, and the row shows a Source unavailable chip. Your copy is not changed.
Exporting a custom LOINC code to a library
If you are a tenant administrator and your organization can publish to at least one shared library, the editor shows an Export to library button for a code you have already saved. Select it, choose the library, and select Export. Exporting again replaces the library copy and lets the organizations that copied it know an update is available. If the list of libraries cannot be loaded, you see the error and a Retry button, and the button appears only after that list has loaded and your organization can publish to a library.
Deactivating a custom LOINC code
Select the delete icon on a row. A confirmation dialog asks you to confirm before the custom LOINC code is deactivated.
Library tab
The Library tab lists content your tenant can adopt: Ontology Rules and Custom LOINC Codes. It shows Ethicos-provided content by default. This tab is only visible to tenant administrators on non-global tenants.
The page has two sections. Use the search field in each section to filter that list. The ontology rules list shows each rule’s Tags, which come with the rule when you adopt it.
If your organization belongs to a shared library that it can copy from, a Copy from menu appears at the top right of the tab. It lists each library you can copy from. When your organization is allowed to copy from the shared Ethicos catalog, it appears in the menu as Ethicos, and the tab opens on it. Choose a library to browse the ontology rules and custom LOINC codes it holds. Adopting works the same way for every source. Without a library to copy from, the menu does not appear. If the list of libraries cannot be loaded, the tab shows the error and a Retry button, and Copy from appears only after that list has loaded and your organization has a library it can copy from.
Adopting a rule from the library
In the Ontology Rules section, browse or search for the rule you need. Select the adopt icon on a rule row. Point at the icon and its name appears above it. A dialog confirms the rule name and asks you to confirm adoption. Select Adopt Rule to copy the rule into your tenant’s Ontology Rules tab. Once adopted, you can edit the rule to customize it for your organization’s needs.
If the rule has already been adopted, or your organization published it to this library, the dialog tells you and the adopt action is disabled. Publishing a rule does not add a second copy of it to your list.
Adopting a custom LOINC code from the library
In the Custom LOINC Codes section, browse or search for the code you need. Each row shows the GEMA-NNN code, name, scale type, and status. Select the adopt icon on a row. A dialog confirms the code name and shows the GEMA-NNN code that will be copied. Select Adopt Code to add it to your tenant’s Custom LOINC codes tab with the same GEMA-NNN identifier.
Once adopted, open the Custom LOINC codes tab to view or edit the copy (name, description, scale type, units and minimum/maximum values or answer list, and active status). The code itself stays fixed.
If the code has already been adopted, or your organization published it to this library, the dialog tells you and the adopt action is disabled. Publishing a code does not add a second copy of it to your list.
When you adopt a guideline from the Guideline Manager Library, any ontology rules that guideline references are also added to your Ontology Rules list automatically. Rules your tenant already has are reused, not duplicated. See Configuring Guidelines for library adoption and Adopt Update.
Using ontology rules in guidelines
Reference an ontology rule from a guideline’s rule builder when you want to reuse a named clinical concept (a bundled set of diagnoses, drugs, procedures, or other criteria) across multiple guidelines.
Wherever that guideline is shown to staff or prescribers, the ontology rule’s name is displayed alongside the expanded criteria:
- Guideline detail page — the Rules section summary names the ontology rule (for example, Patient matches ontology rule: Type 2 Diabetes).
- PA Determination Review — the clinical criteria tree shows the ontology rule as its own row that names the rule and states whether the patient must match or must not match it (for example The patient must not match ontology rule Diagnosis, Pancreatitis). The row’s status is the result for the whole ontology rule; the expanded diagnosis, drug, or procedure checks are listed beneath it as supporting detail. Very long flat diagnosis lists start collapsed with Show N diagnoses, and a group or ontology with six or more requirements starts collapsed with Show N requirements under its row, so the tree stays readable; expand to see every line.
- Evaluation Audit on the patient chart — the criteria tree shows the same ontology row, with its checks beneath it. Long diagnosis and requirement lists start collapsed with Show N diagnoses and Show N requirements, like Determination Review.
- Determination and data-request letters — letters and PDFs state the ontology rule by name and whether the patient must match or must not match it, with its result, and list the underlying codes beneath.
Give each ontology rule a clear, descriptive name in the Ontology Manager — that name is what readers see in these surfaces.
On a standard guideline detail page, you may also see a separate Matching Rules summary. Those rules restrict by route of administration, dosage form, or both — for example oral tablet only, or every form except injectable. They are an applicability gate rather than a reusable clinical ontology rule, so you manage them in the guideline’s own configuration, not in the Ontology Manager. Prescriber Taxonomy is not a matching rule: add it under Initiation Rules or Continuation Rules in guideline configuration when you need specialty restrictions. Leaving matching rules empty means no route or form gate. When a patient’s medication or claim does not satisfy matching rules, the guideline is skipped without a data request. Each matching-rule group must contain a rule, and a not group must contain exactly one rule before you can save.