FHIR Extensions Pack
5.1.0 - 5.1.0 (April 2024) International flag

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. For a full list of available versions, see the Directory of published versions

: FML Conversion for Consent: R5 to R4B - TTL Representation

Page standards status: Trial-use Maturity Level: 1

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Consent5to4B"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir: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/Consent5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Consent5to4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for Consent: R5 to R4B'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>conceptmap</b><span style=\"color: navy\"> &quot;</span>ConsentDataMeaning<span style=\"color: navy\">&quot; {\r\n</span><b>  prefix </b>s<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R5/codesystem-consent-data-meaning.html\" title=\"Consent Data Meaning\">http://hl7.org/fhir/consent-data-meaning</a><span style=\"color: navy\">&quot;\r\n</span><b>  prefix </b>t<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4B/codesystem-consent-data-meaning.html\" title=\"ConsentDataMeaning\">http://hl7.org/fhir/4.3/consent-data-meaning</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>instance <b>-</b> t<span style=\"color: navy\">:</span>instance\r\n  s<span style=\"color: navy\">:</span>related <b>-</b> t<span style=\"color: navy\">:</span>related\r\n  s<span style=\"color: navy\">:</span>dependents <b>-</b> t<span style=\"color: navy\">:</span>dependents\r\n  s<span style=\"color: navy\">:</span>authoredby <b>-</b> t<span style=\"color: navy\">:</span>authoredby\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> &quot;</span>ConsentProvisionType<span style=\"color: navy\">&quot; {\r\n</span><b>  prefix </b>s<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R5/codesystem-consent-provision-type.html\" title=\"Consent Provision Type\">http://hl7.org/fhir/consent-provision-type</a><span style=\"color: navy\">&quot;\r\n</span><b>  prefix </b>t<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4B/codesystem-consent-provision-type.html\" title=\"ConsentProvisionType\">http://hl7.org/fhir/4.3/consent-provision-type</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>deny <b>-</b> t<span style=\"color: navy\">:</span>deny\r\n  s<span style=\"color: navy\">:</span>permit <b>-</b> t<span style=\"color: navy\">:</span>permit\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> &quot;</span>ConsentState<span style=\"color: navy\">&quot; {\r\n</span><b>  prefix </b>s<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R5/codesystem-consent-state-codes.html\" title=\"Consent State\">http://hl7.org/fhir/consent-state-codes</a><span style=\"color: navy\">&quot;\r\n</span><b>  prefix </b>t<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4B/codesystem-consent-state-codes.html\" title=\"ConsentState\">http://hl7.org/fhir/4.3/consent-state-codes</a><span style=\"color: navy\">&quot;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>draft <b>-</b> t<span style=\"color: navy\">:</span>draft\r\n  s<span style=\"color: navy\">:</span>active <b>-</b> t<span style=\"color: navy\">:</span>active\r\n  s<span style=\"color: navy\">:</span>inactive <b>-</b> t<span style=\"color: navy\">:</span>inactive\r\n  s<span style=\"color: navy\">:</span>&quot;not-done&quot; <b>-</b> t<span style=\"color: navy\">:</span>rejected\r\n  s<span style=\"color: navy\">:</span>&quot;entered-in-error&quot; <b>-</b> t<span style=\"color: navy\">:</span><span style=\"color: navy\">&quot;</span>entered-in-error<span style=\"color: navy\">&quot;</span>\r\n  s<span style=\"color: navy\">:</span>unknown <b>-</b> t<span style=\"color: navy\">:</span>proposed\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R5/consent.html\" title=\"Consent\">http://hl7.org/fhir/StructureDefinition/Consent</a><span style=\"color: navy\">&quot; </span><b>alias </b>ConsentR5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4B/consent.html\" title=\"Consent\">http://hl7.org/fhir/4.3/StructureDefinition/Consent</a><span style=\"color: navy\">&quot; </span><b>alias </b>ConsentR4B <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*5to4B<span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>Consent<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>ConsentR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>ConsentR4B<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span>  src.identifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier<span style=\"color: navy\">;</span>\r\n  src.status<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.status = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#ConsentState'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.category<span style=\"color: navy\"><b> -&gt; </b></span>tgt.category<span style=\"color: navy\">;</span>\r\n  src.subject<span style=\"color: navy\"><b> -&gt; </b></span>tgt.patient<span style=\"color: navy\">;</span>\r\n  src.date<span style=\"color: navy\"><b> -&gt; </b></span>tgt.dateTime<span style=\"color: navy\">;</span>\r\n  src.grantee<span style=\"color: navy\"><b> -&gt; </b></span>tgt.performer<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.period -&gt; tgt.period;</span>\r\n  src.sourceAttachment<span style=\"color: navy\"><b> -&gt; </b></span>tgt.source<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.manager -&gt; tgt.manager;</span>\r\n  src.sourceReference<span style=\"color: navy\"><b> -&gt; </b></span>tgt.source<span style=\"color: navy\">;</span>\r\n  src.regulatoryBasis<span style=\"color: navy\"><b> -&gt; </b></span>tgt.policyRule<span style=\"color: navy\">;</span>\r\n  src.policyBasis<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.policy<b> as </b><span style=\"color: maroon\">t</span><span style=\"color: navy\">, </span> t.uri = <span style=\"color: maroon\">s.url</span><span style=\"color: navy\">;</span>\r\n  src.verification<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.verification<b> as </b><span style=\"color: maroon\">t</span><b> then </b>ConsentVerification<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.policyText -&gt; tgt.policyText;</span>\r\n  src.provision<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.provision<b> as </b><span style=\"color: maroon\">t</span><b> then </b>ConsentProvision<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.decision as v -&gt; tgt.decision = translate(v, '#ConsentProvisionType', 'code');</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">group ConsentPolicyBasis(source src, target tgt) extends BackboneElement {</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.reference -&gt; tgt.reference;</span>\r\n<span style=\"color: #b36b00\" title=\"This element was not defined prior to R5\">// src.url -&gt; tgt.url;</span>\r\n<span style=\"color: navy\">// </span><span style=\"color: green\">}</span>\r\n<b>group </b>ConsentVerification<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span>  src.verified<span style=\"color: navy\"><b> -&gt; </b></span>tgt.verified<span style=\"color: navy\">;</span>\r\n  src.verifiedWith<span style=\"color: navy\"><b> -&gt; </b></span>tgt.verifiedWith<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.verificationType -&gt; tgt.verificationType;</span>\r\n  src.verificationDate<span style=\"color: navy\"><b> -&gt; </b></span>tgt.verificationDate<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>ConsentProvision<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span>  src.period<span style=\"color: navy\"><b> -&gt; </b></span>tgt.period<span style=\"color: navy\">;</span>\r\n  src.actor<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.actor<b> as </b><span style=\"color: maroon\">t</span><b> then </b>ConsentProvisionActor<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.action<span style=\"color: navy\"><b> -&gt; </b></span>tgt.action<span style=\"color: navy\">;</span>\r\n  src.securityLabel<span style=\"color: navy\"><b> -&gt; </b></span>tgt.securityLabel<span style=\"color: navy\">;</span>\r\n  src.purpose<span style=\"color: navy\"><b> -&gt; </b></span>tgt.purpose<span style=\"color: navy\">;</span>\r\n  src.documentType<span style=\"color: navy\"><b> -&gt; </b></span>tgt.class<span style=\"color: navy\">;</span>\r\n  src.code<span style=\"color: navy\"><b> -&gt; </b></span>tgt.code<span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">src.resourceType -&gt; tgt.resourceType;</span>\r\n  src.dataPeriod<span style=\"color: navy\"><b> -&gt; </b></span>tgt.dataPeriod<span style=\"color: navy\">;</span>\r\n  src.data<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.data<b> as </b><span style=\"color: maroon\">t</span><b> then </b>ConsentProvisionData<span style=\"color: navy\">(</span><span style=\"color: maroon\">s</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">t</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>ConsentProvisionActor<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span>  src.role<span style=\"color: navy\"><b> -&gt; </b></span>tgt.role<span style=\"color: navy\">;</span>\r\n  src.reference<span style=\"color: navy\"><b> -&gt; </b></span>tgt.reference<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>ConsentProvisionData<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span>  src.meaning<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.meaning = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'#ConsentDataMeaning'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n  src.reference<span style=\"color: navy\"><b> -&gt; </b></span>tgt.reference<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  ] ; # 
  fhir:contained ( [
a fhir:ConceptMap ;
fhir:id [ fhir:v "ConsentDataMeaning" ] ;
fhir:status [ fhir:v "active" ] ;
    ( fhir:group [
fhir:source [
fhir:v "http://hl7.org/fhir/consent-data-meaning"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/consent-data-meaning>       ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/4.3/consent-data-meaning"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/4.3/consent-data-meaning>       ] ;
      ( fhir:element [
fhir:code [ fhir:v "instance" ] ;
        ( fhir:target [
fhir:code [ fhir:v "instance" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "related" ] ;
        ( fhir:target [
fhir:code [ fhir:v "related" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "dependents" ] ;
        ( fhir:target [
fhir:code [ fhir:v "dependents" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "authoredby" ] ;
        ( fhir:target [
fhir:code [ fhir:v "authoredby" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] )     ] )
  ] [
a fhir:ConceptMap ;
fhir:id [ fhir:v "ConsentProvisionType" ] ;
fhir:status [ fhir:v "active" ] ;
    ( fhir:group [
fhir:source [
fhir:v "http://hl7.org/fhir/consent-provision-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/consent-provision-type>       ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/4.3/consent-provision-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/4.3/consent-provision-type>       ] ;
      ( fhir:element [
fhir:code [ fhir:v "deny" ] ;
        ( fhir:target [
fhir:code [ fhir:v "deny" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "permit" ] ;
        ( fhir:target [
fhir:code [ fhir:v "permit" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] )     ] )
  ] [
a fhir:ConceptMap ;
fhir:id [ fhir:v "ConsentState" ] ;
fhir:status [ fhir:v "active" ] ;
    ( fhir:group [
fhir:source [
fhir:v "http://hl7.org/fhir/consent-state-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/consent-state-codes>       ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/4.3/consent-state-codes"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/4.3/consent-state-codes>       ] ;
      ( fhir:element [
fhir:code [ fhir:v "draft" ] ;
        ( fhir:target [
fhir:code [ fhir:v "draft" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "active" ] ;
        ( fhir:target [
fhir:code [ fhir:v "active" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "inactive" ] ;
        ( fhir:target [
fhir:code [ fhir:v "inactive" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "not-done" ] ;
        ( fhir:target [
fhir:code [ fhir:v "rejected" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "entered-in-error" ] ;
        ( fhir:target [
fhir:code [ fhir:v "entered-in-error" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "unknown" ] ;
        ( fhir:target [
fhir:code [ fhir:v "proposed" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] )     ] )
  ] ) ; # 
  fhir:extension ( [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
fhir:value [ fhir:v "fhir" ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ] ;
fhir:value [
fhir:v "1"^^xsd:integer ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ] ;
fhir:value [
fhir:v "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions>         ]       ] )     ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ] ;
fhir:value [
fhir:v "trial-use" ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ] ;
fhir:value [
fhir:v "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions>         ]       ] )     ]
  ] ) ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/StructureMap/Consent5to4B"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "5.1.0"] ; # 
  fhir:name [ fhir:v "Consent5to4B"] ; # 
  fhir:title [ fhir:v "FML Conversion for Consent: R5 to R4B"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2024-04-27T18:54:50+10:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; # 
  fhir:contact ( [
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "FMLConversionforConsentR5toR4B"] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ]     ] )
  ] ) ; # 
  fhir:structure ( [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/Consent"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Consent>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "ConsentR5" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/4.3/StructureDefinition/Consent"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/4.3/StructureDefinition/Consent>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "ConsentR4B" ]
  ] ) ; # 
  fhir:import ( [
fhir:v "http://hl7.org/fhir/StructureMap/*5to4B"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureMap/*5to4B>
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "Consent" ] ;
fhir:extends [ fhir:v "DomainResource" ] ;
fhir:typeMode [ fhir:v "type-and-types" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "ConsentR5" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "ConsentR4B" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "identifier" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "status" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:variable [ fhir:v "v" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "status" ] ;
fhir:transform [ fhir:v "translate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "v" ]         ] [
fhir:value [ fhir:v "#ConsentState" ]         ] [
fhir:value [ fhir:v "code" ]         ] )       ] )     ] [
fhir:name [ fhir:v "category" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "category" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "category" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "subject" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "subject" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "patient" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "date" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "date" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "dateTime" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "grantee" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "grantee" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "performer" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "src.period -> tgt.period;" ]     ] [
fhir:name [ fhir:v "sourceAttachment" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "sourceAttachment" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "source" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "src.manager -> tgt.manager;" ]     ] [
fhir:name [ fhir:v "sourceReference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "sourceReference" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "source" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "regulatoryBasis" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "regulatoryBasis" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "policyRule" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "policyBasis" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "policyBasis" ] ;
fhir:variable [ fhir:v "s" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "policy" ] ;
fhir:variable [ fhir:v "t" ]       ] [
fhir:context [ fhir:v "t" ] ;
fhir:element [ fhir:v "uri" ] ;
fhir:transform [ fhir:v "copy" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "s.url" ]         ] )       ] )     ] [
fhir:name [ fhir:v "verification" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "verification" ] ;
fhir:variable [ fhir:v "s" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "verification" ] ;
fhir:variable [ fhir:v "t" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "ConsentVerification" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "s" ]         ] [
fhir:value [ fhir:v "t" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "src.policyText -> tgt.policyText;" ]     ] [
fhir:name [ fhir:v "provision" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "provision" ] ;
fhir:variable [ fhir:v "s" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "provision" ] ;
fhir:variable [ fhir:v "t" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "ConsentProvision" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "s" ]         ] [
fhir:value [ fhir:v "t" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "src.decision as v -> tgt.decision = translate(v, '#ConsentProvisionType', 'code');" ]     ] )
  ] [
fhir:name [ fhir:v "ConsentVerification" ] ;
fhir:extends [ fhir:v "BackboneElement" ] ;
fhir:documentation [ fhir:v "group ConsentPolicyBasis(source src, target tgt) extends BackboneElement {\r\nsrc.reference -> tgt.reference;\r\nsrc.url -> tgt.url;\r\n}" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "verified" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "verified" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "verified" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "verifiedWith" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "verifiedWith" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "verifiedWith" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "src.verificationType -> tgt.verificationType;" ]     ] [
fhir:name [ fhir:v "verificationDate" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "verificationDate" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "verificationDate" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "ConsentProvision" ] ;
fhir:extends [ fhir:v "BackboneElement" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "period" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "period" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "actor" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "actor" ] ;
fhir:variable [ fhir:v "s" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "actor" ] ;
fhir:variable [ fhir:v "t" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "ConsentProvisionActor" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "s" ]         ] [
fhir:value [ fhir:v "t" ]         ] )       ] )     ] [
fhir:name [ fhir:v "action" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "action" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "action" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "securityLabel" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "securityLabel" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "securityLabel" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "purpose" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "purpose" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "purpose" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "documentType" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "documentType" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "class" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "code" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "code" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "src.resourceType -> tgt.resourceType;" ]     ] [
fhir:name [ fhir:v "dataPeriod" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "dataPeriod" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "dataPeriod" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "data" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "data" ] ;
fhir:variable [ fhir:v "s" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "data" ] ;
fhir:variable [ fhir:v "t" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "ConsentProvisionData" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "s" ]         ] [
fhir:value [ fhir:v "t" ]         ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "ConsentProvisionActor" ] ;
fhir:extends [ fhir:v "BackboneElement" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "role" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "role" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "role" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] )
  ] [
fhir:name [ fhir:v "ConsentProvisionData" ] ;
fhir:extends [ fhir:v "BackboneElement" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "meaning" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "meaning" ] ;
fhir:variable [ fhir:v "v" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "meaning" ] ;
fhir:transform [ fhir:v "translate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "v" ]         ] [
fhir:value [ fhir:v "#ConsentDataMeaning" ]         ] [
fhir:value [ fhir:v "code" ]         ] )       ] )     ] [
fhir:name [ fhir:v "reference" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "reference" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] )
  ] ) . #