# Verify Code Membership

This transaction allows a PoS, or any OHIE component, to access terminological information in the terminology service to verify that a code is a member of defined value set. A typical example would be to validate that the codes contained in an incoming patient data message are, in fact, from a required value set, e.g. the HIV ValueSet.

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.

1. Membership: Is a Concept Code present in a specified Value Set, e.g., is Code '123XYZ' from ICD-10 a member of the HIV ValueSet?

| Workflow Maturity             | <p><img src="https://lh5.googleusercontent.com/Vp6XBRGu-U_Dmd5EKNpCZvEEum0CxOcHOj9NgHh8UMMNLMlXHmLcUE_YWueDRr4uqWLzpPfzSBLJ2k33XQIelLypjQ4wyrD17-t33GtLa8fFxW9AYDvXhiJmBl4VaLgKDg" alt=""></p><p> <strong>Mature</strong></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 ValueSet validate-code operation: <a href="http://build.fhir.org/codesystem-operation-validate-code.html"><http://build.fhir.org/valueset-operation-validate-code.html></a>. HL7 FHIR Specifications v3.0 or higher support validate-code. The response is a Boolean (true or false) based on whether the code is a member of the specified ValueSet.</p><p>This workflow implements the IHE IT Infrastructure Technical Framework Supplement - Sharing Valuesets, Codes, and Maps (SVCM) Transaction: Validate Code ITI-Y5 for Value Sets.</p> |
| Assumptions and Prerequisites |                                                                                                                                                                                                                               | The required ValueSets and associated CodeSystems have been preloaded into the Terminology Service.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Actors                        |                                                                                                                                                                                                                               | <ul><li>PoS - The point-of-service system or other HIE component that is requesting to verify a code.</li><li>TS - Stores the curated, official version of the Value Set for the health system.</li></ul>                                                                                                                                                                                                                                                                                                                                                   |

## Interaction Description

The following is a description of the interaction steps.

![](https://lh4.googleusercontent.com/4-iRcNlezqHnwXPGLWPfKodFiGmHUDdrk-5nUahxqNQBoKrmiw64-qTyh5sgf9XU-1LsUmSQyJxQ-LZQnxBdz3Sxre8KpN1JBnHlH8qKmjINiCVawyB9FLEU19iYdA-rEQ)

| # | Interaction                | Data                                                                                                                                                    | Transaction Options                              |
| - | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| 1 | Code verification request  | <p>The validate-code request is triggered by a PoS or other HIE component.</p><p>Input: A Concept Code, associated Code System and target ValueSet.</p> | FHIR ValueSet Resource, $validate-code operation |
| 2 | Code verification response | <p>The response is sent back to the requesting system.</p><p>Output: a True or False response.</p>                                                      | FHIR ValueSet Resource, $validate-code operation |


---

# 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/dev-1/introduction/terminology-service-workflow/verify-code-membership.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.
