Package | hl7.fhir.uv.xver |
Resource Type | StructureMap |
Id | CodeableConcept5to4B |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-CodeableConcept5to4B.html |
URL | http://hl7.org/fhir/StructureMap/CodeableConcept5to4B |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | CodeableConcept5to4B |
Title | CodeableConcept Transforms: R5 to R4B |
Realm | uv |
Authority | hl7 |
Description | CodeableConceptTransformsR5toR4B |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/CodeableConcept5to4B' /// name = 'CodeableConcept5to4B' /// title = 'CodeableConcept Transforms: R5 to R4B' /// status = 'active' uses "http://hl7.org/fhir/4.0/CodeableConcept" alias CodeableConceptR4B as target uses "http://hl7.org/fhir/4.0/CodeableReference" alias CodeableReferenceR4B as target uses "http://hl7.org/fhir/4.0/Coding" alias CodingR4B as target uses "http://hl7.org/fhir/4.0/code" alias codeR4B as target uses "http://hl7.org/fhir/4.0/string" alias stringR4B as target uses "http://hl7.org/fhir/5.0/CodeableConcept" alias CodeableConceptR5 as source uses "http://hl7.org/fhir/5.0/CodeableReference" alias CodeableReferenceR5 as source uses "http://hl7.org/fhir/5.0/Coding" alias CodingR5 as source uses "http://hl7.org/fhir/5.0/code" alias codeR5 as source imports "http://hl7.org/fhir/StructureMap/*5to4B" group CodeableConcept(source src : CodeableConceptR5, target tgt : CodeableConceptR4B) extends Element <<type+>> { src.coding -> tgt.coding; src.text -> tgt.text; } group CodeableReference2CodeableConcept(source src : CodeableReferenceR5, target tgt : CodeableConceptR4B) extends Element <<types>> { src.concept as s -> tgt then CodeableConcept(s, tgt); } group CodeableReference2Coding(source src : CodeableReferenceR5, target tgt : CodingR4B) extends Element <<types>> { src.concept as s -> tgt then { s.coding as v -> tgt then Coding(v, tgt); }; } group CodeableConcept2CodeableReference(source src : CodeableConceptR5, target tgt : CodeableReferenceR4B) extends Element <<types>> { src as s -> tgt.concept as t then CodeableConcept(s, t) "concept"; } group CodeableConcept2string(source src : CodeableConceptR5, target tgt : stringR4B) extends Element <<types>> { src.text as v -> tgt.value = v "CodeableConcept2string"; } group CodeableReference2string(source src : CodeableReferenceR5, target tgt : stringR4B) extends Element <<types>> { src.concept as s -> tgt as t then CodeableConcept2string(s, t); } group CodeableConcept2Coding(source src : CodeableConceptR5, target tgt : CodingR4B) extends Element <<types>> { src.coding as s -> tgt as t then Coding(s, t); } group Coding2CodeableConcept(source src : CodingR5, target tgt : CodeableConceptR4B) extends Element <<types>> { src as s -> tgt.coding as t then Coding(s, t) "Coding"; } group CodeableConcept2code(source src : CodeableConceptR5, target tgt : codeR4B, source sysUrl : string) extends Element <<types>> { src.coding as s where s.system = sysUrl -> tgt then { s.code -> tgt.value; }; } group code2CodeableConcept(source src : codeR5, target tgt : CodeableConceptR4B, source sysUrl : string) extends Element <<types>> { src.value as s -> tgt.coding = create('Coding') as t, t.system = sysUrl, t.code = s; }
{ "resourceType": "StructureMap", "id": "CodeableConcept5to4B", "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/CodeableConcept5to4B", "version": "0.1.0", "name": "CodeableConcept5to4B", "title": "CodeableConcept Transforms: R5 to R4B", "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": "CodeableConceptTransformsR5toR4B", "jurisdiction": [ { "coding": [ { "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "code": "001" } ] } ], "structure": [ { "url": "http://hl7.org/fhir/4.0/CodeableConcept", "mode": "target", "alias": "CodeableConceptR4B" }, { "url": "http://hl7.org/fhir/4.0/CodeableReference", "mode": "target", "alias": "CodeableReferenceR4B" }, { "url": "http://hl7.org/fhir/4.0/Coding", "mode": "target", "alias": "CodingR4B" }, { "url": "http://hl7.org/fhir/4.0/code", "mode": "target", "alias": "codeR4B" }, { "url": "http://hl7.org/fhir/4.0/string", "mode": "target", "alias": "stringR4B" }, { "url": "http://hl7.org/fhir/5.0/CodeableConcept", "mode": "source", "alias": "CodeableConceptR5" }, { "url": "http://hl7.org/fhir/5.0/CodeableReference", "mode": "source", "alias": "CodeableReferenceR5" }, { "url": "http://hl7.org/fhir/5.0/Coding", "mode": "source", "alias": "CodingR5" }, { "url": "http://hl7.org/fhir/5.0/code", "mode": "source", "alias": "codeR5" } ], "import": [ "http://hl7.org/fhir/StructureMap/*5to4B" ], "group": [ { "name": "CodeableConcept", "extends": "Element", "typeMode": "type-and-types", "input": [ { "name": "src", "type": "CodeableConceptR5", "mode": "source" }, { "name": "tgt", "type": "CodeableConceptR4B", "mode": "target" } ], "rule": [ { "name": "coding", "source": [ { "context": "src", "element": "coding", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "coding", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] }, { "name": "text", "source": [ { "context": "src", "element": "text", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "text", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] } ] }, { "name": "CodeableReference2CodeableConcept", "extends": "Element", "typeMode": "types", "input": [ { "name": "src", "type": "CodeableReferenceR5", "mode": "source" }, { "name": "tgt", "type": "CodeableConceptR4B", "mode": "target" } ], "rule": [ { "name": "concept", "source": [ { "context": "src", "element": "concept", "variable": "s" } ], "target": [ { "transform": "copy", "parameter": [ { "valueId": "tgt" } ] } ], "dependent": [ { "name": "CodeableConcept", "parameter": [ { "valueId": "s" }, { "valueId": "tgt" } ] } ] } ] }, { "name": "CodeableReference2Coding", "extends": "Element", "typeMode": "types", "input": [ { "name": "src", "type": "CodeableReferenceR5", "mode": "source" }, { "name": "tgt", "type": "CodingR4B", "mode": "target" } ], "rule": [ { "name": "concept", "source": [ { "context": "src", "element": "concept", "variable": "s" } ], "target": [ { "transform": "copy", "parameter": [ { "valueId": "tgt" } ] } ], "rule": [ { "name": "coding", "source": [ { "context": "s", "element": "coding", "variable": "v" } ], "target": [ { "transform": "copy", "parameter": [ { "valueId": "tgt" } ] } ], "dependent": [ { "name": "Coding", "parameter": [ { "valueId": "v" }, { "valueId": "tgt" } ] } ] } ] } ] }, { "name": "CodeableConcept2CodeableReference", "extends": "Element", "typeMode": "types", "input": [ { "name": "src", "type": "CodeableConceptR5", "mode": "source" }, { "name": "tgt", "type": "CodeableReferenceR4B", "mode": "target" } ], "rule": [ { "name": "concept", "source": [ { "context": "src", "variable": "s" } ], "target": [ { "context": "tgt", "element": "concept", "variable": "t" } ], "dependent": [ { "name": "CodeableConcept", "parameter": [ { "valueId": "s" }, { "valueId": "t" } ] } ] } ] }, { "name": "CodeableConcept2string", "extends": "Element", "typeMode": "types", "input": [ { "name": "src", "type": "CodeableConceptR5", "mode": "source" }, { "name": "tgt", "type": "stringR4B", "mode": "target" } ], "rule": [ { "name": "CodeableConcept2string", "source": [ { "context": "src", "element": "text", "variable": "v" } ], "target": [ { "context": "tgt", "element": "value", "transform": "copy", "parameter": [ { "valueId": "v" } ] } ] } ] }, { "name": "CodeableReference2string", "extends": "Element", "typeMode": "types", "input": [ { "name": "src", "type": "CodeableReferenceR5", "mode": "source" }, { "name": "tgt", "type": "stringR4B", "mode": "target" } ], "rule": [ { "name": "concept", "source": [ { "context": "src", "element": "concept", "variable": "s" } ], "target": [ { "variable": "t", "transform": "copy", "parameter": [ { "valueId": "tgt" } ] } ], "dependent": [ { "name": "CodeableConcept2string", "parameter": [ { "valueId": "s" }, { "valueId": "t" } ] } ] } ] }, { "name": "CodeableConcept2Coding", "extends": "Element", "typeMode": "types", "input": [ { "name": "src", "type": "CodeableConceptR5", "mode": "source" }, { "name": "tgt", "type": "CodingR4B", "mode": "target" } ], "rule": [ { "name": "coding", "source": [ { "context": "src", "element": "coding", "variable": "s" } ], "target": [ { "variable": "t", "transform": "copy", "parameter": [ { "valueId": "tgt" } ] } ], "dependent": [ { "name": "Coding", "parameter": [ { "valueId": "s" }, { "valueId": "t" } ] } ] } ] }, { "name": "Coding2CodeableConcept", "extends": "Element", "typeMode": "types", "input": [ { "name": "src", "type": "CodingR5", "mode": "source" }, { "name": "tgt", "type": "CodeableConceptR4B", "mode": "target" } ], "rule": [ { "name": "Coding", "source": [ { "context": "src", "variable": "s" } ], "target": [ { "context": "tgt", "element": "coding", "variable": "t" } ], "dependent": [ { "name": "Coding", "parameter": [ { "valueId": "s" }, { "valueId": "t" } ] } ] } ] }, { "name": "CodeableConcept2code", "extends": "Element", "typeMode": "types", "input": [ { "name": "src", "type": "CodeableConceptR5", "mode": "source" }, { "name": "tgt", "type": "codeR4B", "mode": "target" }, { "name": "sysUrl", "type": "string", "mode": "source" } ], "rule": [ { "name": "coding", "source": [ { "context": "src", "element": "coding", "variable": "s", "condition": "s.system = sysUrl" } ], "target": [ { "transform": "copy", "parameter": [ { "valueId": "tgt" } ] } ], "rule": [ { "name": "code", "source": [ { "context": "s", "element": "code", "variable": "vvv" } ], "target": [ { "context": "tgt", "element": "value", "variable": "vvv", "transform": "create" } ], "dependent": [ { "name": "DefaultMappingGroupAnonymousAlias", "parameter": [ { "valueId": "vvv" }, { "valueId": "vvv" } ] } ] } ] } ] }, { "name": "code2CodeableConcept", "extends": "Element", "typeMode": "types", "input": [ { "name": "src", "type": "codeR5", "mode": "source" }, { "name": "tgt", "type": "CodeableConceptR4B", "mode": "target" }, { "name": "sysUrl", "type": "string", "mode": "source" } ], "rule": [ { "name": "value", "source": [ { "context": "src", "element": "value", "variable": "s" } ], "target": [ { "context": "tgt", "element": "coding", "variable": "t", "transform": "create", "parameter": [ { "valueString": "Coding" } ] }, { "context": "t", "element": "system", "transform": "copy", "parameter": [ { "valueId": "sysUrl" } ] }, { "context": "t", "element": "code", "transform": "copy", "parameter": [ { "valueId": "s" } ] } ] } ] } ] }