# Query Code Systems

This transaction allows a PoS, or any OHIE component, to access terminological information in the terminology service to query for Code Systems.  A typical example would be to request the set of Code Systems defined by HL7.

Both external systems and systems inside the HIE may perform this transaction directly with the TS. The sequence diagram below shows the steps that occur for a system using this transaction.  &#x20;

1. Query Code Systems: What Code Systems have a publisher name that contains 'HL7'?

| Workflow Maturity             | <p><img src="https://lh5.googleusercontent.com/Vp6XBRGu-U_Dmd5EKNpCZvEEum0CxOcHOj9NgHh8UMMNLMlXHmLcUE_YWueDRr4uqWLzpPfzSBLJ2k33XQIelLypjQ4wyrD17-t33GtLa8fFxW9AYDvXhiJmBl4VaLgKDg" alt=""></p><p>    <strong>Mature</strong></p> | <p></p><ul><li><strong>One or more OpenHIE implementations of this workflow exist  in one or more countries</strong></li><li><strong>Workflow is defined and ARB approved</strong></li><li><strong>Workflow is supported by mature standards</strong></li></ul>                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Standards                     |                                                                                                                                                                                                                                  | <p>The FHIR Code Systems and supported search parameters are defined in: <a href="https://www.hl7.org/fhir/valueset.html"><https://www.hl7.org/fhir/codesystem.html></a>. Searching in FHIR is described in <a href="https://www.hl7.org/fhir/search.html"><https://www.hl7.org/fhir/search.html></a>. HL7 FHIR Specifications v3.0 or higher support Code Systems. The response is a Bundle of CodeSystem Resources satisfying the search parameters.</p><p>This workflow implements the IHE IT Infrastructure Technical Framework Supplement - Sharing Valuesets, Codes, and Maps (SVCM) Transaction: Query Code System ITI-Y2.</p> |
| Assumptions and Prerequisites |                                                                                                                                                                                                                                  | The required Code Systems have been preloaded into the Terminology Service.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Actors                        |                                                                                                                                                                                                                                  | <p></p><ul><li>PoS - The point-of-service system  or other HIE component that is that is querying for Code Systems.   </li><li>TS - Stores the curated, official version of the Code Systems for the health system.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                         |

## Interaction Description&#x20;

The following is a description of the interaction steps.&#x20;

![](https://lh5.googleusercontent.com/vzHUYYmxsJZAdYAIakuwvSwmpi3I1LFC_hGCGOLbCHTMt8mUETcrhI5J49tEhzt73QN2SOpEDafDoNjVHS8vNw7VLhnLpthIsxCMWjLMmXqAgF7JPo5j5o26EmRQsHdfiQ)

| # | Interaction               | Data                                                                                                                                           | Transaction Options      |
| - | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| 1 | Query Code System request | <p>The Code System search request is triggered by a PoS or other HIE component.</p><p>Input: A set of FHIR search parameters.</p>              | FHIR CodeSystem Resource |
| 2 | Query Code System request | <p>The response is sent back to the requesting system. </p><p>Output: a Bundle of CodeSystem Resources that satisfy the search parameters.</p> | FHIR CodeSystem Resource |

##


---

# 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://guides.ohie.org/arch-spec/main-1/introduction/terminology-service-workflow/query-code-systems.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.
