Release 4B 5 Ballot

This page is part of the FHIR Specification (v4.3.0: R4B (v5.0.0-ballot: R5 Ballot - STU 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 . Page versions: R5 R4B R4 R3

Conceptmap-example-2.ttl

Example ConceptMap/example2 (Turtle)

Vocabulary Work Group Maturity Level : N/A Standards Status : Informative Compartments : Not linked to any defined compartments

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

Additional ConceptMap Example

@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:ConceptMap;

[a fhir:ConceptMap;
  fhir:nodeRole fhir:treeRoot;

  fhir:Resource.id [ fhir:value "example2"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <h2>FHIR-exanple-2 (http://hl7.org/fhir/ConceptMap/example2)</h2>\n      <p>Mapping from http://example.org/fhir/example1 to http://example.org/fhir/example2</p>\n      <p>DRAFT (not intended for production usage). Published on 2012-06-13 by HL7, Inc (FHIR project team (example): \n        <a href=\"http://hl7.org/fhir\">http://hl7.org/fhir</a>). \n      </p>\n      <div>\n        <p>An example mapping</p>\n\n      </div>\n      <br/>\n      <table class=\"grid\">\n        <tr>\n          <td colspan=\"3\">\n            <b>Source Concept Details</b>\n          </td>\n          <td>\n            <b>Relationship</b>\n          </td>\n          <td colspan=\"2\">\n            <b>Target Concept Details</b>\n          </td>\n        </tr>\n        <tr>\n          <td colspan=\"2\">\n            <b>Code</b> from http://example.org/fhir/example1\n          </td>\n          <td>\n            <b>http://example.org/fhir/property-value/example</b>\n          </td>\n          <td/>\n          <td colspan=\"2\">\n            <b>Code</b> from http://example.org/fhir/example2\n          </td>\n        </tr>\n        <tr>\n          <td style=\"border-right-width: 0px\">code</td>\n          <td style=\"border-left-width: 0px\">Example Code</td>\n          <td/>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td style=\"border-right-width: 0px\">code2</td>\n          <td style=\"border-left-width: 0px\">Some Example Code</td>\n        </tr>\n      </table>\n    </div>"
  ];

  fhir:ConceptMap.url [ fhir:value "http://hl7.org/fhir/ConceptMap/example2"];
  fhir:ConceptMap.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.14.8" ]
  ];
  fhir:ConceptMap.version [ fhir:value "5.0.0-ballot"];

  fhir:ConceptMap.name [ fhir:value "FHIR-exanple-2"];
  fhir:ConceptMap.title [ fhir:value "FHIR Example 2"];
  fhir:ConceptMap.status [ fhir:value "draft"];
  fhir:ConceptMap.experimental [ fhir:value "true"];
  fhir:ConceptMap.date [ fhir:value "2012-06-13"];

  fhir:ConceptMap.experimental [ fhir:value "true"^^xsd:boolean];
  fhir:ConceptMap.date [ fhir:value "2012-06-13"^^xsd:date];

  fhir:ConceptMap.publisher [ fhir:value "HL7, Inc"];
  fhir:ConceptMap.contact [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "FHIR project team (example)" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ]
  ];
  fhir:ConceptMap.description [ fhir:value "An example mapping"];
  fhir:ConceptMap.purpose [ fhir:value "To illustrate mapping features"];
  fhir:ConceptMap.source [ fhir:value "http://example.org/fhir/example1"];
  fhir:ConceptMap.target [ fhir:value "http://example.org/fhir/example2"];

  fhir:ConceptMap.sourceScopeUri [ fhir:value "http://example.org/fhir/example1"];
  fhir:ConceptMap.targetScopeUri [ fhir:value "http://example.org/fhir/example2"];

  fhir:ConceptMap.group [
     fhir:index 0;
     fhir:ConceptMap.source [ fhir:value "http://example.org/fhir/example1" ];
     fhir:ConceptMap.target [ fhir:value "http://example.org/fhir/example2" ];
     fhir:ConceptMap.element [

     fhir:ConceptMap.group.source [
       fhir:value "http://example.org/fhir/example1";
       fhir:link <http://example.org/fhir/example1>
     ];
     fhir:ConceptMap.group.target [
       fhir:value "http://example.org/fhir/example2";
       fhir:link <http://example.org/fhir/example2>
     ];
     fhir:ConceptMap.group.element [

       fhir:index 0;
       fhir:ConceptMap.code [ fhir:value "code" ];
       fhir:ConceptMap.display [ fhir:value "Example Code" ];
       fhir:ConceptMap.target [

       fhir:ConceptMap.group.element.code [ fhir:value "code" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Example Code" ];
       fhir:ConceptMap.group.element.target [

         fhir:index 0;
         fhir:ConceptMap.code [ fhir:value "code2" ];
         fhir:ConceptMap.display [ fhir:value "Some Example Code" ];
         fhir:ConceptMap.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.dependsOn [

         fhir:ConceptMap.group.element.target.code [ fhir:value "code2" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "Some Example Code" ];
         fhir:ConceptMap.group.element.target.relationship [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [

           fhir:index 0;
           fhir:ConceptMap.property [ fhir:value "http://example.org/fhir/property-value/example" ];
           fhir:ConceptMap.system [ fhir:value "http://example.org/fhir/example3" ];
           fhir:ConceptMap.value [ fhir:value "some-code" ];
           fhir:ConceptMap.display [ fhir:value "Something Coded" ]

           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "http://example.org/fhir/property-value/example" ];
           fhir:ConceptMap.group.element.target.dependsOn.valueCoding [
             fhir:Coding.system [ fhir:value "http://example.org/fhir/example3" ];
             fhir:Coding.code [ fhir:value "some-code" ];
             fhir:Coding.display [ fhir:value "Something Coded" ]
           ]

         ]
       ]
     ];
     fhir:ConceptMap.unmapped [
       fhir:ConceptMap.mode [ fhir:value "other-map" ];
       fhir:ConceptMap.url [ fhir:value "http://example.org/fhir/ConceptMap/map2" ]

     fhir:ConceptMap.group.unmapped [
       fhir:ConceptMap.group.unmapped.mode [ fhir:value "other-map" ];
       fhir:ConceptMap.group.unmapped.otherMap [
         fhir:value "http://example.org/fhir/ConceptMap/map2";
         fhir:link <http://example.org/fhir/ConceptMap/map2>
       ]

     ]
  ] .

  ]] .

# - 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.