ConsenttoSGHI5
type: StructureMap
node role: treeRoot
id:
  v: ConsenttoSGHI5
text:
  status:
    v: generated
  div:
    v: Generated Narrative: StructureMap ConsenttoSGHI5 #xD; /// url = 'https://fhir.slade360.co.ke/fhir/StructureMap/ConsenttoSGHI5'#xD; /// name = 'ConsenttoSGHI5'#xD; /// title = 'Consent Transforms: R4 → SGHI R5'#xD; /// status = 'active'#xD; #xD; uses "http://hl7.org/fhir/4.0/StructureDefinition/Consent" alias ConsentR4 as source#xD; uses "https://fhir.slade360.co.ke/fhir/StructureDefinition/consent" alias SGHIConsent as target#xD; #xD; imports "http://hl7.org/fhir/StructureMap/*4to5"#xD; #xD; group SGHIConsent(source src : ConsentR4, target tgt : SGHIConsent) extends DomainResource <<type+>> {#xD; src.id -> tgt.id;#xD; src.active -> tgt.active = 'true';#xD; src.language -> tgt.language;#xD; src where text.exists().not() -> tgt.text = create('Narrative') as tgt_n then {#xD; src -> tgt_n.status = 'generated' "settextstatus";#xD; src -> tgt_n.div = ' Generated text ' "settextdiv";#xD; } "createhardcodedtext";#xD; src.text as st -> tgt.text as tt then {#xD; st.status -> tt.status;#xD; st.div -> tt.div;#xD; };#xD; src as sc where identifier.exists().not() -> tgt.identifier = create('Identifier') as tt_id then {#xD; src.id as uuid -> tt_id.value = uuid "creating id";#xD; src -> tt_id.use = 'official' "creating use";#xD; src -> tt_id.type as ty then {#xD; src -> ty.coding = create('CodeableConcept') as ty_c then {#xD; src -> ty_c.system = 'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem' "creating coding";#xD; src -> ty_c.code = 'fhir-id' "creating code";#xD; src -> ty_c.display = 'FHIR Id' "creating display";#xD; } "creating identifier type";#xD; src -> tt_id.system = 'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem' "creating system";#xD; src.meta as sm then {#xD; sm.tag first as sm -> tt_id.assigner = create('Reference') as t_assigner then TransformAssigner(sm, t_assigner);#xD; } "setting owner"; // creating identifier assigner#xD; } "setting identifier type";#xD; } "setting identifier"; // Create identifier#xD; src.meta as s_meta -> t…
url:
  v: https://fhir.slade360.co.ke/fhir/StructureMap/ConsenttoSGHI5
  l: ConsenttoSGHI5
version:
  v: 0.1.0
name:
  v: ConsenttoSGHI5
title:
  v: Consent 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: ConsentTransformsR4SGHIR5
structure:
  url:
    v: http://hl7.org/fhir/4.0/StructureDefinition/Consent
    l: Consent
  mode:
    v: source
  alias:
    v: ConsentR4
structure:
  url:
    v: https://fhir.slade360.co.ke/fhir/StructureDefinition/consent
    l: consent
  mode:
    v: target
  alias:
    v: SGHIConsent
import:
  v: http://hl7.org/fhir/StructureMap/*4to5
  l: *4to5
group:
  name:
    v: SGHIConsent
  extends:
    v: DomainResource
  type mode:
    v: type-and-types
  input:
    name:
      v: src
    type:
      v: ConsentR4
    mode:
      v: source
  input:
    name:
      v: tgt
    type:
      v: SGHIConsent
    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
      parameter:
        value: Id
  rule:
    name:
      v: active
    source:
      context:
        v: src
      element:
        v: active
    target:
      context:
        v: tgt
      element:
        v: active
      transform:
        v: copy
      parameter:
        value: String
  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: createhardcodedtext
    source:
      context:
        v: src
      condition:
        v: text.exists().not()
    target:
      context:
        v: tgt
      element:
        v: text
      variable:
        v: tgt_n
      transform:
        v: create
      parameter:
        value: String
    rule:
      name:
        v: settextstatus
    rule:
      name:
        v: settextdiv
  rule:
    name:
      v: text
    source:
      context:
        v: src
      element:
        v: text
      variable:
        v: st
    target:
      context:
        v: tgt
      element:
        v: text
      variable:
        v: tt

