FHIR Release 3 (STU) CI-Build

This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0 . For a full list Continuous Integration Build of available versions, see FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions . Page versions: R5 R4B R4 R3

Conceptmap-example-2.ttl

Example ConceptMap/example2 (Turtle)

Maturity Level : N/A
Responsible Owner: Vocabulary Terminology Infrastructure Work Group Ballot Standards Status : Informative Compartments : Not linked to any No defined compartments

Raw Turtle , JSON-LD (+ 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 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/ConceptMap/example2> a fhir:ConceptMap;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example2"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     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 13/06/2012 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=\"2\">\n            <b>Source Concept</b>\n          </td>\n          <td>\n            <b>Equivalence</b>\n          </td>\n          <td colspan=\"1\">\n            <b>Destination Concept</b>\n          </td>\n        </tr>\n        <tr>\n          <td>\n            <b>Code [http://example.org/fhir/example1]</b>\n          </td>\n          <td>\n            <b>http://example.org/fhir/DataElement/example [http://example.org/fhir/example3]</b>\n          </td>\n          <td/>\n          <td>\n            <b>Code [http://example.org/fhir/example2]</b>\n          </td>\n        </tr>\n        <tr>\n          <td>code</td>\n          <td>some-code</td>\n          <td>:equivalent</td>\n          <td>code2</td>\n        </tr>\n      </table>\n    </div>"
  ];
  fhir:ConceptMap.url [ fhir:value "http://hl7.org/fhir/ConceptMap/example2"];
  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"^^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" ]

<http://hl7.org/fhir/ConceptMap/example2> a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example2"] ; # 
  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: ConceptMap example2</b>\n      </p>\n      <a name=\"example2\"> </a>\n      <a name=\"hcexample2\"> </a>\n      <p>Mapping from http://example.org/fhir/example1 to http://example.org/fhir/example2</p>\n      <br/>\n      <p>\n        <b>Group 1 </b>Mapping from \n        <code>http://example.org/fhir/example1</code> to \n        <code>http://example.org/fhir/example2</code>\n      </p>\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>Codes</b> from http://example.org/fhir/example1\n          </td>\n          <td>\n            <b>ex3</b>\n          </td>\n          <td/>\n          <td colspan=\"2\">\n            <b>Codes</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>"^^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:ConceptMap.description [ fhir:value "An example mapping"];
  fhir:ConceptMap.purpose [ fhir:value "To illustrate mapping features"];
  fhir:ConceptMap.sourceUri [ fhir:value "http://example.org/fhir/example1"];
  fhir:ConceptMap.targetUri [ fhir:value "http://example.org/fhir/example2"];
  fhir:ConceptMap.group [
     fhir:index 0;
     fhir:ConceptMap.group.source [ fhir:value "http://example.org/fhir/example1" ];
     fhir:ConceptMap.group.target [ fhir:value "http://example.org/fhir/example2" ];
     fhir:ConceptMap.group.element [
       fhir:index 0;
       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.group.element.target.code [ fhir:value "code2" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "Some Example Code" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "http://example.org/fhir/DataElement/example" ];
           fhir:ConceptMap.group.element.target.dependsOn.system [ fhir:value "http://example.org/fhir/example3" ];
           fhir:ConceptMap.group.element.target.dependsOn.code [ fhir:value "some-code" ];
           fhir:ConceptMap.group.element.target.dependsOn.display [ fhir:value "Something Coded" ]
         ]

  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/ConceptMap/example2"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/ConceptMap/example2>
  ] ; # 
  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.14.8" ]
  ] ) ; # 
  fhir:version [ fhir:v "6.0.0-ballot3"] ; # 
  fhir:name [ fhir:v "FHIRexanple2"] ; # 
  fhir:title [ fhir:v "FHIR Example 2"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:date [ fhir:v "2012-06-13"^^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 "An example mapping"] ; # 
  fhir:purpose [ fhir:v "To illustrate mapping features"] ; # 
  fhir:additionalAttribute ( [
     fhir:code [ fhir:v "ex3" ] ;
     fhir:uri [
       fhir:v "http://example.org/fhir/property-value/example"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/property-value/example>
     ] ;
     fhir:type [ fhir:v "Coding" ]
  ] ) ; # 
  fhir:sourceScope [
     a fhir:Uri ;
     fhir:v "http://example.org/fhir/example1"^^xsd:anyURI ;
     fhir:l <http://example.org/fhir/example1>
  ] ; # 
  fhir:targetScope [
     a fhir:Uri ;
     fhir:v "http://example.org/fhir/example2"^^xsd:anyURI ;
     fhir:l <http://example.org/fhir/example2>
  ] ; # 
  fhir:group ( [
     fhir:source [
       fhir:v "http://example.org/fhir/example1"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/example1>
     ] ;
     fhir:target [
       fhir:v "http://example.org/fhir/example2"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/example2>
     ] ;
     fhir:element ( [
       fhir:code [ fhir:v "code" ] ;
       fhir:display [ fhir:v "Example Code" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "code2" ] ;
         fhir:display [ fhir:v "Some Example Code" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:dependsOn ( [
           fhir:attribute [ fhir:v "ex3" ] ;
           fhir:value [
             a fhir:Coding ;
             fhir:system [
               fhir:v "http://example.org/fhir/example3"^^xsd:anyURI ;
               fhir:l <http://example.org/fhir/example3>
             ] ;
             fhir:code [ fhir:v "some-code" ] ;
             fhir:display [ fhir:v "Something Coded" ]
           ]
         ] )
       ] )
     ] ) ;
     fhir:unmapped [
       fhir:mode [ fhir:v "other-map" ] ;
       fhir:otherMap [
         fhir:v "http://example.org/fhir/ConceptMap/map2"^^xsd:anyURI ;
         fhir:l <http://example.org/fhir/ConceptMap/map2>

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

     ]
  ] .

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

<http://hl7.org/fhir/ConceptMap/example2.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://hl7.org/fhir/STU3/ConceptMap/example2.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.