FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureMap/OperationOutcome3to2

Packagehl7.fhir.uv.xver
Resource TypeStructureMap
IdOperationOutcome3to2
FHIR VersionR5
Sourcehttp://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-OperationOutcome3to2.html
URLhttp://hl7.org/fhir/StructureMap/OperationOutcome3to2
Version0.1.0
Statusactive
Date2024-02-22T03:16:50+00:00
NameOperationOutcome3to2
TitleOperationOutcome Transforms: R3 to R2
Realmuv
Authorityhl7
DescriptionOperationOutcomeTransformsR3toR2

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

/// url = 'http://hl7.org/fhir/StructureMap/OperationOutcome3to2'
/// name = 'OperationOutcome3to2'
/// title = 'OperationOutcome Transforms: R3 to R2'
/// status = 'active'

uses "http://hl7.org/fhir/3.0/OperationOutcome" alias OperationOutcome as source
uses "http://hl7.org/fhir/1.0/OperationOutcome" alias OperationOutcomeR2 as target

imports "http://hl7.org/fhir/StructureMap/primitives3to2"
imports "http://hl7.org/fhir/StructureMap/DomainResource3to2"
imports "http://hl7.org/fhir/StructureMap/CodeableConcept3to2"

group OperationOutcome(source src : OperationOutcome, target tgt : OperationOutcomeR2) extends DomainResource <<type+>> {
  src.issue as vs0 -> tgt.issue as vt0 then {
    vs0.severity -> vt0.severity "issue-severity";
    vs0.code -> vt0.code "issue-code";
    vs0.details -> vt0.details "issue-details";
    vs0.diagnostics -> vt0.diagnostics "issue-diagnostics";
    vs0.location -> vt0.location "issue-location";
  } "OperationOutcome-issue";
}


Source

{
  "resourceType": "StructureMap",
  "id": "OperationOutcome3to2",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "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.xver"
          }
        ]
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "draft",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/StructureMap/OperationOutcome3to2",
  "version": "0.1.0",
  "name": "OperationOutcome3to2",
  "title": "OperationOutcome Transforms: R3 to R2",
  "status": "active",
  "date": "2024-02-22T03:16:50+00:00",
  "publisher": "HL7 International / FHIR Infrastructure",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description": "OperationOutcomeTransformsR3toR2",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/3.0/OperationOutcome",
      "mode": "source",
      "alias": "OperationOutcome"
    },
    {
      "url": "http://hl7.org/fhir/1.0/OperationOutcome",
      "mode": "target",
      "alias": "OperationOutcomeR2"
    }
  ],
  "import": [
    "http://hl7.org/fhir/StructureMap/primitives3to2",
    "http://hl7.org/fhir/StructureMap/DomainResource3to2",
    "http://hl7.org/fhir/StructureMap/CodeableConcept3to2"
  ],
  "group": [
    {
      "name": "OperationOutcome",
      "extends": "DomainResource",
      "typeMode": "type-and-types",
      "input": [
        {
          "name": "src",
          "type": "OperationOutcome",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "OperationOutcomeR2",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "OperationOutcome-issue",
          "source": [
            {
              "context": "src",
              "element": "issue",
              "variable": "vs0"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "issue",
              "variable": "vt0"
            }
          ],
          "rule": [
            {
              "name": "issue-severity",
              "source": [
                {
                  "context": "vs0",
                  "element": "severity",
                  "variable": "vvv"
                }
              ],
              "target": [
                {
                  "context": "vt0",
                  "element": "severity",
                  "variable": "vvv",
                  "transform": "create"
                }
              ],
              "dependent": [
                {
                  "name": "DefaultMappingGroupAnonymousAlias",
                  "parameter": [
                    {
                      "valueId": "vvv"
                    },
                    {
                      "valueId": "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name": "issue-code",
              "source": [
                {
                  "context": "vs0",
                  "element": "code",
                  "variable": "vvv"
                }
              ],
              "target": [
                {
                  "context": "vt0",
                  "element": "code",
                  "variable": "vvv",
                  "transform": "create"
                }
              ],
              "dependent": [
                {
                  "name": "DefaultMappingGroupAnonymousAlias",
                  "parameter": [
                    {
                      "valueId": "vvv"
                    },
                    {
                      "valueId": "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name": "issue-details",
              "source": [
                {
                  "context": "vs0",
                  "element": "details",
                  "variable": "vvv"
                }
              ],
              "target": [
                {
                  "context": "vt0",
                  "element": "details",
                  "variable": "vvv",
                  "transform": "create"
                }
              ],
              "dependent": [
                {
                  "name": "DefaultMappingGroupAnonymousAlias",
                  "parameter": [
                    {
                      "valueId": "vvv"
                    },
                    {
                      "valueId": "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name": "issue-diagnostics",
              "source": [
                {
                  "context": "vs0",
                  "element": "diagnostics",
                  "variable": "vvv"
                }
              ],
              "target": [
                {
                  "context": "vt0",
                  "element": "diagnostics",
                  "variable": "vvv",
                  "transform": "create"
                }
              ],
              "dependent": [
                {
                  "name": "DefaultMappingGroupAnonymousAlias",
                  "parameter": [
                    {
                      "valueId": "vvv"
                    },
                    {
                      "valueId": "vvv"
                    }
                  ]
                }
              ]
            },
            {
              "name": "issue-location",
              "source": [
                {
                  "context": "vs0",
                  "element": "location",
                  "variable": "vvv"
                }
              ],
              "target": [
                {
                  "context": "vt0",
                  "element": "location",
                  "variable": "vvv",
                  "transform": "create"
                }
              ],
              "dependent": [
                {
                  "name": "DefaultMappingGroupAnonymousAlias",
                  "parameter": [
                    {
                      "valueId": "vvv"
                    },
                    {
                      "valueId": "vvv"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}