FHIR Cross-Version Mapping Pack, 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/fhir-cross-version/ and changes regularly. See the Directory of published versions
Page standards status: Draft | Maturity Level: 1 |
{
"resourceType" : "StructureMap",
"id" : "primitives2to3",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/primitives2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'primitives2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Primitive Transforms: R2 to R3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/base64Binary<span style=\"color: navy\">" </span><b>alias </b>base64BinaryR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/base64Binary<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/boolean<span style=\"color: navy\">" </span><b>alias </b>booleanR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/boolean<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/code<span style=\"color: navy\">" </span><b>alias </b>codeR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/code<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/date<span style=\"color: navy\">" </span><b>alias </b>dateR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/date<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/dateTime<span style=\"color: navy\">" </span><b>alias </b>dateTimeR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/dateTime<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/decimal<span style=\"color: navy\">" </span><b>alias </b>decimalR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/decimal<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/id<span style=\"color: navy\">" </span><b>alias </b>idR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/id<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/instant<span style=\"color: navy\">" </span><b>alias </b>instantR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/instant<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/integer<span style=\"color: navy\">" </span><b>alias </b>integerR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/integer<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/markdown<span style=\"color: navy\">" </span><b>alias </b>markdownR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/markdown<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/oid<span style=\"color: navy\">" </span><b>alias </b>oidR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/oid<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/positiveInt<span style=\"color: navy\">" </span><b>alias </b>positiveIntR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/positiveInt<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/string<span style=\"color: navy\">" </span><b>alias </b>stringR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/string<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/time<span style=\"color: navy\">" </span><b>alias </b>timeR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/time<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/unsignedInt<span style=\"color: navy\">" </span><b>alias </b>unsignedIntR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/unsignedInt<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/uri<span style=\"color: navy\">" </span><b>alias </b>uriR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/uri<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/uuid<span style=\"color: navy\">" </span><b>alias </b>uuidR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/uuid<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/xhtml<span style=\"color: navy\">" </span><b>alias </b>xhtmlR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/xhtml<span style=\"color: navy\">" </span><b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span><a href=\"StructureMap-Element2to3.html\" title=\"Period Transforms: R2 to R3\">http://hl7.org/fhir/StructureMap/Element2to3</a><span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>base64Binary<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>base64BinaryR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>base64Binary<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"base64Binary-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>boolean<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>booleanR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>boolean<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"boolean-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>code<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>codeR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>code<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"code-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>date<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>dateR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>date<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"date-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>dateTime<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>dateTimeR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>dateTime<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"dateTime-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>decimal<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>decimalR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>decimal<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"decimal-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>id<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>idR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>id<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"id-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>instant<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>instantR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>instant<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"instant-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>integer<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>integerR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>integer<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"integer-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>markdown<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>markdownR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>markdown<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"markdown-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>oid<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>oidR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>oid<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"oid-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>positiveInt<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>positiveIntR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>positiveInt<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"positiveInt-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>string<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>stringR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>string<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"string-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>time<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>timeR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>time<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"time-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>unsignedInt<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>unsignedIntR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>unsignedInt<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"unsignedInt-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>uri<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>uriR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>uri<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"uri-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>uuid<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>uuidR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>uuid<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"uuid-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>xhtml<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>xhtmlR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>xhtml<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"xhtml-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>stringToMarkdown<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>stringR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>markdown<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<types>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"stringToMarkdown-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>codeToUri<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>codeR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>uri<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<types>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"codeToUri-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>stringToId<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>stringR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>id<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<types>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"stringToId-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>idToString<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>idR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>string<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<types>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"stringToId-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>stringToUri<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>stringR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>uri<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<types>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"stringToUri-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>stringToCode<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>stringR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>code<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<types>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"stringToCode-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>codeToString<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>codeR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>string<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<types>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"stringToCode-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>integerToPositiveInt<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>integerR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>positiveInt<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<types>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"integerToPositiveInt-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>integerToUnsignedInt<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>integerR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>unsignedInt<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<types>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"integerToUnsignedInt-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>dateToDateTime<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>dateR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>dateTime<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<types>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: maroon\">v</span> <i>"dateToDateTime-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>dateTimeToDate<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>dateTimeR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>date<span style=\"color: navy\">)</span><b> extends </b>Element<b> <<types>></b><span style=\"color: navy\"> {\r\n</span> src.value<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -> </b></span>tgt.value = <span style=\"color: navy\">(</span>v.substring(0, 8)<span style=\"color: navy\">)</span> <i>"dateTimeToDate-value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/primitives2to3",
"version" : "0.1.0",
"name" : "primitives2to3",
"title" : "Primitive Transforms: R2 to R3",
"status" : "active",
"date" : "2024-02-22T03:16:50+00:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "PrimitiveTransformsR2toR3",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/1.0/base64Binary",
"mode" : "source",
"alias" : "base64BinaryR2"
},
{
"url" : "http://hl7.org/fhir/3.0/base64Binary",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/boolean",
"mode" : "source",
"alias" : "booleanR2"
},
{
"url" : "http://hl7.org/fhir/3.0/boolean",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/code",
"mode" : "source",
"alias" : "codeR2"
},
{
"url" : "http://hl7.org/fhir/3.0/code",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/date",
"mode" : "source",
"alias" : "dateR2"
},
{
"url" : "http://hl7.org/fhir/3.0/date",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/dateTime",
"mode" : "source",
"alias" : "dateTimeR2"
},
{
"url" : "http://hl7.org/fhir/3.0/dateTime",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/decimal",
"mode" : "source",
"alias" : "decimalR2"
},
{
"url" : "http://hl7.org/fhir/3.0/decimal",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/id",
"mode" : "source",
"alias" : "idR2"
},
{
"url" : "http://hl7.org/fhir/3.0/id",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/instant",
"mode" : "source",
"alias" : "instantR2"
},
{
"url" : "http://hl7.org/fhir/3.0/instant",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/integer",
"mode" : "source",
"alias" : "integerR2"
},
{
"url" : "http://hl7.org/fhir/3.0/integer",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/markdown",
"mode" : "source",
"alias" : "markdownR2"
},
{
"url" : "http://hl7.org/fhir/3.0/markdown",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/oid",
"mode" : "source",
"alias" : "oidR2"
},
{
"url" : "http://hl7.org/fhir/3.0/oid",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/positiveInt",
"mode" : "source",
"alias" : "positiveIntR2"
},
{
"url" : "http://hl7.org/fhir/3.0/positiveInt",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/string",
"mode" : "source",
"alias" : "stringR2"
},
{
"url" : "http://hl7.org/fhir/3.0/string",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/time",
"mode" : "source",
"alias" : "timeR2"
},
{
"url" : "http://hl7.org/fhir/3.0/time",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/unsignedInt",
"mode" : "source",
"alias" : "unsignedIntR2"
},
{
"url" : "http://hl7.org/fhir/3.0/unsignedInt",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/uri",
"mode" : "source",
"alias" : "uriR2"
},
{
"url" : "http://hl7.org/fhir/3.0/uri",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/uuid",
"mode" : "source",
"alias" : "uuidR2"
},
{
"url" : "http://hl7.org/fhir/3.0/uuid",
"mode" : "target"
},
{
"url" : "http://hl7.org/fhir/1.0/xhtml",
"mode" : "source",
"alias" : "xhtmlR2"
},
{
"url" : "http://hl7.org/fhir/3.0/xhtml",
"mode" : "target"
}
],
"import" : [
🔗 "http://hl7.org/fhir/StructureMap/Element2to3"
],
"group" : [
{
"name" : "base64Binary",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "base64BinaryR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "base64Binary",
"mode" : "target"
}
],
"rule" : [
{
"name" : "base64Binary-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "boolean",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "booleanR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "boolean",
"mode" : "target"
}
],
"rule" : [
{
"name" : "boolean-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "code",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "codeR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "code",
"mode" : "target"
}
],
"rule" : [
{
"name" : "code-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "date",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "dateR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "date",
"mode" : "target"
}
],
"rule" : [
{
"name" : "date-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "dateTime",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "dateTimeR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "dateTime",
"mode" : "target"
}
],
"rule" : [
{
"name" : "dateTime-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "decimal",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "decimalR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "decimal",
"mode" : "target"
}
],
"rule" : [
{
"name" : "decimal-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "id",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "idR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "id",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "instant",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "instantR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "instant",
"mode" : "target"
}
],
"rule" : [
{
"name" : "instant-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "integer",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "integerR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "integer",
"mode" : "target"
}
],
"rule" : [
{
"name" : "integer-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "markdown",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "markdownR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "markdown",
"mode" : "target"
}
],
"rule" : [
{
"name" : "markdown-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "oid",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "oidR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "oid",
"mode" : "target"
}
],
"rule" : [
{
"name" : "oid-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "positiveInt",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "positiveIntR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "positiveInt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "positiveInt-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "string",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "stringR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "string",
"mode" : "target"
}
],
"rule" : [
{
"name" : "string-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "time",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "timeR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "time",
"mode" : "target"
}
],
"rule" : [
{
"name" : "time-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "unsignedInt",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "unsignedIntR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "unsignedInt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "unsignedInt-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "uri",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "uriR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "uri",
"mode" : "target"
}
],
"rule" : [
{
"name" : "uri-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "uuid",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "uuidR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "uuid",
"mode" : "target"
}
],
"rule" : [
{
"name" : "uuid-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "xhtml",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "xhtmlR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "xhtml",
"mode" : "target"
}
],
"rule" : [
{
"name" : "xhtml-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "stringToMarkdown",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "stringR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "markdown",
"mode" : "target"
}
],
"rule" : [
{
"name" : "stringToMarkdown-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "codeToUri",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "codeR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "uri",
"mode" : "target"
}
],
"rule" : [
{
"name" : "codeToUri-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "stringToId",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "stringR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "id",
"mode" : "target"
}
],
"rule" : [
{
"name" : "stringToId-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "idToString",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "idR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "string",
"mode" : "target"
}
],
"rule" : [
{
"name" : "stringToId-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "stringToUri",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "stringR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "uri",
"mode" : "target"
}
],
"rule" : [
{
"name" : "stringToUri-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "stringToCode",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "stringR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "code",
"mode" : "target"
}
],
"rule" : [
{
"name" : "stringToCode-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "codeToString",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "codeR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "string",
"mode" : "target"
}
],
"rule" : [
{
"name" : "stringToCode-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "integerToPositiveInt",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "integerR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "positiveInt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "integerToPositiveInt-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "integerToUnsignedInt",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "integerR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "unsignedInt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "integerToUnsignedInt-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "dateToDateTime",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "dateR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "dateTime",
"mode" : "target"
}
],
"rule" : [
{
"name" : "dateToDateTime-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "dateTimeToDate",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "dateTimeR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "date",
"mode" : "target"
}
],
"rule" : [
{
"name" : "dateTimeToDate-value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "evaluate",
"parameter" : [
{
"valueString" : "v.substring(0, 8)"
}
]
}
]
}
]
}
]
}