@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/CodeSystem/example-metadata> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-metadata"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p class=\"res-header-id\">\n        <b>Generated Narrative: CodeSystem example-metadata</b>\n      </p>\n      <a name=\"example-metadata\"> </a>\n      <a name=\"hcexample-metadata\"> </a>\n      <p>This case-sensitive code system \n        <code>http://hl7.org/fhir/CodeSystem/example-metadata</code> defines the following codes:\n      </p>\n      <table class=\"codes\">\n        <tr>\n          <td style=\"white-space:nowrap\">\n            <b>Code</b>\n          </td>\n          <td>\n            <b>Definition</b>\n          </td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">A\n            <a name=\"example-metadata-A\"> </a>\n          </td>\n          <td>A</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">B\n            <a name=\"example-metadata-B\"> </a>\n          </td>\n          <td>B</td>\n        </tr>\n        <tr>\n          <td style=\"white-space:nowrap\">C\n            <a name=\"example-metadata-C\"> </a>\n          </td>\n          <td>C</td>\n        </tr>\n      </table>\n    </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     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 "vocab"
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/CodeSystem/example-metadata"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/CodeSystem/example-metadata>
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.4.1824" ]
  ] ) ; # 
  fhir:version [ fhir:v "6.0.0-ballot4"] ; # 
  fhir:name [ fhir:v "ExampleMetadata"] ; # 
  fhir:title [ fhir:v "Metadata Example"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:date [ fhir:v "2021-07-21"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7 International / Terminology Infrastructure"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/Vocab" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "This is an example code system that illustrates usage of the metadata resource elements introduced in R5"] ; # 
  fhir:approvalDate [ fhir:v "2021-07-21"^^xsd:date] ; # 
  fhir:lastReviewDate [ fhir:v "2022-07-21"^^xsd:date] ; # 
  fhir:effectivePeriod [
     fhir:start [ fhir:v "2021-08-01"^^xsd:date ] ;
     fhir:end [ fhir:v "2022-07-31"^^xsd:date ]
  ] ; # 
  fhir:topic ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/definition-topic"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/definition-topic>
       ] ;
       fhir:code [ fhir:v "treatment" ] ;
       fhir:display [ fhir:v "Treatment" ]
     ] )
  ] ) ; # 
  fhir:author ( [
     fhir:name [ fhir:v "ACME CodeSystem Development" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://acme.org/development" ]
     ] )
  ] ) ; # 
  fhir:editor ( [
     fhir:name [ fhir:v "ACME CodeSystem Management" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://acme.org/management" ]
     ] )
  ] ) ; # 
  fhir:reviewer ( [
     fhir:name [ fhir:v "Society for Creative CodeSystem Review" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://example.org/sccr" ]
     ] )
  ] ) ; # 
  fhir:endorser ( [
     fhir:name [ fhir:v "National Foundation for CodeSystem Quality" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://example.org/nfcq" ]
     ] )
  ] ) ; # 
  fhir:relatedArtifact ( [
     fhir:type [ fhir:v "derived-from" ] ;
     fhir:resource [
       fhir:v "http://hl7.org/fhir/CodeSystem/example"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/CodeSystem/example>
     ]
  ] ) ; # 
  fhir:caseSensitive [ fhir:v true] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "A" ] ;
     fhir:display [ fhir:v "A" ] ;
     fhir:definition [ fhir:v "A" ]
  ] [
     fhir:code [ fhir:v "B" ] ;
     fhir:display [ fhir:v "B" ] ;
     fhir:definition [ fhir:v "B" ]
  ] [
     fhir:code [ fhir:v "C" ] ;
     fhir:display [ fhir:v "C" ] ;
     fhir:definition [ fhir:v "C" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

