Package | hl7.fhir.uv.xver |
Resource Type | StructureMap |
Id | OperationOutcome5to4 |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-OperationOutcome5to4.html |
URL | http://hl7.org/fhir/StructureMap/OperationOutcome5to4 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | OperationOutcome5to4 |
Title | OperationOutcome Transforms: R5 to R4 |
Realm | uv |
Authority | hl7 |
Description | OperationOutcomeTransformsR5toR4 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/OperationOutcome5to4' /// name = 'OperationOutcome5to4' /// title = 'OperationOutcome Transforms: R5 to R4' /// status = 'active' uses "http://hl7.org/fhir/5.0/OperationOutcome" alias OperationOutcomeR5 as source uses "http://hl7.org/fhir/4.0/OperationOutcome" alias OperationOutcomeR4 as target imports "http://hl7.org/fhir/StructureMap/*5to4" group OperationOutcome(source src : OperationOutcomeR5, target tgt : OperationOutcomeR4) extends DomainResource <<type+>> { src.issue as s -> tgt.issue as t then OperationOutcomeIssue(s, t); } group OperationOutcomeIssue(source src, target tgt) extends BackboneElement { src.severity as v -> tgt.severity = translate(v, 'http://hl7.org/fhir/ConceptMap/OperationOutcome.issue.severity-R5toR4', 'code'); src.code as v -> tgt.code = translate(v, 'http://hl7.org/fhir/ConceptMap/OperationOutcome.issue.code-R5toR4', 'code'); src.details -> tgt.details; src.diagnostics -> tgt.diagnostics; src.location -> tgt.location; src.expression -> tgt.expression; }
{ "resourceType": "StructureMap", "id": "OperationOutcome5to4", "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/OperationOutcome5to4", "version": "0.1.0", "name": "OperationOutcome5to4", "title": "OperationOutcome Transforms: R5 to R4", "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": "OperationOutcomeTransformsR5toR4", "jurisdiction": [ { "coding": [ { "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "code": "001" } ] } ], "structure": [ { "url": "http://hl7.org/fhir/5.0/OperationOutcome", "mode": "source", "alias": "OperationOutcomeR5" }, { "url": "http://hl7.org/fhir/4.0/OperationOutcome", "mode": "target", "alias": "OperationOutcomeR4" } ], "import": [ "http://hl7.org/fhir/StructureMap/*5to4" ], "group": [ { "name": "OperationOutcome", "extends": "DomainResource", "typeMode": "type-and-types", "input": [ { "name": "src", "type": "OperationOutcomeR5", "mode": "source" }, { "name": "tgt", "type": "OperationOutcomeR4", "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": "http://hl7.org/fhir/ConceptMap/OperationOutcome.issue.severity-R5toR4" }, { "valueString": "code" } ] } ] }, { "name": "code", "source": [ { "context": "src", "element": "code", "variable": "v" } ], "target": [ { "context": "tgt", "element": "code", "transform": "translate", "parameter": [ { "valueId": "v" }, { "valueString": "http://hl7.org/fhir/ConceptMap/OperationOutcome.issue.code-R5toR4" }, { "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" } ] } ] } ] } ] }