Patient4toSGHI5
type: StructureMap
node role: treeRoot
id:
  v: Patient4toSGHI5
text:
  status:
    v: generated
  div:
    v: Generated Narrative: StructureMap Patient4toSGHI5 #xD; /// url = 'https://fhir.slade360.co.ke/fhir/StructureMap/Patient4toSGHI5'#xD; /// name = 'Patient4toSGHI5'#xD; /// title = 'Patient Transforms: R4 → SGHI R5'#xD; /// status = 'active'#xD; #xD; uses "http://hl7.org/fhir/4.0/StructureDefinition/Patient" alias PatientR4 as source#xD; uses "https://fhir.slade360.co.ke/fhir/StructureDefinition/patient" alias SGHIPatient as target#xD; uses "https://fhir.slade360.co.ke/fhir/StructureDefinition/human-name" alias SGHIHumanName as produced#xD; uses "https://fhir.slade360.co.ke/fhir/StructureDefinition/contact-point" alias SGHIContactPoint as produced#xD; uses "https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept" alias SGHICodeableConcept as produced#xD; uses "https://fhir.slade360.co.ke/fhir/StructureDefinition/reference" alias SGHIReference as produced#xD; #xD; imports "http://hl7.org/fhir/StructureMap/*4to5"#xD; #xD; group SGHIPatient(source src : PatientR4, target tgt : SGHIPatient) extends DomainResource <<type+>> {#xD; src.text -> tgt.text;#xD; src.identifier as s where (s.system != 'healthcloud.msisdn') and s.value.exists() -> tgt.identifier as t then {#xD; s.use -> t.use "copyuse";#xD; s.value -> t.value "copyvalue";#xD; s.period -> t.period "copyperiod";#xD; s.type as ty then {#xD; ty.coding first as cf then {#xD; cf.system as legacy -> t.type as result then TranslateLegacyIdentifier(legacy, result) "calltranslator";#xD; } "whensourcehascoding";#xD; } "mapidentifiertype";#xD; s -> t.system = 'https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem' "SetFixedIdentifierSystem";#xD; src.managingOrganization as mo -> t.assigner = create('Reference') as t_assigner then {#xD; mo.reference -> t_assigner.reference "setassignerreffrommo";#xD; mo.display -> t_assigner.display "setassignerdisplayfrommo";#xD; } "createandpopulateassigner";#xD; } "processoneidentifier";#xD; src.identifier as s_id -> tgt.identifier as t_id then {#xD; s_id.use -> t_id.…
url:
  v: https://fhir.slade360.co.ke/fhir/StructureMap/Patient4toSGHI5
  l: Patient4toSGHI5
version:
  v: 0.1.0
name:
  v: Patient4toSGHI5
title:
  v: Patient Transforms: R4 → SGHI R5
status:
  v: active
date:
  v: 2026-05-21T09:38:13+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: PatientTransformsR4SGHIR5
structure:
  url:
    v: http://hl7.org/fhir/4.0/StructureDefinition/Patient
    l: Patient
  mode:
    v: source
  alias:
    v: PatientR4
structure:
  url:
    v: https://fhir.slade360.co.ke/fhir/StructureDefinition/patient
    l: patient
  mode:
    v: target
  alias:
    v: SGHIPatient
structure:
  url:
    v: https://fhir.slade360.co.ke/fhir/StructureDefinition/human-name
    l: human-name
  mode:
    v: produced
  alias:
    v: SGHIHumanName
structure:
  url:
    v: https://fhir.slade360.co.ke/fhir/StructureDefinition/contact-point
    l: contact-point
  mode:
    v: produced
  alias:
    v: SGHIContactPoint
structure:
  url:
    v: https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept
    l: codeableconcept
  mode:
    v: produced
  alias:
    v: SGHICodeableConcept
structure:
  url:
    v: https://fhir.slade360.co.ke/fhir/StructureDefinition/reference
    l: reference
  mode:
    v: produced
  alias:
    v: SGHIReference
import:
  v: http://hl7.org/fhir/StructureMap/*4to5
  l: *4to5
