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