MolecularSequence5to4B
type: StructureMap
node role: treeRoot
id:
  v: MolecularSequence5to4B
text:
  status:
    v: generated
  div: /// url = 'http://hl7.org/fhir/StructureMap/MolecularSequence5to4B' /// name = 'MolecularSequence5to4B' /// title = 'MolecularSequence Transforms: R5 to R4B' /// status = 'active' uses "http://hl7.org/fhir/5.0/MolecularSequence" alias MolecularSequenceR5 as source uses "http://hl7.org/fhir/4.0/MolecularSequence" alias MolecularSequenceR4B as target imports "http://hl7.org/fhir/StructureMap/*5to4B" group MolecularSequence(source src : MolecularSequenceR5, target tgt : MolecularSequenceR4B) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.type as v -> tgt.type = translate(v, 'http://hl7.org/fhir/ConceptMap/MolecularSequence.type-R5toR4', 'code'); src.subject -> tgt.patient; src.specimen -> tgt.specimen; src.device -> tgt.device; src.performer -> tgt.performer; src.relative as s -> tgt.referenceSeq as t then MolecularSequenceReferenceSeq(s, t); src.relative as s -> tgt.variant as t then MolecularSequenceVariant(s, t); } group MolecularSequenceReferenceSeq(source src, target tgt) extends BackboneElement { src.startingSequence as s -> tgt then { s.chromosome as s where code = 'LA21254-0' -> tgt.chromosome = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://terminology.hl7.org/CodeSystem/chromosome-human', tcc.code = '1', tcc.display = 'chromosome 1'; s.chromosome as s where code = 'LA21255-7' -> tgt.chromosome = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://terminology.hl7.org/CodeSystem/chromosome-human', tcc.code = '2', tcc.display = 'chromosome 2'; s.chromosome as s where code = 'LA21256-5' -> tgt.chromosome = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://terminology.hl7.org/CodeSystem/chromosome-human', tcc.code = '3', tcc.display = 'chromosome 3'; s.chromosome as s where code = 'LA21257-3' -> tgt.chromosome = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://terminology.hl7…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
  value:
    v: fhir
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
  value:
    v: 1
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
      value:
        v: http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver
        link: http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value:
    v: draft
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
      value:
        v: http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver
        link: http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver
url:
  v: http://hl7.org/fhir/StructureMap/MolecularSequence5to4B
version:
  v: 0.1.0
name:
  v: MolecularSequence5to4B
title:
  v: MolecularSequence Transforms: R5 to R4B
status:
  v: active
date:
  v: 2024-02-22T03:16:50+00:00
publisher:
  v: HL7 International / FHIR Infrastructure
contact:
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
description:
  v: MolecularSequenceTransformsR5toR4B
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
structure:
  url:
    v: http://hl7.org/fhir/5.0/MolecularSequence
    link: http://hl7.org/fhir/5.0/MolecularSequence
  mode:
    v: source
  alias:
    v: MolecularSequenceR5
structure:
  url:
    v: http://hl7.org/fhir/4.0/MolecularSequence
    link: http://hl7.org/fhir/4.0/MolecularSequence
  mode:
    v: target
  alias:
    v: MolecularSequenceR4B
import:
  v: http://hl7.org/fhir/StructureMap/*5to4B
  link: http://hl7.org/fhir/StructureMap/*5to4B
group:
  name:
    v: MolecularSequence
  extends:
    v: DomainResource
  type mode:
    v: type-and-types
  input:
    name:
      v: src
    type:
      v: MolecularSequenceR5
    mode:
      v: source
  input:
    name:
      v: tgt
    type:
      v: MolecularSequenceR4B
    mode:
      v: target
  rule:
    name:
      v: identifier
    source:
      context:
        v: src
      element:
        v: identifier
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: identifier
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
  rule:
    name:
      v: type
    source:
      context:
        v: src
      element:
        v: type
      variable:
        v: v
    target:
      context:
        v: tgt
      element:
        v: type
      transform:
        v: translate
  rule:
    name:
      v: subject
    source:
      context:
        v: src
      element:
        v: subject
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: patient
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
  rule:
    name:
      v: specimen
    source:
      context:
        v: src
      element:
        v: specimen
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: specimen
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
  rule:
    name:
      v: device
    source:
      context:
        v: src
      element:
        v: device
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: device
      variable:
        v: vvv