group:
  name:
    v: SGHIPatient
  extends:
    v: DomainResource
  type mode:
    v: type-and-types
  input:
    name:
      v: src
    type:
      v: PatientR4
    mode:
      v: source
  input:
    name:
      v: tgt
    type:
      v: SGHIPatient
    mode:
      v: target
  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
      parameter:
        value: Id
  rule:
    name:
      v: processoneidentifier
    source:
      context:
        v: src
      element:
        v: identifier
      variable:
        v: s
      condition:
        v: (s.system != 'healthcloud.msisdn') and s.value.exists()
    target:
      context:
        v: tgt
      element:
        v: identifier
      variable:
        v: t
    rule:
      name:
        v: copyuse
    rule:
      name:
        v: copyvalue
    rule:
      name:
        v: copyperiod
    rule:
      name:
        v: mapidentifiertype
    rule:
      name:
        v: SetFixedIdentifierSystem
    rule:
      name:
        v: createandpopulateassigner
  rule:
    name:
      v: create the default FHIR ID identifier type
    source:
      context:
        v: src
      element:
        v: identifier
      variable:
        v: s_id
    target:
      context:
        v: tgt
      element:
        v: identifier

Id
v: vvv

Id
v: vvv

v: s

v: use

v: vvv

v: t

v: use

v: vvv

v: create

v: DefaultMappingGroupAnonymousAlias

value: Id
  v: vvv

value: Id
  v: vvv

v: s

v: value

v: vvv

v: t

v: value

v: vvv

v: create

v: DefaultMappingGroupAnonymousAlias

value: Id
  v: vvv

value: Id
  v: vvv

v: s

v: period

v: vvv

v: t

v: period

v: vvv

v: create

v: DefaultMappingGroupAnonymousAlias

value: Id
  v: vvv

value: Id
  v: vvv

v: s

v: type

v: ty

v: whensourcehascoding

context:
  v: ty
element:
  v: coding
list mode:
  v: first
variable:
  v: cf

name:
  v: calltranslator
source:
  context:
    v: cf
  element:
    v: system
  variable:
    v: legacy
target:
  context:
    v: t
  element:
    v: type
  variable:
    v: result
dependent:
  name:
    v: TranslateLegacyIdentifier
  parameter:
    value: Id
      v: legacy
  parameter:
    value: Id
      v: result

v: s

v: t

v: system

v: copy

v: src

v: managingOrganization

v: mo

v: t

v: assigner

v: t_assigner

v: create

value: String
  v: Reference

v: setassignerreffrommo

context:
  v: mo
element:
  v: reference
variable:
  v: vvv

context:
  v: t_assigner
element:
  v: reference
variable:
  v: vvv
transform:
  v: create

name:
  v: DefaultMappingGroupAnonymousAlias
parameter:
  value: Id
    v: vvv
parameter:
  value: Id
    v: vvv

v: setassignerdisplayfrommo

context:
  v: mo
element:
  v: display
variable:
  v: vvv

context:
  v: t_assigner
element:
  v: display
variable:
  v: vvv
transform:
  v: create

name:
  v: DefaultMappingGroupAnonymousAlias
parameter:
  value: Id
    v: vvv
parameter:
  value: Id
    v: vvv

v: t_id

name:
  v: copyuse
source:
  context:
    v: s_id
  element:
    v: use
  variable:
    v: vvv
target:
  context:
    v: t_id
  element:
    v: use
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value: Id
      v: vvv
  parameter:
    value: Id
      v: vvv

name:
  v: id
source:
  context:
    v: src
  element:
    v: id
  variable:
    v: uuid
target:
  context:
    v: t_id
  element:
    v: value
  transform:
    v: copy
  parameter:
    value: Id
      v: uuid

name:
  v: period
source:
  context:
    v: s_id
  element:
    v: period
  variable:
    v: vvv
target:
  context:
    v: t_id
  element:
    v: period
  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: s_id
  element:
    v: type
  variable:
    v: st
target:
  context:
    v: t_id
  element:
    v: type
  variable:
    v: tt
rule:
  name:
    v: coding
  source:
    context:
      v: st
    element:
      v: coding
  target:
    context:
      v: tt
    element:
      v: coding
    variable:
      v: tt
    transform:
      v: create
    parameter:
      value: String
        v: CodeableConcept
  target:
    context:
      v: tt
    element:
      v: system
    transform:
      v: copy
    parameter:
      value: String
        v: https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem
  target:
    context:
      v: tt
    element:
      v: code
    transform:
      v: copy
    parameter:
      value: String
        v: fhir-id
  target:
    context:
      v: tt
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: String
        v: FHIR Id