Id
v: vvv

Id
v: vvv

String
v: true

Id
v: vvv

Id
v: vvv

String
v: Narrative

v: src

v: tgt_n

v: status

v: copy

value: String
  v: generated

v: src

v: tgt_n

v: div

v: copy

value: String
  v: Generated text

name:
  v: status
source:
  context:
    v: st
  element:
    v: status
  variable:
    v: vvv
target:
  context:
    v: tt
  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: div
source:
  context:
    v: st
  element:
    v: div
  variable:
    v: vvv
target:
  context:
    v: tt
  element:
    v: div
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value: Id
      v: vvv
  parameter:
    value: Id
      v: vvv

name:
  v: setting identifier
source:
  context:
    v: src
  variable:
    v: sc
  condition:
    v: identifier.exists().not()
target:
  context:
    v: tgt
  element:
    v: identifier
  variable:
    v: tt_id
  transform:
    v: create
  parameter:
    value: String
      v: Identifier
rule:
  name:
    v: creating id
  source:
    context:
      v: src
    element:
      v: id
    variable:
      v: uuid
  target:
    context:
      v: tt_id
    element:
      v: value
    transform:
      v: copy
    parameter:
      value: Id
        v: uuid
rule:
  name:
    v: creating use
  source:
    context:
      v: src
  target:
    context:
      v: tt_id
    element:
      v: use
    transform:
      v: copy
    parameter:
      value: String
        v: official
rule:
  name:
    v: setting identifier type
  source:
    context:
      v: src
  target:
    context:
      v: tt_id
    element:
      v: type
    variable:
      v: ty
  rule:
    name:
      v: creating identifier type
    source:
      context:
        v: src
    target:
      context:
        v: ty
      element:
        v: coding
      variable:
        v: ty_c
      transform:
        v: create
      parameter:
        value: String
    rule:
      name:
        v: creating coding
    rule:
      name:
        v: creating code
    rule:
      name:
        v: creating display
  rule:
    name:
      v: creating system
    source:
      context:
        v: src
    target:
      context:
        v: tt_id
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: String
  rule:
    name:
      v: setting owner
    source:
      context:
        v: src
      element:
        v: meta
      variable:
        v: sm
    rule:
      name:
        v: tag
    documentation:
      v: creating identifier assigner
documentation:
  v: Create identifier

String
v: CodeableConcept

v: src

v: ty_c

v: system

v: copy

v: src

v: ty_c

v: code

v: copy

value: String
  v: fhir-id

v: src

v: ty_c

v: display

v: copy

value: String
  v: FHIR Id

v: sm

v: tag

v: first

v: sm

v: tt_id

v: assigner

v: t_assigner

v: create

value: String
  v: Reference

v: TransformAssigner

value: Id
  v: sm

value: Id
  v: t_assigner

name:
  v: set profile in meta
source:
  context:
    v: src
  element:
    v: meta
  variable:
    v: s_meta
target:
  context:
    v: tgt
  element:
    v: meta
  variable:
    v: t_meta
rule:
  name:
    v: lastUpdated
  source:
    context:
      v: s_meta
    element:
      v: lastUpdated
    variable:
      v: vvv
  target:
    context:
      v: t_meta
    element:
      v: lastUpdated
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: language
  source:
    context:
      v: s_meta
    element:
      v: language
    variable:
      v: vvv
  target:
    context:
      v: t_meta
    element:
      v: language
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: tags
  source:
    context:
      v: s_meta
    element:
      v: tags
    variable:
      v: vvv
  target:
    context:
      v: t_meta
    element:
      v: tags
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: setprofileinmeta
  source:
    context:
      v: src
    element:
      v: meta
    condition:
      v: profile.exists().not()
  target:
    context:
      v: t_meta
    element:
      v: profile
    transform:
      v: copy
    parameter:
      value: String
        v: https://fhir.slade360.co.ke/fhir/StructureDefinition/consent

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: category
source:
  context:
    v: src
  element:
    v: category
  variable:
    v: sc
target:
  context:
    v: tgt
  element:
    v: category
  variable:
    v: tc
dependent:
  name:
    v: TransformCoding
  parameter:
    value: Id
      v: sc
  parameter:
    value: Id
      v: tc

name:
  v: patient
source:
  context:
    v: src
  element:
    v: patient
  variable:
    v: sp
