FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagehl7.fhir.uv.fml
Resource TypeStructureMap
IdStructureMap-Comments.json
FHIR VersionR6
Sourcehttps://build.fhir.org/ig/HL7/mapping-language-ig/StructureMap-Comments.html
URLhttp://hl7.org/fhir/uv/fml/StructureMap/Comments
Statusactive
NameComments
Realmuv
Authorityhl7
DescriptionExample demonstrating the use of comments in FML

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 Comments

url: http://hl7.org/fhir/uv/fml/StructureMap/Comments

name: Comments

status: Active

description:

Example demonstrating the use of comments in FML

structure

url: Patient

documentation: comment on source structure import

mode: Source Structure Definition

structure

url: Patient

documentation: comment on target structure import

mode: Target Structure Definition

group

documentation: This is a comment on the group

input

mode: Source Instance

name: src

type: Patient

input

mode: Target Instance

name: tgt

type: Patient

rule

Sources

-ContextElementVariable
*srcbirthDatevvv

Targets

-ContextElementVariableTransform
*tgtbirthDatevvvcreate

documentation: A comment preceding a rule R1 with more than one line

name: R1

rule

Sources

-ContextElementVariable
*srcactivevvv

Targets

-ContextElementVariableTransform
*tgtactivevvvcreate

name: R2

rule

Sources

-ContextElementVariable
*srcnamev

Targets

-ContextElementVariable
*tgtnametn

rule

Sources

-ContextElementVariable
*vfamilyvvv

Targets

-ContextElementVariableTransform
*tnfamilyvvvcreate

documentation: before R3 comment

name: R3

name: R4

name: CommentsDemo


Source1

{
  "resourceType": "StructureMap",
  "resourceDefinition": "http://hl7.org/fhir/StructureDefinition/StructureMap|0.1.0",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://hl7.org/fhir/uv/fml/StructureMap/Comments",
  "name": "Comments",
  "status": "active",
  "description": "Example demonstrating the use of comments in FML",
  "structure": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Patient",
      "documentation": "comment on source structure import",
      "mode": "source"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/Patient",
      "documentation": "comment on target structure import",
      "mode": "target"
    }
  ],
  "group": [
    {
      "documentation": "This is a comment on the group",
      "input": [
        {
          "mode": "source",
          "name": "src",
          "type": "Patient"
        },
        {
          "mode": "target",
          "name": "tgt",
          "type": "Patient"
        }
      ],
      "rule": [
        {
          "source": [
            {
              "context": "src",
              "element": [
                "birthDate"
              ],
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": [
                "birthDate"
              ],
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "documentation": "A comment preceding a rule R1\r\nwith more than one line",
          "name": "R1"
        },
        {
          "source": [
            {
              "context": "src",
              "element": [
                "active"
              ],
              "variable": "vvv"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": [
                "active"
              ],
              "variable": "vvv",
              "transform": "create"
            }
          ],
          "name": "R2"
        },
        {
          "source": [
            {
              "context": "src",
              "element": [
                "name"
              ],
              "variable": "v"
            }
          ],
          "target": [
            {
              "context": "tgt",
              "element": [
                "name"
              ],
              "variable": "tn"
            }
          ],
          "rule": [
            {
              "source": [
                {
                  "context": "v",
                  "element": [
                    "family"
                  ],
                  "variable": "vvv"
                }
              ],
              "target": [
                {
                  "context": "tn",
                  "element": [
                    "family"
                  ],
                  "variable": "vvv",
                  "transform": "create"
                }
              ],
              "documentation": "before R3 comment",
              "name": "R3"
            }
          ],
          "name": "R4"
        }
      ],
      "name": "CommentsDemo"
    }
  ],
  "id": "Comments"
}