@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.ch/fhir/ig/agentic-ig/CodeSystem/agent-tool-type> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "agent-tool-type"] ;
  fhir:Resource.meta [
     fhir:Meta.security [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ObservationValue" ] ;
       fhir:Coding.code [ fhir:value "AIAST" ]
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem agent-tool-type</b></p><a name=\"agent-tool-type\"> </a><a name=\"hcagent-tool-type\"> </a><div style=\"display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Security Label: <a href=\"http://terminology.hl7.org/7.5.0/CodeSystem-v3-ObservationValue.html\">Artificial Intelligence asserted (Details: ObservationValue code AIAST = 'Artificial Intelligence asserted')</a></p></div><p>This case-sensitive code system <code>http://hl7.ch/fhir/ig/agentic-ig/CodeSystem/agent-tool-type</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style=\"white-space:nowrap\">skill<a name=\"agent-tool-type-skill\"> </a></td><td>Skill</td><td>A folder with a SKILL.md file holding instructions, references and scripts that the agent loads when a task calls for it.</td></tr><tr><td style=\"white-space:nowrap\">plugin<a name=\"agent-tool-type-plugin\"> </a></td><td>Plugin</td><td>An installable bundle of skills, commands, subagents or MCP server configurations, distributed through a marketplace.</td></tr><tr><td style=\"white-space:nowrap\">mcp-server<a name=\"agent-tool-type-mcp-server\"> </a></td><td>MCP server</td><td>A Model Context Protocol server that offers the agent tools, for example validation or terminology lookup.</td></tr><tr><td style=\"white-space:nowrap\">subagent<a name=\"agent-tool-type-subagent\"> </a></td><td>Subagent</td><td>A separately configured agent that the main agent delegates a bounded task to.</td></tr><tr><td style=\"white-space:nowrap\">slash-command<a name=\"agent-tool-type-slash-command\"> </a></td><td>Slash command</td><td>A named prompt stored in the repository that a user invokes explicitly.</td></tr><tr><td style=\"white-space:nowrap\">instruction-file<a name=\"agent-tool-type-instruction-file\"> </a></td><td>Instruction file</td><td>A file such as AGENTS.md or CLAUDE.md that gives every agent session the project conventions.</td></tr><tr><td style=\"white-space:nowrap\">cli-tool<a name=\"agent-tool-type-cli-tool\"> </a></td><td>Command line tool</td><td>A conventional build or validation tool that the agent runs in a shell, such as SUSHI or the IG Publisher.</td></tr></table></div>"
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://hl7.ch/fhir/ig/agentic-ig/CodeSystem/agent-tool-type"] ;
  fhir:CodeSystem.version [ fhir:value "0.1.0"] ;
  fhir:CodeSystem.name [ fhir:value "AgentToolTypeCS"] ;
  fhir:CodeSystem.title [ fhir:value "Agent Tool Type"] ;
  fhir:CodeSystem.status [ fhir:value "draft"] ;
  fhir:CodeSystem.experimental [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-11-22T08:14:35+00:00"^^xsd:dateTime] ;
  fhir:CodeSystem.publisher [ fhir:value "HL7 Switzerland"] ;
  fhir:CodeSystem.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "HL7 Switzerland" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://www.hl7.ch/" ]
     ]
  ] ;
  fhir:CodeSystem.description [ fhir:value "Kinds of capability an AI agent can be given when it works on an implementation guide."] ;
  fhir:CodeSystem.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ;
       fhir:Coding.code [ fhir:value "001" ] ;
       fhir:Coding.display [ fhir:value "World" ]
     ]
  ] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "7"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "skill" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Skill" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A folder with a SKILL.md file holding instructions, references and scripts that the agent loads when a task calls for it." ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "plugin" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Plugin" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "An installable bundle of skills, commands, subagents or MCP server configurations, distributed through a marketplace." ]
  ], [
     fhir:index 2 ;
     fhir:CodeSystem.concept.code [ fhir:value "mcp-server" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "MCP server" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A Model Context Protocol server that offers the agent tools, for example validation or terminology lookup." ]
  ], [
     fhir:index 3 ;
     fhir:CodeSystem.concept.code [ fhir:value "subagent" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Subagent" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A separately configured agent that the main agent delegates a bounded task to." ]
  ], [
     fhir:index 4 ;
     fhir:CodeSystem.concept.code [ fhir:value "slash-command" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Slash command" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A named prompt stored in the repository that a user invokes explicitly." ]
  ], [
     fhir:index 5 ;
     fhir:CodeSystem.concept.code [ fhir:value "instruction-file" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Instruction file" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A file such as AGENTS.md or CLAUDE.md that gives every agent session the project conventions." ]
  ], [
     fhir:index 6 ;
     fhir:CodeSystem.concept.code [ fhir:value "cli-tool" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Command line tool" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A conventional build or validation tool that the agent runs in a shell, such as SUSHI or the IG Publisher." ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.ch/fhir/ig/agentic-ig/CodeSystem/agent-tool-type.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