target:
  context:
    v: tgt
  element:
    v: subject
  variable:
    v: tp
dependent:
  name:
    v: TransformReference
  parameter:
    value: Id
      v: sp
  parameter:
    value: Id
      v: tp
documentation:
  v: Patient has been translated to subject in R5

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

name:
  v: provision
source:
  context:
    v: src
  element:
    v: provision
  variable:
    v: spr
target:
  context:
    v: tgt
  element:
    v: provision
  variable:
    v: tpr
rule:
  name:
    v: data
  source:
    context:
      v: spr
    element:
      v: data
    variable:
      v: sd
  target:
    context:
      v: tpr
    element:
      v: data
    variable:
      v: td
  rule:
    name:
      v: meaning
    source:
      context:
        v: sd
      element:
        v: meaning
      variable:
        v: vvv
    target:
      context:
        v: td
      element:
        v: meaning
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
      parameter:
        value: Id
      parameter:
        value: Id
  rule:
    name:
      v: reference
    source:
      context:
        v: sd
      element:
        v: reference
      variable:
        v: sf
    target:
      context:
        v: td
      element:
        v: reference
      variable:
        v: tf
    dependent:
      name:
        v: TransformReference
      parameter:
        value: Id
      parameter:
        value: Id

Id
v: vvv

Id
v: vvv

Id
v: sf

Id
v: tf

name:
  v: performer
source:
  context:
    v: src
  element:
    v: performer
  variable:
    v: sp
  condition:
    v: performer.exists()
target:
  context:
    v: tgt
  element:
    v: grantee
  variable:
    v: tp
dependent:
  name:
    v: TransformReference
  parameter:
    value: Id
      v: sp
  parameter:
    value: Id
      v: tp
documentation:
  v: Performer has been translated to grantee in R5

name:
  v: populating grantee with patient details
source:
  context:
    v: src
  condition:
    v: performer.exists().not()
rule:
  name:
    v: patient
  source:
    context:
      v: src
    element:
      v: patient
    variable:
      v: sp
  target:
    context:
      v: tgt
    element:
      v: grantee
    variable:
      v: tp
  dependent:
    name:
      v: TransformReference
    parameter:
      value: Id
        v: sp
    parameter:
      value: Id
        v: tp
rule:
  name:
    v: patient
  source:
    context:
      v: src
    element:
      v: patient
    variable:
      v: sp
  target:
    context:
      v: tgt
    element:
      v: grantor
    variable:
      v: tp
  dependent:
    name:
      v: TransformReference
    parameter:
      value: Id
        v: sp
    parameter:
      value: Id
        v: tp
documentation:
  v: Handles cases where performer does not exists in legacy R4 data

name:
  v: organization
source:
  context:
    v: src
  element:
    v: organization
  variable:
    v: so
  condition:
    v: organization.exists()
target:
  context:
    v: tgt
  element:
    v: manager
  variable:
    v: tm
dependent:
  name:
    v: TransformReference
  parameter:
    value: Id
      v: so
  parameter:
    value: Id
      v: tm
documentation:
  v: handles cases where organization exists in legacy R4 data

name:
  v: organization
source:
  context:
    v: src
  element:
    v: organization
  variable:
    v: so
  condition:
    v: organization.exists()
target:
  context:
    v: tgt
  element:
    v: controller
  variable:
    v: tm
dependent:
  name:
    v: TransformReference
  parameter:
    value: Id
      v: so
  parameter:
    value: Id
      v: tm

name:
  v: setting manager and controller
source:
  context:
    v: src
  condition:
    v: organization.exists().not()
rule:
  name:
    v: meta
  source:
    context:
      v: src
    element:
      v: meta
    variable:
      v: sm
  rule:
    name:
      v: tag
    source:
      context:
        v: sm
      element:
        v: tag
      list mode:
        v: first
      variable:
        v: st
    target:
      context:
        v: tgt
      element:
        v: manager
      variable:
        v: tp
    dependent:
      name:
        v: TransformAssigner
      parameter:
        value: Id
      parameter:
        value: Id
  rule:
    name:
      v: tag
    source:
      context:
        v: sm
      element:
        v: tag
      list mode:
        v: first
      variable:
        v: st
    target:
      context:
        v: tgt
      element:
        v: controller
      variable:
        v: tp
    dependent:
      name:
        v: TransformAssigner
      parameter:
        value: Id
      parameter:
        value: Id
