@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/ai-agent-type> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ai-agent-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 ai-agent-type</b></p><a name=\"ai-agent-type\"> </a><a name=\"hcai-agent-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/ai-agent-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\">coding-agent<a name=\"ai-agent-type-coding-agent\"> </a></td><td>Coding agent</td><td>An agent that reads and edits the IG source in a working copy and runs the build tools itself, for example from a terminal or an IDE.</td></tr><tr><td style=\"white-space:nowrap\">chat-assistant<a name=\"ai-agent-type-chat-assistant\"> </a></td><td>Chat assistant</td><td>A conversational assistant that proposes content which a human copies into the IG source.</td></tr><tr><td style=\"white-space:nowrap\">ci-agent<a name=\"ai-agent-type-ci-agent\"> </a></td><td>CI agent</td><td>An agent that runs unattended in a build pipeline, for example to triage QA results or to open pull requests.</td></tr></table></div>"
  ] ;
  fhir:CodeSystem.url [ fhir:value "http://hl7.ch/fhir/ig/agentic-ig/CodeSystem/ai-agent-type"] ;
  fhir:CodeSystem.version [ fhir:value "0.1.0"] ;
  fhir:CodeSystem.name [ fhir:value "AIAgentTypeCS"] ;
  fhir:CodeSystem.title [ fhir:value "AI Agent 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 AI agent that can contribute to 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 "3"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "coding-agent" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Coding agent" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "An agent that reads and edits the IG source in a working copy and runs the build tools itself, for example from a terminal or an IDE." ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "chat-assistant" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Chat assistant" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "A conversational assistant that proposes content which a human copies into the IG source." ]
  ], [
     fhir:index 2 ;
     fhir:CodeSystem.concept.code [ fhir:value "ci-agent" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "CI agent" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "An agent that runs unattended in a build pipeline, for example to triage QA results or to open pull requests." ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.ch/fhir/ig/agentic-ig/CodeSystem/ai-agent-type.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

