This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
Page standards status: Trial-use | Maturity Level: 1 |
{
"resourceType" : "StructureMap",
"id" : "Primitives5to4B",
"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/Primitives5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Primitives5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for primitive datatypes: R5 to R4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'draft'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#base64Binary\" title=\"base64Binary\">http://hl7.org/fhir/StructureDefinition/base64Binary</a><span style=\"color: navy\">" </span><b>alias </b>base64BinaryR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#base64Binary\" title=\"base64Binary\">http://hl7.org/fhir/4.3/StructureDefinition/base64Binary</a><span style=\"color: navy\">" </span><b>alias </b>base64BinaryR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#boolean\" title=\"boolean\">http://hl7.org/fhir/StructureDefinition/boolean</a><span style=\"color: navy\">" </span><b>alias </b>booleanR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#boolean\" title=\"boolean\">http://hl7.org/fhir/4.3/StructureDefinition/boolean</a><span style=\"color: navy\">" </span><b>alias </b>booleanR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#canonical\" title=\"canonical\">http://hl7.org/fhir/StructureDefinition/canonical</a><span style=\"color: navy\">" </span><b>alias </b>canonicalR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#canonical\" title=\"canonical\">http://hl7.org/fhir/4.3/StructureDefinition/canonical</a><span style=\"color: navy\">" </span><b>alias </b>canonicalR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#code\" title=\"code\">http://hl7.org/fhir/StructureDefinition/code</a><span style=\"color: navy\">" </span><b>alias </b>codeR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#code\" title=\"code\">http://hl7.org/fhir/4.3/StructureDefinition/code</a><span style=\"color: navy\">" </span><b>alias </b>codeR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#date\" title=\"date\">http://hl7.org/fhir/StructureDefinition/date</a><span style=\"color: navy\">" </span><b>alias </b>dateR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#date\" title=\"date\">http://hl7.org/fhir/4.3/StructureDefinition/date</a><span style=\"color: navy\">" </span><b>alias </b>dateR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#dateTime\" title=\"dateTime\">http://hl7.org/fhir/StructureDefinition/dateTime</a><span style=\"color: navy\">" </span><b>alias </b>dateTimeR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#dateTime\" title=\"dateTime\">http://hl7.org/fhir/4.3/StructureDefinition/dateTime</a><span style=\"color: navy\">" </span><b>alias </b>dateTimeR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#decimal\" title=\"decimal\">http://hl7.org/fhir/StructureDefinition/decimal</a><span style=\"color: navy\">" </span><b>alias </b>decimalR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#decimal\" title=\"decimal\">http://hl7.org/fhir/4.3/StructureDefinition/decimal</a><span style=\"color: navy\">" </span><b>alias </b>decimalR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#id\" title=\"id\">http://hl7.org/fhir/StructureDefinition/id</a><span style=\"color: navy\">" </span><b>alias </b>idR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#id\" title=\"id\">http://hl7.org/fhir/4.3/StructureDefinition/id</a><span style=\"color: navy\">" </span><b>alias </b>idR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#instant\" title=\"instant\">http://hl7.org/fhir/StructureDefinition/instant</a><span style=\"color: navy\">" </span><b>alias </b>instantR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#instant\" title=\"instant\">http://hl7.org/fhir/4.3/StructureDefinition/instant</a><span style=\"color: navy\">" </span><b>alias </b>instantR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#integer\" title=\"integer\">http://hl7.org/fhir/StructureDefinition/integer</a><span style=\"color: navy\">" </span><b>alias </b>integerR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#integer\" title=\"integer\">http://hl7.org/fhir/4.3/StructureDefinition/integer</a><span style=\"color: navy\">" </span><b>alias </b>integerR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#integer64\" title=\"integer64\">http://hl7.org/fhir/StructureDefinition/integer64</a><span style=\"color: navy\">" </span><b>alias </b>integer64R5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#markdown\" title=\"markdown\">http://hl7.org/fhir/StructureDefinition/markdown</a><span style=\"color: navy\">" </span><b>alias </b>markdownR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#markdown\" title=\"markdown\">http://hl7.org/fhir/4.3/StructureDefinition/markdown</a><span style=\"color: navy\">" </span><b>alias </b>markdownR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#oid\" title=\"oid\">http://hl7.org/fhir/StructureDefinition/oid</a><span style=\"color: navy\">" </span><b>alias </b>oidR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#oid\" title=\"oid\">http://hl7.org/fhir/4.3/StructureDefinition/oid</a><span style=\"color: navy\">" </span><b>alias </b>oidR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#positiveInt\" title=\"positiveInt\">http://hl7.org/fhir/StructureDefinition/positiveInt</a><span style=\"color: navy\">" </span><b>alias </b>positiveIntR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#positiveInt\" title=\"positiveInt\">http://hl7.org/fhir/4.3/StructureDefinition/positiveInt</a><span style=\"color: navy\">" </span><b>alias </b>positiveIntR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#string\" title=\"string\">http://hl7.org/fhir/StructureDefinition/string</a><span style=\"color: navy\">" </span><b>alias </b>stringR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#string\" title=\"string\">http://hl7.org/fhir/4.3/StructureDefinition/string</a><span style=\"color: navy\">" </span><b>alias </b>stringR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#time\" title=\"time\">http://hl7.org/fhir/StructureDefinition/time</a><span style=\"color: navy\">" </span><b>alias </b>timeR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#time\" title=\"time\">http://hl7.org/fhir/4.3/StructureDefinition/time</a><span style=\"color: navy\">" </span><b>alias </b>timeR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#unsignedInt\" title=\"unsignedInt\">http://hl7.org/fhir/StructureDefinition/unsignedInt</a><span style=\"color: navy\">" </span><b>alias </b>unsignedIntR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#unsignedInt\" title=\"unsignedInt\">http://hl7.org/fhir/4.3/StructureDefinition/unsignedInt</a><span style=\"color: navy\">" </span><b>alias </b>unsignedIntR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#uri\" title=\"uri\">http://hl7.org/fhir/StructureDefinition/uri</a><span style=\"color: navy\">" </span><b>alias </b>uriR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#uri\" title=\"uri\">http://hl7.org/fhir/4.3/StructureDefinition/uri</a><span style=\"color: navy\">" </span><b>alias </b>uriR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#url\" title=\"url\">http://hl7.org/fhir/StructureDefinition/url</a><span style=\"color: navy\">" </span><b>alias </b>urlR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#url\" title=\"url\">http://hl7.org/fhir/4.3/StructureDefinition/url</a><span style=\"color: navy\">" </span><b>alias </b>urlR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/datatypes.html#uuid\" title=\"uuid\">http://hl7.org/fhir/StructureDefinition/uuid</a><span style=\"color: navy\">" </span><b>alias </b>uuidR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/datatypes.html#uuid\" title=\"uuid\">http://hl7.org/fhir/4.3/StructureDefinition/uuid</a><span style=\"color: navy\">" </span><b>alias </b>uuidR4B <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R5/narrative.html#xhtml\" title=\"xhtml\">http://hl7.org/fhir/StructureDefinition/xhtml</a><span style=\"color: navy\">" </span><b>alias </b>xhtmlR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4B/narrative.html#xhtml\" title=\"xhtml\">http://hl7.org/fhir/4.3/StructureDefinition/xhtml</a><span style=\"color: navy\">" </span><b>alias </b>xhtmlR4B <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span><a href=\"StructureMap-Element5to4B.html\" title=\"FML Conversion for Element: R5 to R4B\">http://hl7.org/fhir/StructureMap/Element5to4B</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>base64BinaryR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>base64BinaryR4B<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>"base64BinaryValue"</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>booleanR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>booleanR4B<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>"booleanValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>canonical<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>canonicalR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>canonicalR4B<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>"canonicalValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>canonical2uri<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>canonicalR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>uriR4B<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>"canonical2uriValue"</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>codeR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>codeR4B<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>"codeValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>code2id<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>codeR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>idR4B<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>"code2idValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>code2string<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>codeR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>stringR4B<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>"code2stringValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>code2uri<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>codeR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>uriR4B<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>"code2uriValue"</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>dateR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>dateR4B<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>"dateValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>date2dateTime<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>dateR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>dateTimeR4B<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>"date2dateTimeValue"</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>dateTimeR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>dateTimeR4B<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>"dateTimeValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>dateTime2date<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>dateTimeR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>dateR4B<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>"dateTime2dateValue"</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>decimalR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>decimalR4B<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>"decimalValue"</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>idR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>idR4B<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>"idValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>id2Code<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>idR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>codeR4B<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>"id2CodeValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>id2string<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>idR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>stringR4B<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>"id2stringValue"</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>instantR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>instantR4B<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>"instantValue"</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>integerR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>integerR4B<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>"integerValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>integer64<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>integer64R5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>integerR4B<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>"integer64Value"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>integer642string<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>integer64R5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>stringR4B<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>"integer642stringValue"</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>markdownR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>markdownR4B<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>"markdownValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>markdown2string<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>markdownR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>stringR4B<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>"markdown2stringValue"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">todo: deal with markdown escaping issues</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>oidR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>oidR4B<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>"oidValue"</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>positiveIntR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>positiveIntR4B<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>"positiveIntValue"</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>stringR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>stringR4B<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>"stringValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>string2markdown<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>stringR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>markdownR4B<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>"string2markdownValue"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">todo: deal with markdown escaping issues</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>string2id<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>stringR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>idR4B<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>"string2idValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>string2code<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>stringR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>codeR4B<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>"string2codeValue"</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>timeR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>timeR4B<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>"timeValue"</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>unsignedIntR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>unsignedIntR4B<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>"unsignedIntValue"</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>integer64R5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>unsignedIntR4B<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>"unsignedIntValue"</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>uriR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>uriR4B<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>"uriValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>uri2canonical<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>uriR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>canonicalR4B<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>"uri2canonicalValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>uri2code<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>uriR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>codeR4B<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>"uri2codeValue"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>url<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>urlR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>urlR4B<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>"urlValue"</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>uuidR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>uuidR4B<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>"uuidValue"</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>xhtmlR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>xhtmlR4B<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>"xhtmlValue"</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.extensions"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "trial-use",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/Primitives5to4B",
"version" : "5.1.0",
"name" : "Primitives5to4B",
"title" : "FML Conversion for primitive datatypes: R5 to R4B",
"status" : "draft",
"date" : "2024-04-27T18:40:24+10:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "FMLConversionforprimitivedatatypesR5toR4B",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/base64Binary",
"mode" : "source",
"alias" : "base64BinaryR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/base64Binary",
"mode" : "target",
"alias" : "base64BinaryR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/boolean",
"mode" : "source",
"alias" : "booleanR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/boolean",
"mode" : "target",
"alias" : "booleanR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/canonical",
"mode" : "source",
"alias" : "canonicalR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/canonical",
"mode" : "target",
"alias" : "canonicalR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/code",
"mode" : "source",
"alias" : "codeR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/code",
"mode" : "target",
"alias" : "codeR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/date",
"mode" : "source",
"alias" : "dateR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/date",
"mode" : "target",
"alias" : "dateR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/dateTime",
"mode" : "source",
"alias" : "dateTimeR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/dateTime",
"mode" : "target",
"alias" : "dateTimeR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/decimal",
"mode" : "source",
"alias" : "decimalR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/decimal",
"mode" : "target",
"alias" : "decimalR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/id",
"mode" : "source",
"alias" : "idR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/id",
"mode" : "target",
"alias" : "idR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/instant",
"mode" : "source",
"alias" : "instantR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/instant",
"mode" : "target",
"alias" : "instantR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/integer",
"mode" : "source",
"alias" : "integerR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/integer",
"mode" : "target",
"alias" : "integerR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/integer64",
"mode" : "source",
"alias" : "integer64R5"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/markdown",
"mode" : "source",
"alias" : "markdownR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/markdown",
"mode" : "target",
"alias" : "markdownR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/oid",
"mode" : "source",
"alias" : "oidR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/oid",
"mode" : "target",
"alias" : "oidR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/positiveInt",
"mode" : "source",
"alias" : "positiveIntR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/positiveInt",
"mode" : "target",
"alias" : "positiveIntR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/string",
"mode" : "source",
"alias" : "stringR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/string",
"mode" : "target",
"alias" : "stringR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/time",
"mode" : "source",
"alias" : "timeR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/time",
"mode" : "target",
"alias" : "timeR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/unsignedInt",
"mode" : "source",
"alias" : "unsignedIntR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/unsignedInt",
"mode" : "target",
"alias" : "unsignedIntR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/uri",
"mode" : "source",
"alias" : "uriR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/uri",
"mode" : "target",
"alias" : "uriR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/url",
"mode" : "source",
"alias" : "urlR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/url",
"mode" : "target",
"alias" : "urlR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/uuid",
"mode" : "source",
"alias" : "uuidR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/uuid",
"mode" : "target",
"alias" : "uuidR4B"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/xhtml",
"mode" : "source",
"alias" : "xhtmlR5"
},
{
"url" : "http://hl7.org/fhir/4.3/StructureDefinition/xhtml",
"mode" : "target",
"alias" : "xhtmlR4B"
}
],
"import" : [
🔗 "http://hl7.org/fhir/StructureMap/Element5to4B"
],
"group" : [
{
"name" : "base64Binary",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "base64BinaryR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "base64BinaryR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "base64BinaryValue",
"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" : "booleanR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "booleanR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "booleanValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "canonical",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "canonicalR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "canonicalR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "canonicalValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "canonical2uri",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "canonicalR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "uriR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "canonical2uriValue",
"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" : "codeR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "codeR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "codeValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "code2id",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "codeR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "idR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "code2idValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "code2string",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "codeR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "stringR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "code2stringValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "code2uri",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "codeR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "uriR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "code2uriValue",
"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" : "dateR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "dateR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "dateValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "date2dateTime",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "dateR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "dateTimeR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "date2dateTimeValue",
"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" : "dateTimeR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "dateTimeR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "dateTimeValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "dateTime2date",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "dateTimeR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "dateR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "dateTime2dateValue",
"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" : "decimalR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "decimalR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "decimalValue",
"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" : "idR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "idR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "idValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "id2Code",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "idR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "codeR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id2CodeValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "id2string",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "idR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "stringR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "id2stringValue",
"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" : "instantR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "instantR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "instantValue",
"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" : "integerR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "integerR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "integerValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "integer64",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "integer64R5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "integerR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "integer64Value",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "integer642string",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "integer64R5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "stringR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "integer642stringValue",
"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" : "markdownR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "markdownR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "markdownValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "markdown2string",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "markdownR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "stringR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "markdown2stringValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
],
"documentation" : "todo: deal with markdown escaping issues"
}
]
},
{
"name" : "oid",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "oidR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "oidR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "oidValue",
"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" : "positiveIntR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "positiveIntR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "positiveIntValue",
"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" : "stringR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "stringR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "stringValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "string2markdown",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "stringR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "markdownR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "string2markdownValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
],
"documentation" : "todo: deal with markdown escaping issues"
}
]
},
{
"name" : "string2id",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "stringR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "idR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "string2idValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "string2code",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "stringR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "codeR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "string2codeValue",
"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" : "timeR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "timeR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "timeValue",
"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" : "unsignedIntR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "unsignedIntR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "unsignedIntValue",
"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" : "integer64R5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "unsignedIntR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "unsignedIntValue",
"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" : "uriR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "uriR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "uriValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "uri2canonical",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "uriR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "canonicalR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "uri2canonicalValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "uri2code",
"extends" : "Element",
"typeMode" : "types",
"input" : [
{
"name" : "src",
"type" : "uriR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "codeR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "uri2codeValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
},
{
"name" : "url",
"extends" : "Element",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "urlR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "urlR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "urlValue",
"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" : "uuidR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "uuidR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "uuidValue",
"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" : "xhtmlR5",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "xhtmlR4B",
"mode" : "target"
}
],
"rule" : [
{
"name" : "xhtmlValue",
"source" : [
{
"context" : "src",
"element" : "value",
"variable" : "v"
}
],
"target" : [
{
"context" : "tgt",
"element" : "value",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
}
]
}
]
}