@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/CareTeam/ExampleCareTeam> a fhir:CareTeam ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleCareTeam"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://www.core.blackpear.com/ig/metadata/StructureDefinition/CoreCareTeam" ;
       fhir:index 0 ;
       fhir:link <https://www.core.blackpear.com/ig/metadata/StructureDefinition/CoreCareTeam>
     ]
  ] ;
  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: CareTeam ExampleCareTeam</b></p><a name=\"ExampleCareTeam\"> </a><a name=\"hcExampleCareTeam\"> </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-CoreCareTeam.html\">CoreCareTeam</a></p></div><p><b>status</b>: Active</p><p><b>name</b>: Care Team</p><p><b>subject</b>: <a href=\"#hcExampleCareTeam/pt\">Mrs Jane Doe</a></p><blockquote><p><b>participant</b></p><p><b>role</b>: <span title=\"Codes:{https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreCareTeamParticipantOrganizationRoleCodes ncrs}\">National care record</span></p><p><b>member</b>: NHS ENGLAND - X26 (Identifier: <code>https://fhir.nhs.uk/Id/ods-organization-code</code>/X26)</p></blockquote><blockquote><p><b>participant</b></p><p><b>role</b>: <span title=\"Codes:{https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreCareTeamParticipantOrganizationRoleCodes directcare}\">Direct care</span></p><p><b>member</b>: <code>Demo practice A29390</code></p></blockquote><blockquote><p><b>participant</b></p><p><b>role</b>: <span title=\"Codes:{https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreCareTeamProfessionalRoleCodes keyworker}\">Key worker</span></p><p><b>member</b>: <a href=\"#hcExampleCareTeam/prc1\">Dr David Jehring</a></p><p><b>period</b>: 2023-10-01 --&gt; 2023-10-30</p></blockquote><blockquote><p><b>participant</b></p><p><b>member</b>: <code>Mr P Aramedic</code></p></blockquote><blockquote><p><b>participant</b></p><p><b>role</b>: <span title=\"Codes:{https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreCareTeamRelatedPersonRoleCodes carer}\">Carer</span></p><p><b>member</b>: <a href=\"#hcExampleCareTeam/rel1\">Mr Lives NX Door</a></p><p><b>period</b>: 2021-01-01 --&gt; (ongoing)</p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Patient #pt</b></p><a name=\"ExampleCareTeam/pt\"> </a><a name=\"hcExampleCareTeam/pt\"> </a><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Mrs Jane Doe Female, DoB: 2002-05-04 ( https://fhir.nhs.uk/Id/nhs-number#4123456789)</p><hr/></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Organization #org1</b></p><a name=\"ExampleCareTeam/org1\"> </a><a name=\"hcExampleCareTeam/org1\"> </a><p><b>telecom</b>: <a href=\"mailto:admin.A29390@nhs.net\">admin.A29390@nhs.net</a></p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: PractitionerRole #prc1</b></p><a name=\"ExampleCareTeam/prc1\"> </a><a name=\"hcExampleCareTeam/prc1\"> </a><p><b>organization</b>: Demo practice A29390 (Identifier: <code>https://fhir.nhs.uk/Id/ods-organization-code</code>/A29390)</p><p><b>code</b>: <span title=\"Codes:{https://fhir.nhs.uk/R4/CodeSystem/UKCore-SDSJobRoleName R0260}\">General Medical Practitioner</span></p><p><b>specialty</b>: <span title=\"Codes:{https://www.core.blackpear.com/ig/metadata/CodeSystem/NHSDDMainSpecialtyCodes 600}\">General Medical Practice</span></p><p><b>telecom</b>: <a href=\"mailto:david.jehring@nhs.net\">david.jehring@nhs.net</a></p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: PractitionerRole #prc1</b></p><p><b>code</b>: <span title=\"Codes:{https://fhir.nhs.uk/R4/CodeSystem/UKCore-SDSJobRoleName R1100}\">Paramedic Specialist Practitioner</span></p><p><b>specialty</b>: <span title=\"Codes:\">Paramedic</span></p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: RelatedPerson #rel1</b></p><a name=\"ExampleCareTeam/rel1\"> </a><a name=\"hcExampleCareTeam/rel1\"> </a><p><b>relationship</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleCode NBOR}\">neighbour</span></p><p><b>telecom</b>: ph: 01234 567890</p></blockquote></div>"
  ] ;
  fhir:DomainResource.contained [
     a fhir:Patient ;
     fhir:index 0 ;
     fhir:Resource.id [ fhir:value "pt" ] ;
     fhir:Patient.identifier [
       fhir:index 0 ;
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/nhs-number" ] ;
       fhir:Identifier.value [ fhir:value "4123456789" ]
     ] ;
     fhir:Patient.name [
       fhir:index 0 ;
       fhir:HumanName.text [ fhir:value "Mrs Jane Doe" ]
     ] ;
     fhir:Patient.gender [ fhir:value "female" ] ;
     fhir:Patient.birthDate [ fhir:value "2002-05-04"^^xsd:date ]
  ], [
     a fhir:Organization ;
     fhir:index 1 ;
     fhir:Resource.id [ fhir:value "org1" ] ;
     fhir:Organization.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "admin.A29390@nhs.net" ]
     ]
  ], [
     a fhir:PractitionerRole ;
     fhir:index 2 ;
     fhir:Resource.id [ fhir:value "prc1" ] ;
     fhir:PractitionerRole.organization [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "A29390" ]
       ] ;
       fhir:Reference.display [ fhir:value "Demo practice A29390" ]
     ] ;
     fhir:PractitionerRole.code [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://fhir.nhs.uk/R4/CodeSystem/UKCore-SDSJobRoleName" ] ;
         fhir:Coding.code [ fhir:value "R0260" ] ;
         fhir:Coding.display [ fhir:value "General Medical Practitioner" ]
       ]
     ] ;
     fhir:PractitionerRole.specialty [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://www.core.blackpear.com/ig/metadata/CodeSystem/NHSDDMainSpecialtyCodes" ] ;
         fhir:Coding.code [ fhir:value "600" ] ;
         fhir:Coding.display [ fhir:value "General Medical Practice" ]
       ]
     ] ;
     fhir:PractitionerRole.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "david.jehring@nhs.net" ]
     ]
  ], [
     a fhir:PractitionerRole ;
     fhir:index 3 ;
     fhir:Resource.id [ fhir:value "prc1" ] ;
     fhir:PractitionerRole.code [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://fhir.nhs.uk/R4/CodeSystem/UKCore-SDSJobRoleName" ] ;
         fhir:Coding.code [ fhir:value "R1100" ] ;
         fhir:Coding.display [ fhir:value "Paramedic Specialist Practitioner" ]
       ]
     ] ;
     fhir:PractitionerRole.specialty [
       fhir:index 0 ;
       fhir:CodeableConcept.text [ fhir:value "Paramedic" ]
     ]
  ], [
     a fhir:RelatedPerson ;
     fhir:index 4 ;
     fhir:Resource.id [ fhir:value "rel1" ] ;
     fhir:RelatedPerson.relationship [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-RoleCode" ] ;
         fhir:Coding.code [ fhir:value "NBOR" ] ;
         fhir:Coding.display [ fhir:value "neighbour" ]
       ]
     ] ;
     fhir:RelatedPerson.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "phone" ] ;
       fhir:ContactPoint.value [ fhir:value "01234 567890" ]
     ]
  ] ;
  fhir:CareTeam.status [ fhir:value "active"] ;
  fhir:CareTeam.name [ fhir:value "Care Team"] ;
  fhir:CareTeam.subject [
     fhir:Reference.reference [ fhir:value "#pt" ] ;
     fhir:Reference.identifier [
       fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/nhs-number" ] ;
       fhir:Identifier.value [ fhir:value "4123456789" ]
     ] ;
     fhir:Reference.display [ fhir:value "Mrs Jane Doe" ]
  ] ;
  fhir:CareTeam.participant [
     fhir:index 0 ;
     fhir:CareTeam.participant.role [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreCareTeamParticipantOrganizationRoleCodes" ] ;
         fhir:Coding.code [ fhir:value "ncrs" ]
       ]
     ] ;
     fhir:CareTeam.participant.member [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "X26" ]
       ] ;
       fhir:Reference.display [ fhir:value "NHS ENGLAND - X26" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:CareTeam.participant.role [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreCareTeamParticipantOrganizationRoleCodes" ] ;
         fhir:Coding.code [ fhir:value "directcare" ]
       ]
     ] ;
     fhir:CareTeam.participant.member [
       fhir:Reference.reference [ fhir:value "#org2" ] ;
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.nhs.uk/Id/ods-organization-code" ] ;
         fhir:Identifier.value [ fhir:value "A29390" ]
       ] ;
       fhir:Reference.display [ fhir:value "Demo practice A29390" ]
     ]
  ], [
     fhir:index 2 ;
     fhir:CareTeam.participant.role [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreCareTeamProfessionalRoleCodes" ] ;
         fhir:Coding.code [ fhir:value "keyworker" ] ;
         fhir:Coding.display [ fhir:value "Key worker" ]
       ]
     ] ;
     fhir:CareTeam.participant.member [
       fhir:Reference.reference [ fhir:value "#prc1" ] ;
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.hl7.org.uk/Id/gmc-number" ] ;
         fhir:Identifier.value [ fhir:value "2565334" ]
       ] ;
       fhir:Reference.display [ fhir:value "Dr David Jehring" ]
     ] ;
     fhir:CareTeam.participant.period [
       fhir:Period.start [ fhir:value "2023-10-01"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2023-10-30"^^xsd:date ]
     ]
  ], [
     fhir:index 3 ;
     fhir:CareTeam.participant.member [
       fhir:Reference.reference [ fhir:value "#prc2" ] ;
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "https://fhir.hl7.org.uk/Id/gmc-number" ] ;
         fhir:Identifier.value [ fhir:value "2565334" ]
       ] ;
       fhir:Reference.display [ fhir:value "Mr P Aramedic" ]
     ]
  ], [
     fhir:index 4 ;
     fhir:CareTeam.participant.role [
       fhir:index 0 ;
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://www.core.blackpear.com/ig/metadata/CodeSystem/CoreCareTeamRelatedPersonRoleCodes" ] ;
         fhir:Coding.code [ fhir:value "carer" ] ;
         fhir:Coding.display [ fhir:value "Carer" ]
       ]
     ] ;
     fhir:CareTeam.participant.member [
       fhir:Reference.reference [ fhir:value "#rel1" ] ;
       fhir:Reference.display [ fhir:value "Mr Lives NX Door" ]
     ] ;
     fhir:CareTeam.participant.period [
       fhir:Period.start [ fhir:value "2021-01-01"^^xsd:date ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://www.core.blackpear.com/ig/metadata/CareTeam/ExampleCareTeam.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