name:
  v: SetFixedIdentifierSystem
source:
  context:
    v: s_id
target:
  context:
    v: t_id
  element:
    v: system
  transform:
    v: copy
  parameter:
    value: String
      v: https://fhir.slade360.co.ke/fhir/CodeSystem/identifier-codesystem

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
      v: vvv
  parameter:
    value: Id
      v: vvv

name:
  v: name
source:
  context:
    v: src
  element:
    v: name
  list mode:
    v: first
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: name
  variable:
    v: t
dependent:
  name:
    v: SGHIHumanNameMap
  parameter:
    value: Id
      v: s
  parameter:
    value: Id
      v: t

name:
  v: telecom
source:
  context:
    v: src
  element:
    v: telecom
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: telecom
  variable:
    v: t
dependent:
  name:
    v: SGHIContactPointMap
  parameter:
    value: Id
      v: s
  parameter:
    value: Id
      v: t

name:
  v: mapgender
source:
  context:
    v: src
  element:
    v: gender
  variable:
    v: v
target:
  context:
    v: tgt
  element:
    v: gender
  transform:
    v: translate
  parameter:
    value: Id
      v: v
  parameter:
    value: String
      v: http://hl7.org/fhir/uv/xver/ConceptMap/pat.gender-4to5
  parameter:
    value: String
      v: code

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

name:
  v: deceasedBoolean
source:
  context:
    v: src
  type:
    v: boolean
  element:
    v: deceased
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: deceased
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value: Id
      v: vvv
  parameter:
    value: Id
      v: vvv

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

name:
  v: multipleBirthBoolean
source:
  context:
    v: src
  type:
    v: boolean
  element:
    v: multipleBirth
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: multipleBirth
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value: Id
      v: vvv
  parameter:
    value: Id
      v: vvv

name:
  v: multipleBirthInteger
source:
  context:
    v: src
  type:
    v: integer
  element:
    v: multipleBirth
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: multipleBirth
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value: Id
      v: vvv
  parameter:
    value: Id
      v: vvv

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

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

name:
  v: contact
source:
  context:
    v: src
  element:
    v: contact
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: contact
  variable:
    v: t
dependent:
  name:
    v: SGHIPatientContact
  parameter:
    value: Id
      v: s
  parameter:
    value: Id
      v: t

name:
  v: communication
source:
  context:
    v: src
  element:
    v: communication
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: communication
  variable:
    v: t
dependent:
  name:
    v: PatientCommunication
  parameter:
    value: Id
      v: s
  parameter:
    value: Id
      v: t

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

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

name:
  v: link
source:
  context:
    v: src
  element:
    v: link
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: link
  variable:
    v: t
dependent:
  name:
    v: SGHIPatientLink
  parameter:
    value: Id
      v: s
  parameter:
    value: Id
      v: t

name:
  v: createhardcodedtext
source:
  context:
    v: src
target:
  context:
    v: tgt
  element:
    v: text
  variable:
    v: t_text
  transform:
    v: create
  parameter:
    value: String
      v: Narrative
rule:
  name:
    v: settextstatus
  source:
    context:
      v: src
  target:
    context:
      v: t_text
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: String
        v: generated
rule:
  name:
    v: settextdiv
  source:
    context:
      v: src
  target:
    context:
      v: t_text
    element:
      v: div
    transform:
      v: copy
    parameter:
      value: String
        v: Generated text

name:
  v: addprofiletometa
source:
  context:
    v: src
target:
  context:
    v: tgt
  element:
    v: meta
  variable:
    v: t_meta
rule:
  name:
    v: addprofile
  source:
    context:
      v: src
  target:
    context:
      v: t_meta
    element:
      v: profile
    transform:
      v: copy
    parameter:
      value: String
        v: https://fhir.slade360.co.ke/fhir/StructureDefinition/patient

name:
  v: TranslateLegacyIdentifier
input:
  name:
    v: legacy_code
  type:
    v: string
  mode:
    v: source
input:
  name:
    v: result
  type:
    v: CodeableConcept
  mode:
    v: target
