conceptmap $translate
Concept Translation
Description: Translate a code from one value set to another, based on the specified ConceptMap resource. If no ConceptMap resource is specified, then other additional knowledge available to the server may be used.
One (and only one) of the in parameters (sourceCode, sourceCoding, sourceCodeableConcept, targetCode, targetCoding, or targetCodeableConcept) SHALL be provided, to identify the code that is to be translated.
The operation returns a set of parameters including a 'result' for whether there is an acceptable match, and a list of possible matches. Note that the list of matches may include notes of codes for which mapping is specifically excluded (i.e. 'not-related-to'), so implementers have to check the target.relationship for each match. If a source* parameter is provided, the $translate operation will return all matches whereby the provided source concept is the source of a mapping relationship (in a specified ConceptMap or otherwise known to the server). If a target* parameter is provided, the $translate operation will return all matches whereby the provided target concept is the target of a mapping relationship (in a specified ConceptMap or otherwise known to the server). Note: The source value set is an optional parameter because in some cases, the client cannot know what the source value set is. However, without a source value set, the server may be unable to safely identify an applicable concept map, and would return an error. For this reason, a source value set SHOULD always be provided. Note that servers may be able to identify an appropriate concept map without a source value set if there is a full mapping for the entire code system in the concept map, or by manual intervention.
Affects State: false
System: false
Type: true
Instance: true
URL: http://hl7.org/fhir/build/OperationDefinition/ConceptMap-translate
Parameters
- url [in] 0..1 uri — A canonical URL for a concept map. The server must know the concept map (e.g. it is defined explicitly in the server's concept maps, or it is defined implicitly by some code system known to the server.
- conceptMap [in] 0..1 ConceptMap — The concept map is provided directly as part of the request. Servers may choose not to accept concept maps in this fashion.
- conceptMapVersion [in] 0..1 string — The identifier that is used to identify a specific version of the concept map to be used for the translation. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available.
- sourceCode [in] 0..1 code — The code that is to be translated. If a code is provided, a system must be provided
- sourceSystem [in] 0..1 uri — The system for the sourceCode to be translated. Note: the previous name of this input parameter was
system, and servers MAY choose to still accept that name - sourceVersion [in] 0..1 string — The version for the system of the sourceCode to be translated. Note: the previous name of this input parameter was
version, and servers MAY choose to still accept that name. - sourceScope [in] 0..1 uri — Limits the scope of the $translate operation to source codes (ConceptMap.group.element.code) that are members of this value set.
- sourceCoding [in] 0..1 Coding — A coding to translate
- sourceCodeableConcept [in] 0..1 CodeableConcept — A full codeableConcept to validate. The server can translate any of the coding values (e.g. existing translations) as it chooses
- targetCode [in] 0..1 code — The target code that is to be translated to. If a code is provided, a system must be provided
- targetCoding [in] 0..1 Coding — A target coding to translate to
- targetCodeableConcept [in] 0..1 CodeableConcept — A full codeableConcept to validate. The server can translate any of the coding values (e.g. existing translations) as it chooses
- targetScope [in] 0..1 uri — Limits the scope of the $translate operation to target codes (ConceptMap.group.element.target.code) that are members of this value set.
- targetSystem [in] 0..1 uri — identifies a target code system in which a mapping is sought. This parameter is an alternative to the targetScope parameter - only one is required. Searching for any translation to a target code system irrespective of the context (e.g. target valueset) may lead to unsafe results, and it is at the discretion of the server to decide when to support this operation
- dependency [in] 0..* — Data from another attribute that may help produce the correct mapping
- result [out] 1..1 boolean — True if the concept could be translated successfully. The value can only be true if at least one returned match has a relationship other than 'not-related-to'.
- message [out] 0..1 string — Error details, for display to a human. If this is provided when result = true, the message carries hints and warnings (e.g. a note that the matches could be improved by providing additional detail)
- match [out] 0..* — A concept in the target value set with a relationship. Note that there may be multiple matches of equal or differing relationships, and the matches may include the 'not-related-to' relationship value which means that there is no translation