MedicationRequestSGHI5
type: StructureMap
node role: treeRoot
id:
  v: MedicationRequestSGHI5
text:
  status:
    v: generated
  div:
    v: Generated Narrative: StructureMap MedicationRequestSGHI5 #xD; /// url = 'https://fhir.slade360.co.ke/fhir/StructureMap/MedicationRequestSGHI5'#xD; /// name = 'MedicationRequestSGHI5'#xD; /// title = 'MedicationRequest Transforms: R4 → SGHI R5'#xD; /// status = 'active'#xD; #xD; uses "http://hl7.org/fhir/4.0/StructureDefinition/MedicationRequest" alias MedicationRequestR4 as source#xD; uses "https://fhir.slade360.co.ke/fhir/StructureDefinition/medicationrequest" alias SGHIMedicationRequest as target#xD; #xD; imports "http://hl7.org/fhir/StructureMap/*4to5"#xD; #xD; group SGHIMedicationRequest(source src : MedicationRequestR4, target tgt : SGHIMedicationRequest) <<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/medicationrequest' "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 Id' …
url:
  v: https://fhir.slade360.co.ke/fhir/StructureMap/MedicationRequestSGHI5
  l: MedicationRequestSGHI5
version:
  v: 0.1.0
name:
  v: MedicationRequestSGHI5
title:
  v: MedicationRequest 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: MedicationRequestTransformsR4SGHIR5
structure:
  url:
    v: http://hl7.org/fhir/4.0/StructureDefinition/MedicationRequest
    l: MedicationRequest
  mode:
    v: source
  alias:
    v: MedicationRequestR4
structure:
  url:
    v: https://fhir.slade360.co.ke/fhir/StructureDefinition/medicationrequest
    l: medicationrequest
  mode:
    v: target
  alias:
    v: SGHIMedicationRequest
import:
  v: http://hl7.org/fhir/StructureMap/*4to5
  l: *4to5
group:
  name:
    v: SGHIMedicationRequest
  type mode:
    v: type-and-types
  input:
    name:
      v: src
    type:
      v: MedicationRequestR4
    mode:
      v: source
  input:
    name:
      v: tgt
    type:
      v: SGHIMedicationRequest
    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: status
source:
  context:
    v: src
  element:
    v: status
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: status
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value: Id
      v: vvv
  parameter:
    value: Id
      v: vvv

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

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

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

name:
  v: medication
source:
  context:
    v: src
  element:
    v: medication
  variable:
    v: sm
target:
  context:
    v: tgt
  element:
    v: medication
  variable:
    v: tm
  transform:
    v: create
  parameter:
    value: String
      v: CodeableReference
rule:
  name:
    v: set reference
  source:
    context:
      v: src
    condition:
      v: reference.exists().not()
  target:
    context:
      v: tm
    element:
      v: reference
    variable:
      v: trf
    transform:
      v: create
    parameter:
      value: String
        v: Reference
  rule:
    name:
      v: text
    source:
      context:
        v: sm
      element:
        v: text
      variable:
        v: vvv
    target:
      context:
        v: trf
      element:
        v: display
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
      parameter:
        value: Id
      parameter:
        value: Id
  rule:
    name:
      v: dummy reference
    source:
      context:
        v: sm
      element:
        v: text
      variable:
        v: txt
    target:
      context:
        v: trf
      element:
        v: reference
      transform:
        v: append
      parameter:
        value: String
      parameter:
        value: Id

Id
v: vvv

Id
v: vvv

String
v: Medication/

Id
v: txt

name:
  v: subject
source:
  context:
    v: src
  element:
    v: subject
  variable:
    v: sb
target:
  context:
    v: tgt
  element:
    v: subject
  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
dependent:
  name:
    v: TransformReference
  parameter:
    value: Id
      v: se
  parameter:
    value: Id
      v: te

name:
  v: requester
source:
  context:
    v: src
  element:
    v: requester
  variable:
    v: sr
target:
  context:
    v: tgt
  element:
    v: requester
  variable:
    v: tr
dependent:
  name:
    v: TransformReference
  parameter:
    value: Id
      v: sr
  parameter:
    value: Id
      v: tr

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: note
source:
  context:
    v: src
  element:
    v: note
  variable:
    v: sn
target:
  context:
    v: tgt
  element:
    v: note
  variable:
    v: tn
rule:
  name:
    v: time
  source:
    context:
      v: sn
    element:
      v: time
    variable:
      v: vvv
  target:
    context:
      v: tn
    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: sn
    element:
      v: text
    variable:
      v: vvv
  target:
    context:
      v: tn
    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: dosageInstruction
source:
  context:
    v: src
  element:
    v: dosageInstruction
  variable:
    v: sd
target:
  context:
    v: tgt
  element:
    v: dosageInstruction
  variable:
    v: td
rule:
  name:
    v: asNeeded
  source:
    context:
      v: sd
    element:
      v: asNeeded
    variable:
      v: vvv
  target:
    context:
      v: td
    element:
      v: asNeeded
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: doseAndRate
  source:
    context:
      v: sd
    element:
      v: doseAndRate
    variable:
      v: sd
  target:
    context:
      v: td
    element:
      v: doseAndRate
    variable:
      v: td
  rule:
    name:
      v: doseQuantity
    source:
      context:
        v: sd
      element:
        v: doseQuantity
      variable:
        v: sq
    target:
      context:
        v: td
      element:
        v: doseQuantity
      variable:
        v: tq
    rule:
      name:
        v: code
    rule:
      name:
        v: system
    rule:
      name:
        v: unit
    rule:
      name:
        v: value
