@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/ConceptMap/ExampleRBACMatrix> a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleRBACMatrix"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://www.core.blackpear.com/ig/metadata/StructureDefinition/CoreRBACMatrix" ;
       fhir:index 0 ;
       fhir:link <https://www.core.blackpear.com/ig/metadata/StructureDefinition/CoreRBACMatrix>
     ]
  ] ;
  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: ConceptMap ExampleRBACMatrix</b></p><a name=\"ExampleRBACMatrix\"> </a><a name=\"hcExampleRBACMatrix\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-CoreRBACMatrix.html\">CoreRBACMatrix</a></p></div><p>This mapping does not specify any particular context of use.</p><br/><p>Mapping from <a href=\"CodeSystem-NHSNCRSRationalisedRoleCodes.html\">NHS NCRS Role Codes</a> to <a href=\"CodeSystem-FhirActionCodes.html\">FHIR Action codes</a></p><table class=\"grid\"><tr><td colspan=\"2\"><b>Source Concept Details</b></td><td><b>Relationship</b></td><td colspan=\"2\"><b>Target Concept Details</b></td><td><b>Comment</b></td></tr><tr><td colspan=\"2\"><b>Codes</b> from <a href=\"CodeSystem-NHSNCRSRationalisedRoleCodes.html\" title=\"https://fhir.nhs.uk/Id/sds-role-code\">NHS NCRS Role Codes</a></td><td/><td colspan=\"2\"><b>Codes</b> from <a href=\"CodeSystem-FhirActionCodes.html\" title=\"https://www.core.blackpear.com/ig/metadata/CodeSystem/FhirActionCodes\">FHIR Action codes</a></td><td/></tr><tr><td style=\"border-right-width: 0px; border-bottom-style: none\">R8000</td><td style=\"border-left-width: 0px; border-bottom-style: none\">Clinical Practitioner Access Role</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#narrower\" title=\"narrower\">narrower</a></td><td style=\"border-right-width: 0px\">read:Patient</td><td style=\"border-left-width: 0px\"/><td>REST API interactions required for activity</td></tr><tr><td style=\"border-right-width: 0px; border-top-style: none\"/><td style=\"border-top-style: none; border-left-width: 0px\"/><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#narrower\" title=\"narrower\">narrower</a></td><td style=\"border-right-width: 0px\">read:MedicationStatement</td><td style=\"border-left-width: 0px\"/><td>REST API interactions required for activity</td></tr></table></div>"
  ] ;
  fhir:ConceptMap.url [ fhir:value "https://www.core.blackpear.com/ig/metadata/ConceptMap/ExampleRBACMatrix"] ;
  fhir:ConceptMap.identifier [
     fhir:Identifier.system [ fhir:value "http://www.core.blackpear.com/ig/metadata/Id/CoreRBACMatrixIdentifier" ] ;
     fhir:Identifier.value [ fhir:value "example" ]
  ] ;
  fhir:ConceptMap.version [ fhir:value "0.1.0"] ;
  fhir:ConceptMap.name [ fhir:value "Example"] ;
  fhir:ConceptMap.title [ fhir:value "Example"] ;
  fhir:ConceptMap.status [ fhir:value "draft"] ;
  fhir:ConceptMap.experimental [ fhir:value "true"^^xsd:boolean] ;
  fhir:ConceptMap.date [ fhir:value "2026-11-13T16:51:07+00:00"^^xsd:dateTime] ;
  fhir:ConceptMap.description [ fhir:value "Example RBAC Matrix (not for real use!)"] ;
  fhir:ConceptMap.group [
     fhir:index 0 ;
     fhir:ConceptMap.group.source [ fhir:value "https://fhir.nhs.uk/Id/sds-role-code" ] ;
     fhir:ConceptMap.group.target [ fhir:value "https://www.core.blackpear.com/ig/metadata/CodeSystem/FhirActionCodes" ] ;
     fhir:ConceptMap.group.element [
       fhir:index 0 ;
       fhir:ConceptMap.group.element.code [ fhir:value "R8000" ] ;
       fhir:ConceptMap.group.element.target [
         fhir:index 0 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "read:Patient" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "narrower" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "REST API interactions required for activity" ]
       ], [
         fhir:index 1 ;
         fhir:ConceptMap.group.element.target.code [ fhir:value "read:MedicationStatement" ] ;
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "narrower" ] ;
         fhir:ConceptMap.group.element.target.comment [ fhir:value "REST API interactions required for activity" ]
       ]
     ] ;
     fhir:ConceptMap.group.unmapped [
       fhir:ConceptMap.group.unmapped.mode [ fhir:value "fixed" ] ;
       fhir:ConceptMap.group.unmapped.code [ fhir:value "deny" ] ;
       fhir:ConceptMap.group.unmapped.display [ fhir:value "Deny access" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://www.core.blackpear.com/ig/metadata/ConceptMap/ExampleRBACMatrix.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

