PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
PREFIX rdf:
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# A map from one set of concepts to one or more other concepts
EXTENDS @ CLOSED {
a [fhir:ConceptMap]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:url @?; # Canonical identifier for this
# concept map, represented as a URI
# (globally unique)
fhir:identifier @?; # Additional identifier for the
# concept map
fhir:version @?; # Business version of the concept map
fhir:versionAlgorithm @ OR
@ ?; # How to compare versions
fhir:name @?; # Name for this concept map
# (computer friendly)
fhir:title @?; # Name for this concept map (human
# friendly)
fhir:status @ AND
{fhir:v @fhirvs:publication-status}; # draft | active | retired | unknown
fhir:experimental @?; # For testing purposes, not real
# usage
fhir:date @?; # Date last changed
fhir:publisher @?; # Name of the publisher/steward
# (organization or individual)
fhir:contact @?; # Contact details for the publisher
fhir:description @?; # Natural language description of
# the concept map
fhir:useContext @?; # The context that the content is
# intended to support
fhir:jurisdiction @?; # Intended jurisdiction for concept
# map (if applicable)
fhir:purpose @?; # Why this concept map is defined
fhir:copyright @?; # Use and/or publishing restrictions
fhir:copyrightLabel @?; # Copyright holder and year(s)
fhir:approvalDate @?; # When the ConceptMap was approved
# by publisher
fhir:lastReviewDate @?; # When the ConceptMap was last
# reviewed by the publisher
fhir:effectivePeriod @?; # When the ConceptMap is expected to
# be used
fhir:topic @?; # E.g. Education, Treatment,
# Assessment, etc
fhir:author @?; # Who authored the ConceptMap
fhir:editor @?; # Who edited the ConceptMap
fhir:reviewer @?; # Who reviewed the ConceptMap
fhir:endorser @?; # Who endorsed the ConceptMap
fhir:relatedArtifact @?; # Additional documentation,
# citations, etc
fhir:property @?; # Additional properties of the
# mapping
fhir:additionalAttribute @?; # Definition of an additional
# attribute to act as a data source
# or target
fhir:sourceScope @ OR
(@ AND {fhir:link @ }) ?; # The source value set that contains
# the concepts that are being mapped
fhir:targetScope @ OR
(@ AND {fhir:link @ }) ?; # The target value set which
# provides context for the mappings
fhir:group @?; # Same source and target systems
}
# Same source and target systems
EXTENDS @ CLOSED {
fhir:source @?; # Source system where concepts to be
# mapped are defined
fhir:target @?; # Target system that the concepts
# are to be mapped to
fhir:element @; # Mappings for a concept from the
# source set
fhir:unmapped @?; # What to do when there is no
# mapping target for the source
# concept and
# ConceptMap.group.element.noMap is
# not true
}
# Mappings for a concept from the source set
EXTENDS @ CLOSED {
fhir:code @?; # Identifies element being mapped
fhir:display @?; # Display for the code
fhir:valueSet @?; # Identifies the set of concepts
# being mapped
fhir:noMap @?; # No mapping to a target concept for
# this source concept
fhir:target @?; # Concept in target system for
# element
}
# What to do when there is no mapping target for the source concept and ConceptMap.group.element.noMap is not true
EXTENDS @ CLOSED {
fhir:mode @ AND
{fhir:v @fhirvs:conceptmap-unmapped-mode}; # use-source-code | fixed | other-map
fhir:code @?; # Fixed code when mode = fixed
fhir:display @?; # Display for the code
fhir:valueSet @?; # Fixed code set when mode = fixed
fhir:relationship @ AND
{fhir:v @fhirvs:concept-map-relationship}?; # related-to | equivalent |
# source-is-narrower-than-target |
# source-is-broader-than-target |
# not-related-to
fhir:otherMap @?; # canonical reference to an
# additional ConceptMap to use for
# mapping if the source concept is
# unmapped
}
# Additional properties of the mapping
EXTENDS @ CLOSED {
fhir:code @; # Identifies the property on the
# mappings, and when referred to in
# the $translate operation
fhir:uri @?; # Formal identifier for the property
fhir:description @?; # Why the property is defined,
# and/or what it conveys
fhir:type @ AND
{fhir:v @fhirvs:conceptmap-property-type}; # Coding | string | integer |
# boolean | dateTime | decimal |
# code
fhir:system @?; # The CodeSystem from which code
# values come
}
# Definition of an additional attribute to act as a data source or target
EXTENDS @ CLOSED {
fhir:code @; # Identifies this additional
# attribute through this resource
fhir:uri @?; # Formal identifier for the data
# element referred to in this
# attribte
fhir:description @?; # Why the additional attribute is
# defined, and/or what the data
# element it refers to is
fhir:type @ AND
{fhir:v @fhirvs:conceptmap-attribute-type}; # code | Coding | string | boolean |
# Quantity
}
# Concept in target system for element
EXTENDS @ CLOSED {
fhir:code @?; # Code that identifies the target
# element
fhir:display @?; # Display for the code
fhir:valueSet @?; # Identifies the set of target
# concepts
fhir:relationship @ AND
{fhir:v @fhirvs:concept-map-relationship}; # related-to | equivalent |
# source-is-narrower-than-target |
# source-is-broader-than-target |
# not-related-to
fhir:comment @?; # Description of status/issues in
# mapping
fhir:property @?; # Property value for the source ->
# target mapping
fhir:dependsOn @?; # Other properties required for this
# mapping
fhir:product @?; # Other data elements that this
# mapping also produces
}
# Property value for the source -> target mapping
EXTENDS @ CLOSED {
fhir:code @; # Reference to
# ConceptMap.property.code
fhir:value @ OR
@ OR
@ OR
@ OR
@ OR
@ OR
@ ; # Value of the property for this
# concept
}
# Other properties required for this mapping
EXTENDS @ CLOSED {
fhir:attribute @; # A reference to a mapping attribute
# defined in
# ConceptMap.additionalAttribute
fhir:value @ OR
@ OR
@ OR
@ OR
@ ?; # Value of the referenced data
# element
fhir:valueSet @?; # The mapping depends on a data
# element with a value from this
# value set
}
#---------------------- Cardinality Types (OneOrMore) -------------------
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
#---------------------- Value Sets ------------------------
# The relationship between concepts.
fhirvs:concept-map-relationship ["related-to" "equivalent" "source-is-narrower-than-target" "source-is-broader-than-target" "not-related-to"]
# The type of a ConceptMap mapping attribute value.
fhirvs:conceptmap-attribute-type ["code" "Coding" "string" "boolean" "Quantity"]
# The type of a ConceptMap mapping property value.
fhirvs:conceptmap-property-type ["Coding" "string" "integer" "boolean" "dateTime" "decimal" "code"]
# Defines which action to take if there is no match in the group.
fhirvs:conceptmap-unmapped-mode ["use-source-code" "fixed" "other-map"]
# The lifecycle status of an artifact.
fhirvs:publication-status ["draft" "active" "retired" "unknown"]