FHIR Extensions Pack
5.1.0-ballot1 - Ballot for Release 5.1.0 International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0-ballot: Releases Ballot 4) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions

: FML Conversion for MolecularSequence: R4 to R5 - JSON Representation

Page standards status: Trial-use Maturity Level: 1

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "MolecularSequence4to5",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/MolecularSequence4to5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'MolecularSequence4to5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for MolecularSequence: R4 to R5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>conceptmap</b><span style=\"color: navy\"> &quot;</span>orientationType<span style=\"color: navy\">&quot; {\r\n</span><b>  prefix </b>s<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4/codesystem-orientation-type.html\" title=\"orientationType\">http://hl7.org/fhir/4.0/orientation-type</a><span style=\"color: navy\">&quot;\r\n</span><b>  prefix </b>t<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R5/codesystem-orientation-type.html\" title=\"orientation Type\">http://hl7.org/fhir/orientation-type</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>sense <b>-</b> t<span style=\"color: navy\">:</span>sense\r\n  s<span style=\"color: navy\">:</span>antisense <b>-</b> t<span style=\"color: navy\">:</span>antisense\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> &quot;</span>sequenceType<span style=\"color: navy\">&quot; {\r\n</span><b>  prefix </b>s<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4/codesystem-sequence-type.html\" title=\"sequenceType\">http://hl7.org/fhir/4.0/sequence-type</a><span style=\"color: navy\">&quot;\r\n</span><b>  prefix </b>t<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R5/codesystem-sequence-type.html\" title=\"sequence Type\">http://hl7.org/fhir/sequence-type</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>aa <b>-</b> t<span style=\"color: navy\">:</span>aa\r\n  s<span style=\"color: navy\">:</span>dna <b>-</b> t<span style=\"color: navy\">:</span>dna\r\n  s<span style=\"color: navy\">:</span>rna <b>-</b> t<span style=\"color: navy\">:</span>rna\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> &quot;</span>strandType<span style=\"color: navy\">&quot; {\r\n</span><b>  prefix </b>s<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4/codesystem-strand-type.html\" title=\"strandType\">http://hl7.org/fhir/4.0/strand-type</a><span style=\"color: navy\">&quot;\r\n</span><b>  prefix </b>t<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R5/codesystem-strand-type.html\" title=\"strand Type\">http://hl7.org/fhir/strand-type</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>watson <b>-</b> t<span style=\"color: navy\">:</span>watson\r\n  s<span style=\"color: navy\">:</span>crick <b>-</b> t<span style=\"color: navy\">:</span>crick\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/molecularsequence.html\" title=\"MolecularSequence\">http://hl7.org/fhir/4.0/StructureDefinition/MolecularSequence</a><span style=\"color: navy\">&quot; </span><b>alias </b>MolecularSequenceR4 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R5/molecularsequence.html\" title=\"MolecularSequence\">http://hl7.org/fhir/StructureDefinition/MolecularSequence</a><span style=\"color: navy\">&quot; </span><b>alias </b>MolecularSequenceR5 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*4to5<span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>MolecularSequence<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>MolecularSequenceR4, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>MolecularSequenceR5<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src.identifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier<span style=\"color: navy\">;</span>\r\n  src.type<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.type = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#sequenceType'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.patient<span style=\"color: navy\"><b> -&gt; </b></span>tgt.subject<span style=\"color: navy\">;</span>\r\n  src.specimen<span style=\"color: navy\"><b> -&gt; </b></span>tgt.specimen<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.focus -&gt; tgt.focus;</span>\r\n  src.device<span style=\"color: navy\"><b> -&gt; </b></span>tgt.device<span style=\"color: navy\">;</span>\r\n  src.performer<span style=\"color: navy\"><b> -&gt; </b></span>tgt.performer<span style=\"color: navy\">;</span>\r\n  src.referenceSeq<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.relative<b> as </b><span style=\"color: maroon\">t</span><b> then </b>MolecularSequenceReferenceSeq<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.literal as s -&gt; tgt.literal as t, t.observedSeq = s;</span>\r\n  src.variant<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.relative<b> as </b><span style=\"color: maroon\">t</span><b> then </b>MolecularSequenceVariant<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>MolecularSequenceReferenceSeq<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span>  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '1'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21254-0'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 1'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '2'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21255-7'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 2'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '3'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21256-5'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 3'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '4'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21257-3'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 4'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '5'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21258-1'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 5'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '6'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21259-9'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 6'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '7'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21260-7'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 7'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '8'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21261-5'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 8'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '9'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21262-3'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 9'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '10'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21263-1'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 10'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '11'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21264-9'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 11'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '12'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21265-6'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 12'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '13'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21266-4'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 13'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '14'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21267-2'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 14'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '15'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21268-0'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 15'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '16'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21269-8'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 16'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '17'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21270-6'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 17'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '18'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21271-4'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 18'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '19'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21272-2'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 19'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '20'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21273-0'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 20'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '21'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21274-8'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 21'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = '22'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21275-5'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome 22'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = 'X'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21276-3'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome X'</span><span style=\"color: navy\">;</span>\r\n  src.chromosome<b> as </b><span style=\"color: maroon\">s</span><b> where </b>code = 'Y'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.chromosome = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tc</span><span style=\"color: navy\">, </span> tc.coding = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Coding'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">tcc</span><span style=\"color: navy\">, </span> tcc.system = <span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span> tcc.code = <span style=\"color: blue\">'LA21277-1'</span><span style=\"color: navy\">, </span> tcc.display = <span style=\"color: blue\">'Chromosome Y'</span><span style=\"color: navy\">;</span>\r\n  src.referenceSeqId<span style=\"color: navy\"> : </span>CodeableConcept<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.sequence = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>\r\n  src.referenceSeqPointer<span style=\"color: navy\"> : </span>Reference<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.sequence = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>\r\n  src.referenceSeqString<span style=\"color: navy\"> : </span>string<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.sequence = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>\r\n  src.windowStart<span style=\"color: navy\"> : </span>integer<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.windowStart = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>\r\n  src.windowEnd<span style=\"color: navy\"> : </span>integer<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.windowEnd = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>\r\n  src.orientation<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.orientation = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#orientationType'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.strand<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.startingSequence<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.strand = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#strandType'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>MolecularSequenceVariant<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span>  src.start<span style=\"color: navy\"> : </span>integer<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.edit<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.start = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>\r\n  src.end<span style=\"color: navy\"> : </span>integer<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.edit<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.end = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>\r\n  src.observedAllele<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.edit<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.replacementSequence = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>\r\n  src.referenceAllele<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.edit<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.replacedSequence = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "contained" : [
    {
      "resourceType" : "ConceptMap",
      "id" : "orientationType",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/4.0/orientation-type",
          "target" : "http://hl7.org/fhir/orientation-type",
          "element" : [
            {
              "code" : "sense",
              "target" : [
                {
                  "code" : "sense",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "antisense",
              "target" : [
                {
                  "code" : "antisense",
                  "relationship" : "related-to"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "resourceType" : "ConceptMap",
      "id" : "sequenceType",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/4.0/sequence-type",
          "target" : "http://hl7.org/fhir/sequence-type",
          "element" : [
            {
              "code" : "aa",
              "target" : [
                {
                  "code" : "aa",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "dna",
              "target" : [
                {
                  "code" : "dna",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "rna",
              "target" : [
                {
                  "code" : "rna",
                  "relationship" : "related-to"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "resourceType" : "ConceptMap",
      "id" : "strandType",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/4.0/strand-type",
          "target" : "http://hl7.org/fhir/strand-type",
          "element" : [
            {
              "code" : "watson",
              "target" : [
                {
                  "code" : "watson",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "crick",
              "target" : [
                {
                  "code" : "crick",
                  "relationship" : "related-to"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode" : "fhir"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger" : 1,
      "_valueInteger" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode" : "trial-use",
      "_valueCode" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"
          }
        ]
      }
    }
  ],
  "url" : "http://hl7.org/fhir/StructureMap/MolecularSequence4to5",
  "version" : "5.1.0-ballot1",
  "name" : "MolecularSequence4to5",
  "title" : "FML Conversion for MolecularSequence: R4 to R5",
  "status" : "active",
  "date" : "2023-12-19T08:40:03+11:00",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description" : "FMLConversionforMolecularSequenceR4toR5",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/4.0/StructureDefinition/MolecularSequence",
      "mode" : "source",
      "alias" : "MolecularSequenceR4"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
      "mode" : "target",
      "alias" : "MolecularSequenceR5"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*4to5"
  ],
  "group" : [
    {
      "name" : "MolecularSequence",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "MolecularSequenceR4",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "MolecularSequenceR5",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "identifier",
          "source" : [
            {
              "context" : "src",
              "element" : "identifier",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "identifier",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "type",
          "source" : [
            {
              "context" : "src",
              "element" : "type",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#sequenceType"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "patient",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "subject",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "specimen",
          "source" : [
            {
              "context" : "src",
              "element" : "specimen",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "specimen",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ],
          "documentation" : "src.focus -> tgt.focus;"
        },
        {
          "name" : "device",
          "source" : [
            {
              "context" : "src",
              "element" : "device",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "device",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "performer",
          "source" : [
            {
              "context" : "src",
              "element" : "performer",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "performer",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "referenceSeq",
          "source" : [
            {
              "context" : "src",
              "element" : "referenceSeq",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "relative",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "MolecularSequenceReferenceSeq",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ],
          "documentation" : "src.literal as s -> tgt.literal as t, t.observedSeq = s;"
        },
        {
          "name" : "variant",
          "source" : [
            {
              "context" : "src",
              "element" : "variant",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "relative",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "MolecularSequenceVariant",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "MolecularSequenceReferenceSeq",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '1'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21254-0"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 1"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '2'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21255-7"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 2"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '3'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21256-5"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 3"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '4'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21257-3"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 4"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '5'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21258-1"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 5"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '6'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21259-9"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 6"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '7'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21260-7"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 7"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '8'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21261-5"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 8"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '9'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21262-3"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 9"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '10'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21263-1"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 10"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '11'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21264-9"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 11"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '12'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21265-6"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 12"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '13'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21266-4"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 13"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '14'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21267-2"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 14"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '15'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21268-0"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 15"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '16'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21269-8"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 16"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '17'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21270-6"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 17"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '18'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21271-4"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 18"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '19'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21272-2"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 19"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '20'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21273-0"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 20"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '21'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21274-8"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 21"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = '22'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21275-5"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome 22"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = 'X'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21276-3"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome X"
                }
              ]
            }
          ]
        },
        {
          "name" : "chromosome",
          "source" : [
            {
              "context" : "src",
              "element" : "chromosome",
              "variable" : "s",
              "condition" : "code = 'Y'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "chromosome",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "coding",
              "variable" : "tcc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "LA21277-1"
                }
              ]
            },
            {
              "context" : "tcc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Chromosome Y"
                }
              ]
            }
          ]
        },
        {
          "name" : "referenceSeqIdCodeableConcept",
          "source" : [
            {
              "context" : "src",
              "type" : "CodeableConcept",
              "element" : "referenceSeqId",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "sequence",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "s"
                }
              ]
            }
          ]
        },
        {
          "name" : "referenceSeqPointerReference",
          "source" : [
            {
              "context" : "src",
              "type" : "Reference",
              "element" : "referenceSeqPointer",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "sequence",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "s"
                }
              ]
            }
          ]
        },
        {
          "name" : "referenceSeqStringString",
          "source" : [
            {
              "context" : "src",
              "type" : "string",
              "element" : "referenceSeqString",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "sequence",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "s"
                }
              ]
            }
          ]
        },
        {
          "name" : "windowStartInteger",
          "source" : [
            {
              "context" : "src",
              "type" : "integer",
              "element" : "windowStart",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "windowStart",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "s"
                }
              ]
            }
          ]
        },
        {
          "name" : "windowEndInteger",
          "source" : [
            {
              "context" : "src",
              "type" : "integer",
              "element" : "windowEnd",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "windowEnd",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "s"
                }
              ]
            }
          ]
        },
        {
          "name" : "orientation",
          "source" : [
            {
              "context" : "src",
              "element" : "orientation",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "orientation",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#orientationType"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "strand",
          "source" : [
            {
              "context" : "src",
              "element" : "strand",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "startingSequence",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "strand",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#strandType"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "MolecularSequenceVariant",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "startInteger",
          "source" : [
            {
              "context" : "src",
              "type" : "integer",
              "element" : "start",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "edit",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "start",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "s"
                }
              ]
            }
          ]
        },
        {
          "name" : "endInteger",
          "source" : [
            {
              "context" : "src",
              "type" : "integer",
              "element" : "end",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "edit",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "end",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "s"
                }
              ]
            }
          ]
        },
        {
          "name" : "observedAllele",
          "source" : [
            {
              "context" : "src",
              "element" : "observedAllele",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "edit",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "replacementSequence",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "s"
                }
              ]
            }
          ]
        },
        {
          "name" : "referenceAllele",
          "source" : [
            {
              "context" : "src",
              "element" : "referenceAllele",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "edit",
              "variable" : "t"
            },
            {
              "context" : "t",
              "element" : "replacedSequence",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "s"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}