AllergyIntoleranceSGHI5
type: StructureMap
node role: treeRoot
id:
  v: AllergyIntoleranceSGHI5
text:
  status:
    v: generated
  div:
    v: Generated Narrative: StructureMap AllergyIntoleranceSGHI5 #xD; /// url = 'https://fhir.slade360.co.ke/fhir/StructureMap/AllergyIntoleranceSGHI5'#xD; /// name = 'AllergyIntoleranceSGHI5'#xD; /// title = 'Encounter Transforms: R4 → SGHI R5'#xD; /// status = 'active'#xD; #xD; uses "http://hl7.org/fhir/4.0/StructureDefinition/AllergyIntolerance" alias AllergyIntoleranceR4 as source#xD; uses "https://fhir.slade360.co.ke/fhir/StructureDefinition/allergyintolerance" alias SGHIAllergyIntolerance as target#xD; #xD; imports "http://hl7.org/fhir/StructureMap/*4to5"#xD; #xD; group SGHIAllergyIntolerance(source src : AllergyIntoleranceR4, target tgt : SGHIAllergyIntolerance) <<type+>> {#xD; src.id as uuid -> tgt.id = uuid;#xD; src.active -> tgt.active;#xD; src.language -> tgt.language;#xD; src -> tgt.meta as t_meta then {#xD; src -> t_meta.profile = 'https://fhir.slade360.co.ke/fhir/StructureDefinition/allergyintolerance' "addprofile";#xD; } "addtometa";#xD; src where text.exists().not() -> tgt.text = create('Narrative') as t_text then {#xD; src -> t_text.status = 'generated' "settextstatus";#xD; src -> t_text.div = ' Generated text ' "settextdiv";#xD; } "createhardcodedtext";#xD; src -> tgt.text = create('Narrative') as ttt then {#xD; src.text as st then {#xD; st.status as s -> ttt.status = s;#xD; st.div as d -> ttt.div = (' ' + d + ' ') "wraptextinhtml";#xD; };#xD; } "setting text";#xD; src.id as s_id -> tgt.identifier = create('Identifier') as t_ident then {#xD; s_id as uuid -> t_ident.value = uuid "copyid";#xD; src -> t_ident.use = 'official' "setuse";#xD; src -> t_ident.system = 'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem' "setsystem";#xD; src -> t_ident.type = create('CodeableConcept') as t_type then {#xD; src -> t_type.coding = create('Coding') as t_code then {#xD; src -> t_code.system = 'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem' "typesystem";#xD; src -> t_code.code = 'fhir-id' "typecode";#xD; src -> t_code.display = 'FHIR I…
url:
  v: https://fhir.slade360.co.ke/fhir/StructureMap/AllergyIntoleranceSGHI5
  l: AllergyIntoleranceSGHI5
version:
  v: 0.1.0
name:
  v: AllergyIntoleranceSGHI5
title:
  v: Encounter Transforms: R4 → SGHI R5
status:
  v: active
date:
  v: 2026-04-27T09:21:43+00:00
publisher:
  v: Kathurima Kimathi
contact:
  name:
    v: Kathurima Kimathi
  telecom:
    system:
      v: url
    value:
      v: https://www.linkedin.com/in/kathurima-kimathi/
  telecom:
    system:
      v: email
contact:
  name:
    v: Oscar John
  telecom:
    system:
      v: email
    use:
      v: work
contact:
  name:
    v: Kennedy Omondi
  telecom:
    system:
      v: email
    use:
      v: work
description:
  v: EncounterTransformsR4SGHIR5
structure:
  url:
    v: http://hl7.org/fhir/4.0/StructureDefinition/AllergyIntolerance
    l: AllergyIntolerance
  mode:
    v: source
  alias:
    v: AllergyIntoleranceR4
structure:
  url:
    v: https://fhir.slade360.co.ke/fhir/StructureDefinition/allergyintolerance
    l: allergyintolerance
  mode:
    v: target
  alias:
    v: SGHIAllergyIntolerance
import:
  v: http://hl7.org/fhir/StructureMap/*4to5
  l: *4to5
