hl7.datatype.Identifier_var.yml Maven / Gradle / Ivy
#
# (C) Copyright IBM Corp. 2020, 2022
#
# SPDX-License-Identifier: Apache-2.0
#
# Creates an identifier, you must provide all the values and variables, including those for CodeableConcept_var
---
# Used when a coding is not available but separate values are
type_1:
condition: $code NOT_NULL && $coding NULL
valueOf: datatype/CodeableConcept_var
generateList: true
expressionType: resource
# CodeableConcept_var uses these scope vars:
# $code (for CodeableConcept.Coding.code)
# $system (for CodeableConcept.Coding.system)
# $display (for CodeableConcept.Coding.display)
# $version (for CodeableConcept.Coding.version)
# $text (for CodeableConcept.text)
# Used when a coding is available
type_2:
condition: $coding NOT_NULL && $code NULL
valueOf: datatype/CodeableConcept
generateList: true
expressionType: resource
value:
type: STRING
valueOf: $valueIn
system_1:
type: STRING
valueOf: $systemId
system_2:
condition: $systemCX NOT_NULL
valueOf: $join
vars:
join: $systemCX, GeneralUtils.noWhiteSpace(join)
use:
condition: $use NOT_NULL
type: STRING
valueOf: $use
period:
condition: $start NOT_NULL || $end NOT_NULL
valueOf: datatype/Period
expressionType: resource
vars:
start: $start
end: $end