FHIR © HL7.org  |  Server Home  |  Health Intersections FHIR Server v1.0.197  |  FHIR Version 3.0.1  | User: ANONYMOUS (Unknown)  

History Record

XML or JSON representation

Links: First Previous Next Last  (2 found). Search: http://test.fhir.org/r3/StructureMap/_history?&_prior=2017-12-12T08:20:04Z&_format=text/xhtml&history-id=487afff5-a825-4f73-9e46-88a18ff629 

SQL (for debugging): Insert into SearchEntries Select 7027, Ids.ResourceKey, Versions.ResourceVersionKey, RIGHT ('0000000000000'+CAST(Versions.ResourceVersionKey AS VARCHAR(14)),14) as sort, null, null from Versions, Ids, Sessions where Ids.ResourceTypeKey = 109 and Versions.ResourceKey = Ids.ResourceKey and Versions.SessionKey = Sessions.SessionKey order by ResourceVersionKey DESC

StructureMap "supplyrequest-transform" Version "1"

Created by SYSTEM () at 11/28/2017 8:36:24 AM(UTC)

Tags: (no tags)  +

This Resource , XML or JSON representation, or the full version history.. provenance for this resource
Updated: by

map "http://hl7.org/fhir/StructureMap/supplyrequest-transform" = supplyRequestTransform uses "http://hl7.org/fhir/StructureDefinition/ActivityDefinition" as source uses "http://hl7.org/fhir/StructureDefinition/SupplyRequest" as target group main input "source": ActivityDefinition as source input "target": SupplyRequest as target "status": for source.id make target.status = 'draft' "category": for source.id make target.category = 'non-stock' "priority": for source.id make target.priority = 'routine' "quantity": for source.quantity make target.orderedItem.quantity "item": for source.code make target.orderedItem.itemCodeableConcept "when": for source.id make target.occurrenceDateTime = Now() "authoredOn": for source.id make target.authoredOn = Now()

<?xml version="1.0" encoding="UTF-8"?>
<StructureMap xmlns="http://hl7.org/fhir">
  <id value="supplyrequest-transform"/>
  <meta>
    <versionId value="1"/>
    <lastUpdated value="2017-11-28T08:36:24Z"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">map "http://hl7.org/fhir/StructureMap/supplyrequest-transform" = supplyRequestTransform uses "http://hl7.org/fhir/StructureDefinition/ActivityDefinition" as source uses "http://hl7.org/fhir/StructureDefinition/SupplyRequest" as target group main input "source": ActivityDefinition as source input "target": SupplyRequest as target "status": for source.id make target.status = 'draft' "category": for source.id make target.category = 'non-stock' "priority": for source.id make target.priority = 'routine' "quantity": for source.quantity make target.orderedItem.quantity "item": for source.code make target.orderedItem.itemCodeableConcept "when": for source.id make target.occurrenceDateTime = Now() "authoredOn": for source.id make target.authoredOn = Now() </div>
  </text>
  <url value="http://hl7.org/fhir/StructureMap/supplyrequest-transform"/>
  <name value="Transform from an ActivityDefinition to a SupplyRequest"/>
  <status value="draft"/>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/activitydefinition"/>
    <mode value="source"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/supplyrequest"/>
    <mode value="target"/>
  </structure>
  <group>
    <name value="main"/>
    <typeMode value="none"/>
    <input>
      <name value="source"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="target"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="status"/>
      <source>
        <context value="source"/>
        <element value="id"/>
        <variable value="a"/>
      </source>
      <target>
        <context value="target"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="'draft'"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="category"/>
      <source>
        <context value="source"/>
        <element value="id"/>
        <variable value="a"/>
      </source>
      <target>
        <context value="target"/>
        <contextType value="variable"/>
        <element value="category"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="'non-stock'"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="priority"/>
      <source>
        <context value="source"/>
        <element value="id"/>
        <variable value="a"/>
      </source>
      <target>
        <context value="target"/>
        <contextType value="variable"/>
        <element value="priority"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="'routine'"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="quantity"/>
      <source>
        <context value="source"/>
        <element value="quantity"/>
        <variable value="a"/>
      </source>
      <target>
        <context value="target"/>
        <contextType value="variable"/>
        <element value="category"/>
        <transform value="copy"/>
      </target>
    </rule>
    <rule>
      <name value="item"/>
      <source>
        <context value="source"/>
        <element value="code"/>
        <variable value="a"/>
      </source>
      <target>
        <context value="target"/>
        <contextType value="variable"/>
        <element value="orderedItem.itemCodeableConcept"/>
        <transform value="copy"/>
      </target>
    </rule>
    <rule>
      <name value="when"/>
      <source>
        <context value="source"/>
        <element value="id"/>
        <variable value="a"/>
      </source>
      <target>
        <context value="target"/>
        <contextType value="variable"/>
        <element value="occurrenceDateTime"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="now()"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="authoredOn"/>
      <source>
        <context value="source"/>
        <element value="id"/>
        <variable value="a"/>
      </source>
      <target>
        <context value="target"/>
        <contextType value="variable"/>
        <element value="authoredOn"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString value="now()"/>
        </parameter>
      </target>
    </rule>
  </group>