group:
  name:
    v: SGHIAllergyIntolerance
  type mode:
    v: type-and-types
  input:
    name:
      v: src
    type:
      v: AllergyIntoleranceR4
    mode:
      v: source
  input:
    name:
      v: tgt
    type:
      v: SGHIAllergyIntolerance
    mode:
      v: target
  rule:
    name:
      v: id
    source:
      context:
        v: src
      element:
        v: id
      variable:
        v: uuid
    target:
      context:
        v: tgt
      element:
        v: id
      transform:
        v: copy
      parameter:
        value: Id
  rule:
    name:
      v: active
    source:
      context:
        v: src
      element:
        v: active
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: active
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
      parameter:
        value: Id
      parameter:
        value: Id
  rule:
    name:
      v: language
    source:
      context:
        v: src
      element:
        v: language
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: language
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
      parameter:
        value: Id
      parameter:
        value: Id
  rule:
    name:
      v: addtometa
    source:
      context:
        v: src
    target:
      context:
        v: tgt
      element:
        v: meta
      variable:
        v: t_meta
    rule:
      name:
        v: addprofile
  rule:
    name:
      v: createhardcodedtext
    source:
      context:
        v: src
      condition:
        v: text.exists().not()
    target:
      context:
        v: tgt
      element:
        v: text
      variable:
        v: t_text
      transform:
        v: create
      parameter:
        value: String
    rule:
      name:
        v: settextstatus
    rule:
      name:
        v: settextdiv

Id
v: uuid

Id
v: vvv

Id
v: vvv

Id
v: vvv

Id
v: vvv

v: src

v: t_meta

v: profile

v: copy

String
v: Narrative

v: src

v: t_text

v: status

v: copy

value: String
  v: generated

context:
  v: src

context:
  v: t_text
element:
  v: div
transform:
  v: copy
parameter:
  value: String
    v: Generated text

name:
  v: setting text
source:
  context:
    v: src
target:
  context:
    v: tgt
  element:
    v: text
  variable:
    v: ttt
  transform:
    v: create
  parameter:
    value: String
      v: Narrative
rule:
  name:
    v: text
  source:
    context:
      v: src
    element:
      v: text
    variable:
      v: st
  rule:
    name:
      v: status
    source:
      context:
        v: st
      element:
        v: status
      variable:
        v: s
    target:
      context:
        v: ttt
      element:
        v: status
      transform:
        v: copy
      parameter:
        value: Id
  rule:
    name:
      v: wraptextinhtml
    source:
      context:
        v: st
      element:
        v: div
      variable:
        v: d
    target:
      context:
        v: ttt
      element:
        v: div
      transform:
        v: evaluate
      parameter:
        value: String

Id
v: s

String
v: ' ' + d + ' '

name:
  v: addfhirididentifier
source:
  context:
    v: src
  element:
    v: id
  variable:
    v: s_id
target:
  context:
    v: tgt
  element:
    v: identifier
  variable:
    v: t_ident
  transform:
    v: create
  parameter:
    value: String
      v: Identifier
rule:
  name:
    v: copyid
  source:
    context:
      v: s_id
    variable:
      v: uuid
  target:
    context:
      v: t_ident
    element:
      v: value
    transform:
      v: copy
    parameter:
      value: Id
        v: uuid
rule:
  name:
    v: setuse
  source:
    context:
      v: src
  target:
    context:
      v: t_ident
    element:
      v: use
    transform:
      v: copy
    parameter:
      value: String
        v: official
rule:
  name:
    v: setsystem
  source:
    context:
      v: src
  target:
    context:
      v: t_ident
    element:
      v: system
    transform:
      v: copy
    parameter:
      value: String
        v: https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem
rule:
  name:
    v: inittype
  source:
    context:
      v: src
  target:
    context:
      v: t_ident
    element:
      v: type
    variable:
      v: t_type
    transform:
      v: create
    parameter:
      value: String
        v: CodeableConcept
  rule:
    name:
      v: initcoding
    source:
      context:
        v: src
    target:
      context:
        v: t_type
      element:
        v: coding
      variable:
        v: t_code
      transform:
        v: create
      parameter:
        value: String
    rule:
      name:
        v: typesystem
    rule:
      name:
        v: typecode
    rule:
      name:
        v: typedisplay