documentation:
  v: handles cases where organization does not exists in legacy R4 data

Id
v: st

Id
v: tp

Id
v: st

Id
v: tp

name:
  v: setting rule policy
source:
  context:
    v: src
  element:
    v: policyRule
  variable:
    v: sr
  condition:
    v: text.exists()
target:
  context:
    v: tgt
  element:
    v: regulatoryBasis
  variable:
    v: tr
  transform:
    v: create
  parameter:
    value: String
      v: CodeableConcept
rule:
  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
rule:
  name:
    v: setting coding
  source:
    context:
      v: src
  target:
    context:
      v: tr
    element:
      v: coding
    variable:
      v: tcc
    transform:
      v: create
    parameter:
      value: String
        v: Coding
  target:
    context:
      v: tcc
    element:
      v: system
    transform:
      v: copy
    parameter:
      value: String
        v: https://hl7.org/fhir/R4/codesystem-consent-policy.html
  target:
    context:
      v: tcc
    element:
      v: code
    transform:
      v: copy
    parameter:
      value: String
        v: cric
  target:
    context:
      v: tcc
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: String
        v: Common Rule Informed Consent
documentation:
  v: Policyrule has been translated to regulatoryBasis in R4

name:
  v: setting verification
source:
  context:
    v: src
  condition:
    v: verification.exists().not()
target:
  context:
    v: tgt
  element:
    v: verification
  variable:
    v: tb
  transform:
    v: create
  parameter:
    value: String
      v: BackboneElement
rule:
  name:
    v: setting verified status
  source:
    context:
      v: src
  target:
    context:
      v: tb
    element:
      v: verified
    transform:
      v: copy
    parameter:
      value: String
        v: true
rule:
  name:
    v: setting verification date
  source:
    context:
      v: src
  target:
    context:
      v: tb
    element:
      v: verificationDate
    transform:
      v: copy
    parameter:
      value: String
        v: 2025-06-16
rule:
  name:
    v: setting verify by
  source:
    context:
      v: src
    element:
      v: meta
    variable:
      v: sm
  rule:
    name:
      v: setting verified by
    source:
      context:
        v: sm
      element:
        v: tag
      list mode:
        v: last
      variable:
        v: st
    target:
      context:
        v: tb
      element:
        v: verifiedBy
      variable:
        v: tf
      transform:
        v: create
      parameter:
        value: String
    rule:
      name:
        v: code
    rule:
      name:
        v: display
    rule:
      name:
        v: display
    rule:
      name:
        v: code
rule:
  name:
    v: setting reference
  source:
    context:
      v: src
    element:
      v: patient
    variable:
      v: sp
  target:
    context:
      v: tb
    element:
      v: verifiedWith
    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

String
v: Reference

v: st

v: code

v: org

v: tf

v: reference

v: append

value: String
  v: Organization/

value: Id
  v: org

v: st

v: display

v: vvv

v: tf

v: display

v: vvv

v: create

v: DefaultMappingGroupAnonymousAlias

value: Id
  v: vvv

value: Id
  v: vvv

v: st

v: display

v: display.exists().not()

v: tf

v: display

v: copy

value: String
  v: Unknown display

v: st

v: code

v: vvv

v: tf

v: id

v: vvv

v: create

v: DefaultMappingGroupAnonymousAlias

value: Id
  v: vvv

value: Id
  v: vvv

name:
  v: category
source:
  context:
    v: src
  element:
    v: category
  variable:
    v: sc
target:
  context:
    v: tgt
  element:
    v: category
  variable:
    v: tc
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
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

name:
  v: provision
source:
  context:
    v: src
  element:
    v: provision
  variable:
    v: sp
rule:
  name:
    v: type
  source:
    context:
      v: sp
    element:
      v: type
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: decision
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv

name:
  v: dateTime
source:
  context:
    v: src
  element:
    v: dateTime
  variable:
    v: sdt
  condition:
    v: dateTime.exists()
target:
  context:
    v: tgt
  element:
    v: date
  transform:
    v: copy
  parameter:
    value: Id
      v: sdt

name:
  v: setting consent date
source:
  context:
    v: src
target:
  context:
    v: tgt
  element:
    v: date
  transform:
    v: copy
  parameter:
    value: String
      v: 2025-06-16

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: 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
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