rule:
  name:
    v: translatetocoding
  source:
    context:
      v: legacy_code
  target:
    context:
      v: result
    element:
      v: coding
    transform:
      v: translate
    parameter:
      value: Id
        v: legacy_code
    parameter:
      value: String
        v: https://fhir.slade360.co.ke/fhir/ConceptMap/LegacyIdentifierToSGHI
    parameter:
      value: String
        v: Coding
rule:
  name:
    v: settext
  source:
    context:
      v: legacy_code
  target:
    context:
      v: result
    element:
      v: text

name:
  v: SGHIHumanNameMap
extends:
  v: HumanName
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: use
  source:
    context:
      v: src
    element:
      v: use
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: use
    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
rule:
  name:
    v: family
  source:
    context:
      v: src
    element:
      v: family
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: family
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: given
  source:
    context:
      v: src
    element:
      v: given
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: given
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: prefix
  source:
    context:
      v: src
    element:
      v: prefix
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: prefix
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: suffix
  source:
    context:
      v: src
    element:
      v: suffix
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: suffix
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: period
  source:
    context:
      v: src
    element:
      v: period
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: period
    variable:
      v: vvv
    transform:
      v: create

name:
  v: DefaultMappingGroupAnonymousAlias
parameter:
  value: Id
    v: vvv
parameter:
  value: Id
    v: vvv

name:
  v: SGHIContactPointMap
extends:
  v: ContactPoint
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: value
  source:
    context:
      v: src
    element:
      v: value
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: value
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: use
  source:
    context:
      v: src
    element:
      v: use
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: use
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: rank
  source:
    context:
      v: src
    element:
      v: rank
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: rank
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: period
  source:
    context:
      v: src
    element:
      v: period
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: period
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv

name:
  v: SGHICodeableConceptCopy
extends:
  v: CodeableConcept
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: coding
  source:
    context:
      v: src
    element:
      v: coding
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: coding
    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

name:
  v: SGHIPatientContact
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: relationship
  source:
    context:
      v: src
    element:
      v: relationship
    variable:
      v: r
  target:
    context:
      v: tgt
    element:
      v: relationship
    variable:
      v: t
  dependent:
    name:
      v: SGHICodeableConceptCopy
    parameter:
      value: Id
        v: r
    parameter:
      value: Id
        v: t
rule:
  name:
    v: name
  source:
    context:
      v: src
    element:
      v: name
    variable:
      v: n
  target:
    context:
      v: tgt
    element:
      v: name
    variable:
      v: tn
  dependent:
    name:
      v: SGHIHumanNameMap
    parameter:
      value: Id
        v: n
    parameter:
      value: Id
        v: tn
rule:
  name:
    v: telecom
  source:
    context:
      v: src
    element:
      v: telecom
    list mode:
      v: first
    variable:
      v: c
  target:
    context:
      v: tgt
    element:
      v: telecom
    variable:
      v: tc
  dependent:
    name:
      v: SGHIContactPointMap
    parameter:
      value: Id
        v: c
    parameter:
      value: Id
        v: tc
rule:
  name:
    v: address
  source:
    context:
      v: src
    element:
      v: address
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: address
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: mapcontactgender
  source:
    context:
      v: src
    element:
      v: gender
    variable:
      v: v
  target:
    context:
      v: tgt
    element:
      v: gender
    transform:
      v: translate
    parameter:
      value: Id
        v: v
    parameter:
      value: String
        v: http://hl7.org/fhir/uv/xver/ConceptMap/pat.co.gender-4to5
    parameter:
      value: String
        v: code
rule:
  name:
    v: organization
  source:
    context:
      v: src
    element:
      v: organization
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: organization
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: period
  source:
    context:
      v: src
    element:
      v: period
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: period
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv

name:
  v: PatientCommunication
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
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
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: preferred
  source:
    context:
      v: src
    element:
      v: preferred
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: preferred
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv

name:
  v: SGHIPatientLink
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: other
  source:
    context:
      v: src
    element:
      v: other
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: other
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value: Id
        v: vvv
    parameter:
      value: Id
        v: vvv
rule:
  name:
    v: maplinktype
  source:
    context:
      v: src
    element:
      v: type
    variable:
      v: v
  target:
    context:
      v: tgt
    element:
      v: type
    transform:
      v: translate
    parameter:
      value: Id
        v: v
    parameter:
      value: String
        v: http://hl7.org/fhir/uv/xver/ConceptMap/pat.li.type-4to5
    parameter:
      value: String
        v: code