rule:
  name:
    v: setting owner
  source:
    context:
      v: src
    element:
      v: meta
    variable:
      v: sm
  rule:
    name:
      v: tag
    source:
      context:
        v: sm
      element:
        v: tag
      list mode:
        v: last
      variable:
        v: st
    target:
      context:
        v: t_ident
      element:
        v: assigner
      variable:
        v: ta
      transform:
        v: create
      parameter:
        value: String
    dependent:
      name:
        v: TransformAssigner
      parameter:
        value: Id
      parameter:
        value: Id

String
v: Coding

v: src

v: t_code

v: system

v: copy

v: src

v: t_code

v: code

v: copy

value: String
  v: fhir-id

v: src

v: t_code

v: display

v: copy

value: String
  v: FHIR Id

String
v: Reference

Id
v: st

Id
v: ta

name:
  v: clinicalStatus
source:
  context:
    v: src
  element:
    v: clinicalStatus
  variable:
    v: sg
target:
  context:
    v: tgt
  element:
    v: clinicalStatus
  variable:
    v: tg
rule:
  name:
    v: coding
  source:
    context:
      v: sg
    element:
      v: coding
    variable:
      v: sc
  target:
    context:
      v: tg
    element:
      v: coding
    variable:
      v: tc
  dependent:
    name:
      v: TransformCoding
    parameter:
      value: Id
        v: sc
    parameter:
      value: Id
        v: tc
rule:
  name:
    v: text
  source:
    context:
      v: sg
    element:
      v: text
    variable:
      v: vvv
  target:
    context:
      v: tg
    element:
      v: text
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv

name:
  v: verificationStatus
source:
  context:
    v: src
  element:
    v: verificationStatus
  variable:
    v: sv
target:
  context:
    v: tgt
  element:
    v: verificationStatus
  variable:
    v: tv
rule:
  name:
    v: coding
  source:
    context:
      v: sv
    element:
      v: coding
    variable:
      v: sc
  target:
    context:
      v: tv
    element:
      v: coding
    variable:
      v: tc
  dependent:
    name:
      v: TransformCoding
    parameter:
      value: Id
        v: sc
    parameter:
      value: Id
        v: tc
rule:
  name:
    v: text
  source:
    context:
      v: sv
    element:
      v: text
    variable:
      v: vvv
  target:
    context:
      v: tv
    element:
      v: text
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv

name:
  v: type
source:
  context:
    v: src
  element:
    v: type
  variable:
    v: st
  condition:
    v: type.exists()
target:
  context:
    v: tgt
  element:
    v: type
  transform:
    v: cc
  parameter:
    value: String
      v: http://hl7.org/fhir/allergy-intolerance-type
  parameter:
    value: Id
      v: st
  parameter:
    value: Id
      v: st

name:
  v: patient
source:
  context:
    v: src
  element:
    v: patient
  variable:
    v: sb
target:
  context:
    v: tgt
  element:
    v: patient
  variable:
    v: tb
dependent:
  name:
    v: TransformReference
  parameter:
    value: Id
      v: sb
  parameter:
    value: Id
      v: tb

name:
  v: encounter
source:
  context:
    v: src
  element:
    v: encounter
  variable:
    v: se
target:
  context:
    v: tgt
  element:
    v: encounter
  variable:
    v: te
rule:
  name:
    v: id
  source:
    context:
      v: se
    element:
      v: id
    variable:
      v: vvv
  target:
    context:
      v: te
    element:
      v: id
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: reference
  source:
    context:
      v: se
    element:
      v: reference
    variable:
      v: vvv
  target:
    context:
      v: te
    element:
      v: reference
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: setting reference
  source:
    context:
      v: se
    condition:
      v: reference.exists().not()
  rule:
    name:
      v: id
    source:
      context:
        v: se
      element:
        v: id
      variable:
        v: id
    target:
      context:
        v: te
      element:
        v: reference
      transform:
        v: append
      parameter:
        value: String
      parameter:
        value: Id
rule:
  name:
    v: display
  source:
    context:
      v: se
    element:
      v: display
    variable:
      v: vvv
  target:
    context:
      v: te
    element:
      v: display
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: setting the default display
  source:
    context:
      v: se
    condition:
      v: display.exists().not()
  target:
    context:
      v: te
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: String
        v: Unknown display

String
v: Encounter/

Id
v: id

name:
  v: code
source:
  context:
    v: src
  element:
    v: code
  variable:
    v: sc
