@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/uv/fml/StructureMap/supplyrequest-transform> a fhir:StructureMap ;
  fhir:resourceDefinition http://hl7.org/fhir/StructureDefinition/StructureMap|0.1.0 ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "supplyrequest-transform"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap supplyrequest-transform</b></p><a name=\"supplyrequest-transform\"> </a><a name=\"hcsupplyrequest-transform\"> </a><p><b>url</b>: <a href=\"http://hl7.org/fhir/StructureMap/supplyrequest-transform\">Transform from an ActivityDefinition to a SupplyRequest</a></p><p><b>identifier</b>: <a href=\"http://terminology.hl7.org/7.2.0/NamingSystem-uri.html\" title=\"As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase) and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.txt #xD;#xA;#xD;#xA;This oid is used as an identifier II.root to indicate the the extension is an absolute URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid or urn:uuid: #xD;#xA;#xD;#xA;Note that this OID is created to aid with interconversion between CDA and FHIR - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear more commonly in FHIR.#xD;#xA;#xD;#xA;This OID may also be used in CD.codeSystem.\">Uniform Resource Identifier (URI)</a>/urn:oid:2.16.840.1.113883.4.642.13.1</p><p><b>name</b>: TransformFromAnActivityDefinitionToASupplyRequest</p><p><b>title</b>: Transform from an ActivityDefinition to a SupplyRequest</p><p><b>status</b>: Draft</p><p><b>description</b>: </p><div><p>Transform from an ActivityDefinition to a SupplyRequest</p>\n</div><blockquote><p><b>structure</b></p><p><b>url</b>: <a href=\"http://hl7.org/fhir/R5/activitydefinition.html\">ActivityDefinition</a></p><p><b>mode</b>: Source Structure Definition</p></blockquote><blockquote><p><b>structure</b></p><p><b>url</b>: <a href=\"http://hl7.org/fhir/R5/supplyrequest.html\">SupplyRequest</a></p><p><b>mode</b>: Target Structure Definition</p></blockquote><blockquote><p><b>group</b></p><p><b>name</b>: main</p><blockquote><p><b>input</b></p><p><b>name</b>: source</p><p><b>type</b>: ActivityDefinition</p><p><b>mode</b>: Source Instance</p></blockquote><blockquote><p><b>input</b></p><p><b>name</b>: target</p><p><b>type</b>: SupplyRequest</p><p><b>mode</b>: Target Instance</p></blockquote><blockquote><p><b>rule</b></p><p><b>name</b>: status</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style=\"display: none\">*</td><td>source</td><td>id</td><td>a</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: target</p><p><b>element</b>: status</p><p><b>transform</b>: evaluate</p><h3>Parameters</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>'draft'</td></tr></table></blockquote></blockquote><blockquote><p><b>rule</b></p><p><b>name</b>: category</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style=\"display: none\">*</td><td>source</td><td>id</td><td>a</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: target</p><p><b>element</b>: category</p><p><b>transform</b>: evaluate</p><h3>Parameters</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>'non-stock'</td></tr></table></blockquote></blockquote><blockquote><p><b>rule</b></p><p><b>name</b>: priority</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style=\"display: none\">*</td><td>source</td><td>id</td><td>a</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: target</p><p><b>element</b>: priority</p><p><b>transform</b>: evaluate</p><h3>Parameters</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>'routine'</td></tr></table></blockquote></blockquote><blockquote><p><b>rule</b></p><p><b>name</b>: quantity</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style=\"display: none\">*</td><td>source</td><td>quantity</td><td>a</td></tr></table><h3>Targets</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Transform</b></td></tr><tr><td style=\"display: none\">*</td><td>target</td><td>category</td><td>copy</td></tr></table></blockquote><blockquote><p><b>rule</b></p><p><b>name</b>: item</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style=\"display: none\">*</td><td>source</td><td>code</td><td>a</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: target</p><p><b>element</b>: item</p><p><b>variable</b>: b</p><p><b>transform</b>: create</p></blockquote><blockquote><p><b>target</b></p><p><b>context</b>: b</p><p><b>element</b>: concept</p><p><b>transform</b>: copy</p></blockquote></blockquote><blockquote><p><b>rule</b></p><p><b>name</b>: when</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style=\"display: none\">*</td><td>source</td><td>id</td><td>a</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: target</p><p><b>element</b>: occurrence</p><p><b>transform</b>: evaluate</p><h3>Parameters</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>now()</td></tr></table></blockquote></blockquote><blockquote><p><b>rule</b></p><p><b>name</b>: authoredOn</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td style=\"display: none\">*</td><td>source</td><td>id</td><td>a</td></tr></table><blockquote><p><b>target</b></p><p><b>context</b>: target</p><p><b>element</b>: authoredOn</p><p><b>transform</b>: evaluate</p><h3>Parameters</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>now()</td></tr></table></blockquote></blockquote></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/StructureMap/supplyrequest-transform"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/StructureMap/supplyrequest-transform>
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.13.1" ]
  ] ) ; # 
  fhir:name [ fhir:v "TransformFromAnActivityDefinitionToASupplyRequest"] ; # 
  fhir:title [ fhir:v "Transform from an ActivityDefinition to a SupplyRequest"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:description [ fhir:v "Transform from an ActivityDefinition to a SupplyRequest"] ; # 
  fhir:structure ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/ActivityDefinition>
     ] ;
     fhir:mode [ fhir:v "source" ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/SupplyRequest"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/SupplyRequest>
     ] ;
     fhir:mode [ fhir:v "target" ]
  ] ) ; # 
  fhir:group ( [
     fhir:name [ fhir:v "main" ] ;
     fhir:input ( [
       fhir:name [ fhir:v "source" ] ;
       fhir:type [ fhir:v "ActivityDefinition" ] ;
       fhir:mode [ fhir:v "source" ]
     ] [
       fhir:name [ fhir:v "target" ] ;
       fhir:type [ fhir:v "SupplyRequest" ] ;
       fhir:mode [ fhir:v "target" ]
     ] ) ;
     fhir:rule ( [
       fhir:name [ fhir:v "status" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "source" ] ;
         fhir:element ( [ fhir:v "id" ] ) ;
         fhir:variable [ fhir:v "a" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "target" ] ;
         fhir:element ( [ fhir:v "status" ] ) ;
         fhir:transform [ fhir:v "evaluate" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:String ;
             fhir:v "'draft'"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "category" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "source" ] ;
         fhir:element ( [ fhir:v "id" ] ) ;
         fhir:variable [ fhir:v "a" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "target" ] ;
         fhir:element ( [ fhir:v "category" ] ) ;
         fhir:transform [ fhir:v "evaluate" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:String ;
             fhir:v "'non-stock'"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "priority" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "source" ] ;
         fhir:element ( [ fhir:v "id" ] ) ;
         fhir:variable [ fhir:v "a" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "target" ] ;
         fhir:element ( [ fhir:v "priority" ] ) ;
         fhir:transform [ fhir:v "evaluate" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:String ;
             fhir:v "'routine'"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "quantity" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "source" ] ;
         fhir:element ( [ fhir:v "quantity" ] ) ;
         fhir:variable [ fhir:v "a" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "target" ] ;
         fhir:element ( [ fhir:v "category" ] ) ;
         fhir:transform [ fhir:v "copy" ]
       ] )
     ] [
       fhir:name [ fhir:v "item" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "source" ] ;
         fhir:element ( [ fhir:v "code" ] ) ;
         fhir:variable [ fhir:v "a" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "target" ] ;
         fhir:element ( [ fhir:v "item" ] ) ;
         fhir:variable [ fhir:v "b" ] ;
         fhir:transform [ fhir:v "create" ]
       ] [
         fhir:context [ fhir:v "b" ] ;
         fhir:element ( [ fhir:v "concept" ] ) ;
         fhir:transform [ fhir:v "copy" ]
       ] )
     ] [
       fhir:name [ fhir:v "when" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "source" ] ;
         fhir:element ( [ fhir:v "id" ] ) ;
         fhir:variable [ fhir:v "a" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "target" ] ;
         fhir:element ( [ fhir:v "occurrence" ] ) ;
         fhir:transform [ fhir:v "evaluate" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:String ;
             fhir:v "now()"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "authoredOn" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "source" ] ;
         fhir:element ( [ fhir:v "id" ] ) ;
         fhir:variable [ fhir:v "a" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "target" ] ;
         fhir:element ( [ fhir:v "authoredOn" ] ) ;
         fhir:transform [ fhir:v "evaluate" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:String ;
             fhir:v "now()"
           ]
         ] )
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

