MolecularSequence4to5
type: StructureMap
node role: treeRoot
id:
  v: MolecularSequence4to5
text:
  status:
    v: generated
  div: /// url = 'http://hl7.org/fhir/StructureMap/MolecularSequence4to5' /// name = 'MolecularSequence4to5' /// title = 'MolecularSequence Transforms: R4 to R5' /// status = 'active' uses "http://hl7.org/fhir/4.0/MolecularSequence" alias MolecularSequenceR4 as source uses "http://hl7.org/fhir/5.0/MolecularSequence" alias MolecularSequenceR5 as target imports "http://hl7.org/fhir/StructureMap/*4to5" group MolecularSequence(source src : MolecularSequenceR4, target tgt : MolecularSequenceR5) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.type as v -> tgt.type = translate(v, 'http://hl7.org/fhir/ConceptMap/MolecularSequence.type-R4toR5', 'code'); src.patient -> tgt.subject; src.specimen -> tgt.specimen; src.device -> tgt.device; src.performer -> tgt.performer; src.referenceSeq as s -> tgt.relative as t then MolecularSequenceReferenceSeq(s, t); src.variant as s -> tgt.relative as t then MolecularSequenceVariant(s, t); } group MolecularSequenceReferenceSeq(source src, target tgt) extends BackboneElement { src.chromosome as s where code = '1' -> tgt.startingSequence as t, t.chromosome = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://loinc.org', tcc.code = 'LA21254-0', tcc.display = 'Chromosome 1'; src.chromosome as s where code = '2' -> tgt.startingSequence as t, t.chromosome = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://loinc.org', tcc.code = 'LA21255-7', tcc.display = 'Chromosome 2'; src.chromosome as s where code = '3' -> tgt.startingSequence as t, t.chromosome = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://loinc.org', tcc.code = 'LA21256-5', tcc.display = 'Chromosome 3'; src.chromosome as s where code = '4' -> tgt.startingSequence as t, t.chromosome = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://loinc.org', tcc.code = 'LA21257-3', tcc.display = 'Chromosome 4'; src.chrom…
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/MolecularSequence4to5
version:
  v: 0.1.0
name:
  v: MolecularSequence4to5
title:
  v: MolecularSequence Transforms: R4 to R5
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: MolecularSequenceTransformsR4toR5
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
structure:
  url:
    v: http://hl7.org/fhir/4.0/MolecularSequence
    link: http://hl7.org/fhir/4.0/MolecularSequence
  mode:
    v: source
  alias:
    v: MolecularSequenceR4
structure:
  url:
    v: http://hl7.org/fhir/5.0/MolecularSequence
    link: http://hl7.org/fhir/5.0/MolecularSequence
  mode:
    v: target
  alias:
    v: MolecularSequenceR5
import:
  v: http://hl7.org/fhir/StructureMap/*4to5
  link: http://hl7.org/fhir/StructureMap/*4to5
group:
  name:
    v: MolecularSequence
  extends:
    v: DomainResource
  type mode:
    v: type-and-types
  input:
    name:
      v: src
    type:
      v: MolecularSequenceR4
    mode:
      v: source
  input:
    name:
      v: tgt
    type:
      v: MolecularSequenceR5
    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: patient
    source:
      context:
        v: src
      element:
        v: patient
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: subject
      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: referenceSeq
source:
  context:
    v: src
  element:
    v: referenceSeq
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: relative
  variable:
    v: t
dependent:
  name:
    v: MolecularSequenceReferenceSeq
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: variant
source:
  context:
    v: src
  element:
    v: variant
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: relative
  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: chromosome
  source:
    context:
      v: src
    element:
      v: chromosome
    variable:
      v: s
    condition:
      v: code = '1'
  target:
    context:
      v: tgt
    element:
      v: startingSequence
    variable:
      v: t
  target:
    context:
      v: t
    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://loinc.org
  target:
    context:
      v: tcc
    element:
      v: code
    transform:
      v: copy
    parameter:
      value:
        v: LA21254-0
  target:
    context:
      v: tcc
    element:
      v: display
    transform:
      v: copy
    parameter:
      value:
        v: Chromosome 1
rule:
  name:
    v: chromosome
  source:
    context:
      v: src
    element:
      v: chromosome
    variable:
      v: s
    condition:
      v: code = '2'
  target:
    context:
      v: tgt
    element:
      v: startingSequence
    variable:
      v: t
  target:
    context:
      v: t
    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://loinc.org
  target:
    context:
      v: tcc
    element:
      v: code
    transform:
      v: copy
    parameter:
      value:
        v: LA21255-7
  target:
    context:
      v: tcc
    element:
      v: display
    transform:
      v: copy
    parameter:
      value:
        v: Chromosome 2