target:
  context:
    v: tgt
  element:
    v: code
  variable:
    v: tc
rule:
  name:
    v: coding
  source:
    context:
      v: sc
    element:
      v: coding
    variable:
      v: scc
  target:
    context:
      v: tc
    element:
      v: coding
    variable:
      v: tcc
  dependent:
    name:
      v: TransformCoding
    parameter:
      value: Id
        v: scc
    parameter:
      value: Id
        v: tcc
rule:
  name:
    v: text
  source:
    context:
      v: sc
    element:
      v: text
    variable:
      v: vvv
  target:
    context:
      v: tc
    element:
      v: text
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv

name:
  v: category
source:
  context:
    v: src
  element:
    v: category
  variable:
    v: sg
target:
  context:
    v: tgt
  element:
    v: category
  variable:
    v: tg
rule:
  name:
    v: coding
  source:
    context:
      v: sg
    element:
      v: coding
    variable:
      v: sc
  target:
    context:
      v: tg
    element:
      v: coding
    variable:
      v: tc
  dependent:
    name:
      v: TransformCoding
    parameter:
      value: Id
        v: sc
    parameter:
      value: Id
        v: tc
rule:
  name:
    v: text
  source:
    context:
      v: sg
    element:
      v: text
    variable:
      v: vvv
  target:
    context:
      v: tg
    element:
      v: text
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv

name:
  v: criticality
source:
  context:
    v: src
  element:
    v: criticality
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: criticality
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value: Id
      v: vvv
  parameter:
    value: Id
      v: vvv

name:
  v: onsetDateTime
source:
  context:
    v: src
  element:
    v: onsetDateTime
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: recordedDate
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value: Id
      v: vvv
  parameter:
    value: Id
      v: vvv

name:
  v: reaction
source:
  context:
    v: src
  element:
    v: reaction
  variable:
    v: sre
target:
  context:
    v: tgt
  element:
    v: reaction
  variable:
    v: tre
rule:
  name:
    v: manifestation
  source:
    context:
      v: sre
    element:
      v: manifestation
    variable:
      v: scpt
  target:
    context:
      v: tre
    element:
      v: manifestation
    variable:
      v: tcpt
    transform:
      v: create
    parameter:
      value: String
        v: CodeableReference
  rule:
    name:
      v: creating codeable concept
    source:
      context:
        v: src
    target:
      context:
        v: tcpt
      element:
        v: concept
      variable:
        v: tcc
      transform:
        v: create
      parameter:
        value: String
    rule:
      name:
        v: coding
rule:
  name:
    v: description
  source:
    context:
      v: sre
    element:
      v: description
    variable:
      v: vvv
  target:
    context:
      v: tre
    element:
      v: description
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: severity
  source:
    context:
      v: sre
    element:
      v: severity
    variable:
      v: vvv
  target:
    context:
      v: tre
    element:
      v: severity
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: note
  source:
    context:
      v: sre
    element:
      v: note
    variable:
      v: sn
  target:
    context:
      v: tre
    element:
      v: note
    variable:
      v: tn
  dependent:
    name:
      v: TransformNote
    parameter:
      value: Id
        v: sn
    parameter:
      value: Id
        v: tn

String
v: CodeableConcept

v: scpt

v: coding

v: sc

v: tcc

v: coding

v: tc

v: create

value: String
  v: Coding

v: TransformCoding

value: Id
  v: sc

value: Id
  v: tc

name:
  v: severity
source:
  context:
    v: src
  element:
    v: severity
  variable:
    v: sv
target:
  context:
    v: tgt
  element:
    v: severity
  variable:
    v: tv
rule:
  name:
    v: coding
  source:
    context:
      v: sv
    element:
      v: coding
    variable:
      v: sc
  target:
    context:
      v: tv
    element:
      v: coding
    variable:
      v: tc
  rule:
    name:
      v: system
    source:
      context:
        v: sc
      element:
        v: system
    target:
      context:
        v: tc
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: String
  rule:
    name:
      v: code
    source:
      context:
        v: sc
      element:
        v: code
      variable:
        v: vvv
    target:
      context:
        v: tc
      element:
        v: code
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
      parameter:
        value: Id
      parameter:
        value: Id
  rule:
    name:
      v: display
    source:
      context:
        v: sc
      element:
        v: display
      variable:
        v: vvv
    target:
      context:
        v: tc
      element:
        v: display
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
      parameter:
        value: Id
      parameter:
        value: Id