</StructureMap>

StructureMap "example" Version "1"

Created by SYSTEM () at 11/28/2017 8:36:24 AM(UTC)

Tags: (no tags)  +

This Resource , XML or JSON representation, or the full version history.. provenance for this resource
Updated: by

Generated Narrative with Details

id: example

url: http://hl7.org/fhir/StructureMap/example

identifier: urn:oid:37843577-95fb-4adb-84c0-8837188a7bf3

version: 0.1

name: ExampleMap

title: Example Map

status: draft

date: 09/03/2017

publisher: HL7 FHIR Standard

contact:

description: Example Structure Map

jurisdiction: Oceania (Details : {http://unstats.un.org/unsd/methods/m49/m49.htm code '009' = 'Oceania', given as 'Oceania'})

group

name: Examples

typeMode: none

documentation: test -> testValue

Inputs

-NameMode
*testsource

rule

name: rule1

Sources

-ContextTypeElementVariable
*SourceSourceClassAtestt

Targets

-ContextContextTypeElementTransform
*DestinationvariabletestValuecopy

<?xml version="1.0" encoding="UTF-8"?>
<StructureMap xmlns="http://hl7.org/fhir">
  <id value="example"/>
  <meta>
    <versionId value="1"/>
    <lastUpdated value="2017-11-28T08:36:24Z"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>Generated Narrative with Details</b>
      </p>
      <p>
        <b>id</b>: example</p>
      <p>
        <b>url</b>:
        <a>http://hl7.org/fhir/StructureMap/example</a>
      </p>
      <p>
        <b>identifier</b>: urn:oid:37843577-95fb-4adb-84c0-8837188a7bf3</p>
      <p>
        <b>version</b>: 0.1</p>
      <p>
        <b>name</b>: ExampleMap</p>
      <p>
        <b>title</b>: Example Map</p>
      <p>
        <b>status</b>: draft</p>
      <p>
        <b>date</b>: 09/03/2017</p>
      <p>
        <b>publisher</b>: HL7 FHIR Standard</p>
      <p>
        <b>contact</b>: </p>
      <p>
        <b>description</b>: Example Structure Map</p>
      <p>
        <b>jurisdiction</b>: Oceania
        <span>(Details : {http://unstats.un.org/unsd/methods/m49/m49.htm code '009' = 'Oceania', given as 'Oceania'})</span>
      </p>
      <blockquote>
        <p>
          <b>group</b>
        </p>
        <p>
          <b>name</b>: Examples</p>
        <p>
          <b>typeMode</b>: none</p>
        <p>
          <b>documentation</b>: test -&gt; testValue</p>
        <h3>Inputs</h3>
        <table>
          <tr>
            <td>-</td>
            <td>
              <b>Name</b>
            </td>
            <td>
              <b>Mode</b>
            </td>
          </tr>
          <tr>
            <td>*</td>
            <td>test</td>
            <td>source</td>
          </tr>
        </table>
        <blockquote>
          <p>
            <b>rule</b>
          </p>
          <p>
            <b>name</b>: rule1</p>
          <h3>Sources</h3>
          <table>
            <tr>
              <td>-</td>
              <td>
                <b>Context</b>
              </td>
              <td>
                <b>Type</b>
              </td>
              <td>
                <b>Element</b>
              </td>
              <td>
                <b>Variable</b>
              </td>
            </tr>
            <tr>
              <td>*</td>
              <td>Source</td>
              <td>SourceClassA</td>
              <td>test</td>
              <td>t</td>
            </tr>
          </table>
          <h3>Targets</h3>
          <table>
            <tr>
              <td>-</td>
              <td>
                <b>Context</b>
              </td>
              <td>
                <b>ContextType</b>
              </td>
              <td>
                <b>Element</b>
              </td>
              <td>
                <b>Transform</b>
              </td>
            </tr>
            <tr>
              <td>*</td>
              <td>Destination</td>
              <td>variable</td>
              <td>testValue</td>
              <td>copy</td>
            </tr>
          </table>
        </blockquote>
      </blockquote>
    </div>
  </text>
  <url value="http://hl7.org/fhir/StructureMap/example"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:37843577-95fb-4adb-84c0-8837188a7bf3"/>
  </identifier>
  <version value="0.1"/>
  <name value="ExampleMap"/>
  <title value="Example Map"/>
  <status value="draft"/>
  <date value="2017-03-09"/>
  <publisher value="HL7 FHIR Standard"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://hl7.org/fhir"/>
    </telecom>
  </contact>
  <description value="Example Structure Map"/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="009"/>
      <display value="Oceania"/>
    </coding>
  </jurisdiction>
  <group>
    <name value="Examples"/>
    <typeMode value="none"/>
    <documentation value="test -> testValue"/>
    <input>
      <name value="test"/>
      <mode value="source"/>
    </input>
    <rule>
      <name value="rule1"/>
      <source>
        <context value="Source"/>
        <type value="SourceClassA"/>
        <element value="test"/>
        <variable value="t"/>
      </source>
      <target>
        <context value="Destination"/>
        <contextType value="variable"/>
        <element value="testValue"/>
        <transform value="copy"/>
      </target>
    </rule>
  </group>
</StructureMap>