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 BiologicallyDerivedProduct: R4 to R5 - JSON Representation

Page standards status: Trial-use Maturity Level: 1

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "BiologicallyDerivedProduct4to5",
  "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/BiologicallyDerivedProduct4to5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'BiologicallyDerivedProduct4to5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for BiologicallyDerivedProduct: R4 to R5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/biologicallyderivedproduct.html\" title=\"BiologicallyDerivedProduct\">http://hl7.org/fhir/4.0/StructureDefinition/BiologicallyDerivedProduct</a><span style=\"color: navy\">&quot; </span><b>alias </b>BiologicallyDerivedProductR4 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R5/biologicallyderivedproduct.html\" title=\"BiologicallyDerivedProduct\">http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct</a><span style=\"color: navy\">&quot; </span><b>alias </b>BiologicallyDerivedProductR5 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*4to5<span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>BiologicallyDerivedProduct<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>BiologicallyDerivedProductR4, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>BiologicallyDerivedProductR5<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src.productCategory<b> as </b><span style=\"color: maroon\">s</span><b> where </b>productCategory = 'organ'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.productCategory = <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/product-category'</span><span style=\"color: navy\">, </span> tc.code = <span style=\"color: blue\">'organ'</span><span style=\"color: navy\">, </span> tc.display = <span style=\"color: blue\">'Organ'</span><span style=\"color: navy\">;</span>\r\n  src.productCategory<b> as </b><span style=\"color: maroon\">s</span><b> where </b>productCategory = 'tissue'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.productCategory = <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/product-category'</span><span style=\"color: navy\">, </span> tc.code = <span style=\"color: blue\">'tissue'</span><span style=\"color: navy\">, </span> tc.display = <span style=\"color: blue\">'Tissue'</span><span style=\"color: navy\">;</span>\r\n  src.productCategory<b> as </b><span style=\"color: maroon\">s</span><b> where </b>productCategory = 'fluid'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.productCategory = <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/product-category'</span><span style=\"color: navy\">, </span> tc.code = <span style=\"color: blue\">'fluid'</span><span style=\"color: navy\">, </span> tc.display = <span style=\"color: blue\">'Fluid'</span><span style=\"color: navy\">;</span>\r\n  src.productCategory<b> as </b><span style=\"color: maroon\">s</span><b> where </b>productCategory = 'cells'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.productCategory = <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/product-category'</span><span style=\"color: navy\">, </span> tc.code = <span style=\"color: blue\">'cells'</span><span style=\"color: navy\">, </span> tc.display = <span style=\"color: blue\">'Cells'</span><span style=\"color: navy\">;</span>\r\n  src.productCategory<b> as </b><span style=\"color: maroon\">s</span><b> where </b>productCategory = 'biologicalAgent'<span style=\"color: navy\"><b> -&gt; </b></span> tgt.productCategory = <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/product-category'</span><span style=\"color: navy\">, </span> tc.code = <span style=\"color: blue\">'biologicalAgent'</span><span style=\"color: navy\">, </span> tc.display = <span style=\"color: blue\">'BiologicalAgent'</span><span style=\"color: navy\">;</span>\r\n  src.productCode<span style=\"color: navy\"><b> -&gt; </b></span>tgt.productCode<span style=\"color: navy\">;</span>\r\n  src.parent<span style=\"color: navy\"><b> -&gt; </b></span>tgt.parent<span style=\"color: navy\">;</span>\r\n  src.request<span style=\"color: navy\"><b> -&gt; </b></span>tgt.request<span style=\"color: navy\">;</span>\r\n  src.identifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier<span style=\"color: navy\">;</span>\r\n  src.collection<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.collection<b> as </b><span style=\"color: maroon\">t</span><b> then </b>BiologicallyDerivedProductCollection<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.biologicalSourceEvent -&gt; tgt.biologicalSourceEvent;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>BiologicallyDerivedProductCollection<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.collector<span style=\"color: navy\"><b> -&gt; </b></span>tgt.collector<span style=\"color: navy\">;</span>\r\n  src.source<span style=\"color: navy\"><b> -&gt; </b></span>tgt.source<span style=\"color: navy\">;</span>\r\n  src.collected<span style=\"color: navy\"> : </span>dateTime<span style=\"color: navy\"><b> -&gt; </b></span>tgt.collected<span style=\"color: navy\">;</span>\r\n  src.collected<span style=\"color: navy\"> : </span>Period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.collected<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "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/BiologicallyDerivedProduct4to5",
  "version" : "5.1.0",
  "name" : "BiologicallyDerivedProduct4to5",
  "title" : "FML Conversion for BiologicallyDerivedProduct: R4 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" : "FMLConversionforBiologicallyDerivedProductR4toR5",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/4.0/StructureDefinition/BiologicallyDerivedProduct",
      "mode" : "source",
      "alias" : "BiologicallyDerivedProductR4"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct",
      "mode" : "target",
      "alias" : "BiologicallyDerivedProductR5"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*4to5"
  ],
  "group" : [
    {
      "name" : "BiologicallyDerivedProduct",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "BiologicallyDerivedProductR4",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "BiologicallyDerivedProductR5",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "productCategory",
          "source" : [
            {
              "context" : "src",
              "element" : "productCategory",
              "variable" : "s",
              "condition" : "productCategory = 'organ'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "productCategory",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/product-category"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "organ"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Organ"
                }
              ]
            }
          ]
        },
        {
          "name" : "productCategory",
          "source" : [
            {
              "context" : "src",
              "element" : "productCategory",
              "variable" : "s",
              "condition" : "productCategory = 'tissue'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "productCategory",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/product-category"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "tissue"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Tissue"
                }
              ]
            }
          ]
        },
        {
          "name" : "productCategory",
          "source" : [
            {
              "context" : "src",
              "element" : "productCategory",
              "variable" : "s",
              "condition" : "productCategory = 'fluid'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "productCategory",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/product-category"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "fluid"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Fluid"
                }
              ]
            }
          ]
        },
        {
          "name" : "productCategory",
          "source" : [
            {
              "context" : "src",
              "element" : "productCategory",
              "variable" : "s",
              "condition" : "productCategory = 'cells'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "productCategory",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/product-category"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "cells"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "Cells"
                }
              ]
            }
          ]
        },
        {
          "name" : "productCategory",
          "source" : [
            {
              "context" : "src",
              "element" : "productCategory",
              "variable" : "s",
              "condition" : "productCategory = 'biologicalAgent'"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "productCategory",
              "variable" : "tc",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Coding"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "system",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/product-category"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "code",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "biologicalAgent"
                }
              ]
            },
            {
              "context" : "tc",
              "element" : "display",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "BiologicalAgent"
                }
              ]
            }
          ]
        },
        {
          "name" : "productCode",
          "source" : [
            {
              "context" : "src",
              "element" : "productCode",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "productCode",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "parent",
          "source" : [
            {
              "context" : "src",
              "element" : "parent",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "parent",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "request",
          "source" : [
            {
              "context" : "src",
              "element" : "request",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "request",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "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" : "collection",
          "source" : [
            {
              "context" : "src",
              "element" : "collection",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "collection",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "BiologicallyDerivedProductCollection",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ],
          "documentation" : "src.biologicalSourceEvent -> tgt.biologicalSourceEvent;"
        }
      ]
    },
    {
      "name" : "BiologicallyDerivedProductCollection",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "collector",
          "source" : [
            {
              "context" : "src",
              "element" : "collector",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "collector",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "source",
          "source" : [
            {
              "context" : "src",
              "element" : "source",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "source",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "collectedDateTime",
          "source" : [
            {
              "context" : "src",
              "type" : "dateTime",
              "element" : "collected",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "collected",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "collectedPeriod",
          "source" : [
            {
              "context" : "src",
              "type" : "Period",
              "element" : "collected",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "collected",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}