rule:
  name:
    v: text
  source:
    context:
      v: sv
    element:
      v: text
    variable:
      v: vvv
  target:
    context:
      v: tv
    element:
      v: text
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv

Id
v: vvv

Id
v: vvv

Id
v: vvv

Id
v: vvv

name:
  v: setting participant
source:
  context:
    v: src
  condition:
    v: participant.exists().not()
target:
  context:
    v: tgt
  element:
    v: participant
  variable:
    v: tb
  transform:
    v: create
  parameter:
    value: String
      v: BackboneElement
rule:
  name:
    v: patient
  source:
    context:
      v: src
    element:
      v: patient
    variable:
      v: sp
  target:
    context:
      v: tb
    element:
      v: actor
    variable:
      v: trf
    transform:
      v: create
    parameter:
      value: String
        v: Reference
  dependent:
    name:
      v: TransformReference
    parameter:
      value: Id
        v: sp
    parameter:
      value: Id
        v: trf

name:
  v: recordedDate
source:
  context:
    v: src
  element:
    v: recordedDate
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: recordedDate
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value: Id
      v: vvv
  parameter:
    value: Id
      v: vvv

name:
  v: setting onset date
source:
  context:
    v: src
  condition:
    v: onsetDateTime.exists()
rule:
  name:
    v: onsetDateTime
  source:
    context:
      v: src
    element:
      v: onsetDateTime
    variable:
      v: sd
  target:
    context:
      v: tgt
    element:
      v: onset
    transform:
      v: copy
    parameter:
      value: Id
        v: sd

name:
  v: setting onset date
source:
  context:
    v: src
  condition:
    v: onsetDateTime.exists().not()
rule:
  name:
    v: recordedDate
  source:
    context:
      v: src
    element:
      v: recordedDate
    variable:
      v: sd
  target:
    context:
      v: tgt
    element:
      v: onset
    transform:
      v: copy
    parameter:
      value: Id
        v: sd

name:
  v: note
source:
  context:
    v: src
  element:
    v: note
  variable:
    v: sn
target:
  context:
    v: tgt
  element:
    v: note
  variable:
    v: tn
dependent:
  name:
    v: TransformNote
  parameter:
    value: Id
      v: sn
  parameter:
    value: Id
      v: tn

name:
  v: TransformAssigner
type mode:
  v: types
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: code
  source:
    context:
      v: src
    element:
      v: code
    variable:
      v: code
  target:
    context:
      v: tgt
    element:
      v: reference
    transform:
      v: append
    parameter:
      value: String
        v: Organization/
    parameter:
      value: Id
        v: code
rule:
  name:
    v: setting default display
  source:
    context:
      v: src
    condition:
      v: display.exists().not()
  target:
    context:
      v: tgt
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: String
        v: Unknown display
rule:
  name:
    v: display
  source:
    context:
      v: src
    element:
      v: display
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: display
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: code
  source:
    context:
      v: src
    element:
      v: code
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: id
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv

name:
  v: TransformReference
type mode:
  v: types
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: id
  source:
    context:
      v: src
    element:
      v: id
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: id
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: reference
  source:
    context:
      v: src
    element:
      v: reference
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: reference
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: display
  source:
    context:
      v: src
    element:
      v: display
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: display
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: setting display
  source:
    context:
      v: src
    condition:
      v: display.exists().not()
  target:
    context:
      v: tgt
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: String
        v: Unknown display

name:
  v: TransformCoding
type mode:
  v: types
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: code
  source:
    context:
      v: src
    element:
      v: code
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: code
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: display
  source:
    context:
      v: src
    element:
      v: display
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: display
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: settingdefaultdisplay
  source:
    context:
      v: src
    condition:
      v: display.exists().not()
  target:
    context:
      v: tgt
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: String
        v: Unknown display
rule:
  name:
    v: system
  source:
    context:
      v: src
    element:
      v: system
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: system
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv

name:
  v: TransformNote
type mode:
  v: types
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: time
  source:
    context:
      v: src
    element:
      v: time
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: time
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: text
  source:
    context:
      v: src
    element:
      v: text
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: text
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv