FHIR Extensions Pack
5.1.0 - 5.1.0 (April 2024) International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions

: FML Conversion for AllergyIntolerance: R4B to R5 - JSON Representation

Page standards status: Trial-use Maturity Level: 1

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "AllergyIntolerance4Bto5",
  "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/AllergyIntolerance4Bto5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'AllergyIntolerance4Bto5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for AllergyIntolerance: R4B 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>AllergyIntoleranceCategory<span style=\"color: navy\">&quot; {\r\n</span><b>  prefix </b>s<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4B/codesystem-allergy-intolerance-category.html\" title=\"AllergyIntoleranceCategory\">http://hl7.org/fhir/4.3/allergy-intolerance-category</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-allergy-intolerance-category.html\" title=\"Allergy Intolerance Category\">http://hl7.org/fhir/allergy-intolerance-category</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>food <b>-</b> t<span style=\"color: navy\">:</span>food\r\n  s<span style=\"color: navy\">:</span>medication <b>-</b> t<span style=\"color: navy\">:</span>medication\r\n  s<span style=\"color: navy\">:</span>environment <b>-</b> t<span style=\"color: navy\">:</span>environment\r\n  s<span style=\"color: navy\">:</span>biologic <b>-</b> t<span style=\"color: navy\">:</span>biologic\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> &quot;</span>AllergyIntoleranceCriticality<span style=\"color: navy\">&quot; {\r\n</span><b>  prefix </b>s<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4B/codesystem-allergy-intolerance-criticality.html\" title=\"AllergyIntoleranceCriticality\">http://hl7.org/fhir/4.3/allergy-intolerance-criticality</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-allergy-intolerance-criticality.html\" title=\"Allergy Intolerance Criticality\">http://hl7.org/fhir/allergy-intolerance-criticality</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>low <b>-</b> t<span style=\"color: navy\">:</span>low\r\n  s<span style=\"color: navy\">:</span>high <b>-</b> t<span style=\"color: navy\">:</span>high\r\n  s<span style=\"color: navy\">:</span>&quot;unable-to-assess&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>unable-to-assess<span style=\"color: navy\">&quot;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> &quot;</span>AllergyIntoleranceSeverity<span style=\"color: navy\">&quot; {\r\n</span><b>  prefix </b>s<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4B/codesystem-reaction-event-severity.html\" title=\"AllergyIntoleranceSeverity\">http://hl7.org/fhir/4.3/reaction-event-severity</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-reaction-event-severity.html\" title=\"Allergy Intolerance Severity\">http://hl7.org/fhir/reaction-event-severity</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>mild <b>-</b> t<span style=\"color: navy\">:</span>mild\r\n  s<span style=\"color: navy\">:</span>moderate <b>-</b> t<span style=\"color: navy\">:</span>moderate\r\n  s<span style=\"color: navy\">:</span>severe <b>-</b> t<span style=\"color: navy\">:</span>severe\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/R4B/allergyintolerance.html\" title=\"AllergyIntolerance\">http://hl7.org/fhir/4.3/StructureDefinition/AllergyIntolerance</a><span style=\"color: navy\">&quot; </span><b>alias </b>AllergyIntoleranceR4B <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R5/allergyintolerance.html\" title=\"AllergyIntolerance\">http://hl7.org/fhir/StructureDefinition/AllergyIntolerance</a><span style=\"color: navy\">&quot; </span><b>alias </b>AllergyIntoleranceR5 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*4Bto5<span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>AllergyIntolerance<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>AllergyIntoleranceR4B, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>AllergyIntoleranceR5<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.clinicalStatus<span style=\"color: navy\"><b> -&gt; </b></span>tgt.clinicalStatus<span style=\"color: navy\">;</span>\r\n  src.verificationStatus<span style=\"color: navy\"><b> -&gt; </b></span>tgt.verificationStatus<span style=\"color: navy\">;</span>\r\n  src.type<b> as </b><span style=\"color: maroon\">s</span><b> where </b>type = 'allergy'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.type = <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\">t</span><span style=\"color: navy\">, </span> t.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\">tc</span><span style=\"color: navy\">, </span> tc.system = <span style=\"color: blue\">'http://hl7.org/fhir/allergy-intolerance-type'</span><span style=\"color: navy\">, </span> tc.code = <span style=\"color: blue\">'allergy'</span><span style=\"color: navy\">, </span> tc.display = <span style=\"color: blue\">'Allergy'</span><span style=\"color: navy\">;</span>\r\n  src.type<b> as </b><span style=\"color: maroon\">s</span><b> where </b>type = 'intolerance'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.type = <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\">t</span><span style=\"color: navy\">, </span> t.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\">tc</span><span style=\"color: navy\">, </span> tc.system = <span style=\"color: blue\">'http://hl7.org/fhir/allergy-intolerance-type'</span><span style=\"color: navy\">, </span> tc.code = <span style=\"color: blue\">'intolerance'</span><span style=\"color: navy\">, </span> tc.display = <span style=\"color: blue\">'Intolerance'</span><span style=\"color: navy\">;</span>\r\n  src.category<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.category = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#AllergyIntoleranceCategory'</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.criticality<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.criticality = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#AllergyIntoleranceCriticality'</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.code<span style=\"color: navy\"><b> -&gt; </b></span>tgt.code<span style=\"color: navy\">;</span>\r\n  src.patient<span style=\"color: navy\"><b> -&gt; </b></span>tgt.patient<span style=\"color: navy\">;</span>\r\n  src.encounter<span style=\"color: navy\"><b> -&gt; </b></span>tgt.encounter<span style=\"color: navy\">;</span>\r\n  src.onset<span style=\"color: navy\"> : </span>dateTime<span style=\"color: navy\"><b> -&gt; </b></span>tgt.onset<span style=\"color: navy\">;</span>\r\n  src.onset<span style=\"color: navy\"> : </span>Age<span style=\"color: navy\"><b> -&gt; </b></span>tgt.onset<span style=\"color: navy\">;</span>\r\n  src.onset<span style=\"color: navy\"> : </span>Period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.onset<span style=\"color: navy\">;</span>\r\n  src.onset<span style=\"color: navy\"> : </span>Range<span style=\"color: navy\"><b> -&gt; </b></span>tgt.onset<span style=\"color: navy\">;</span>\r\n  src.onset<span style=\"color: navy\"> : </span>string<span style=\"color: navy\"><b> -&gt; </b></span>tgt.onset<span style=\"color: navy\">;</span>\r\n  src.recordedDate<span style=\"color: navy\"><b> -&gt; </b></span>tgt.recordedDate<span style=\"color: navy\">;</span>\r\n  src.recorder<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.participant<b> as </b><span style=\"color: maroon\">t</span><b> then </b>AllergyIntoleranceRecorder<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  src.asserter<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.participant<b> as </b><span style=\"color: maroon\">t</span><b> then </b>AllergyIntoleranceAsserter<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  src.lastOccurrence<span style=\"color: navy\"><b> -&gt; </b></span>tgt.lastOccurrence<span style=\"color: navy\">;</span>\r\n  src.note<span style=\"color: navy\"><b> -&gt; </b></span>tgt.note<span style=\"color: navy\">;</span>\r\n  src.reaction<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.reaction<b> as </b><span style=\"color: maroon\">t</span><b> then </b>AllergyIntoleranceReaction<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><span style=\"color: navy\">// </span><span style=\"color: green\">group AllergyIntoleranceParticipant(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.function -&gt; tgt.function;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.actor -&gt; tgt.actor;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<b>group </b>AllergyIntoleranceRecorder<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.reference<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.function = <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\">t</span><span style=\"color: navy\">, </span> t.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\">tc</span><span style=\"color: navy\">, </span> tc.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/provenance-participant-type'</span><span style=\"color: navy\">, </span> tc.code = <span style=\"color: blue\">'enterer'</span><span style=\"color: navy\">, </span> tc.display = <span style=\"color: blue\">'Enterer'</span><span style=\"color: navy\">;</span>\r\n  src<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.actor<b> as </b><span style=\"color: maroon\">t</span><b> then </b>Reference<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> <i>&quot;recorderReference&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>AllergyIntoleranceAsserter<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.reference<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.function = <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\">t</span><span style=\"color: navy\">, </span> t.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\">tc</span><span style=\"color: navy\">, </span> tc.system = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/provenance-participant-type'</span><span style=\"color: navy\">, </span> tc.code = <span style=\"color: blue\">'author'</span><span style=\"color: navy\">, </span> tc.display = <span style=\"color: blue\">'Author'</span><span style=\"color: navy\">;</span>\r\n  src<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.actor<b> as </b><span style=\"color: maroon\">t</span><b> then </b>Reference<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> <i>&quot;asserterReference&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>AllergyIntoleranceReaction<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.substance<span style=\"color: navy\"><b> -&gt; </b></span>tgt.substance<span style=\"color: navy\">;</span>\r\n  src.manifestation<span style=\"color: navy\"><b> -&gt; </b></span>tgt.manifestation<span style=\"color: navy\">;</span>\r\n  src.description<span style=\"color: navy\"><b> -&gt; </b></span>tgt.description<span style=\"color: navy\">;</span>\r\n  src.onset<span style=\"color: navy\"><b> -&gt; </b></span>tgt.onset<span style=\"color: navy\">;</span>\r\n  src.severity<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.severity = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#AllergyIntoleranceSeverity'</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.exposureRoute<span style=\"color: navy\"><b> -&gt; </b></span>tgt.exposureRoute<span style=\"color: navy\">;</span>\r\n  src.note<span style=\"color: navy\"><b> -&gt; </b></span>tgt.note<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "contained" : [
    {
      "resourceType" : "ConceptMap",
      "id" : "AllergyIntoleranceCategory",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/4.3/allergy-intolerance-category",
          "target" : "http://hl7.org/fhir/allergy-intolerance-category",
          "element" : [
            {
              "code" : "food",
              "target" : [
                {
                  "code" : "food",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "medication",
              "target" : [
                {
                  "code" : "medication",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "environment",
              "target" : [
                {
                  "code" : "environment",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "biologic",
              "target" : [
                {
                  "code" : "biologic",
                  "relationship" : "related-to"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "resourceType" : "ConceptMap",
      "id" : "AllergyIntoleranceCriticality",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/4.3/allergy-intolerance-criticality",
          "target" : "http://hl7.org/fhir/allergy-intolerance-criticality",
          "element" : [
            {
              "code" : "low",
              "target" : [
                {
                  "code" : "low",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "high",
              "target" : [
                {
                  "code" : "high",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "unable-to-assess",
              "target" : [
                {
                  "code" : "unable-to-assess",
                  "relationship" : "related-to"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "resourceType" : "ConceptMap",
      "id" : "AllergyIntoleranceSeverity",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/4.3/reaction-event-severity",
          "target" : "http://hl7.org/fhir/reaction-event-severity",
          "element" : [
            {
              "code" : "mild",
              "target" : [
                {
                  "code" : "mild",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "moderate",
              "target" : [
                {
                  "code" : "moderate",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "severe",
              "target" : [
                {
                  "code" : "severe",
                  "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/AllergyIntolerance4Bto5",
  "version" : "5.1.0",
  "name" : "AllergyIntolerance4Bto5",
  "title" : "FML Conversion for AllergyIntolerance: R4B to R5",
  "status" : "active",
  "date" : "2024-04-27T18:54:50+10:00",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description" : "FMLConversionforAllergyIntoleranceR4BtoR5",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/4.3/StructureDefinition/AllergyIntolerance",
      "mode" : "source",
      "alias" : "AllergyIntoleranceR4B"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
      "mode" : "target",
      "alias" : "AllergyIntoleranceR5"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*4Bto5"
  ],
  "group" : [
    {
      "name" : "AllergyIntolerance",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "AllergyIntoleranceR4B",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "AllergyIntoleranceR5",
          "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" : "clinicalStatus",
          "source" : [
            {
              "context" : "src",
              "element" : "clinicalStatus",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "clinicalStatus",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "verificationStatus",
          "source" : [
            {
              "context" : "src",
              "element" : "verificationStatus",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "verificationStatus",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "type",
          "source" : [
            {
              "context" : "src",
              "element" : "type",
              "variable" : "s",
              "condition" : "type = 'allergy'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "variable" : "t",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "t",
              "element" : "coding",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/allergy-intolerance-type"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "allergy"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Allergy"
                }
              ]
            }
          ]
        },
        {
          "name" : "type",
          "source" : [
            {
              "context" : "src",
              "element" : "type",
              "variable" : "s",
              "condition" : "type = 'intolerance'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "variable" : "t",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "t",
              "element" : "coding",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/allergy-intolerance-type"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "intolerance"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Intolerance"
                }
              ]
            }
          ]
        },
        {
          "name" : "category",
          "source" : [
            {
              "context" : "src",
              "element" : "category",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "category",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#AllergyIntoleranceCategory"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "criticality",
          "source" : [
            {
              "context" : "src",
              "element" : "criticality",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "criticality",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#AllergyIntoleranceCriticality"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "code",
          "source" : [
            {
              "context" : "src",
              "element" : "code",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "code",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "patient",
          "source" : [
            {
              "context" : "src",
              "element" : "patient",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "patient",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "encounter",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "encounter",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "onsetDateTime",
          "source" : [
            {
              "context" : "src",
              "type" : "dateTime",
              "element" : "onset",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "onset",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "onsetAge",
          "source" : [
            {
              "context" : "src",
              "type" : "Age",
              "element" : "onset",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "onset",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "onsetPeriod",
          "source" : [
            {
              "context" : "src",
              "type" : "Period",
              "element" : "onset",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "onset",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "onsetRange",
          "source" : [
            {
              "context" : "src",
              "type" : "Range",
              "element" : "onset",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "onset",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "onsetString",
          "source" : [
            {
              "context" : "src",
              "type" : "string",
              "element" : "onset",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "onset",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "recordedDate",
          "source" : [
            {
              "context" : "src",
              "element" : "recordedDate",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "recordedDate",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "recorder",
          "source" : [
            {
              "context" : "src",
              "element" : "recorder",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "participant",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "AllergyIntoleranceRecorder",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ]
        },
        {
          "name" : "asserter",
          "source" : [
            {
              "context" : "src",
              "element" : "asserter",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "participant",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "AllergyIntoleranceAsserter",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ]
        },
        {
          "name" : "lastOccurrence",
          "source" : [
            {
              "context" : "src",
              "element" : "lastOccurrence",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "lastOccurrence",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "note",
          "source" : [
            {
              "context" : "src",
              "element" : "note",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "note",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "reaction",
          "source" : [
            {
              "context" : "src",
              "element" : "reaction",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "reaction",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "AllergyIntoleranceReaction",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "AllergyIntoleranceRecorder",
      "extends" : "BackboneElement",
      "documentation" : "group AllergyIntoleranceParticipant(source src, target tgt) extends BackboneElement {\r\nsrc.function -> tgt.function;\r\nsrc.actor -> tgt.actor;\r\n}",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "reference",
          "source" : [
            {
              "context" : "src",
              "element" : "reference",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "function",
              "variable" : "t",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "t",
              "element" : "coding",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "enterer"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Enterer"
                }
              ]
            }
          ]
        },
        {
          "name" : "recorderReference",
          "source" : [
            {
              "context" : "src",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "actor",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "Reference",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "AllergyIntoleranceAsserter",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "reference",
          "source" : [
            {
              "context" : "src",
              "element" : "reference",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "function",
              "variable" : "t",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            },
            {
              "context" : "t",
              "element" : "coding",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://terminology.hl7.org/CodeSystem/provenance-participant-type"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "author"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Author"
                }
              ]
            }
          ]
        },
        {
          "name" : "asserterReference",
          "source" : [
            {
              "context" : "src",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "actor",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "Reference",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "AllergyIntoleranceReaction",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "substance",
          "source" : [
            {
              "context" : "src",
              "element" : "substance",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "substance",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "manifestation",
          "source" : [
            {
              "context" : "src",
              "element" : "manifestation",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "manifestation",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "description",
          "source" : [
            {
              "context" : "src",
              "element" : "description",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "description",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "onset",
          "source" : [
            {
              "context" : "src",
              "element" : "onset",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "onset",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "severity",
          "source" : [
            {
              "context" : "src",
              "element" : "severity",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "severity",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#AllergyIntoleranceSeverity"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "exposureRoute",
          "source" : [
            {
              "context" : "src",
              "element" : "exposureRoute",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "exposureRoute",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "note",
          "source" : [
            {
              "context" : "src",
              "element" : "note",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "note",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}