Release 4B R5 Final QA

This page is part of the FHIR Specification (v4.3.0: R4B (v5.0.0-draft-final: Final QA Preview for R5 - 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.ttl

Example ConceptMap/101 (Turtle)

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

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

General 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;
  fhir:Resource.id [ fhir:value "101"];
  fhir:ConceptMap.url [ fhir:value "http://hl7.org/fhir/ConceptMap/101"];
  fhir:ConceptMap.identifier [
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:uuid:53cd62ee-033e-414c-9f58-3ca97b5ffc3b" ]
  ];
  fhir:ConceptMap.version [ fhir:value "20120613"];
  fhir:ConceptMap.name [ fhir:value "FHIR-v3-Address-Use"];
  fhir:ConceptMap.title [ fhir:value "FHIR/v3 Address Use Mapping"];
  fhir:ConceptMap.status [ fhir:value "draft"];
  fhir:ConceptMap.experimental [ fhir:value "true"];
  fhir:ConceptMap.date [ fhir:value "2012-06-13"];
  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 "A mapping between the FHIR and HL7 v3 AddressUse Code systems"];
  fhir:ConceptMap.useContext [
     fhir:index 0;
     fhir:UsageContext.code [
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/usage-context-type" ];
       fhir:Coding.code [ fhir:value "venue" ]
     ];
     fhir:UsageContext.value [
       fhir:CodeableConcept.text [ fhir:value "for CCDA Usage" ]
     ]
  ];
  fhir:ConceptMap.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ];
       fhir:Coding.code [ fhir:value "US" ]

