FHIR Mapping Language (FML)
0.1.0 - STU 1 International flag

FHIR Mapping Language (FML), published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/mapping-language-ig/ and changes regularly. See the Directory of published versions

StructureMap: Transform from an ActivityDefinition to a SupplyRequest

Official URL: http://hl7.org/fhir/StructureMap/supplyrequest-transform Version:
Standards status: Informative Computable Name: TransformFromAnActivityDefinitionToASupplyRequest
Other Identifiers: OID:2.16.840.1.113883.4.642.13.1

Transform from an ActivityDefinition to a SupplyRequest

url: Transform from an ActivityDefinition to a SupplyRequest

identifier: Uniform Resource Identifier (URI)/urn:oid:2.16.840.1.113883.4.642.13.1

name: TransformFromAnActivityDefinitionToASupplyRequest

title: Transform from an ActivityDefinition to a SupplyRequest

status: Draft

description:

Transform from an ActivityDefinition to a SupplyRequest

structure

url: ActivityDefinition

mode: Source Structure Definition

structure

url: SupplyRequest

mode: Target Structure Definition

group

name: main

input

name: source

type: ActivityDefinition

mode: Source Instance

input

name: target

type: SupplyRequest

mode: Target Instance

rule

name: status

Sources

-ContextElementVariable
*sourceida

target

context: target

element: status

transform: evaluate

Parameters

-Value[x]
*'draft'

rule

name: category

Sources

-ContextElementVariable
*sourceida

target

context: target

element: category

transform: evaluate

Parameters

-Value[x]
*'non-stock'

rule

name: priority

Sources

-ContextElementVariable
*sourceida

target

context: target

element: priority

transform: evaluate

Parameters

-Value[x]
*'routine'

rule

name: quantity

Sources

-ContextElementVariable
*sourcequantitya

Targets

-ContextElementTransform
*targetcategorycopy

rule

name: item

Sources

-ContextElementVariable
*sourcecodea

target

context: target

element: item

variable: b

transform: create

target

context: b

element: concept

transform: copy

rule

name: when

Sources

-ContextElementVariable
*sourceida

target

context: target

element: occurrence

transform: evaluate

Parameters

-Value[x]
*now()

rule

name: authoredOn

Sources

-ContextElementVariable
*sourceida

target

context: target

element: authoredOn

transform: evaluate

Parameters

-Value[x]
*now()