FHIR IG analytics| Package | hl7.fhir.uv.fml |
| Resource Type | StructureMap |
| Id | StructureMap-StructArrayToArray.json |
| FHIR Version | R6 |
| Source | https://build.fhir.org/ig/HL7/mapping-language-ig/StructureMap-StructArrayToArray.html |
| URL | http://hl7.org/fhir/uv/fml/StructureMap/StructArrayToArray |
| Status | active |
| Name | StructArrayToArray |
| Realm | uv |
| Authority | hl7 |
| Description | Example demonstrating mapping a repeating source array to a repeating target array |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
Generated Narrative: StructureMap StructArrayToArray
url: http://hl7.org/fhir/uv/fml/StructureMap/StructArrayToArray
name: StructArrayToArray
status: Active
description:
Example demonstrating mapping a repeating source array to a repeating target array
structure
url: Patient
mode: Source Structure Definition
structure
url: Patient
mode: Target Structure Definition
group
name: StructArrayToArray
input
mode: Source Instance
name: src
type: Patient
input
mode: Target Instance
name: tgt
type: Patient
rule
Sources
Context Element Variable src name sn Targets
Context Element Variable tgt name tn rule
Sources
Context Element Variable sn family f target
context: tn
element: family
transform: copy
Parameters
Value[x] f name: r1
rule
Sources
Context Element Variable sn given g target
context: tn
element: given
transform: copy
Parameters
Value[x] g name: r2
rule
Sources
Context Element Variable sn use u target
context: tn
element: use
transform: copy
Parameters
Value[x] u name: r3
documentation: one target name created for each source name
name: r4
{
"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/StructArrayToArray",
"name": "StructArrayToArray",
"status": "active",
"description": "Example demonstrating mapping a repeating source array to a repeating target array",
"structure": [
{
"url": "http://hl7.org/fhir/StructureDefinition/Patient",
"mode": "source"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/Patient",
"mode": "target"
}
],
"group": [
{
"name": "StructArrayToArray",
"input": [
{
"mode": "source",
"name": "src",
"type": "Patient"
},
{
"mode": "target",
"name": "tgt",
"type": "Patient"
}
],
"rule": [
{
"source": [
{
"context": "src",
"element": [
"name"
],
"variable": "sn"
}
],
"target": [
{
"context": "tgt",
"element": [
"name"
],
"variable": "tn"
}
],
"rule": [
{
"source": [
{
"context": "sn",
"element": [
"family"
],
"variable": "f"
}
],
"target": [
{
"context": "tn",
"element": [
"family"
],
"transform": "copy",
"parameter": [
{
"valueId": "f"
}
]
}
],
"name": "r1"
},
{
"source": [
{
"context": "sn",
"element": [
"given"
],
"variable": "g"
}
],
"target": [
{
"context": "tn",
"element": [
"given"
],
"transform": "copy",
"parameter": [
{
"valueId": "g"
}
]
}
],
"name": "r2"
},
{
"source": [
{
"context": "sn",
"element": [
"use"
],
"variable": "u"
}
],
"target": [
{
"context": "tn",
"element": [
"use"
],
"transform": "copy",
"parameter": [
{
"valueId": "u"
}
]
}
],
"name": "r3"
}
],
"documentation": "one target name created for each source name",
"name": "r4"
}
]
}
],
"id": "StructArrayToArray"
}