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

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

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

Page standards status: Trial-use Maturity Level: 1

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "OperationOutcome4Bto5",
  "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/OperationOutcome4Bto5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'OperationOutcome4Bto5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for OperationOutcome: 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>IssueSeverity<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-issue-severity.html\" title=\"IssueSeverity\">http://hl7.org/fhir/4.3/issue-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-issue-severity.html\" title=\"Issue Severity\">http://hl7.org/fhir/issue-severity</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>fatal <b>-</b> t<span style=\"color: navy\">:</span>fatal\r\n  s<span style=\"color: navy\">:</span>error <b>-</b> t<span style=\"color: navy\">:</span>error\r\n  s<span style=\"color: navy\">:</span>warning <b>-</b> t<span style=\"color: navy\">:</span>warning\r\n  s<span style=\"color: navy\">:</span>information <b>-</b> t<span style=\"color: navy\">:</span>information\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> &quot;</span>IssueType<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-issue-type.html\" title=\"IssueType\">http://hl7.org/fhir/4.3/issue-type</a><span style=\"color: navy\">&quot;\r\n</span><b>  prefix </b>t<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R5/codesystem-issue-type.html\" title=\"Issue Type\">http://hl7.org/fhir/issue-type</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>invalid <b>-</b> t<span style=\"color: navy\">:</span>invalid\r\n  s<span style=\"color: navy\">:</span>structure <b>-</b> t<span style=\"color: navy\">:</span>structure\r\n  s<span style=\"color: navy\">:</span>required <b>-</b> t<span style=\"color: navy\">:</span>required\r\n  s<span style=\"color: navy\">:</span>value <b>-</b> t<span style=\"color: navy\">:</span>value\r\n  s<span style=\"color: navy\">:</span>invariant <b>-</b> t<span style=\"color: navy\">:</span>invariant\r\n  s<span style=\"color: navy\">:</span>security <b>-</b> t<span style=\"color: navy\">:</span>security\r\n  s<span style=\"color: navy\">:</span>login <b>-</b> t<span style=\"color: navy\">:</span>login\r\n  s<span style=\"color: navy\">:</span>unknown <b>-</b> t<span style=\"color: navy\">:</span>unknown\r\n  s<span style=\"color: navy\">:</span>expired <b>-</b> t<span style=\"color: navy\">:</span>expired\r\n  s<span style=\"color: navy\">:</span>forbidden <b>-</b> t<span style=\"color: navy\">:</span>forbidden\r\n  s<span style=\"color: navy\">:</span>suppressed <b>-</b> t<span style=\"color: navy\">:</span>suppressed\r\n  s<span style=\"color: navy\">:</span>processing <b>-</b> t<span style=\"color: navy\">:</span>processing\r\n  s<span style=\"color: navy\">:</span>&quot;not-supported&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>not-supported<span style=\"color: navy\">&quot;</span>\r\n  s<span style=\"color: navy\">:</span>duplicate <b>-</b> t<span style=\"color: navy\">:</span>duplicate\r\n  s<span style=\"color: navy\">:</span>&quot;multiple-matches&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>multiple-matches<span style=\"color: navy\">&quot;</span>\r\n  s<span style=\"color: navy\">:</span>&quot;not-found&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>not-found<span style=\"color: navy\">&quot;</span>\r\n  s<span style=\"color: navy\">:</span>deleted <b>-</b> t<span style=\"color: navy\">:</span>deleted\r\n  s<span style=\"color: navy\">:</span>&quot;too-long&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>too-long<span style=\"color: navy\">&quot;</span>\r\n  s<span style=\"color: navy\">:</span>&quot;code-invalid&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>code-invalid<span style=\"color: navy\">&quot;</span>\r\n  s<span style=\"color: navy\">:</span>extension <b>-</b> t<span style=\"color: navy\">:</span>extension\r\n  s<span style=\"color: navy\">:</span>&quot;too-costly&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>too-costly<span style=\"color: navy\">&quot;</span>\r\n  s<span style=\"color: navy\">:</span>&quot;business-rule&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>business-rule<span style=\"color: navy\">&quot;</span>\r\n  s<span style=\"color: navy\">:</span>conflict <b>-</b> t<span style=\"color: navy\">:</span>conflict\r\n  s<span style=\"color: navy\">:</span>transient <b>-</b> t<span style=\"color: navy\">:</span>transient\r\n  s<span style=\"color: navy\">:</span>&quot;lock-error&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>lock-error<span style=\"color: navy\">&quot;</span>\r\n  s<span style=\"color: navy\">:</span>&quot;no-store&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>no-store<span style=\"color: navy\">&quot;</span>\r\n  s<span style=\"color: navy\">:</span>exception <b>-</b> t<span style=\"color: navy\">:</span>exception\r\n  s<span style=\"color: navy\">:</span>timeout <b>-</b> t<span style=\"color: navy\">:</span>timeout\r\n  s<span style=\"color: navy\">:</span>incomplete <b>-</b> t<span style=\"color: navy\">:</span>incomplete\r\n  s<span style=\"color: navy\">:</span>throttled <b>-</b> t<span style=\"color: navy\">:</span>throttled\r\n  s<span style=\"color: navy\">:</span>informational <b>-</b> t<span style=\"color: navy\">:</span>informational\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/operationoutcome.html\" title=\"OperationOutcome\">http://hl7.org/fhir/4.3/StructureDefinition/OperationOutcome</a><span style=\"color: navy\">&quot; </span><b>alias </b>OperationOutcomeR4B <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R5/operationoutcome.html\" title=\"OperationOutcome\">http://hl7.org/fhir/StructureDefinition/OperationOutcome</a><span style=\"color: navy\">&quot; </span><b>alias </b>OperationOutcomeR5 <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>OperationOutcome<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>OperationOutcomeR4B, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>OperationOutcomeR5<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src.issue<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.issue<b> as </b><span style=\"color: maroon\">t</span><b> then </b>OperationOutcomeIssue<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>OperationOutcomeIssue<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.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\">'#IssueSeverity'</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<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.code = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#IssueType'</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.details<span style=\"color: navy\"><b> -&gt; </b></span>tgt.details<span style=\"color: navy\">;</span>\r\n  src.diagnostics<span style=\"color: navy\"><b> -&gt; </b></span>tgt.diagnostics<span style=\"color: navy\">;</span>\r\n  src.location<span style=\"color: navy\"><b> -&gt; </b></span>tgt.location<span style=\"color: navy\">;</span>\r\n  src.expression<span style=\"color: navy\"><b> -&gt; </b></span>tgt.expression<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "contained" : [
    {
      "resourceType" : "ConceptMap",
      "id" : "IssueSeverity",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/4.3/issue-severity",
          "target" : "http://hl7.org/fhir/issue-severity",
          "element" : [
            {
              "code" : "fatal",
              "target" : [
                {
                  "code" : "fatal",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "error",
              "target" : [
                {
                  "code" : "error",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "warning",
              "target" : [
                {
                  "code" : "warning",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "information",
              "target" : [
                {
                  "code" : "information",
                  "relationship" : "related-to",
                  "comment" : "s:\"success\" - t:\"success\""
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "resourceType" : "ConceptMap",
      "id" : "IssueType",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/4.3/issue-type",
          "target" : "http://hl7.org/fhir/issue-type",
          "element" : [
            {
              "code" : "invalid",
              "target" : [
                {
                  "code" : "invalid",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "structure",
              "target" : [
                {
                  "code" : "structure",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "required",
              "target" : [
                {
                  "code" : "required",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "value",
              "target" : [
                {
                  "code" : "value",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "invariant",
              "target" : [
                {
                  "code" : "invariant",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "security",
              "target" : [
                {
                  "code" : "security",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "login",
              "target" : [
                {
                  "code" : "login",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "unknown",
              "target" : [
                {
                  "code" : "unknown",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "expired",
              "target" : [
                {
                  "code" : "expired",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "forbidden",
              "target" : [
                {
                  "code" : "forbidden",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "suppressed",
              "target" : [
                {
                  "code" : "suppressed",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "processing",
              "target" : [
                {
                  "code" : "processing",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "not-supported",
              "target" : [
                {
                  "code" : "not-supported",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "duplicate",
              "target" : [
                {
                  "code" : "duplicate",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "multiple-matches",
              "target" : [
                {
                  "code" : "multiple-matches",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "not-found",
              "target" : [
                {
                  "code" : "not-found",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "deleted",
              "target" : [
                {
                  "code" : "deleted",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "too-long",
              "target" : [
                {
                  "code" : "too-long",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "code-invalid",
              "target" : [
                {
                  "code" : "code-invalid",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "extension",
              "target" : [
                {
                  "code" : "extension",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "too-costly",
              "target" : [
                {
                  "code" : "too-costly",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "business-rule",
              "target" : [
                {
                  "code" : "business-rule",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "conflict",
              "target" : [
                {
                  "code" : "conflict",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "transient",
              "target" : [
                {
                  "code" : "transient",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "lock-error",
              "target" : [
                {
                  "code" : "lock-error",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "no-store",
              "target" : [
                {
                  "code" : "no-store",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "exception",
              "target" : [
                {
                  "code" : "exception",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "timeout",
              "target" : [
                {
                  "code" : "timeout",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "incomplete",
              "target" : [
                {
                  "code" : "incomplete",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "throttled",
              "target" : [
                {
                  "code" : "throttled",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "informational",
              "target" : [
                {
                  "code" : "informational",
                  "relationship" : "related-to",
                  "comment" : "s:\"success\" - t:\"success\""
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "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/OperationOutcome4Bto5",
  "version" : "5.1.0-ballot1",
  "name" : "OperationOutcome4Bto5",
  "title" : "FML Conversion for OperationOutcome: R4B to R5",
  "status" : "active",
  "date" : "2023-12-19T08:40:03+11:00",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description" : "FMLConversionforOperationOutcomeR4BtoR5",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/4.3/StructureDefinition/OperationOutcome",
      "mode" : "source",
      "alias" : "OperationOutcomeR4B"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/OperationOutcome",
      "mode" : "target",
      "alias" : "OperationOutcomeR5"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*4Bto5"
  ],
  "group" : [
    {
      "name" : "OperationOutcome",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "OperationOutcomeR4B",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "OperationOutcomeR5",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "issue",
          "source" : [
            {
              "context" : "src",
              "element" : "issue",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "issue",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "OperationOutcomeIssue",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "OperationOutcomeIssue",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "severity",
          "source" : [
            {
              "context" : "src",
              "element" : "severity",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "severity",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#IssueSeverity"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "code",
          "source" : [
            {
              "context" : "src",
              "element" : "code",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "code",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#IssueType"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "details",
          "source" : [
            {
              "context" : "src",
              "element" : "details",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "details",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "diagnostics",
          "source" : [
            {
              "context" : "src",
              "element" : "diagnostics",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "diagnostics",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "location",
          "source" : [
            {
              "context" : "src",
              "element" : "location",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "location",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "expression",
          "source" : [
            {
              "context" : "src",
              "element" : "expression",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "expression",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}