@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/uv/xver/CodeSystem/resource-aggregation-mode> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "resource-aggregation-mode"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n            <p>This code system \n              <code>http://hl7.org/fhir/resource-aggregation-mode</code> defines the following codes:\n            </p>\n            <table class=\"codes\">\n              <tr>\n                <td>\n                  <b>Lvl</b>\n                </td>\n                <td style=\"white-space:nowrap\">\n                  <b>Code</b>\n                </td>\n                <td>\n                  <b>Display</b>\n                </td>\n                <td>\n                  <b>Definition</b>\n                </td>\n              </tr>\n              <tr>\n                <td>1</td>\n                <td style=\"white-space:nowrap\">contained\n                  <a name=\"resource-aggregation-mode-contained\"> </a>\n                </td>\n                <td>Contained</td>\n                <td>The reference is a local reference to a contained resource.</td>\n              </tr>\n              <tr>\n                <td>1</td>\n                <td style=\"white-space:nowrap\">referenced\n                  <a name=\"resource-aggregation-mode-referenced\"> </a>\n                </td>\n                <td>Referenced</td>\n                <td>The reference to a resource that has to be resolved externally to the resource that includes the reference.</td>\n              </tr>\n              <tr>\n                <td>2</td>\n                <td style=\"white-space:nowrap\">  bundled\n                  <a name=\"resource-aggregation-mode-bundled\"> </a>\n                </td>\n                <td>Bundled</td>\n                <td>When the resource is in a Bundle, the resource the reference points to will be found in the same bundle as the resource that includes the reference.</td>\n              </tr>\n            </table>\n          </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "normative"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "4.0.0"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm>
     ] ;
     fhir:value [
       a fhir:Integer ;
       fhir:v 5
     ]
  ] [
     fhir:extension ( [
       fhir:url [
         fhir:v "packageId"^^xsd:anyURI ;
         fhir:l fhir:packageId
       ] ;
       fhir:value [
         a fhir:Id ;
         fhir:v "hl7.fhir.uv.xver-r5.r4"
       ]
     ] [
       fhir:url [
         fhir:v "version"^^xsd:anyURI ;
         fhir:l fhir:version
       ] ;
       fhir:value [
         a fhir:String ;
         fhir:v "0.1.0"
       ]
     ] [
       fhir:url [
         fhir:v "uri"^^xsd:anyURI ;
         fhir:l fhir:uri
       ] ;
       fhir:value [
         a fhir:Uri ;
         fhir:v "http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r5.r4"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r5.r4>
       ]
     ] ) ;
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/package-source"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/package-source>
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "fhir"
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/resource-aggregation-mode"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/resource-aggregation-mode>
  ] ; # 
  fhir:version [ fhir:v "5.0.0"] ; # 
  fhir:name [ fhir:v "AggregationMode"] ; # 
  fhir:title [ fhir:v "AggregationMode"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2023-03-25T23:21:02-05:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "FHIR Infrastructure"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "FHIR Infrastructure" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "How resource references can be aggregated."] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
         fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>
       ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] ) ; # 
  fhir:caseSensitive [ fhir:v true] ; # 
  fhir:valueSet [
     fhir:v "http://hl7.org/fhir/ValueSet/resource-aggregation-mode|4.0.1"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/ValueSet/resource-aggregation-mode?version=4.0.1>
  ] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "contained" ] ;
     fhir:display [ fhir:v "Contained" ] ;
     fhir:definition [ fhir:v "The reference is a local reference to a contained resource." ]
  ] [
     fhir:code [ fhir:v "referenced" ] ;
     fhir:display [ fhir:v "Referenced" ] ;
     fhir:definition [ fhir:v "The reference to a resource that has to be resolved externally to the resource that includes the reference." ] ;
     fhir:concept ( [
       fhir:code [ fhir:v "bundled" ] ;
       fhir:display [ fhir:v "Bundled" ] ;
       fhir:definition [ fhir:v "When the resource is in a Bundle, the resource the reference points to will be found in the same bundle as the resource that includes the reference." ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

