PreNUDGE FHIR® IG for Data Provider / Data from Apps (R4)
0.1.0 - ci-build

PreNUDGE FHIR® IG for Data Provider / Data from Apps (R4) - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## : Alcohol Use Q mapping frequency to O drinks per day - JSON Representation

Active as of 2026-06-24

Raw json | Download

    {
      "resourceType" : "StructureMap",
      "id" : "AlcoholQuestionnaireResponseToObservation",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap AlcoholQuestionnaireResponseToObservation</b></p><a name=\"AlcoholQuestionnaireResponseToObservation\"> </a><a name=\"hcAlcoholQuestionnaireResponseToObservation\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/AlcoholQuestionnaireResponseToObservation<span style=\"color: navy\">&quot; = &quot;</span>AlcoholQuestionnaireResponseToObservation<span style=\"color: navy\">&quot;\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Alcohol Use Q mapping frequency to O drinks per day</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/questionnaireresponse.html\" title=\"QuestionnaireResponse\">http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse</a><span style=\"color: navy\">&quot; </span><b>alias </b>QR <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/observation.html\" title=\"Observation\">http://hl7.org/fhir/StructureDefinition/Observation</a><span style=\"color: navy\">&quot; </span><b>alias </b>Obs <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/datatypes.html#Coding\" title=\"Coding\">http://hl7.org/fhir/StructureDefinition/Coding</a><span style=\"color: navy\">&quot; </span><b>alias </b>Coding <b>as </b><b>source</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*<span style=\"color: navy\">&quot;\r\n</span><b>imports</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureMap-QuestionnaireResponseToObservationBase.html\" title=\"Shared base for Q to O\">https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/QuestionnaireResponseToObservationBase</a><span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>AlcoholQuestionnaireResponseToObservation<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>QR, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Obs<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span>  src<b> then </b>SetObservationBase<span style=\"color: navy\">(</span><span style=\"color: maroon\">src</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>&quot;Base&quot;</i><span style=\"color: navy\">;</span>\r\n  src<span style=\"color: navy\"><b> -&gt; </b></span> tgt.meta<b> as </b><span style=\"color: maroon\">meta</span><span style=\"color: navy\">, </span> meta.profile = <span style=\"color: blue\">'https://fhir.hl7.at/prenudge/appdata/r4/StructureDefinition/at-prenudge-alcoholuse-observation'</span> <i>&quot;SetProfile&quot;</i><span style=\"color: navy\">;</span>\r\n  src<span style=\"color: navy\"><b> -&gt; </b></span>tgt.code = <b>cc</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'http://loinc.org'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'74013-4'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Alcoholic drinks per day'</span><span style=\"color: navy\">)</span> <i>&quot;SetCode&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">// </span><span style=\"color: green\">EffectiveDateTime from authored</span>\r\n  src.authored<b> as </b><span style=\"color: maroon\">authored</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.effectiveDateTime = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'dateTime'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">dt</span><span style=\"color: navy\">, </span> dt.value = <span style=\"color: maroon\">authored</span> <i>&quot;SetEffective&quot;</i><span style=\"color: navy\">;</span>\r\n  src.item<b> as </b><span style=\"color: maroon\">item</span><b> where </b>linkId = 'alcohol-frequency'<b> then </b>MapAlcoholFrequency<span style=\"color: navy\">(</span><span style=\"color: maroon\">item</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>&quot;ProcessItem&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>MapAlcoholFrequency<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>QR, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Obs<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span>  src.answer<b> as </b><span style=\"color: maroon\">answer</span><b> then</b><span style=\"color: navy\"> {\r\n</span>    answer.valueCoding<b> as </b><span style=\"color: maroon\">coding</span><b> then </b>MapAlcoholCodingToQuantity<span style=\"color: navy\">(</span><span style=\"color: maroon\">coding</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>&quot;MapValueCoding&quot;</i><span style=\"color: navy\">;</span>\r\n  <span style=\"color: navy\">}</span> <i>&quot;ProcessAnswer&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">TODO: Note mapping disabled due to MaLaC-HD limitation</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">Annotation.text (markdown) target not supported with FHIR string source</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">See: https://gitlab.com/cdehealth/malac-hd/-/issues/128</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>MapAlcoholCodingToQuantity<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">coding</span><span style=\"color: navy\"> : </span>Coding, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Obs<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span>  coding.code<b> as </b><span style=\"color: maroon\">c</span><b> where </b>$this = '69620002'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Quantity'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">qty</span><span style=\"color: navy\">, </span> qty.value = <span style=\"color: blue\">'1'</span><span style=\"color: navy\">, </span> qty.unit = <span style=\"color: blue\">'drinks/day'</span><span style=\"color: navy\">, </span> qty.system = <span style=\"color: blue\">'http://unitsofmeasure.org'</span><span style=\"color: navy\">, </span> qty.code = <span style=\"color: blue\">'{drinks}/d'</span> <i>&quot;MapDaily&quot;</i><span style=\"color: navy\">;</span>\r\n  coding.code<b> as </b><span style=\"color: maroon\">c</span><b> where </b>$this = '307447001'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Quantity'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">qty</span><span style=\"color: navy\">, </span> qty.value = <span style=\"color: blue\">'0.79'</span><span style=\"color: navy\">, </span> qty.unit = <span style=\"color: blue\">'drinks/day'</span><span style=\"color: navy\">, </span> qty.system = <span style=\"color: blue\">'http://unitsofmeasure.org'</span><span style=\"color: navy\">, </span> qty.code = <span style=\"color: blue\">'{drinks}/d'</span> <i>&quot;MapSixTimesWeekly&quot;</i><span style=\"color: navy\">;</span>\r\n  coding.code<b> as </b><span style=\"color: maroon\">c</span><b> where </b>$this = '396113003'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Quantity'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">qty</span><span style=\"color: navy\">, </span> qty.value = <span style=\"color: blue\">'0.5'</span><span style=\"color: navy\">, </span> qty.unit = <span style=\"color: blue\">'drinks/day'</span><span style=\"color: navy\">, </span> qty.system = <span style=\"color: blue\">'http://unitsofmeasure.org'</span><span style=\"color: navy\">, </span> qty.code = <span style=\"color: blue\">'{drinks}/d'</span> <i>&quot;MapThreeToFourTimesWeekly&quot;</i><span style=\"color: navy\">;</span>\r\n  coding.code<b> as </b><span style=\"color: maroon\">c</span><b> where </b>$this = '229800002'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Quantity'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">qty</span><span style=\"color: navy\">, </span> qty.value = <span style=\"color: blue\">'0.21'</span><span style=\"color: navy\">, </span> qty.unit = <span style=\"color: blue\">'drinks/day'</span><span style=\"color: navy\">, </span> qty.system = <span style=\"color: blue\">'http://unitsofmeasure.org'</span><span style=\"color: navy\">, </span> qty.code = <span style=\"color: blue\">'{drinks}/d'</span> <i>&quot;MapTwiceWeekly&quot;</i><span style=\"color: navy\">;</span>\r\n  coding.code<b> as </b><span style=\"color: maroon\">c</span><b> where </b>$this = '307452006'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Quantity'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">qty</span><span style=\"color: navy\">, </span> qty.value = <span style=\"color: blue\">'0.08'</span><span style=\"color: navy\">, </span> qty.unit = <span style=\"color: blue\">'drinks/day'</span><span style=\"color: navy\">, </span> qty.system = <span style=\"color: blue\">'http://unitsofmeasure.org'</span><span style=\"color: navy\">, </span> qty.code = <span style=\"color: blue\">'{drinks}/d'</span> <i>&quot;MapThreeTimesMonthly&quot;</i><span style=\"color: navy\">;</span>\r\n  coding.code<b> as </b><span style=\"color: maroon\">c</span><b> where </b>$this = '307450003'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Quantity'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">qty</span><span style=\"color: navy\">, </span> qty.value = <span style=\"color: blue\">'0.03'</span><span style=\"color: navy\">, </span> qty.unit = <span style=\"color: blue\">'drinks/day'</span><span style=\"color: navy\">, </span> qty.system = <span style=\"color: blue\">'http://unitsofmeasure.org'</span><span style=\"color: navy\">, </span> qty.code = <span style=\"color: blue\">'{drinks}/d'</span> <i>&quot;MapOnceMonthly&quot;</i><span style=\"color: navy\">;</span>\r\n  coding.code<b> as </b><span style=\"color: maroon\">c</span><b> where </b>$this = '445547001'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Quantity'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">qty</span><span style=\"color: navy\">, </span> qty.value = <span style=\"color: blue\">'0.02'</span><span style=\"color: navy\">, </span> qty.unit = <span style=\"color: blue\">'drinks/day'</span><span style=\"color: navy\">, </span> qty.system = <span style=\"color: blue\">'http://unitsofmeasure.org'</span><span style=\"color: navy\">, </span> qty.code = <span style=\"color: blue\">'{drinks}/d'</span> <i>&quot;MapEveryTwoMonths&quot;</i><span style=\"color: navy\">;</span>\r\n  coding.code<b> as </b><span style=\"color: maroon\">c</span><b> where </b>$this = '105542008'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Quantity'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">qty</span><span style=\"color: navy\">, </span> qty.value = <span style=\"color: blue\">'0.001'</span><span style=\"color: navy\">, </span> qty.unit = <span style=\"color: blue\">'drinks/day'</span><span style=\"color: navy\">, </span> qty.system = <span style=\"color: blue\">'http://unitsofmeasure.org'</span><span style=\"color: navy\">, </span> qty.code = <span style=\"color: blue\">'{drinks}/d'</span> <i>&quot;MapCurrentNonDrinker&quot;</i><span style=\"color: navy\">;</span>\r\n  coding.code<b> as </b><span style=\"color: maroon\">c</span><b> where </b>$this = '783261004'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.value = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Quantity'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">qty</span><span style=\"color: navy\">, </span> qty.value = <span style=\"color: blue\">'0'</span><span style=\"color: navy\">, </span> qty.unit = <span style=\"color: blue\">'drinks/day'</span><span style=\"color: navy\">, </span> qty.system = <span style=\"color: blue\">'http://unitsofmeasure.org'</span><span style=\"color: navy\">, </span> qty.code = <span style=\"color: blue\">'{drinks}/d'</span> <i>&quot;MapLifetimeNonDrinker&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
      },
      "url" : "https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/AlcoholQuestionnaireResponseToObservation",
      "version" : "0.1.0",
      "name" : "AlcoholQuestionnaireResponseToObservation",
      "title" : "Alcohol Use Q mapping frequency to O drinks per day",
      "status" : "active",
      "date" : "2026-06-24T07:21:07+00:00",
      "publisher" : "The PreNUDGE Consortium",
      "contact" : [
        {
          "name" : "The PreNUDGE Consortium",
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://prenudge.at"
            }
          ]
        },
        {
          "name" : "The PreNUDGE Consortium",
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://prenudge.at",
              "use" : "work"
            }
          ]
        }
      ],
      "description" : "Alcohol Use Q mapping frequency to O drinks per day",
      "structure" : [
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
          "mode" : "source",
          "alias" : "QR"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/Observation",
          "mode" : "target",
          "alias" : "Obs"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/Coding",
          "mode" : "source",
          "alias" : "Coding"
        }
      ],
      "import" : [
        "http://hl7.org/fhir/StructureMap/*"🔗 ,
        "https://fhir.hl7.at/prenudge/appdata/r4/StructureMap/QuestionnaireResponseToObservationBase"
      ],
      "group" : [
        {
          "name" : "AlcoholQuestionnaireResponseToObservation",
          "typeMode" : "none",
          "input" : [
            {
              "name" : "src",
              "type" : "QR",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "type" : "Obs",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "Base",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "dependent" : [
                {
                  "name" : "SetObservationBase",
                  "variable" : [
                    "src",
                    "tgt"
                  ]
                }
              ]
            },
            {
              "name" : "SetProfile",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "meta",
                  "variable" : "meta"
                },
                {
                  "context" : "meta",
                  "contextType" : "variable",
                  "element" : "profile",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "https://fhir.hl7.at/prenudge/appdata/r4/StructureDefinition/at-prenudge-alcoholuse-observation"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "SetCode",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "cc",
                  "parameter" : [
                    {
                      "valueString" : "http://loinc.org"
                    },
                    {
                      "valueString" : "74013-4"
                    },
                    {
                      "valueString" : "Alcoholic drinks per day"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "SetEffective",
              "source" : [
                {
                  "context" : "src",
                  "element" : "authored",
                  "variable" : "authored"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "effectiveDateTime",
                  "variable" : "dt",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "dateTime"
                    }
                  ]
                },
                {
                  "context" : "dt",
                  "contextType" : "variable",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "authored"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "ProcessItem",
              "source" : [
                {
                  "context" : "src",
                  "element" : "item",
                  "variable" : "item",
                  "condition" : "linkId = 'alcohol-frequency'"
                }
              ],
              "dependent" : [
                {
                  "name" : "MapAlcoholFrequency",
                  "variable" : [
                    "item",
                    "tgt"
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "MapAlcoholFrequency",
          "typeMode" : "none",
          "input" : [
            {
              "name" : "src",
              "type" : "QR",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "type" : "Obs",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "ProcessAnswer",
              "source" : [
                {
                  "context" : "src",
                  "element" : "answer",
                  "variable" : "answer"
                }
              ],
              "rule" : [
                {
                  "name" : "MapValueCoding",
                  "source" : [
                    {
                      "context" : "answer",
                      "element" : "valueCoding",
                      "variable" : "coding"
                    }
                  ],
                  "dependent" : [
                    {
                      "name" : "MapAlcoholCodingToQuantity",
                      "variable" : [
                        "coding",
                        "tgt"
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "MapAlcoholCodingToQuantity",
          "typeMode" : "none",
          "input" : [
            {
              "name" : "coding",
              "type" : "Coding",
              "mode" : "source"
            },
            {
              "name" : "tgt",
              "type" : "Obs",
              "mode" : "target"
            }
          ],
          "rule" : [
            {
              "name" : "MapDaily",
              "source" : [
                {
                  "context" : "coding",
                  "element" : "code",
                  "variable" : "c",
                  "condition" : "$this = '69620002'"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "value",
                  "variable" : "qty",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Quantity"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "1"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "unit",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "drinks/day"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://unitsofmeasure.org"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "{drinks}/d"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "MapSixTimesWeekly",
              "source" : [
                {
                  "context" : "coding",
                  "element" : "code",
                  "variable" : "c",
                  "condition" : "$this = '307447001'"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "value",
                  "variable" : "qty",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Quantity"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "0.79"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "unit",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "drinks/day"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://unitsofmeasure.org"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "{drinks}/d"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "MapThreeToFourTimesWeekly",
              "source" : [
                {
                  "context" : "coding",
                  "element" : "code",
                  "variable" : "c",
                  "condition" : "$this = '396113003'"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "value",
                  "variable" : "qty",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Quantity"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "0.5"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "unit",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "drinks/day"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://unitsofmeasure.org"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "{drinks}/d"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "MapTwiceWeekly",
              "source" : [
                {
                  "context" : "coding",
                  "element" : "code",
                  "variable" : "c",
                  "condition" : "$this = '229800002'"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "value",
                  "variable" : "qty",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Quantity"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "0.21"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "unit",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "drinks/day"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://unitsofmeasure.org"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "{drinks}/d"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "MapThreeTimesMonthly",
              "source" : [
                {
                  "context" : "coding",
                  "element" : "code",
                  "variable" : "c",
                  "condition" : "$this = '307452006'"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "value",
                  "variable" : "qty",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Quantity"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "0.08"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "unit",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "drinks/day"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://unitsofmeasure.org"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "{drinks}/d"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "MapOnceMonthly",
              "source" : [
                {
                  "context" : "coding",
                  "element" : "code",
                  "variable" : "c",
                  "condition" : "$this = '307450003'"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "value",
                  "variable" : "qty",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Quantity"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "0.03"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "unit",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "drinks/day"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://unitsofmeasure.org"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "{drinks}/d"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "MapEveryTwoMonths",
              "source" : [
                {
                  "context" : "coding",
                  "element" : "code",
                  "variable" : "c",
                  "condition" : "$this = '445547001'"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "value",
                  "variable" : "qty",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Quantity"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "0.02"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "unit",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "drinks/day"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://unitsofmeasure.org"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "{drinks}/d"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "MapCurrentNonDrinker",
              "source" : [
                {
                  "context" : "coding",
                  "element" : "code",
                  "variable" : "c",
                  "condition" : "$this = '105542008'"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "value",
                  "variable" : "qty",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Quantity"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "0.001"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "unit",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "drinks/day"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://unitsofmeasure.org"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "{drinks}/d"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "MapLifetimeNonDrinker",
              "source" : [
                {
                  "context" : "coding",
                  "element" : "code",
                  "variable" : "c",
                  "condition" : "$this = '783261004'"
                }
              ],
              "target" : [
                {
                  "context" : "tgt",
                  "contextType" : "variable",
                  "element" : "value",
                  "variable" : "qty",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Quantity"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "0"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "unit",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "drinks/day"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "system",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://unitsofmeasure.org"
                    }
                  ]
                },
                {
                  "context" : "qty",
                  "contextType" : "variable",
                  "element" : "code",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "{drinks}/d"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }