@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://secondary-use-ig.cumuluz.dev/ig/Group/example-cohort> a fhir:Group ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-cohort"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/uv/bulkdata/StructureDefinition/bulk-cohort-group" ;
       fhir:index 0 ;
       fhir:link <http://hl7.org/fhir/uv/bulkdata/StructureDefinition/bulk-cohort-group>
     ]
  ] ;
  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>Gegenereerde narrative: Group example-cohort</b></p><a name=\"example-cohort\"> </a><a name=\"hcexample-cohort\"> </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\">Profiel: <code>http://hl7.org/fhir/uv/bulkdata/StructureDefinition/bulk-cohort-group</code></p></div><p><b style=\"color: maroon\">Fout bij creëren narrative: Unknown modifier extension http://hl7.org/fhir/uv/bulkdata/StructureDefinition/member-filter </b></p></div>"
  ] ;
  fhir:DomainResource.modifierExtension [
     fhir:index 0 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/bulkdata/StructureDefinition/member-filter" ] ;
     fhir:Extension.valueExpression [
       fhir:Expression.language [ fhir:value "application/x-fhir-query" ] ;
       fhir:Expression.expression [ fhir:value "Condition?code=34000006" ]
     ]
  ] ;
  fhir:Group.type [ fhir:value "person"] ;
  fhir:Group.actual [ fhir:value "true"^^xsd:boolean] ;
  fhir:Group.name [ fhir:value "Example IBD cohort"] ;
  fhir:Group.quantity [ fhir:value "2"^^xsd:nonNegativeInteger] ;
  fhir:Group.member [
     fhir:index 0 ;
     fhir:Group.member.entity [
       fhir:link <https://secondary-use-ig.cumuluz.dev/ig/Patient/patient-001> ;
       fhir:Reference.reference [ fhir:value "Patient/patient-001" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Group.member.entity [
       fhir:link <https://secondary-use-ig.cumuluz.dev/ig/Patient/patient-002> ;
       fhir:Reference.reference [ fhir:value "Patient/patient-002" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://secondary-use-ig.cumuluz.dev/ig/Group/example-cohort.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

