@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.org/fhir/uv/cqm/ValueSet/subject-type> a fhir:ValueSet ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "subject-type"] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ValueSet subject-type</b></p><a name=\"subject-type\"> </a><a name=\"hcsubject-type\"> </a><p>This value set includes codes based on the following rules:</p><ul><li>Import all the codes that are contained in <a href=\"http://hl7.org/fhir/R4/valueset-subject-type.html\">Subject type</a></li><li>Include these codes as defined in <a href=\"http://hl7.org/fhir/R4/codesystem-resource-types.html\"><code>http://hl7.org/fhir/resource-types</code></a><span title=\"Version is not explicitly stated, which means it is fixed to 4.0.1, the version found through the package references\"> version ?4.0.1</span><table class=\"none\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td><a href=\"http://hl7.org/fhir/R4/codesystem-resource-types.html#resource-types-PractitionerRole\">PractitionerRole</a></td><td>PractitionerRole</td><td>A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time.</td></tr><tr><td><a href=\"http://hl7.org/fhir/R4/codesystem-resource-types.html#resource-types-RelatedPerson\">RelatedPerson</a></td><td>RelatedPerson</td><td>Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process.</td></tr></table></li></ul></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ;
     fhir:Extension.valueCode [ fhir:value "cqi" ]
  ], [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ] ;
     fhir:Extension.valueInteger [
       fhir:value "4"^^xsd:integer ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom" ] ;
         fhir:Extension.valueCanonical [
           fhir:value "http://hl7.org/fhir/uv/cqm/ImplementationGuide/hl7.fhir.uv.cqm" ;
           fhir:link <http://hl7.org/fhir/uv/cqm/ImplementationGuide/hl7.fhir.uv.cqm>
         ]
       ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ] ;
     fhir:Extension.valueCode [
       fhir:value "trial-use" ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom" ] ;
         fhir:Extension.valueCanonical [
           fhir:value "http://hl7.org/fhir/uv/cqm/ImplementationGuide/hl7.fhir.uv.cqm" ;
           fhir:link <http://hl7.org/fhir/uv/cqm/ImplementationGuide/hl7.fhir.uv.cqm>
         ]
       ]
     ]
  ] ;
  fhir:ValueSet.url [ fhir:value "http://hl7.org/fhir/uv/cqm/ValueSet/subject-type"] ;
  fhir:ValueSet.identifier [
     fhir:index -1 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.40.61.48.6" ]
  ] ;
  fhir:ValueSet.version [ fhir:value "4.0.0"] ;
  fhir:ValueSet.name [ fhir:value "SubjectTypeValueSet"] ;
  fhir:ValueSet.title [ fhir:value "Subject Type Value Set"] ;
  fhir:ValueSet.status [ fhir:value "active"] ;
  fhir:ValueSet.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:ValueSet.date [ fhir:value "2024-08-30"^^xsd:date] ;
  fhir:ValueSet.publisher [ fhir:value "HL7 International / Clinical Quality Information"] ;
  fhir:ValueSet.contact [
     fhir:index -1 ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/cqi" ]
     ]
  ] ;
  fhir:ValueSet.description [ fhir:value "This value set incorporates all codes from the FHIR value set subject-type in addition to PractitionerRole and RelatedPerson from the FHIR resource-types code system."] ;
  fhir:ValueSet.jurisdiction [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ;
       fhir:Coding.code [ fhir:value "001" ]
     ]
  ] ;
  fhir:ValueSet.compose [
     fhir:ValueSet.compose.include [
       fhir:index -1 ;
       fhir:ValueSet.compose.include.valueSet [
         fhir:value "http://hl7.org/fhir/ValueSet/subject-type" ;
         fhir:index -1 ;
         fhir:link <http://hl7.org/fhir/ValueSet/subject-type>
       ]
     ], [
       fhir:index -1 ;
       fhir:ValueSet.compose.include.system [ fhir:value "http://hl7.org/fhir/resource-types" ] ;
       fhir:ValueSet.compose.include.concept [
         fhir:index -1 ;
         fhir:ValueSet.compose.include.concept.code [ fhir:value "PractitionerRole" ] ;
         fhir:ValueSet.compose.include.concept.display [ fhir:value "PractitionerRole" ]
       ], [
         fhir:index -1 ;
         fhir:ValueSet.compose.include.concept.code [ fhir:value "RelatedPerson" ] ;
         fhir:ValueSet.compose.include.concept.display [ fhir:value "RelatedPerson" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/uv/cqm/ValueSet/subject-type.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/uv/cqm/ValueSet/subject-type.ttl> .

# -------------------------------------------------------------------------------------

