This page is part of the FHIR Specification (v3.3.0: R4 Ballot 2). 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 R2
Vocabulary Work Group | Maturity Level: 3 | Normative | Compartments: Not linked to any defined compartments |
Normative Candidate Note: This page is candidate normative content for R4 in the Conformance Package. Once normative, it will lose it's Maturity Level, and breaking changes will no longer be made.
A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models.
A concept map defines a mapping from a set of concepts defined in a code system (commonly referred to as the "system") to one or more concepts defined in other code systems. In the mapping context, a system can be a typical code system based on a recognized standard or local terminology (in any of its forms), or in some cases it may be an "implicit" code system that is not based on a recognized terminology but still represents a set of "concepts" that can be usefully mapped. Mappings are one way - from the source to the target system. In many cases, the reverse mappings are valid, but this cannot be assumed to be the case.
Mappings between code system concepts are only intended to be defined in the context of the specified source and target value sets - they are specific to a particular context of use. The mappings may be useful in other contexts, but this must be determined based on the context of use and meaning; it cannot be taken for granted automatically. An example where the usage context is important for choosing the correct mapping is mapping from a clinical terminology (e.g. SNOMED CT) to a classification (e.g. ICD-10) for either data analysis or billing. Mappings in the data analysis context would be targeted for an appropriate classification (often at a higher level), whereas in the billing context there may be specific requirements to be met (e.g. leaf level codes only) that could result in multiple mappings for a single source concept and then require additional information beyond the source concept itself in order to select the correct final mapping.
Note that all code systems (explicit or implicit) represented in FHIR have URI identifiers for value sets (also either explicit or implicit) that include the entire code system, and these "all codes" value sets can be used for mappings that are valid in all use contexts that are appropriate for the code system.
Each mapping for a concept from the source to target system includes an equivalence
property that specifies how similar the mapping is (or, in some cases, that there is no valid mapping).
There is one element
for each concept or field in the source value set or system that needs to be mapped.
Each source concept may have multiple targets:
There SHOULD be at least one target for each element, but some incomplete concept maps might not have a target for each concept.
While ConceptMap
resources are not referred to directly from any other
resource, they may be included and used in ImplementationGuide
resources, and provide background knowledge that is useful in many contexts, including
operations defined in this specification.
In addition to ConceptMap
, there is also the StructureMap
resource. The ConceptMap resource defines relationships between concepts in their own right,
along with grading of their equivalencies, while the StructureMap defines an executable
transform for instances that conform to a known structure.
Further discussion of the issues involved in mapping between concept definition systems can be found in the HL7 v3 Core Principles document and the functionality described in the OMG CTS 2 specification.
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
ConceptMap | N | DomainResource | A map from one set of concepts to one or more other concepts Elements defined in Ancestors: id, meta, implicitRules, language, text, contained, extension, modifierExtension | |
url | Σ | 0..1 | uri | Canonical identifier for this concept map, represented as a URI (globally unique) |
identifier | Σ | 0..1 | Identifier | Additional identifier for the concept map |
version | Σ | 0..1 | string | Business version of the concept map |
name | Σ | 0..1 | string | Name for this concept map (computer friendly) |
title | Σ | 0..1 | string | Name for this concept map (human friendly) |
status | ?!Σ | 1..1 | code | draft | active | retired | unknown PublicationStatus (Required) |
experimental | ?!Σ | 0..1 | boolean | For testing purposes, not real usage |
date | Σ | 0..1 | dateTime | Date last changed |
publisher | Σ | 0..1 | string | Name of the publisher (organization or individual) |
contact | Σ | 0..* | ContactDetail | Contact details for the publisher |
description | 0..1 | markdown | Natural language description of the concept map | |
useContext | ΣTU | 0..* | UsageContext | The context that the content is intended to support |
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for concept map (if applicable) Jurisdiction ValueSet (Extensible) |
purpose | 0..1 | markdown | Why this concept map is defined | |
copyright | 0..1 | markdown | Use and/or publishing restrictions | |
source[x] | Σ | 0..1 | The source value set that contains the concepts that are being mapped | |
sourceUri | uri | |||
sourceCanonical | canonical | |||
target[x] | Σ | 0..1 | The target value set which provides context for the mappings | |
targetUri | uri | |||
targetCanonical | canonical | |||
group | 0..* | BackboneElement | Same source and target systems | |
source | 0..1 | uri | Source system where concepts to be mapped are defined | |
sourceVersion | 0..1 | string | Specific version of the code system | |
target | 0..1 | uri | Target system that the concepts are to be mapped to | |
targetVersion | 0..1 | string | Specific version of the code system | |
element | 1..* | BackboneElement | Mappings for a concept from the source set | |
code | 0..1 | code | Identifies element being mapped | |
display | 0..1 | string | Display for the code | |
target | I | 0..* | BackboneElement | Concept in target system for element + If the map is narrower or inexact, there SHALL be some comments |
code | 0..1 | code | Code that identifies the target element | |
display | 0..1 | string | Display for the code | |
equivalence | ?! | 1..1 | code | relatedto | equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint ConceptMapEquivalence (Required) |
comment | I | 0..1 | string | Description of status/issues in mapping |
dependsOn | 0..* | BackboneElement | Other elements required for this mapping (from context) | |
property | 1..1 | uri | Reference to property mapping depends on | |
system | 0..1 | canonical | Code System (if necessary) | |
value | 1..1 | string | Value of the referenced element | |
display | 0..1 | string | Display for the code (if value is a code) | |
product | 0..* | see dependsOn | Other concepts that this mapping also produces | |
unmapped | I | 0..1 | BackboneElement | When there is no match for the source concept in the target system, so no mapping is available + If the mode is 'other-map', a url must be provided + If the mode is 'fixed', a code must be provided |
mode | 1..1 | code | provided | fixed | other-map ConceptMapGroupUnmappedMode (Required) | |
code | 0..1 | code | Fixed code when mode = fixed | |
display | 0..1 | string | Display for the code | |
url | 0..1 | canonical | Canonical URI for an additional ConceptMap to use for mapping if the source concept is unmapped | |
Documentation for this format |
UML Diagram (Legend)
XML Template
<ConceptMap xmlns="http://hl7.org/fhir"> <!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <url value="[uri]"/><!-- 0..1 Canonical identifier for this concept map, represented as a URI (globally unique) --> <identifier><!-- 0..1 Identifier Additional identifier for the concept map --></identifier> <version value="[string]"/><!-- 0..1 Business version of the concept map --> <name value="[string]"/><!-- 0..1 Name for this concept map (computer friendly) --> <title value="[string]"/><!-- 0..1 Name for this concept map (human friendly) --> <status value="[code]"/><!-- 1..1 draft | active | retired | unknown --> <experimental value="[boolean]"/><!-- 0..1 For testing purposes, not real usage --> <date value="[dateTime]"/><!-- 0..1 Date last changed --> <publisher value="[string]"/><!-- 0..1 Name of the publisher (organization or individual) --> <contact><!-- 0..* ContactDetail Contact details for the publisher --></contact> <description value="[markdown]"/><!-- 0..1 Natural language description of the concept map --> <useContext><!-- 0..* UsageContext The context that the content is intended to support --></useContext> <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for concept map (if applicable) --></jurisdiction> <purpose value="[markdown]"/><!-- 0..1 Why this concept map is defined --> <copyright value="[markdown]"/><!-- 0..1 Use and/or publishing restrictions --> <source[x]><!-- 0..1 uri|canonical(ValueSet) The source value set that contains the concepts that are being mapped --></source[x]> <target[x]><!-- 0..1 uri|canonical(ValueSet) The target value set which provides context for the mappings --></target[x]> <group> <!-- 0..* Same source and target systems --> <source value="[uri]"/><!-- 0..1 Source system where concepts to be mapped are defined --> <sourceVersion value="[string]"/><!-- 0..1 Specific version of the code system --> <target value="[uri]"/><!-- 0..1 Target system that the concepts are to be mapped to --> <targetVersion value="[string]"/><!-- 0..1 Specific version of the code system --> <element> <!-- 1..* Mappings for a concept from the source set --> <code value="[code]"/><!-- 0..1 Identifies element being mapped --> <display value="[string]"/><!-- 0..1 Display for the code --> <target> <!-- 0..* Concept in target system for element --> <code value="[code]"/><!-- 0..1 Code that identifies the target element --> <display value="[string]"/><!-- 0..1 Display for the code --> <equivalence value="[code]"/><!-- 1..1 relatedto | equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint --> <comment value="[string]"/><!-- 0..1 Description of status/issues in mapping --> <dependsOn> <!-- 0..* Other elements required for this mapping (from context) --> <property value="[uri]"/><!-- 1..1 Reference to property mapping depends on --> <system><!-- 0..1 canonical(CodeSystem) Code System (if necessary) --></system> <value value="[string]"/><!-- 1..1 Value of the referenced element --> <display value="[string]"/><!-- 0..1 Display for the code (if value is a code) --> </dependsOn> <product><!-- 0..* Content as for ConceptMap.group.element.target.dependsOn Other concepts that this mapping also produces --></product> </target> </element> <unmapped> <!-- 0..1 When there is no match for the source concept in the target system, so no mapping is available --> <mode value="[code]"/><!-- 1..1 provided | fixed | other-map --> <code value="[code]"/><!-- 0..1 Fixed code when mode = fixed --> <display value="[string]"/><!-- 0..1 Display for the code --> <url><!-- 0..1 canonical(ConceptMap) Canonical URI for an additional ConceptMap to use for mapping if the source concept is unmapped --></url> </unmapped> </group> </ConceptMap>
JSON Template
{ "resourceType" : "ConceptMap", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "url" : "<uri>", // Canonical identifier for this concept map, represented as a URI (globally unique) "identifier" : { Identifier }, // Additional identifier for the concept map "version" : "<string>", // Business version of the concept map "name" : "<string>", // Name for this concept map (computer friendly) "title" : "<string>", // Name for this concept map (human friendly) "status" : "<code>", // R! draft | active | retired | unknown "experimental" : <boolean>, // For testing purposes, not real usage "date" : "<dateTime>", // Date last changed "publisher" : "<string>", // Name of the publisher (organization or individual) "contact" : [{ ContactDetail }], // Contact details for the publisher "description" : "<markdown>", // Natural language description of the concept map "useContext" : [{ UsageContext }], // The context that the content is intended to support "jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for concept map (if applicable) "purpose" : "<markdown>", // Why this concept map is defined "copyright" : "<markdown>", // Use and/or publishing restrictions // source[x]: The source value set that contains the concepts that are being mapped. One of these 2: "sourceUri" : "<uri>", "sourceCanonical" : "<canonical>", // target[x]: The target value set which provides context for the mappings. One of these 2: "targetUri" : "<uri>", "targetCanonical" : "<canonical>", "group" : [{ // Same source and target systems "source" : "<uri>", // Source system where concepts to be mapped are defined "sourceVersion" : "<string>", // Specific version of the code system "target" : "<uri>", // Target system that the concepts are to be mapped to "targetVersion" : "<string>", // Specific version of the code system "element" : [{ // R! Mappings for a concept from the source set "code" : "<code>", // Identifies element being mapped "display" : "<string>", // Display for the code "target" : [{ // Concept in target system for element "code" : "<code>", // Code that identifies the target element "display" : "<string>", // Display for the code "equivalence" : "<code>", // R! relatedto | equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint "comment" : "<string>", // C? Description of status/issues in mapping "dependsOn" : [{ // Other elements required for this mapping (from context) "property" : "<uri>", // R! Reference to property mapping depends on "system" : "<canonical>", // Code System (if necessary) "value" : "<string>", // R! Value of the referenced element "display" : "<string>" // Display for the code (if value is a code) }], "product" : [{ Content as for ConceptMap.group.element.target.dependsOn }] // Other concepts that this mapping also produces }] }], "unmapped" : { // When there is no match for the source concept in the target system, so no mapping is available "mode" : "<code>", // R! provided | fixed | other-map "code" : "<code>", // Fixed code when mode = fixed "display" : "<string>", // Display for the code "url" : "<canonical>" // Canonical URI for an additional ConceptMap to use for mapping if the source concept is unmapped } }] }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ a fhir:ConceptMap; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:ConceptMap.url [ uri ]; # 0..1 Canonical identifier for this concept map, represented as a URI (globally unique) fhir:ConceptMap.identifier [ Identifier ]; # 0..1 Additional identifier for the concept map fhir:ConceptMap.version [ string ]; # 0..1 Business version of the concept map fhir:ConceptMap.name [ string ]; # 0..1 Name for this concept map (computer friendly) fhir:ConceptMap.title [ string ]; # 0..1 Name for this concept map (human friendly) fhir:ConceptMap.status [ code ]; # 1..1 draft | active | retired | unknown fhir:ConceptMap.experimental [ boolean ]; # 0..1 For testing purposes, not real usage fhir:ConceptMap.date [ dateTime ]; # 0..1 Date last changed fhir:ConceptMap.publisher [ string ]; # 0..1 Name of the publisher (organization or individual) fhir:ConceptMap.contact [ ContactDetail ], ... ; # 0..* Contact details for the publisher fhir:ConceptMap.description [ markdown ]; # 0..1 Natural language description of the concept map fhir:ConceptMap.useContext [ UsageContext ], ... ; # 0..* The context that the content is intended to support fhir:ConceptMap.jurisdiction [ CodeableConcept ], ... ; # 0..* Intended jurisdiction for concept map (if applicable) fhir:ConceptMap.purpose [ markdown ]; # 0..1 Why this concept map is defined fhir:ConceptMap.copyright [ markdown ]; # 0..1 Use and/or publishing restrictions # ConceptMap.source[x] : 0..1 The source value set that contains the concepts that are being mapped. One of these 2 fhir:ConceptMap.sourceUri [ uri ] fhir:ConceptMap.sourceCanonical [ canonical(ValueSet) ] # ConceptMap.target[x] : 0..1 The target value set which provides context for the mappings. One of these 2 fhir:ConceptMap.targetUri [ uri ] fhir:ConceptMap.targetCanonical [ canonical(ValueSet) ] fhir:ConceptMap.group [ # 0..* Same source and target systems fhir:ConceptMap.group.source [ uri ]; # 0..1 Source system where concepts to be mapped are defined fhir:ConceptMap.group.sourceVersion [ string ]; # 0..1 Specific version of the code system fhir:ConceptMap.group.target [ uri ]; # 0..1 Target system that the concepts are to be mapped to fhir:ConceptMap.group.targetVersion [ string ]; # 0..1 Specific version of the code system fhir:ConceptMap.group.element [ # 1..* Mappings for a concept from the source set fhir:ConceptMap.group.element.code [ code ]; # 0..1 Identifies element being mapped fhir:ConceptMap.group.element.display [ string ]; # 0..1 Display for the code fhir:ConceptMap.group.element.target [ # 0..* Concept in target system for element fhir:ConceptMap.group.element.target.code [ code ]; # 0..1 Code that identifies the target element fhir:ConceptMap.group.element.target.display [ string ]; # 0..1 Display for the code fhir:ConceptMap.group.element.target.equivalence [ code ]; # 1..1 relatedto | equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint fhir:ConceptMap.group.element.target.comment [ string ]; # 0..1 Description of status/issues in mapping fhir:ConceptMap.group.element.target.dependsOn [ # 0..* Other elements required for this mapping (from context) fhir:ConceptMap.group.element.target.dependsOn.property [ uri ]; # 1..1 Reference to property mapping depends on fhir:ConceptMap.group.element.target.dependsOn.system [ canonical(CodeSystem) ]; # 0..1 Code System (if necessary) fhir:ConceptMap.group.element.target.dependsOn.value [ string ]; # 1..1 Value of the referenced element fhir:ConceptMap.group.element.target.dependsOn.display [ string ]; # 0..1 Display for the code (if value is a code) ], ...; fhir:ConceptMap.group.element.target.product [ See ConceptMap.group.element.target.dependsOn ], ... ; # 0..* Other concepts that this mapping also produces ], ...; ], ...; fhir:ConceptMap.group.unmapped [ # 0..1 When there is no match for the source concept in the target system, so no mapping is available fhir:ConceptMap.group.unmapped.mode [ code ]; # 1..1 provided | fixed | other-map fhir:ConceptMap.group.unmapped.code [ code ]; # 0..1 Fixed code when mode = fixed fhir:ConceptMap.group.unmapped.display [ string ]; # 0..1 Display for the code fhir:ConceptMap.group.unmapped.url [ canonical(ConceptMap) ]; # 0..1 Canonical URI for an additional ConceptMap to use for mapping if the source concept is unmapped ]; ], ...; ]
Changes since R3
ConceptMap | |
ConceptMap.source[x] |
|
ConceptMap.target[x] |
|
ConceptMap.group.element.target.equivalence |
|
ConceptMap.group.element.target.dependsOn.system |
|
ConceptMap.group.element.target.dependsOn.value |
|
ConceptMap.group.unmapped.url |
|
ConceptMap.group.element.target.dependsOn.code |
|
See the Full Difference for further information
This analysis is available as XML or JSON.
See R2 <--> R3 Conversion Maps (status = 2 tests that all execute ok. All tests pass round-trip testing and 1 r3 resources are invalid (1 errors).). Note: these have note yet been updated to be R3 to R4
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
ConceptMap | N | DomainResource | A map from one set of concepts to one or more other concepts Elements defined in Ancestors: id, meta, implicitRules, language, text, contained, extension, modifierExtension | |
url | Σ | 0..1 | uri | Canonical identifier for this concept map, represented as a URI (globally unique) |
identifier | Σ | 0..1 | Identifier | Additional identifier for the concept map |
version | Σ | 0..1 | string | Business version of the concept map |
name | Σ | 0..1 | string | Name for this concept map (computer friendly) |
title | Σ | 0..1 | string | Name for this concept map (human friendly) |
status | ?!Σ | 1..1 | code | draft | active | retired | unknown PublicationStatus (Required) |
experimental | ?!Σ | 0..1 | boolean | For testing purposes, not real usage |
date | Σ | 0..1 | dateTime | Date last changed |
publisher | Σ | 0..1 | string | Name of the publisher (organization or individual) |
contact | Σ | 0..* | ContactDetail | Contact details for the publisher |
description | 0..1 | markdown | Natural language description of the concept map | |
useContext | ΣTU | 0..* | UsageContext | The context that the content is intended to support |
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for concept map (if applicable) Jurisdiction ValueSet (Extensible) |
purpose | 0..1 | markdown | Why this concept map is defined | |
copyright | 0..1 | markdown | Use and/or publishing restrictions | |
source[x] | Σ | 0..1 | The source value set that contains the concepts that are being mapped | |
sourceUri | uri | |||
sourceCanonical | canonical | |||
target[x] | Σ | 0..1 | The target value set which provides context for the mappings | |
targetUri | uri | |||
targetCanonical | canonical | |||
group | 0..* | BackboneElement | Same source and target systems | |
source | 0..1 | uri | Source system where concepts to be mapped are defined | |
sourceVersion | 0..1 | string | Specific version of the code system | |
target | 0..1 | uri | Target system that the concepts are to be mapped to | |
targetVersion | 0..1 | string | Specific version of the code system | |
element | 1..* | BackboneElement | Mappings for a concept from the source set | |
code | 0..1 | code | Identifies element being mapped | |
display | 0..1 | string | Display for the code | |
target | I | 0..* | BackboneElement | Concept in target system for element + If the map is narrower or inexact, there SHALL be some comments |
code | 0..1 | code | Code that identifies the target element | |
display | 0..1 | string | Display for the code | |
equivalence | ?! | 1..1 | code | relatedto | equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint ConceptMapEquivalence (Required) |
comment | I | 0..1 | string | Description of status/issues in mapping |
dependsOn | 0..* | BackboneElement | Other elements required for this mapping (from context) | |
property | 1..1 | uri | Reference to property mapping depends on | |
system | 0..1 | canonical | Code System (if necessary) | |
value | 1..1 | string | Value of the referenced element | |
display | 0..1 | string | Display for the code (if value is a code) | |
product | 0..* | see dependsOn | Other concepts that this mapping also produces | |
unmapped | I | 0..1 | BackboneElement | When there is no match for the source concept in the target system, so no mapping is available + If the mode is 'other-map', a url must be provided + If the mode is 'fixed', a code must be provided |
mode | 1..1 | code | provided | fixed | other-map ConceptMapGroupUnmappedMode (Required) | |
code | 0..1 | code | Fixed code when mode = fixed | |
display | 0..1 | string | Display for the code | |
url | 0..1 | canonical | Canonical URI for an additional ConceptMap to use for mapping if the source concept is unmapped | |
Documentation for this format |
XML Template
<ConceptMap xmlns="http://hl7.org/fhir"> <!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <url value="[uri]"/><!-- 0..1 Canonical identifier for this concept map, represented as a URI (globally unique) --> <identifier><!-- 0..1 Identifier Additional identifier for the concept map --></identifier> <version value="[string]"/><!-- 0..1 Business version of the concept map --> <name value="[string]"/><!-- 0..1 Name for this concept map (computer friendly) --> <title value="[string]"/><!-- 0..1 Name for this concept map (human friendly) --> <status value="[code]"/><!-- 1..1 draft | active | retired | unknown --> <experimental value="[boolean]"/><!-- 0..1 For testing purposes, not real usage --> <date value="[dateTime]"/><!-- 0..1 Date last changed --> <publisher value="[string]"/><!-- 0..1 Name of the publisher (organization or individual) --> <contact><!-- 0..* ContactDetail Contact details for the publisher --></contact> <description value="[markdown]"/><!-- 0..1 Natural language description of the concept map --> <useContext><!-- 0..* UsageContext The context that the content is intended to support --></useContext> <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for concept map (if applicable) --></jurisdiction> <purpose value="[markdown]"/><!-- 0..1 Why this concept map is defined --> <copyright value="[markdown]"/><!-- 0..1 Use and/or publishing restrictions --> <source[x]><!-- 0..1 uri|canonical(ValueSet) The source value set that contains the concepts that are being mapped --></source[x]> <target[x]><!-- 0..1 uri|canonical(ValueSet) The target value set which provides context for the mappings --></target[x]> <group> <!-- 0..* Same source and target systems --> <source value="[uri]"/><!-- 0..1 Source system where concepts to be mapped are defined --> <sourceVersion value="[string]"/><!-- 0..1 Specific version of the code system --> <target value="[uri]"/><!-- 0..1 Target system that the concepts are to be mapped to --> <targetVersion value="[string]"/><!-- 0..1 Specific version of the code system --> <element> <!-- 1..* Mappings for a concept from the source set --> <code value="[code]"/><!-- 0..1 Identifies element being mapped --> <display value="[string]"/><!-- 0..1 Display for the code --> <target> <!-- 0..* Concept in target system for element --> <code value="[code]"/><!-- 0..1 Code that identifies the target element --> <display value="[string]"/><!-- 0..1 Display for the code --> <equivalence value="[code]"/><!-- 1..1 relatedto | equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint --> <comment value="[string]"/><!-- 0..1 Description of status/issues in mapping --> <dependsOn> <!-- 0..* Other elements required for this mapping (from context) --> <property value="[uri]"/><!-- 1..1 Reference to property mapping depends on --> <system><!-- 0..1 canonical(CodeSystem) Code System (if necessary) --></system> <value value="[string]"/><!-- 1..1 Value of the referenced element --> <display value="[string]"/><!-- 0..1 Display for the code (if value is a code) --> </dependsOn> <product><!-- 0..* Content as for ConceptMap.group.element.target.dependsOn Other concepts that this mapping also produces --></product> </target> </element> <unmapped> <!-- 0..1 When there is no match for the source concept in the target system, so no mapping is available --> <mode value="[code]"/><!-- 1..1 provided | fixed | other-map --> <code value="[code]"/><!-- 0..1 Fixed code when mode = fixed --> <display value="[string]"/><!-- 0..1 Display for the code --> <url><!-- 0..1 canonical(ConceptMap) Canonical URI for an additional ConceptMap to use for mapping if the source concept is unmapped --></url> </unmapped> </group> </ConceptMap>
JSON Template
{ "resourceType" : "ConceptMap", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "url" : "<uri>", // Canonical identifier for this concept map, represented as a URI (globally unique) "identifier" : { Identifier }, // Additional identifier for the concept map "version" : "<string>", // Business version of the concept map "name" : "<string>", // Name for this concept map (computer friendly) "title" : "<string>", // Name for this concept map (human friendly) "status" : "<code>", // R! draft | active | retired | unknown "experimental" : <boolean>, // For testing purposes, not real usage "date" : "<dateTime>", // Date last changed "publisher" : "<string>", // Name of the publisher (organization or individual) "contact" : [{ ContactDetail }], // Contact details for the publisher "description" : "<markdown>", // Natural language description of the concept map "useContext" : [{ UsageContext }], // The context that the content is intended to support "jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for concept map (if applicable) "purpose" : "<markdown>", // Why this concept map is defined "copyright" : "<markdown>", // Use and/or publishing restrictions // source[x]: The source value set that contains the concepts that are being mapped. One of these 2: "sourceUri" : "<uri>", "sourceCanonical" : "<canonical>", // target[x]: The target value set which provides context for the mappings. One of these 2: "targetUri" : "<uri>", "targetCanonical" : "<canonical>", "group" : [{ // Same source and target systems "source" : "<uri>", // Source system where concepts to be mapped are defined "sourceVersion" : "<string>", // Specific version of the code system "target" : "<uri>", // Target system that the concepts are to be mapped to "targetVersion" : "<string>", // Specific version of the code system "element" : [{ // R! Mappings for a concept from the source set "code" : "<code>", // Identifies element being mapped "display" : "<string>", // Display for the code "target" : [{ // Concept in target system for element "code" : "<code>", // Code that identifies the target element "display" : "<string>", // Display for the code "equivalence" : "<code>", // R! relatedto | equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint "comment" : "<string>", // C? Description of status/issues in mapping "dependsOn" : [{ // Other elements required for this mapping (from context) "property" : "<uri>", // R! Reference to property mapping depends on "system" : "<canonical>", // Code System (if necessary) "value" : "<string>", // R! Value of the referenced element "display" : "<string>" // Display for the code (if value is a code) }], "product" : [{ Content as for ConceptMap.group.element.target.dependsOn }] // Other concepts that this mapping also produces }] }], "unmapped" : { // When there is no match for the source concept in the target system, so no mapping is available "mode" : "<code>", // R! provided | fixed | other-map "code" : "<code>", // Fixed code when mode = fixed "display" : "<string>", // Display for the code "url" : "<canonical>" // Canonical URI for an additional ConceptMap to use for mapping if the source concept is unmapped } }] }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ a fhir:ConceptMap; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:ConceptMap.url [ uri ]; # 0..1 Canonical identifier for this concept map, represented as a URI (globally unique) fhir:ConceptMap.identifier [ Identifier ]; # 0..1 Additional identifier for the concept map fhir:ConceptMap.version [ string ]; # 0..1 Business version of the concept map fhir:ConceptMap.name [ string ]; # 0..1 Name for this concept map (computer friendly) fhir:ConceptMap.title [ string ]; # 0..1 Name for this concept map (human friendly) fhir:ConceptMap.status [ code ]; # 1..1 draft | active | retired | unknown fhir:ConceptMap.experimental [ boolean ]; # 0..1 For testing purposes, not real usage fhir:ConceptMap.date [ dateTime ]; # 0..1 Date last changed fhir:ConceptMap.publisher [ string ]; # 0..1 Name of the publisher (organization or individual) fhir:ConceptMap.contact [ ContactDetail ], ... ; # 0..* Contact details for the publisher fhir:ConceptMap.description [ markdown ]; # 0..1 Natural language description of the concept map fhir:ConceptMap.useContext [ UsageContext ], ... ; # 0..* The context that the content is intended to support fhir:ConceptMap.jurisdiction [ CodeableConcept ], ... ; # 0..* Intended jurisdiction for concept map (if applicable) fhir:ConceptMap.purpose [ markdown ]; # 0..1 Why this concept map is defined fhir:ConceptMap.copyright [ markdown ]; # 0..1 Use and/or publishing restrictions # ConceptMap.source[x] : 0..1 The source value set that contains the concepts that are being mapped. One of these 2 fhir:ConceptMap.sourceUri [ uri ] fhir:ConceptMap.sourceCanonical [ canonical(ValueSet) ] # ConceptMap.target[x] : 0..1 The target value set which provides context for the mappings. One of these 2 fhir:ConceptMap.targetUri [ uri ] fhir:ConceptMap.targetCanonical [ canonical(ValueSet) ] fhir:ConceptMap.group [ # 0..* Same source and target systems fhir:ConceptMap.group.source [ uri ]; # 0..1 Source system where concepts to be mapped are defined fhir:ConceptMap.group.sourceVersion [ string ]; # 0..1 Specific version of the code system fhir:ConceptMap.group.target [ uri ]; # 0..1 Target system that the concepts are to be mapped to fhir:ConceptMap.group.targetVersion [ string ]; # 0..1 Specific version of the code system fhir:ConceptMap.group.element [ # 1..* Mappings for a concept from the source set fhir:ConceptMap.group.element.code [ code ]; # 0..1 Identifies element being mapped fhir:ConceptMap.group.element.display [ string ]; # 0..1 Display for the code fhir:ConceptMap.group.element.target [ # 0..* Concept in target system for element fhir:ConceptMap.group.element.target.code [ code ]; # 0..1 Code that identifies the target element fhir:ConceptMap.group.element.target.display [ string ]; # 0..1 Display for the code fhir:ConceptMap.group.element.target.equivalence [ code ]; # 1..1 relatedto | equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint fhir:ConceptMap.group.element.target.comment [ string ]; # 0..1 Description of status/issues in mapping fhir:ConceptMap.group.element.target.dependsOn [ # 0..* Other elements required for this mapping (from context) fhir:ConceptMap.group.element.target.dependsOn.property [ uri ]; # 1..1 Reference to property mapping depends on fhir:ConceptMap.group.element.target.dependsOn.system [ canonical(CodeSystem) ]; # 0..1 Code System (if necessary) fhir:ConceptMap.group.element.target.dependsOn.value [ string ]; # 1..1 Value of the referenced element fhir:ConceptMap.group.element.target.dependsOn.display [ string ]; # 0..1 Display for the code (if value is a code) ], ...; fhir:ConceptMap.group.element.target.product [ See ConceptMap.group.element.target.dependsOn ], ... ; # 0..* Other concepts that this mapping also produces ], ...; ], ...; fhir:ConceptMap.group.unmapped [ # 0..1 When there is no match for the source concept in the target system, so no mapping is available fhir:ConceptMap.group.unmapped.mode [ code ]; # 1..1 provided | fixed | other-map fhir:ConceptMap.group.unmapped.code [ code ]; # 0..1 Fixed code when mode = fixed fhir:ConceptMap.group.unmapped.display [ string ]; # 0..1 Display for the code fhir:ConceptMap.group.unmapped.url [ canonical(ConceptMap) ]; # 0..1 Canonical URI for an additional ConceptMap to use for mapping if the source concept is unmapped ]; ], ...; ]
Changes since DSTU2
ConceptMap | |
ConceptMap.source[x] |
|
ConceptMap.target[x] |
|
ConceptMap.group.element.target.equivalence |
|
ConceptMap.group.element.target.dependsOn.system |
|
ConceptMap.group.element.target.dependsOn.value |
|
ConceptMap.group.unmapped.url |
|
ConceptMap.group.element.target.dependsOn.code |
|
See the Full Difference for further information
This analysis is available as XML or JSON.
See R2 <--> R3 Conversion Maps (status = 2 tests that all execute ok. All tests pass round-trip testing and 1 r3 resources are invalid (1 errors).). Note: these have note yet been updated to be R3 to R4
Alternate definitions: Master Definition XML + JSON, XML Schema/Schematron + JSON Schema, ShEx (for Turtle) + see the extensions & the dependency analysis
Path | Definition | Type | Reference |
---|---|---|---|
ConceptMap.status | The lifecycle status of an artifact. | Required | PublicationStatus |
ConceptMap.jurisdiction | Countries and regions within which this artifact is targeted for use | Extensible | Jurisdiction ValueSet |
ConceptMap.group.element.target.equivalence | The degree of equivalence between concepts. | Required | ConceptMapEquivalence |
ConceptMap.group.unmapped.mode | Defines which action to take if there is no match in the group. | Required | ConceptMapGroupUnmappedMode |
system
, version
and code
elements are the same as used by the Coding data typeelement
for each source concept. If there is more than one, the target
statements are cumulative across them
The concept mappings in element
are arranged into groups that share common source/target systems.
These groups have no semantic significance; they exist to make the representation more concise. Concept maps
may contain more than one group with the same source and target - this would be a less concise representation
but may be useful in order to maintain a fixed order for the concepts that are mapped.
Concepts that are labeled as 'unmatched' are considered to be unmatched in the target value set,
irrespective of whether they are contained in a group with a stated target system or not. Groups
that contain no target system may only contained 'unmatched' concepts. There is no difference in
the meaning of an unmatched
target whether or not there is a stated target system.
The ConceptMap resource is intended to map between concepts defined in a code system. It can also be useful to use the ConceptMap resource to define relationships between concepts defined in other kinds of resources. Here are some common kind of conceptual maps:
Though these resources are not explicitly defining code systems, they do define 'concept's that
can still usefully be treated as code systems for the sake of subsetting (e.g. ValueSet)
and defining relationships (e.g. ConceptMap
). Note that this is different from
StructureMap because that is intended to define an
executional transform between structures, not a conceptual model.
This table summarizes how to treat these items as a terminology:
StructureDefinition | The StructureDefinition.url (canonical URL) is the system . Each .snapshot.element.id in the snapshot is a code in the code system |
Questionnaire | The Questionnaire.url (canonical URL) is the system . Each .item.linkId in the snapshot is a code in the code system. Items with no linkId cannot be addressed |
Medication | Medication resources are a bit different, since they don't have a canonical URL, and there are not multiple items in a resource. So to refer to a medication resource, the system is [base]/Medication, where base is the server address. The Logical Id of the resource is the code |
Search parameters for this resource. The common parameters also apply. See Searching for more information about searching in REST, messaging, and services.
Name | Type | Description | Expression | In Common |
date | date | The concept map publication date | ConceptMap.date | |
dependson | uri | Reference to property mapping depends on | ConceptMap.group.element.target.dependsOn.property | |
description | string | The description of the concept map | ConceptMap.description | |
identifier | token | External identifier for the concept map | ConceptMap.identifier | |
jurisdiction | token | Intended jurisdiction for the concept map | ConceptMap.jurisdiction | |
name | string | Computationally friendly name of the concept map | ConceptMap.name | |
other | reference | Canonical URI for an additional ConceptMap to use for mapping if the source concept is unmapped | ConceptMap.group.unmapped.url (ConceptMap) | |
product | uri | Reference to property mapping depends on | ConceptMap.group.element.target.product.property | |
publisher | string | Name of the publisher of the concept map | ConceptMap.publisher | |
source | reference | The source value set that contains the concepts that are being mapped | ConceptMap.source.as(canonical) (ValueSet) | |
source-code | token | Identifies element being mapped | ConceptMap.group.element.code | |
source-system | uri | Source system where concepts to be mapped are defined | ConceptMap.group.source | |
source-uri | reference | The source value set that contains the concepts that are being mapped | ConceptMap.source.as(uri) (ValueSet) | |
status | token | The current status of the concept map | ConceptMap.status | |
target | reference | The target value set which provides context for the mappings | ConceptMap.target.as(canonical) (ValueSet) | |
target-code | token | Code that identifies the target element | ConceptMap.group.element.target.code | |
target-system | uri | Target system that the concepts are to be mapped to | ConceptMap.group.target | |
target-uri | reference | The target value set which provides context for the mappings | ConceptMap.target.as(uri) (ValueSet) | |
title | string | The human-friendly name of the concept map | ConceptMap.title | |
url | uri | The uri that identifies the concept map | ConceptMap.url | |
version | token | The business version of the concept map | ConceptMap.version |