Server Home  |  XIG Home  |  XIG Stats  | 

FHIRsmith Logo FHIR IG analytics

Packagehl7.fhir.uv.mapping-language
Resource TypeStructureMap
IdStructureMap-TransformCcObs.json
FHIR VersionR6
Sourcehttps://build.fhir.org/ig/HL7/mapping-language-ig/StructureMap-TransformCcObs.html
URLhttp://hl7.org/fhir/uv/mapping-language/StructureMap/TransformCcObs
Version0.1.0
Statusactive
Date2026-10-15T22:52:06+00:00
NameTransformCcObs
Realmuv
Authorityhl7
DescriptionExample demonstrating the cc transform to create a CodeableConcept into a choice type element

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

Generated Narrative: StructureMap TransformCcObs

/// url = 'http://hl7.org/fhir/uv/mapping-language/StructureMap/TransformCcObs'
/// version = '0.1.0'
/// name = 'TransformCcObs'
/// status = 'active'
/// description = 'Example demonstrating the cc transform to create a CodeableConcept into a choice type element'

uses "http://hl7.org/fhir/StructureDefinition/Observation" as source
uses "http://hl7.org/fhir/StructureDefinition/Observation" as target

// Create 3 codeableconcepts in the output, each demonstrating a different way to populate a CodeableConcept using cc()
group TransformCc(source src : Observation, target tgt : Observation) {
  src -> tgt.value = cc('Non coded text', 'oth') "TextOnlyCC";
}


Source1

{
  "resourceType": "StructureMap",
  "resourceDefinition": "http://hl7.org/fhir/StructureDefinition/StructureMap|0.1.0",
  "id": "TransformCcObs",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://hl7.org/fhir/uv/mapping-language/StructureMap/TransformCcObs",
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:2.16.840.1.113883.4.642.40.89.43.42"
    }
  ],
  "version": "0.1.0",
  "name": "TransformCcObs",
  "status": "active",
  "date": "2026-10-15T22:52:06+00:00",
  "publisher": "HL7 International / FHIR Infrastructure",
  "contact": [
    {
      "name": "HL7 International / FHIR Infrastructure",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description": "Example demonstrating the cc transform to create a CodeableConcept into a choice type element",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001",
          "display": "World"
        }
      ]
    }
  ],
  "structure": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Observation",
      "mode": "source"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Observation",
      "mode": "target"
    }
  ],
  "group": [
    {
      "name": "TransformCc",
      "documentation": "Create 3 codeableconcepts in the output, each demonstrating a different way to populate a CodeableConcept using cc()",
      "input": [
        {
          "name": "src",
          "type": "Observation",
          "mode": "source"
        },
        {
          "name": "tgt",
          "type": "Observation",
          "mode": "target"
        }
      ],
      "rule": [
        {
          "name": "TextOnlyCC",
          "source": [
            {
              "context": "src"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": [
                "value"
              ],
              "transform": "cc",
              "parameter": [
                {
                  "valueString": "Non coded text"
                },
                {
                  "valueString": "oth"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}