v: vvv

v: vvv

v: v

v: code

v: vvv

v: vvv

v: vvv

v: vvv

v: create

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

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

name:
  v: relative
source:
  context:
    v: src
  element:
    v: relative
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: referenceSeq
  variable:
    v: t
dependent:
  name:
    v: MolecularSequenceReferenceSeq
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: relative
source:
  context:
    v: src
  element:
    v: relative
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: variant
  variable:
    v: t
dependent:
  name:
    v: MolecularSequenceVariant
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: MolecularSequenceReferenceSeq
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: startingSequence
  source:
    context:
      v: src
    element:
      v: startingSequence
    variable:
      v: s
  target:
    transform:
      v: copy
    parameter:
      value:
        v: tgt
  rule:
    name:
      v: chromosome
    source:
      context:
        v: s
      element:
        v: chromosome
      variable:
        v: s
      condition:
        v: code = 'LA21254-0'
    target:
      context:
        v: tgt
      element:
        v: chromosome
      variable:
        v: tc
      transform:
        v: create
    target:
      context:
        v: tc
      element:
        v: coding
      variable:
        v: tcc
      transform:
        v: create
    target:
      context:
        v: tcc
      element:
        v: system
      transform:
        v: copy
    target:
      context:
        v: tcc
      element:
        v: code
      transform:
        v: copy
    target:
      context:
        v: tcc
      element:
        v: display
      transform:
        v: copy
  rule:
    name:
      v: chromosome
    source:
      context:
        v: s
      element:
        v: chromosome
      variable:
        v: s
      condition:
        v: code = 'LA21255-7'
    target:
      context:
        v: tgt
      element:
        v: chromosome
      variable:
        v: tc
      transform:
        v: create
    target:
      context:
        v: tc
      element:
        v: coding
      variable:
        v: tcc
      transform:
        v: create
    target:
      context:
        v: tcc
      element:
        v: system
      transform:
        v: copy
    target:
      context:
        v: tcc
      element:
        v: code
      transform:
        v: copy
    target:
      context:
        v: tcc
      element:
        v: display
      transform:
        v: copy
  rule:
    name:
      v: chromosome
    source:
      context:
        v: s
      element:
        v: chromosome
      variable:
        v: s
      condition:
        v: code = 'LA21256-5'
    target:
      context:
        v: tgt
      element:
        v: chromosome
      variable:
        v: tc
      transform:
        v: create
    target:
      context:
        v: tc
      element:
        v: coding
      variable:
        v: tcc
      transform:
        v: create
    target:
      context:
        v: tcc
      element:
        v: system
      transform:
        v: copy
    target:
      context:
        v: tcc
      element:
        v: code
      transform:
        v: copy
    target:
      context:
        v: tcc
      element:
        v: display
      transform:
        v: copy
  rule:
    name:
      v: chromosome
    source:
      context:
        v: s
      element:
        v: chromosome
      variable:
        v: s
      condition:
        v: code = 'LA21257-3'
    target:
      context:
        v: tgt
      element:
        v: chromosome
      variable:
        v: tc
      transform:
        v: create

v: CodeableConcept

v: Coding

v: 1

v: chromosome 1

v: CodeableConcept

v: Coding

v: 2

v: chromosome 2

v: CodeableConcept

v: Coding

v: 3

v: chromosome 3

value:
  v: CodeableConcept

context:
  v: tc
element:
  v: coding
