@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://va.gov/fhir/StructureMap/Vpr2VAAllergyIntolerance> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Vpr2VAAllergyIntolerance"] ; # 
  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 Vpr2VAAllergyIntolerance</b></p><a name=\"Vpr2VAAllergyIntolerance\"> </a><a name=\"hcVpr2VAAllergyIntolerance\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://va.gov/fhir/StructureMap/Vpr2VAAllergyIntolerance<span style=\"color: navy\">\" = \"</span>Vpr2VAAllergyIntolerance<span style=\"color: navy\">\"#xD;\n#xD;\n</span><b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-VprReaction.html\" title=\"VPR reaction\">http://va.gov/fhir/StructureDefinition/VprReaction</a><span style=\"color: navy\">\" </span><b>alias </b>VprReaction <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-VAAllergyIntolerance.html\" title=\"VAAllergyIntolerance\">http://va.gov/fhir/StructureDefinition/VAAllergyIntolerance</a><span style=\"color: navy\">\" </span><b>alias </b>VAAllergyIntolerance <b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>map<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">reaction</span><span style=\"color: navy\"> : </span>VprReaction, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>VAAllergyIntolerance<span style=\"color: navy\">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {#xD;\n</span>  reaction.name<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.code<b> as </b><span style=\"color: maroon\">c0</span><span style=\"color: navy\">, </span> c0.text = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.localCode<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.code = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.vuid<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.code = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.drugClass<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.patient = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.drugIngredient<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.patient = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.reaction<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.patient = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.entered<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.recordedDate = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.reaction<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.reaction<b> as </b><span style=\"color: maroon\">r0</span><span style=\"color: navy\">, </span> r0.manifestation<b> as </b><span style=\"color: maroon\">m1</span><span style=\"color: navy\">, </span> m1.text = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.reaction<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.reaction<b> as </b><span style=\"color: maroon\">r0</span><span style=\"color: navy\">, </span> r0.manifestation<b> as </b><span style=\"color: maroon\">m1</span><span style=\"color: navy\">, </span> m1.coding<b> as </b><span style=\"color: maroon\">c2</span><span style=\"color: navy\">, </span> c2.system = <span style=\"color: blue\">'urn:oid:2.16.840.1.113883.6.233'</span><span style=\"color: navy\">;</span>#xD;\n  reaction.reaction<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.reaction<b> as </b><span style=\"color: maroon\">r0</span><span style=\"color: navy\">, </span> r0.manifestation<b> as </b><span style=\"color: maroon\">m1</span><span style=\"color: navy\">, </span> m1.coding<b> as </b><span style=\"color: maroon\">c2</span><span style=\"color: navy\">, </span> c2.code = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.reaction<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.reaction<b> as </b><span style=\"color: maroon\">r0</span><span style=\"color: navy\">, </span> r0.manifestation<b> as </b><span style=\"color: maroon\">m1</span><span style=\"color: navy\">, </span> m1.coding<b> as </b><span style=\"color: maroon\">c2</span><span style=\"color: navy\">, </span> c2.display = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.mechanism<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.type = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.removed<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.clinicalStatus = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical#active'</span><span style=\"color: navy\">;</span>#xD;\n  reaction.type<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.category = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.severity<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.reaction<b> as </b><span style=\"color: maroon\">r0</span><span style=\"color: navy\">, </span> r0.severity = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  reaction.reaction<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.reaction<b> as </b><span style=\"color: maroon\">r0</span><span style=\"color: navy\">, </span> r0.onset = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "http://va.gov/fhir/StructureMap/Vpr2VAAllergyIntolerance"^^xsd:anyURI ;
     fhir:l <http://va.gov/fhir/StructureMap/Vpr2VAAllergyIntolerance>
  ] ; # 
  fhir:version [ fhir:v "2.5.0"] ; # 
  fhir:name [ fhir:v "Vpr2VAAllergyIntolerance"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2026-03-31T16:09:38+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "VA"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "VA" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://www.va.gov" ]
     ] )
  ] ) ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
         fhir:l <urn:iso:std:iso:3166>
       ] ;
       fhir:code [ fhir:v "US" ] ;
       fhir:display [ fhir:v "United States of America" ]
     ] )
  ] ) ; # 
  fhir:structure ( [
     fhir:url [
       fhir:v "http://va.gov/fhir/StructureDefinition/VprReaction"^^xsd:anyURI ;
       fhir:l <http://va.gov/fhir/StructureDefinition/VprReaction>
     ] ;
     fhir:mode [ fhir:v "source" ] ;
     fhir:alias [ fhir:v "VprReaction" ]
  ] [
     fhir:url [
       fhir:v "http://va.gov/fhir/StructureDefinition/VAAllergyIntolerance"^^xsd:anyURI ;
       fhir:l <http://va.gov/fhir/StructureDefinition/VAAllergyIntolerance>
     ] ;
     fhir:mode [ fhir:v "target" ] ;
     fhir:alias [ fhir:v "VAAllergyIntolerance" ]
  ] ) ; # 
  fhir:group ( [
     fhir:name [ fhir:v "map" ] ;
     fhir:typeMode [ fhir:v "type-and-types" ] ;
     fhir:input ( [
       fhir:name [ fhir:v "reaction" ] ;
       fhir:type [ fhir:v "VprReaction" ] ;
       fhir:mode [ fhir:v "source" ]
     ] [
       fhir:name [ fhir:v "tgt" ] ;
       fhir:type [ fhir:v "VAAllergyIntolerance" ] ;
       fhir:mode [ fhir:v "target" ]
     ] ) ;
     fhir:rule ( [
       fhir:name [ fhir:v "name" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "name" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "code" ] ;
         fhir:variable [ fhir:v "c0" ]
       ] [
         fhir:context [ fhir:v "c0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "text" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "localCode" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "localCode" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "code" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "vuid" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "vuid" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "code" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "drugClass" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "drugClass" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "patient" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "drugIngredient" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "drugIngredient" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "patient" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "reaction" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "patient" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "entered" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "entered" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "recordedDate" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "reaction" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "r0" ]
       ] [
         fhir:context [ fhir:v "r0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "manifestation" ] ;
         fhir:variable [ fhir:v "m1" ]
       ] [
         fhir:context [ fhir:v "m1" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "text" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "reaction" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "r0" ]
       ] [
         fhir:context [ fhir:v "r0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "manifestation" ] ;
         fhir:variable [ fhir:v "m1" ]
       ] [
         fhir:context [ fhir:v "m1" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "coding" ] ;
         fhir:variable [ fhir:v "c2" ]
       ] [
         fhir:context [ fhir:v "c2" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "system" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:String ;
             fhir:v "urn:oid:2.16.840.1.113883.6.233"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "reaction" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "r0" ]
       ] [
         fhir:context [ fhir:v "r0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "manifestation" ] ;
         fhir:variable [ fhir:v "m1" ]
       ] [
         fhir:context [ fhir:v "m1" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "coding" ] ;
         fhir:variable [ fhir:v "c2" ]
       ] [
         fhir:context [ fhir:v "c2" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "code" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "reaction" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "r0" ]
       ] [
         fhir:context [ fhir:v "r0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "manifestation" ] ;
         fhir:variable [ fhir:v "m1" ]
       ] [
         fhir:context [ fhir:v "m1" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "coding" ] ;
         fhir:variable [ fhir:v "c2" ]
       ] [
         fhir:context [ fhir:v "c2" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "display" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "mechanism" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "mechanism" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "type" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "removed" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "removed" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "clinicalStatus" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:String ;
             fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical#active"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "type" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "type" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "category" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "severity" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "severity" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "r0" ]
       ] [
         fhir:context [ fhir:v "r0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "severity" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "reaction" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "reaction" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "reaction" ] ;
         fhir:variable [ fhir:v "r0" ]
       ] [
         fhir:context [ fhir:v "r0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "onset" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