[a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "101"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <h2>FHIRv3AddressUse (http://hl7.org/fhir/ConceptMap/101)</h2>\n      <p>Mapping from \n        <a href=\"valueset-address-use.html\">AddressUse</a> to \n        <a href=\"http://terminology.hl7.org/4.0.0/ValueSet-v3-AddressUse.html\">AddressUse</a>\n      </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>). Creative Commons 0\n      </p>\n      <div>\n        <p>A mapping between the FHIR and HL7 v3 AddressUse Code systems</p>\n\n      </div>\n      <br/>\n      <p>\n        <b>Group 1</b>Mapping from \n        <a href=\"codesystem-address-use.html\">AddressUse</a> to \n        <a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-v3-AddressUse.html\">AddressUse</a>\n      </p>\n      <table class=\"grid\">\n        <tr>\n          <td>\n            <b>Source Code</b>\n          </td>\n          <td>\n            <b>Relationship</b>\n          </td>\n          <td>\n            <b>Target Code</b>\n          </td>\n          <td>\n            <b>Comment</b>\n          </td>\n        </tr>\n        <tr>\n          <td>home</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>H (home)</td>\n          <td/>\n        </tr>\n        <tr>\n          <td>work</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>WP (work place)</td>\n          <td/>\n        </tr>\n        <tr>\n          <td>temp</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>TMP (temporary address)</td>\n          <td/>\n        </tr>\n        <tr>\n          <td>old</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#not-related-to\" title=\"not-related-to\">is not related to</a>\n          </td>\n          <td>BAD (bad address)</td>\n          <td>In the HL7 v3 AD, old is handled by the usablePeriod element, but you have to provide a time, there's no simple equivalent of flagging an address as old</td>\n        </tr>\n      </table>\n    </div>"
  ] ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/ConceptMap/101"^^xsd:anyURI] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.14.1" ]
  ] [
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "urn:uuid:53cd62ee-033e-414c-9f58-3ca97b5ffc3b" ]
  ] ) ; # 
  fhir:version [ fhir:v "5.0.0-draft-final"] ; # 
  fhir:name [ fhir:v "FHIRv3AddressUse"] ; # 
  fhir:title [ fhir:v "FHIR/v3 Address Use Mapping"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2012-06-13"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7, Inc"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "FHIR project team (example)" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "A mapping between the FHIR and HL7 v3 AddressUse Code systems"] ; # 
  fhir:useContext ( [
     fhir:code [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "venue" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:text [ fhir:v "for CCDA Usage" ]

     ]
  ];
  fhir:ConceptMap.purpose [ fhir:value "To help implementers map from HL7 v3/CDA to FHIR"];
  fhir:ConceptMap.copyright [ fhir:value "Creative Commons 0"];
  fhir:ConceptMap.source [ fhir:value "http://hl7.org/fhir/ValueSet/address-use"];
  fhir:ConceptMap.target [ fhir:value "http://terminology.hl7.org/ValueSet/v3-AddressUse"];
  fhir:ConceptMap.group [
     fhir:index 0;
     fhir:ConceptMap.source [ fhir:value "http://hl7.org/fhir/address-use" ];
     fhir:ConceptMap.target [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-AddressUse" ];
     fhir:ConceptMap.element [
       fhir:index 0;
       fhir:ConceptMap.code [ fhir:value "home" ];
       fhir:ConceptMap.display [ fhir:value "home" ];
       fhir:ConceptMap.target [
         fhir:index 0;
         fhir:ConceptMap.code [ fhir:value "H" ];
         fhir:ConceptMap.display [ fhir:value "home" ];
         fhir:ConceptMap.equivalence [ fhir:value "equivalent" ]
       ]
     ], [
       fhir:index 1;
       fhir:ConceptMap.code [ fhir:value "work" ];
       fhir:ConceptMap.display [ fhir:value "work" ];
       fhir:ConceptMap.target [
         fhir:index 0;
         fhir:ConceptMap.code [ fhir:value "WP" ];
         fhir:ConceptMap.display [ fhir:value "work place" ];
         fhir:ConceptMap.equivalence [ fhir:value "equivalent" ]
       ]
     ], [
       fhir:index 2;
       fhir:ConceptMap.code [ fhir:value "temp" ];
       fhir:ConceptMap.display [ fhir:value "temp" ];
       fhir:ConceptMap.target [
         fhir:index 0;
         fhir:ConceptMap.code [ fhir:value "TMP" ];
         fhir:ConceptMap.display [ fhir:value "temporary address" ];
         fhir:ConceptMap.equivalence [ fhir:value "equivalent" ]
       ]
     ], [
       fhir:index 3;
       fhir:ConceptMap.code [ fhir:value "old" ];
       fhir:ConceptMap.display [ fhir:value "old" ];
       fhir:ConceptMap.target [
         fhir:index 0;
         fhir:ConceptMap.code [ fhir:value "BAD" ];
         fhir:ConceptMap.display [ fhir:value "bad address" ];
         fhir:ConceptMap.equivalence [ fhir:value "disjoint" ];
         fhir:ConceptMap.comment [ fhir:value "In the HL7 v3 AD, old is handled by the usablePeriod element, but you have to provide a time, there's no simple equivalent of flagging an address as old" ]
       ]
     ];
     fhir:ConceptMap.unmapped [
       fhir:ConceptMap.mode [ fhir:value "fixed" ];
       fhir:ConceptMap.code [ fhir:value "temp" ];
       fhir:ConceptMap.display [ fhir:value "temp" ]

  ] ) ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "US" ]
     ] )
  ] ) ; # 
  fhir:purpose [ fhir:v "To help implementers map from FHIR to HL7 v3/CDA"] ; # 
  fhir:copyright [ fhir:v "Creative Commons 0"] ; # 
  fhir:sourceScope [ fhir:v "http://hl7.org/fhir/ValueSet/address-use"^^xsd:anyURI] ; # 
  fhir:targetScope [ fhir:v "http://terminology.hl7.org/ValueSet/v3-AddressUse"^^xsd:anyURI] ; # 
  fhir:group ( [
     fhir:source [
       fhir:v "http://hl7.org/fhir/address-use"^^xsd:anyURI ;
       fhir:link <http://hl7.org/fhir/address-use>
     ] ;
     fhir:target [
       fhir:v "http://terminology.hl7.org/CodeSystem/v3-AddressUse"^^xsd:anyURI ;
       fhir:link <http://terminology.hl7.org/CodeSystem/v3-AddressUse>
     ] ;
     fhir:element ( [
       fhir:code [ fhir:v "home" ] ;
       fhir:display [ fhir:v "home" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "H" ] ;
         fhir:display [ fhir:v "home" ] ;
         fhir:relationship [ fhir:v "equivalent" ]
       ] )
     ] [
       fhir:code [ fhir:v "work" ] ;
       fhir:display [ fhir:v "work" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "WP" ] ;
         fhir:display [ fhir:v "work place" ] ;
         fhir:relationship [ fhir:v "equivalent" ]
       ] )
     ] [
       fhir:code [ fhir:v "temp" ] ;
       fhir:display [ fhir:v "temp" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "TMP" ] ;
         fhir:display [ fhir:v "temporary address" ] ;
         fhir:relationship [ fhir:v "equivalent" ]
       ] )
     ] [
       fhir:code [ fhir:v "old" ] ;
       fhir:display [ fhir:v "old" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "BAD" ] ;
         fhir:display [ fhir:v "bad address" ] ;
         fhir:relationship [ fhir:v "not-related-to" ] ;
         fhir:comment [ fhir:v "In the HL7 v3 AD, old is handled by the usablePeriod element, but you have to provide a time, there's no simple equivalent of flagging an address as old" ]
       ] )
     ] ) ;
     fhir:unmapped [
       fhir:mode [ fhir:v "fixed" ] ;
       fhir:code [ fhir:v "temp" ] ;
       fhir:display [ fhir:v "temp" ] ;
       fhir:relationship [ fhir:v "related-to" ]

     ]
  ] .

  ] )] . # 


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


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.