@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 -------------------------------------------------------------------

<https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreActivityCodes> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "CoreActivityCodes"] ;
  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 CoreActivityCodes</b></p><a name=\"CoreActivityCodes\"> </a><a name=\"hcCoreActivityCodes\"> </a><p>This case-sensitive code system <code>https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreActivityCodes</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\">XA000<a name=\"CoreActivityCodes-XA000\"> </a></td><td>View reference data</td><td>Allows the user to view shared reference data such as organisation details</td></tr><tr><td style=\"white-space:nowrap\">XA001<a name=\"CoreActivityCodes-XA001\"> </a></td><td>Request role</td><td>Allows the user to request any role</td></tr><tr><td style=\"white-space:nowrap\">XA002<a name=\"CoreActivityCodes-XA002\"> </a></td><td>Leave role</td><td>Allows the user to leave any role</td></tr><tr><td style=\"white-space:nowrap\">XA010<a name=\"CoreActivityCodes-XA010\"> </a></td><td>View metadata</td><td>Allows the user to view metadata such as services, roles, data-sharing agreements and endpoints</td></tr><tr><td style=\"white-space:nowrap\">XA014<a name=\"CoreActivityCodes-XA014\"> </a></td><td>View Questionnaires</td><td>Allows the user to view questionnaires within own service</td></tr><tr><td style=\"white-space:nowrap\">XA015<a name=\"CoreActivityCodes-XA015\"> </a></td><td>Perform Questionnaires</td><td>Allows the user to create and delete questionnaires within own service</td></tr><tr><td style=\"white-space:nowrap\">XA016<a name=\"CoreActivityCodes-XA016\"> </a></td><td>Amend Questionnaires</td><td>Allows the user to amend questionnaires within own service</td></tr><tr><td style=\"white-space:nowrap\">XA017<a name=\"CoreActivityCodes-XA017\"> </a></td><td>Review Questionnaires</td><td>Allows the user to review questionnaires within own service, updating workflow status and recording feedback</td></tr><tr><td style=\"white-space:nowrap\">XA100<a name=\"CoreActivityCodes-XA100\"> </a></td><td>View user configuration</td><td>Allows the user to view user configuration within own service</td></tr><tr><td style=\"white-space:nowrap\">XA101<a name=\"CoreActivityCodes-XA101\"> </a></td><td>Perform user configuration</td><td>Allows the user to update or delete user configuration within own service</td></tr><tr><td style=\"white-space:nowrap\">XA102<a name=\"CoreActivityCodes-XA102\"> </a></td><td>Enable user administrator</td><td>Allows the user to enable User Administrator access role within own service</td></tr><tr><td style=\"white-space:nowrap\">XA103<a name=\"CoreActivityCodes-XA103\"> </a></td><td>Enable service manager</td><td>Allows the user to enable Service Manager access role within own service</td></tr><tr><td style=\"white-space:nowrap\">XA110<a name=\"CoreActivityCodes-XA110\"> </a></td><td>View user configuration [any service]</td><td>Allows the user to view user configuration within any service</td></tr><tr><td style=\"white-space:nowrap\">XA111<a name=\"CoreActivityCodes-XA111\"> </a></td><td>Perform user configuration [any service]</td><td>Allows the user to update user configuration for any service. Not allowed to enable User Manager or Service Manager roles.</td></tr><tr><td style=\"white-space:nowrap\">XA112<a name=\"CoreActivityCodes-XA112\"> </a></td><td>Enable user administrator [any service]</td><td>Allows the user to enable User Administrator access role for any service</td></tr><tr><td style=\"white-space:nowrap\">XA113<a name=\"CoreActivityCodes-XA113\"> </a></td><td>Enable service manager [any service]</td><td>Allows the user to enable service manager role for any service</td></tr><tr><td style=\"white-space:nowrap\">XA114<a name=\"CoreActivityCodes-XA114\"> </a></td><td>View Questionnaires [any service]</td><td>Allows the user to view questionnaires for any service</td></tr><tr><td style=\"white-space:nowrap\">XA115<a name=\"CoreActivityCodes-XA115\"> </a></td><td>Perform Questionnaires [any service]</td><td>Allows the user to create and delete questionnaires for any service</td></tr><tr><td style=\"white-space:nowrap\">XA116<a name=\"CoreActivityCodes-XA116\"> </a></td><td>Amend Questionnaires [any service]</td><td>Allows the user to amend questionnaires for any service</td></tr><tr><td style=\"white-space:nowrap\">XA200<a name=\"CoreActivityCodes-XA200\"> </a></td><td>View service configuration</td><td>Allows the user to view configuration of own service</td></tr><tr><td style=\"white-space:nowrap\">XA202<a name=\"CoreActivityCodes-XA202\"> </a></td><td>Update service configuration</td><td>Allows the user to update configuration of own service</td></tr><tr><td style=\"white-space:nowrap\">XA211<a name=\"CoreActivityCodes-XA211\"> </a></td><td>View service configuration [any service]</td><td>Allows the user to view configuration of any service</td></tr><tr><td style=\"white-space:nowrap\">XA212<a name=\"CoreActivityCodes-XA212\"> </a></td><td>Create service</td><td>Allows the user to create a service</td></tr><tr><td style=\"white-space:nowrap\">XA213<a name=\"CoreActivityCodes-XA213\"> </a></td><td>Update service configuration [any service]</td><td>Allows the user to update configuration of any service</td></tr><tr><td style=\"white-space:nowrap\">XA214<a name=\"CoreActivityCodes-XA214\"> </a></td><td>Delete service</td><td>Allows the user to delete a service</td></tr></table></div>"
  ] ;
  fhir:CodeSystem.url [ fhir:value "https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreActivityCodes"] ;
  fhir:CodeSystem.version [ fhir:value "0.1.0"] ;
  fhir:CodeSystem.name [ fhir:value "CoreActivityCodes"] ;
  fhir:CodeSystem.title [ fhir:value "Core Activity Codes"] ;
  fhir:CodeSystem.status [ fhir:value "active"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-11-13T16:51:07+00:00"^^xsd:dateTime] ;
  fhir:CodeSystem.description [ fhir:value "Codes describing activities performed in Core systems, where no appropriate activity exists in NHS RBAC"] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "25"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA000" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "View reference data" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to view shared reference data such as organisation details" ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA001" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Request role" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to request any role" ]
  ], [
     fhir:index 2 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA002" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Leave role" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to leave any role" ]
  ], [
     fhir:index 3 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA010" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "View metadata" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to view metadata such as services, roles, data-sharing agreements and endpoints" ]
  ], [
     fhir:index 4 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA014" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "View Questionnaires" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to view questionnaires within own service" ]
  ], [
     fhir:index 5 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA015" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Perform Questionnaires" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to create and delete questionnaires within own service" ]
  ], [
     fhir:index 6 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA016" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Amend Questionnaires" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to amend questionnaires within own service" ]
  ], [
     fhir:index 7 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA017" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Review Questionnaires" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to review questionnaires within own service, updating workflow status and recording feedback" ]
  ], [
     fhir:index 8 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA100" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "View user configuration" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to view user configuration within own service" ]
  ], [
     fhir:index 9 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA101" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Perform user configuration" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to update or delete user configuration within own service" ]
  ], [
     fhir:index 10 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA102" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Enable user administrator" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to enable User Administrator access role within own service" ]
  ], [
     fhir:index 11 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA103" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Enable service manager" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to enable Service Manager access role within own service" ]
  ], [
     fhir:index 12 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA110" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "View user configuration [any service]" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to view user configuration within any service" ]
  ], [
     fhir:index 13 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA111" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Perform user configuration [any service]" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to update user configuration for any service. Not allowed to enable User Manager or Service Manager roles." ]
  ], [
     fhir:index 14 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA112" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Enable user administrator [any service]" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to enable User Administrator access role for any service" ]
  ], [
     fhir:index 15 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA113" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Enable service manager [any service]" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to enable service manager role for any service" ]
  ], [
     fhir:index 16 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA114" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "View Questionnaires [any service]" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to view questionnaires for any service" ]
  ], [
     fhir:index 17 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA115" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Perform Questionnaires [any service]" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to create and delete questionnaires for any service" ]
  ], [
     fhir:index 18 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA116" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Amend Questionnaires [any service]" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to amend questionnaires for any service" ]
  ], [
     fhir:index 19 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA200" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "View service configuration" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to view configuration of own service" ]
  ], [
     fhir:index 20 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA202" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Update service configuration" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to update configuration of own service" ]
  ], [
     fhir:index 21 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA211" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "View service configuration [any service]" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to view configuration of any service" ]
  ], [
     fhir:index 22 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA212" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Create service" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to create a service" ]
  ], [
     fhir:index 23 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA213" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Update service configuration [any service]" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to update configuration of any service" ]
  ], [
     fhir:index 24 ;
     fhir:CodeSystem.concept.code [ fhir:value "XA214" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Delete service" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "Allows the user to delete a service" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreActivityCodes.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

