Validate a Code Against an HL7 Value Set (FHIR Terminology Server)
fhirtx/validate-code
Checks whether a code belongs to a value set on the HL7 terminology server. Returns a FHIR Parameters resource with result true or false, the display name when the code is valid and a message explaining why when it is not (an invalid code is a normal answer, not an error). The value set url must be an HL7 value set (http://hl7.org/fhir/ValueSet/..., http://terminology.hl7.org/ValueSet/... or a LOINC value set) and the system must be LOINC, UCUM or an HL7-published code system. Typical size is under 2 KB. HL7 FHIR terminology server data served by Eden Engine; not an official HL7 product.
Price
$0.0026 per call
You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $0.50.
Data source
HL7 FHIR Terminology Server (tx.fhir.org)
Source: HL7 FHIR Terminology Server (tx.fhir.org). Contains content from LOINC (http://loinc.org); LOINC is copyright Regenstrief Institute, Inc. and the LOINC Committee and is available under the license at http://loinc.org/license. Served by Eden Engine; not an official HL7 product.
Use it
Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.
Connect once and your AI can find and run this tool, and any other it needs.
// 1. search: find the tool
omnial_search({ query: "what you need" })
// 2. inspect: price and input schema
omnial_inspect({ tool: "fhirtx/validate-code" })
// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "fhirtx/validate-code" })
// 4. run: price the exact call first, then run it
omnial_execute({ tool: "fhirtx/validate-code", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "fhirtx/validate-code", input: { /* ... */ } })
// 5. settle: the call is charged when it finishes, nothing to doNot connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.
Pricing
Every charge this tool can incur.
| Charge | Price |
|---|---|
Per call | $0.0026 |
- Updated
- Oct 21, 2026
Input and output schemas
Input schema
{
"type": "object",
"required": [
"url",
"system",
"code"
],
"properties": {
"url": {
"type": "string",
"pattern": "^(http://(hl7\\.org/fhir|terminology\\.hl7\\.org)/ValueSet/[A-Za-z0-9._-]{1,100}|http://loinc\\.org/vs/[A-Za-z0-9._-]{1,40})$",
"description": "Canonical URL of the value set, for example http://hl7.org/fhir/ValueSet/administrative-gender."
},
"code": {
"type": "string",
"pattern": "^[^\\s][\\x20-\\x7e]*$",
"maxLength": 100,
"minLength": 1,
"description": "The code to look up, for example 4548-4 or male."
},
"system": {
"type": "string",
"pattern": "^(http://loinc\\.org|http://unitsofmeasure\\.org|http://hl7\\.org/fhir/(?!sid/)[A-Za-z0-9._/-]{1,100}|http://terminology\\.hl7\\.org/CodeSystem/[A-Za-z0-9._-]{1,100})$",
"description": "Code system URI. Offered: LOINC (http://loinc.org), UCUM units (http://unitsofmeasure.org), and HL7-published systems (http://hl7.org/fhir/... excluding /sid/, and http://terminology.hl7.org/CodeSystem/...). Other systems are refused."
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"required": [
"resourceType",
"parameter"
],
"properties": {
"parameter": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"additionalProperties": true
}
},
"resourceType": {
"type": "string"
}
},
"description": "A FHIR Parameters resource: a list of named values (result, display, system, code, message, issues, ...).",
"additionalProperties": true
}