rule:
  name:
    v: patientInstruction
  source:
    context:
      v: sd
    element:
      v: patientInstruction
    variable:
      v: vvv
  target:
    context:
      v: td
    element:
      v: patientInstruction
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: route
  source:
    context:
      v: sd
    element:
      v: route
    variable:
      v: sr
  target:
    context:
      v: td
    element:
      v: route
    variable:
      v: tr
  rule:
    name:
      v: coding
    source:
      context:
        v: sr
      element:
        v: coding
      variable:
        v: sc
    target:
      context:
        v: tr
      element:
        v: coding
      variable:
        v: tc
    dependent:
      name:
        v: TransformCoding
      parameter:
        value: Id
      parameter:
        value: Id
  rule:
    name:
      v: setting default route
    source:
      context:
        v: sr
      condition:
        v: coding.exists().not()
    target:
      context:
        v: tr
      element:
        v: coding
      variable:
        v: tc
      transform:
        v: create
      parameter:
        value: String
    target:
      context:
        v: tc
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: tc
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: tc
      element:
        v: display
      transform:
        v: copy

v: sq

v: code

v: vvv

v: tq

v: code

v: vvv

v: create

v: DefaultMappingGroupAnonymousAlias

value: Id
  v: vvv

value: Id
  v: vvv

v: sq

v: system

v: vvv

v: tq

v: system

v: vvv

v: create

v: DefaultMappingGroupAnonymousAlias

value: Id
  v: vvv

value: Id
  v: vvv

v: sq

v: unit

v: vvv

v: tq

v: unit

v: vvv

v: create

v: DefaultMappingGroupAnonymousAlias

value: Id
  v: vvv

value: Id
  v: vvv

v: sq

v: value

v: vvv

v: tq

v: value

v: vvv

v: create

v: DefaultMappingGroupAnonymousAlias

value: Id
  v: vvv

value: Id
  v: vvv

Id
v: sc

Id
v: tc

String
v: Coding

String
v: iv

value: String
  v: Intravenous

name:
  v: text
source:
  context:
    v: sr
  element:
    v: text
  variable:
    v: vvv
target:
  context:
    v: tr
  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: timing
source:
  context:
    v: sd
  element:
    v: timing
  variable:
    v: st
target:
  context:
    v: td
  element:
    v: timing
  variable:
    v: tt
rule:
  name:
    v: repeat
  source:
    context:
      v: st
    element:
      v: repeat
    variable:
      v: sp
  target:
    context:
      v: tt
    element:
      v: repeat
    variable:
      v: tp
  rule:
    name:
      v: boundsPeriod
    source:
      context:
        v: sp
      element:
        v: boundsPeriod
      variable:
        v: sprd
    target:
      context:
        v: tp
      element:
        v: boundsPeriod
      variable:
        v: tprd
    rule:
      name:
        v: end
    rule:
      name:
        v: start
  rule:
    name:
      v: duration
    source:
      context:
        v: sp
      element:
        v: duration
      variable:
        v: vvv
    target:
      context:
        v: tp
      element:
        v: duration
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
      parameter:
        value: Id
      parameter:
        value: Id
  rule:
    name:
      v: durationUnit
    source:
      context:
        v: sp
      element:
        v: durationUnit
      variable:
        v: vvv
    target:
      context:
        v: tp
      element:
        v: durationUnit
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
      parameter:
        value: Id
      parameter:
        value: Id
  rule:
    name:
      v: frequency
    source:
      context:
        v: sp
      element:
        v: frequency
      variable:
        v: vvv
    target:
      context:
        v: tp
      element:
        v: frequency
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
      parameter:
        value: Id
      parameter:
        value: Id
  rule:
    name:
      v: period
    source:
      context:
        v: sp
      element:
        v: period
      variable:
        v: vvv
    target:
      context:
        v: tp
      element:
        v: period
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
      parameter:
        value: Id
      parameter:
        value: Id
  rule:
    name:
      v: periodUnit
    source:
      context:
        v: sp
      element:
        v: periodUnit
      variable:
        v: vvv
    target:
      context:
        v: tp
      element:
        v: periodUnit
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
      parameter:
        value: Id
      parameter:
        value: Id

v: sprd

v: end

v: vvv

v: tprd

v: end

v: vvv

v: create

v: DefaultMappingGroupAnonymousAlias

value: Id
  v: vvv

value: Id
  v: vvv

v: sprd

v: start

v: vvv

v: tprd

v: start

v: vvv

v: create

v: DefaultMappingGroupAnonymousAlias

value: Id
  v: vvv

value: Id
  v: vvv

Id
v: vvv

Id
v: vvv

Id
v: vvv

Id
v: vvv

Id
v: vvv

Id
v: vvv

Id
v: vvv

Id
v: vvv

Id
v: vvv

Id
v: vvv

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