variable:
  v: tcc
transform:
  v: create
parameter:
  value:
    v: Coding

context:
  v: tcc
element:
  v: system
transform:
  v: copy
parameter:
  value:
    v: http://terminology.hl7.org/CodeSystem/chromosome-human

context:
  v: tcc
element:
  v: code
transform:
  v: copy
parameter:
  value:
    v: 4

context:
  v: tcc
element:
  v: display
transform:
  v: copy
parameter:
  value:
    v: chromosome 4

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21258-1'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 5
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 5

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21259-9'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 6
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 6

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21260-7'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 7
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 7

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21261-5'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 8
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 8

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21262-3'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 9
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 9

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21263-1'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 10
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 10

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21264-9'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 11
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 11

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21265-6'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 12
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 12

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21266-4'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 13
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 13

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21267-2'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 14
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 14

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21268-0'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 15
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 15

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21269-8'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 16
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 16

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21270-6'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 17
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 17

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21271-4'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 18
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 18

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21272-2'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 19
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 19

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21273-0'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 20
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 20

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21274-8'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 21
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 21

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21275-5'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: 22
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome 22

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21276-3'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: X
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome X

name:
  v: chromosome
source:
  context:
    v: s
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'LA21277-1'
target:
  context:
    v: tgt
  element:
    v: chromosome
  variable:
    v: tc
  transform:
    v: create
  parameter:
    value:
      v: CodeableConcept
target:
  context:
    v: tc
  element:
    v: coding
  variable:
    v: tcc
  transform:
    v: create
  parameter:
    value:
      v: Coding
target:
  context:
    v: tcc
  element:
    v: system
  transform:
    v: copy
  parameter:
    value:
      v: http://terminology.hl7.org/CodeSystem/chromosome-human
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: Y
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: chromosome Y

name:
  v: sequenceCodeableConcept
source:
  context:
    v: s
  type:
    v: CodeableConcept
  element:
    v: sequence
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: referenceSeqId
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: sequenceReference
source:
  context:
    v: s
  type:
    v: Reference
  element:
    v: sequence
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: referenceSeqPointer
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: sequenceString
source:
  context:
    v: s
  type:
    v: string
  element:
    v: sequence
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: referenceSeqString
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: windowStart
source:
  context:
    v: s
  element:
    v: windowStart
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: windowStart
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: windowEnd
source:
  context:
    v: s
  element:
    v: windowEnd
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: windowEnd
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: orientation
source:
  context:
    v: s
  element:
    v: orientation
  variable:
    v: v
target:
  context:
    v: tgt
  element:
    v: orientation
  transform:
    v: translate
  parameter:
    value:
      v: v
  parameter:
    value:
      v: #orientationType
  parameter:
    value:
      v: code

name:
  v: strand
source:
  context:
    v: s
  element:
    v: strand
  variable:
    v: v
target:
  context:
    v: tgt
  element:
    v: strand
  transform:
    v: translate
  parameter:
    value:
      v: v
  parameter:
    value:
      v: #strandType
  parameter:
    value:
      v: code

name:
  v: MolecularSequenceVariant
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: edit
  source:
    context:
      v: src
    element:
      v: edit
    variable:
      v: s
  target:
    transform:
      v: copy
    parameter:
      value:
        v: tgt
  rule:
    name:
      v: start
    source:
      context:
        v: s
      element:
        v: start
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: start
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
  rule:
    name:
      v: end
    source:
      context:
        v: s
      element:
        v: end
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: end
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
  rule:
    name:
      v: replacementSequence
    source:
      context:
        v: s
      element:
        v: replacementSequence
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: observedAllele
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
  rule:
    name:
      v: replacedSequence
    source:
      context:
        v: s
      element:
        v: replacedSequence
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: referenceAllele
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias

v: vvv

v: vvv

v: vvv

v: vvv

v: vvv

v: vvv

v: vvv

v: vvv