rule:
  name:
    v: chromosome
  source:
    context:
      v: src
    element:
      v: chromosome
    variable:
      v: s
    condition:
      v: code = '3'
  target:
    context:
      v: tgt
    element:
      v: startingSequence
    variable:
      v: t
  target:
    context:
      v: t
    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

context:
  v: tcc
element:
  v: system
transform:
  v: copy
parameter:
  value:
    v: http://loinc.org

context:
  v: tcc
element:
  v: code
transform:
  v: copy
parameter:
  value:
    v: LA21256-5

context:
  v: tcc
element:
  v: display
transform:
  v: copy
parameter:
  value:
    v: Chromosome 3

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '4'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21257-3
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 4

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '5'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21258-1
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 5

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '6'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21259-9
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 6

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '7'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21260-7
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 7

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '8'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21261-5
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 8

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '9'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21262-3
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 9

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '10'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21263-1
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 10

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '11'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21264-9
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 11

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '12'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21265-6
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 12

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '13'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21266-4
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 13

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '14'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21267-2
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 14

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '15'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21268-0
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 15

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '16'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21269-8
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 16

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '17'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21270-6
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 17

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '18'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21271-4
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 18

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '19'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21272-2
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 19

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '20'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21273-0
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 20

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '21'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21274-8
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 21

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = '22'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21275-5
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome 22

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'X'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21276-3
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome X

name:
  v: chromosome
source:
  context:
    v: src
  element:
    v: chromosome
  variable:
    v: s
  condition:
    v: code = 'Y'
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  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://loinc.org
target:
  context:
    v: tcc
  element:
    v: code
  transform:
    v: copy
  parameter:
    value:
      v: LA21277-1
target:
  context:
    v: tcc
  element:
    v: display
  transform:
    v: copy
  parameter:
    value:
      v: Chromosome Y

name:
  v: referenceSeqIdCodeableConcept
source:
  context:
    v: src
  type:
    v: CodeableConcept
  element:
    v: referenceSeqId
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  element:
    v: sequence
  transform:
    v: copy
  parameter:
    value:
      v: s

name:
  v: referenceSeqPointerReference
source:
  context:
    v: src
  type:
    v: Reference
  element:
    v: referenceSeqPointer
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  element:
    v: sequence
  transform:
    v: copy
  parameter:
    value:
      v: s

name:
  v: referenceSeqStringString
source:
  context:
    v: src
  type:
    v: string
  element:
    v: referenceSeqString
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  element:
    v: sequence
  transform:
    v: copy
  parameter:
    value:
      v: s

name:
  v: windowStartInteger
source:
  context:
    v: src
  type:
    v: integer
  element:
    v: windowStart
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  element:
    v: windowStart
  transform:
    v: copy
  parameter:
    value:
      v: s

name:
  v: windowEndInteger
source:
  context:
    v: src
  type:
    v: integer
  element:
    v: windowEnd
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  element:
    v: windowEnd
  transform:
    v: copy
  parameter:
    value:
      v: s

name:
  v: orientation
source:
  context:
    v: src
  element:
    v: orientation
  variable:
    v: v
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  element:
    v: orientation
  transform:
    v: translate
  parameter:
    value:
      v: v
  parameter:
    value:
      v: http://hl7.org/fhir/ConceptMap/MolecularSequence.referenceSeq.orientation-R4toR5
  parameter:
    value:
      v: code

name:
  v: strand
source:
  context:
    v: src
  element:
    v: strand
  variable:
    v: v
target:
  context:
    v: tgt
  element:
    v: startingSequence
  variable:
    v: t
target:
  context:
    v: t
  element:
    v: strand
  transform:
    v: translate
  parameter:
    value:
      v: v
  parameter:
    value:
      v: http://hl7.org/fhir/ConceptMap/MolecularSequence.referenceSeq.strand-R4toR5
  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: startInteger
  source:
    context:
      v: src
    type:
      v: integer
    element:
      v: start
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: edit
    variable:
      v: t
  target:
    context:
      v: t
    element:
      v: start
    transform:
      v: copy
    parameter:
      value:
        v: s
rule:
  name:
    v: endInteger
  source:
    context:
      v: src
    type:
      v: integer
    element:
      v: end
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: edit
    variable:
      v: t
  target:
    context:
      v: t
    element:
      v: end
    transform:
      v: copy
    parameter:
      value:
        v: s
rule:
  name:
    v: observedAllele
  source:
    context:
      v: src
    element:
      v: observedAllele
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: edit
    variable:
      v: t
  target:
    context:
      v: t
    element:
      v: replacementSequence
    transform:
      v: copy
    parameter:
      value:
        v: s
rule:
  name:
    v: referenceAllele
  source:
    context:
      v: src
    element:
      v: referenceAllele
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: edit
    variable:
      v: t
  target:
    context:
      v: t
    element:
      v: replacedSequence
    transform:
      v: copy
    parameter:
      value:
        v: s