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

FHIR IG Statistics: StructureMap/CodeableConcept4to3

Packagehl7.fhir.uv.xver
TypeStructureMap
IdCodeableConcept4to3
FHIR VersionR5
Sourcehttp://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-CodeableConcept4to3.html
URLhttp://hl7.org/fhir/StructureMap/CodeableConcept4to3
Version0.1.0
Statusactive
Date2024-02-22T03:16:50+00:00
NameCodeableConcept4to3
TitleR4 to R3 Conversion for CodeableConcept
Realmuv
Authorityhl7
DescriptionR4toR3ConversionforCodeableConcept

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/CodeableConcept4to3'
/// name = 'CodeableConcept4to3'
/// title = 'R4 to R3 Conversion for CodeableConcept'
/// status = 'active'

uses "http://hl7.org/fhir/4.0/CodeableConcept" alias CodeableConcept as source
uses "http://hl7.org/fhir/3.0/CodeableConcept" alias CodeableConceptR3 as target
uses "http://hl7.org/fhir/3.0/Coding" alias CodingR3 as target

imports "http://hl7.org/fhir/StructureMap/*4to3"

group CodeableConcept(source src : CodeableConcept, target tgt : CodeableConceptR3) extends Element <<type+>> {
  src.coding -> tgt.coding;
  src.text -> tgt.text;
}

group CodeableConceptNoExtensions(source src : CodeableConcept, target tgt : CodeableConceptR3) {
  src.coding -> tgt.coding;
  src.text -> tgt.text;
}

group CodeableConcept2Coding(source src : CodeableConcept, target tgt : CodingR3) extends Element <<types>> {
  src.coding first as vs0 then Coding(vs0, tgt);
}

group CodeableConcept2code(source src : CodeableConcept, target tgt : codeR3) extends Element <<types>> {
  src.coding first as vs0 -> tgt.code = create('code') as vt then Coding2code(vs0, vt) "CodeableConcept2code-coding";
}


Source

{
  "resourceType": "StructureMap",
  "id": "CodeableConcept4to3",
  "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/CodeableConcept4to3",
  "version": "0.1.0",
  "name": "CodeableConcept4to3",
  "title": "R4 to R3 Conversion for CodeableConcept",
  "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": "R4toR3ConversionforCodeableConcept",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/4.0/CodeableConcept",
      "mode": "source",
      "alias": "CodeableConcept"
    },
    {
      "url": "http://hl7.org/fhir/3.0/CodeableConcept",
      "mode": "target",
      "alias": "CodeableConceptR3"
    },
    {
      "url": "http://hl7.org/fhir/3.0/Coding",
      "mode": "target",
      "alias": "CodingR3"
    }
  ],
  "import": [
    "http://hl7.org/fhir/StructureMap/*4to3"
  ],
  "group": [
    {
      "name": "CodeableConcept",
      "extends": "Element",
      "typeMode": "type-and-types",
      "input": [
        {
          "name": "src",
          "type": "CodeableConcept",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "CodeableConceptR3",
          "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": "CodeableConceptNoExtensions",
      "input": [
        {
          "name": "src",
          "type": "CodeableConcept",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "CodeableConceptR3",
          "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": "CodeableConcept2Coding",
      "extends": "Element",
      "typeMode": "types",
      "input": [
        {
          "name": "src",
          "type": "CodeableConcept",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "CodingR3",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "coding",
          "source": [
            {
              "context": "src",
              "element": "coding",
              "listMode": "first",
              "variable": "vs0"
            }
          ],
          "dependent": [
            {
              "name": "Coding",
              "parameter": [
                {
                  "valueId": "vs0"
                },
                {
                  "valueId": "tgt"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "CodeableConcept2code",
      "extends": "Element",
      "typeMode": "types",
      "input": [
        {
          "name": "src",
          "type": "CodeableConcept",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "codeR3",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "CodeableConcept2code-coding",
          "source": [
            {
              "context": "src",
              "element": "coding",
              "listMode": "first",
              "variable": "vs0"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": "code",
              "variable": "vt",
              "transform": "create",
              "parameter": [
                {
                  "valueString": "code"
                }
              ]
            }
          ],
          "dependent": [
            {
              "name": "Coding2code",
              "parameter": [
                {
                  "valueId": "vs0"
                },
                {
                  "valueId": "vt"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}