Release 5 Snapshot #1

This page is part of the FHIR Specification (v5.0.0-snapshot1: Release 5 Snapshot #1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Conceptmap2-example.ttl

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

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

General ConceptMap2 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 -------------------------------------------------------------------

<http://hl7.org/fhir/ConceptMap2/101> a fhir:ConceptMap2;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "101"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><div><p>Resource &quot;101&quot; </p></div><p><b>url</b>: <a>http://hl7.org/fhir/ConceptMap/101</a></p><p><b>identifier</b>: id: urn:uuid:53cd62ee-033e-414c-9f58-3ca97b5ffc3b</p><p><b>version</b>: 20120613</p><p><b>name</b>: FHIR-v3-Address-Use</p><p><b>title</b>: FHIR/v3 Address Use Mapping</p><p><b>status</b>: draft</p><p><b>experimental</b>: true</p><p><b>date</b>: 2012-06-13</p><p><b>publisher</b>: HL7, Inc</p><p><b>contact</b>: FHIR project team (example): <a>http://hl7.org/fhir</a></p><p><b>description</b>: A mapping between the FHIR and HL7 v3 AddressUse Code systems</p><p><b>jurisdiction</b>: United States of America <span> (unknown#US)</span></p><p><b>purpose</b>: To help implementers map from HL7 v3/CDA to FHIR</p><p><b>copyright</b>: Creative Commons 0</p><p><b>source</b>: <a>http://hl7.org/fhir/ValueSet/address-use</a></p><p><b>target</b>: <a>http://terminology.hl7.org/ValueSet/v3-AddressUse</a></p><blockquote><p><b>group</b></p><p><b>source</b>: <a>http://hl7.org/fhir/address-use</a></p><p><b>target</b>: <a>http://terminology.hl7.org/CodeSystem/v3-AddressUse</a></p><blockquote><p><b>element</b></p><p><b>code</b>: home</p><p><b>display</b>: home</p><h3>Targets</h3><table><tr><td>-</td><td><b>Code</b></td><td><b>Display</b></td><td><b>Relationship</b></td></tr><tr><td>*</td><td>H</td><td>home</td><td>equivalent</td></tr></table></blockquote><blockquote><p><b>element</b></p><p><b>code</b>: work</p><p><b>display</b>: work</p><h3>Targets</h3><table><tr><td>-</td><td><b>Code</b></td><td><b>Display</b></td><td><b>Relationship</b></td></tr><tr><td>*</td><td>WP</td><td>work place</td><td>equivalent</td></tr></table></blockquote><blockquote><p><b>element</b></p><p><b>code</b>: temp</p><p><b>display</b>: temp</p><h3>Targets</h3><table><tr><td>-</td><td><b>Code</b></td><td><b>Display</b></td><td><b>Relationship</b></td></tr><tr><td>*</td><td>TMP</td><td>temporary address</td><td>equivalent</td></tr></table></blockquote><blockquote><p><b>element</b></p><p><b>code</b>: old</p><p><b>display</b>: old</p><h3>Targets</h3><table><tr><td>-</td><td><b>Code</b></td><td><b>Display</b></td><td><b>Relationship</b></td><td><b>Comment</b></td></tr><tr><td>*</td><td>BAD</td><td>bad address</td><td>not-related-to</td><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></tr></table></blockquote><h3>Unmappeds</h3><table><tr><td>-</td><td><b>Mode</b></td><td><b>Code</b></td><td><b>Display</b></td></tr><tr><td>*</td><td>fixed</td><td>temp</td><td>temp</td></tr></table></blockquote></div>"
  ];
  fhir:ConceptMap2.url [ fhir:value "http://hl7.org/fhir/ConceptMap/101"];
  fhir:ConceptMap2.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:uuid:53cd62ee-033e-414c-9f58-3ca97b5ffc3b" ]
  ];
  fhir:ConceptMap2.version [ fhir:value "20120613"];
  fhir:ConceptMap2.name [ fhir:value "FHIR-v3-Address-Use"];
  fhir:ConceptMap2.title [ fhir:value "FHIR/v3 Address Use Mapping"];
  fhir:ConceptMap2.status [ fhir:value "draft"];
  fhir:ConceptMap2.experimental [ fhir:value "true"^^xsd:boolean];
  fhir:ConceptMap2.date [ fhir:value "2012-06-13"^^xsd:date];
  fhir:ConceptMap2.publisher [ fhir:value "HL7, Inc"];
  fhir:ConceptMap2.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:ConceptMap2.description [ fhir:value "A mapping between the FHIR and HL7 v3 AddressUse Code systems"];
  fhir:ConceptMap2.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.valueCodeableConcept [
       fhir:CodeableConcept.text [ fhir:value "for CCDA Usage" ]
     ]
  ];
  fhir:ConceptMap2.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" ]
     ]
  ];
  fhir:ConceptMap2.purpose [ fhir:value "To help implementers map from HL7 v3/CDA to FHIR"];
  fhir:ConceptMap2.copyright [ fhir:value "Creative Commons 0"];
  fhir:ConceptMap2.sourceUri [ fhir:value "http://hl7.org/fhir/ValueSet/address-use"];
  fhir:ConceptMap2.targetUri [ fhir:value "http://terminology.hl7.org/ValueSet/v3-AddressUse"];
  fhir:ConceptMap2.group [
     fhir:index 0;
     fhir:ConceptMap2.group.source [
       fhir:value "http://hl7.org/fhir/address-use";
       fhir:link <http://hl7.org/fhir/address-use>
     ];
     fhir:ConceptMap2.group.target [
       fhir:value "http://terminology.hl7.org/CodeSystem/v3-AddressUse";
       fhir:link <http://terminology.hl7.org/CodeSystem/v3-AddressUse>
     ];
     fhir:ConceptMap2.group.element [
       fhir:index 0;
       fhir:ConceptMap2.group.element.code [ fhir:value "home" ];
       fhir:ConceptMap2.group.element.display [ fhir:value "home" ];
       fhir:ConceptMap2.group.element.target [
         fhir:index 0;
         fhir:ConceptMap2.group.element.target.code [ fhir:value "H" ];
         fhir:ConceptMap2.group.element.target.display [ fhir:value "home" ];
         fhir:ConceptMap2.group.element.target.relationship [ fhir:value "equivalent" ]
       ]
     ], [
       fhir:index 1;
       fhir:ConceptMap2.group.element.code [ fhir:value "work" ];
       fhir:ConceptMap2.group.element.display [ fhir:value "work" ];
       fhir:ConceptMap2.group.element.target [
         fhir:index 0;
         fhir:ConceptMap2.group.element.target.code [ fhir:value "WP" ];
         fhir:ConceptMap2.group.element.target.display [ fhir:value "work place" ];
         fhir:ConceptMap2.group.element.target.relationship [ fhir:value "equivalent" ]
       ]
     ], [
       fhir:index 2;
       fhir:ConceptMap2.group.element.code [ fhir:value "temp" ];
       fhir:ConceptMap2.group.element.display [ fhir:value "temp" ];
       fhir:ConceptMap2.group.element.target [
         fhir:index 0;
         fhir:ConceptMap2.group.element.target.code [ fhir:value "TMP" ];
         fhir:ConceptMap2.group.element.target.display [ fhir:value "temporary address" ];
         fhir:ConceptMap2.group.element.target.relationship [ fhir:value "equivalent" ]
       ]
     ], [
       fhir:index 3;
       fhir:ConceptMap2.group.element.code [ fhir:value "old" ];
       fhir:ConceptMap2.group.element.display [ fhir:value "old" ];
       fhir:ConceptMap2.group.element.target [
         fhir:index 0;
         fhir:ConceptMap2.group.element.target.code [ fhir:value "BAD" ];
         fhir:ConceptMap2.group.element.target.display [ fhir:value "bad address" ];
         fhir:ConceptMap2.group.element.target.relationship [ fhir:value "not-related-to" ];
         fhir:ConceptMap2.group.element.target.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:ConceptMap2.group.unmapped [
       fhir:ConceptMap2.group.unmapped.mode [ fhir:value "fixed" ];
       fhir:ConceptMap2.group.unmapped.code [ fhir:value "temp" ];
       fhir:ConceptMap2.group.unmapped.display [ fhir:value "temp" ]
     ]
  ] .

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

<http://hl7.org/fhir/ConceptMap2/101.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/ConceptMap2/101.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.