Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: R5 Ballot - see ballot notes). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Example CodeSystem/example-metadata (Turtle)

Vocabulary Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle (+ also see Turtle/RDF Format Specification)

Example Code System Metadata

@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 -------------------------------------------------------------------

[a fhir:CodeSystem;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example-metadata"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/shareablecodesystem";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/StructureDefinition/shareablecodesystem>
     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>This 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>Display</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          <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          <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          <td>C</td>\n        </tr>\n      </table>\n    </div>"
  ];
  fhir:CodeSystem.url [ fhir:value "http://hl7.org/fhir/CodeSystem/example-metadata"];
  fhir:CodeSystem.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.4.1824" ]
  ];
  fhir:CodeSystem.version [ fhir:value "5.0.0-ballot"];
  fhir:CodeSystem.name [ fhir:value "ExampleMetadata"];
  fhir:CodeSystem.title [ fhir:value "Metadata Example"];
  fhir:CodeSystem.status [ fhir:value "draft"];
  fhir:CodeSystem.experimental [ fhir:value "true"^^xsd:boolean];
  fhir:CodeSystem.date [ fhir:value "2021-07-21"^^xsd:date];
  fhir:CodeSystem.publisher [ fhir:value "FHIR (Example)"];
  fhir:CodeSystem.contact [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "FHIR project team" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ]
  ];
  fhir:CodeSystem.description [ fhir:value "This is an example code system that illustrates usage of the metadata resource elements introduced in R5"];
  fhir:CodeSystem.approvalDate [ fhir:value "2021-07-21"^^xsd:date];
  fhir:CodeSystem.lastReviewDate [ fhir:value "2022-07-21"^^xsd:date];
  fhir:CodeSystem.effectivePeriod [
     fhir:Period.start [ fhir:value "2021-08-01"^^xsd:date ];
     fhir:Period.end [ fhir:value "2022-07-31"^^xsd:date ]
  ];
  fhir:CodeSystem.topic [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/definition-topic" ];
       fhir:Coding.code [ fhir:value "treatment" ];
       fhir:Coding.display [ fhir:value "Treatment" ]
     ]
  ];
  fhir:CodeSystem.author [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "ACME CodeSystem Development" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://acme.org/development" ]
     ]
  ];
  fhir:CodeSystem.editor [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "ACME CodeSystem Management" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://acme.org/management" ]
     ]
  ];
  fhir:CodeSystem.reviewer [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "Society for Creative Codesystem Review" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://example.org/sccr" ]
     ]
  ];
  fhir:CodeSystem.endorser [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "National Foundation for CodeSystem Quality" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://example.org/nfcq" ]
     ]
  ];
  fhir:CodeSystem.relatedArtifact [
     fhir:index 0;
     fhir:RelatedArtifact.type [ fhir:value "derived-from" ];
     fhir:RelatedArtifact.resource [
       fhir:value "http://hl7.org/fhir/CodeSystem/example";
       fhir:link <http://hl7.org/fhir/CodeSystem/example>
     ]
  ];
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean];
  fhir:CodeSystem.content [ fhir:value "complete"];
  fhir:CodeSystem.concept [
     fhir:index 0;
     fhir:CodeSystem.concept.code [ fhir:value "A" ];
     fhir:CodeSystem.concept.display [ fhir:value "A" ];
     fhir:CodeSystem.concept.definition [ fhir:value "A" ]
  ], [
     fhir:index 1;
     fhir:CodeSystem.concept.code [ fhir:value "B" ];
     fhir:CodeSystem.concept.display [ fhir:value "B" ];
     fhir:CodeSystem.concept.definition [ fhir:value "B" ]
  ], [
     fhir:index 2;
     fhir:CodeSystem.concept.code [ fhir:value "C" ];
     fhir:CodeSystem.concept.display [ fhir:value "C" ];
     fhir:CodeSystem.concept.definition [ fhir:value "C" ]
  ]] .

# - ontology header ------------------------------------------------------------

[a owl:Ontology;
  owl:imports fhir:fhir.ttl] .

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


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.