SGHI FHIR Profile Implementation Guide
0.1.0 - ci-build

SGHI FHIR Profile Implementation Guide, published by Kathurima Kimathi. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/savannahghi/sil_fhir_profile_ig/ and changes regularly. See the Directory of published versions

## : RiskAssessment Transforms: R4 → SGHI R5 - TTL Representation

Active as of 2026-04-27

Raw ttl | Download

    @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 -------------------------------------------------------------------

     a fhir:StructureMap ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "RiskAssessmentR4toSGHIR5"] ; #
      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 RiskAssessmentR4toSGHIR5</b></p><a name=\"RiskAssessmentR4toSGHIR5\"> </a><a name=\"hcRiskAssessmentR4toSGHIR5\"> </a><pre class=\"fml\">#xD;\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'https://fhir.slade360.co.ke/fhir/StructureMap/RiskAssessmentR4toSGHIR5'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'RiskAssessmentR4toSGHIR5'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'RiskAssessment Transforms: R4 → SGHI R5'</span>#xD;\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>http://hl7.org/fhir/4.0/StructureDefinition/RiskAssessment<span style=\"color: navy\">\" </span><b>alias </b>RiskAssessmentR4 <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-riskassessment.html\" title=\"SGHI RiskAssessment\">https://fhir.slade360.co.ke/fhir/StructureDefinition/riskassessment</a><span style=\"color: navy\">\" </span><b>alias </b>RiskAssessmentR5 <b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>RiskAssessment<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>RiskAssessmentR4, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>RiskAssessmentR5<span style=\"color: navy\">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {#xD;\n</span>  src.id<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.id = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  src.meta<b> as </b><span style=\"color: maroon\">m</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.meta = <span style=\"color: maroon\">m</span><span style=\"color: navy\">;</span>#xD;\n  src.language<b> as </b><span style=\"color: maroon\">l</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.language = <span style=\"color: navy\">(</span>l.lower()<span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>#xD;\n  src.text<b> as </b><span style=\"color: maroon\">n</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.text = <span style=\"color: maroon\">n</span><span style=\"color: navy\">;</span>#xD;\n  src.status<b> as </b><span style=\"color: maroon\">s</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.status = <span style=\"color: maroon\">s</span><span style=\"color: navy\">;</span>#xD;\n  src.code<b> as </b><span style=\"color: maroon\">c</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.code = <span style=\"color: maroon\">c</span><span style=\"color: navy\">;</span>#xD;\n  src.subject<b> as </b><span style=\"color: maroon\">sbj</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.subject = <span style=\"color: maroon\">sbj</span><span style=\"color: navy\">;</span>#xD;\n  src.encounter<b> as </b><span style=\"color: maroon\">enc</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.encounter = <span style=\"color: maroon\">enc</span><span style=\"color: navy\">;</span>#xD;\n  src.occurrence<b> as </b><span style=\"color: maroon\">occ</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.occurrence = <span style=\"color: maroon\">occ</span><span style=\"color: navy\">;</span>#xD;\n  src.condition<b> as </b><span style=\"color: maroon\">cond</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.condition = <span style=\"color: maroon\">cond</span><span style=\"color: navy\">;</span>#xD;\n  src.performer<b> as </b><span style=\"color: maroon\">perf</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.performer = <span style=\"color: maroon\">perf</span><span style=\"color: navy\">;</span>#xD;\n  src.reasonCode<b> as </b><span style=\"color: maroon\">rc</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.reason<b> as </b><span style=\"color: maroon\">r</span><span style=\"color: navy\">, </span> r.concept = <span style=\"color: maroon\">rc</span> <i>\"reasonCodeToReason\"</i><span style=\"color: navy\">;</span> <span style=\"color: navy\">// </span><span style=\"color: green\">R4 reasonCode + reasonReference → R5 reason (CodeableReference)</span>#xD;\n  src.reasonReference<b> as </b><span style=\"color: maroon\">rr</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.reason<b> as </b><span style=\"color: maroon\">r2</span><span style=\"color: navy\">, </span> r2.reference = <span style=\"color: maroon\">rr</span> <i>\"reasonRefToReason\"</i><span style=\"color: navy\">;</span>#xD;\n  src.basis<b> as </b><span style=\"color: maroon\">b</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.basis = <span style=\"color: maroon\">b</span><span style=\"color: navy\">;</span>#xD;\n  src.prediction<b> as </b><span style=\"color: maroon\">p</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.prediction<b> as </b><span style=\"color: maroon\">tp</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    p.outcome<b> as </b><span style=\"color: maroon\">o</span><span style=\"color: navy\"><b> -&gt; </b></span>tp.outcome = <span style=\"color: maroon\">o</span><span style=\"color: navy\">;</span>#xD;\n    p.probabilityDecimal<b> as </b><span style=\"color: maroon\">d</span><span style=\"color: navy\"><b> -&gt; </b></span>tp.probability = <span style=\"color: maroon\">d</span><span style=\"color: navy\">;</span>#xD;\n    p.probabilityRange<b> as </b><span style=\"color: maroon\">pr</span><span style=\"color: navy\"><b> -&gt; </b></span>tp.probability = <span style=\"color: maroon\">pr</span><span style=\"color: navy\">;</span>#xD;\n    p.qualitativeRisk<b> as </b><span style=\"color: maroon\">qr</span><span style=\"color: navy\"><b> -&gt; </b></span>tp.qualitativeRisk = <span style=\"color: maroon\">qr</span><span style=\"color: navy\">;</span>#xD;\n    p.relativeRisk<b> as </b><span style=\"color: maroon\">rr</span><span style=\"color: navy\"><b> -&gt; </b></span>tp.relativeRisk = <span style=\"color: maroon\">rr</span><span style=\"color: navy\">;</span>#xD;\n    p.whenPeriod<b> as </b><span style=\"color: maroon\">wp</span><span style=\"color: navy\"><b> -&gt; </b></span>tp.when = <span style=\"color: maroon\">wp</span><span style=\"color: navy\">;</span>#xD;\n    p.whenRange<b> as </b><span style=\"color: maroon\">wr</span><span style=\"color: navy\"><b> -&gt; </b></span>tp.when = <span style=\"color: maroon\">wr</span><span style=\"color: navy\">;</span>#xD;\n    p.rationale<b> as </b><span style=\"color: maroon\">ra</span><span style=\"color: navy\"><b> -&gt; </b></span>tp.rationale = <span style=\"color: maroon\">ra</span><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span><span style=\"color: navy\">;</span>#xD;\n  src.mitigation<b> as </b><span style=\"color: maroon\">mit</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.mitigation = <span style=\"color: maroon\">mit</span><span style=\"color: navy\">;</span>#xD;\n  src.note<b> as </b><span style=\"color: maroon\">notes</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.note = <span style=\"color: maroon\">notes</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 "https://fhir.slade360.co.ke/fhir/StructureMap/RiskAssessmentR4toSGHIR5"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureMap/RiskAssessmentR4toSGHIR5>
      ] ; #
      fhir:version [ fhir:v "0.1.0"] ; #
      fhir:name [ fhir:v "RiskAssessmentR4toSGHIR5"] ; #
      fhir:title [ fhir:v "RiskAssessment Transforms: R4 → SGHI R5"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:date [ fhir:v "2026-04-27T09:21:43+00:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "Kathurima Kimathi"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "Kathurima Kimathi" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "https://www.linkedin.com/in/kathurima-kimathi/" ]     ] [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "kathurimakimathi415@gmail.com" ]     ] )
      ] [
    fhir:name [ fhir:v "Oscar John" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "oscarjohnotieno@gmail.com" ] ;
    fhir:use [ fhir:v "work" ]     ] )
      ] [
    fhir:name [ fhir:v "Kennedy Omondi" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "kennankole@gmail.com" ] ;
    fhir:use [ fhir:v "work" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "RiskAssessmentTransformsR4SGHIR5"] ; #
      fhir:structure ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/4.0/StructureDefinition/RiskAssessment"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/4.0/StructureDefinition/RiskAssessment>     ] ;
    fhir:mode [ fhir:v "source" ] ;
    fhir:alias [ fhir:v "RiskAssessmentR4" ]
      ] [
    fhir:url [
    fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/riskassessment"^^xsd:anyURI ;
    fhir:l <https://fhir.slade360.co.ke/fhir/StructureDefinition/riskassessment>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "RiskAssessmentR5" ]
      ] ) ; #
      fhir:group ( [
    fhir:name [ fhir:v "RiskAssessment" ] ;
    fhir:typeMode [ fhir:v "type-and-types" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:type [ fhir:v "RiskAssessmentR4" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "tgt" ] ;
    fhir:type [ fhir:v "RiskAssessmentR5" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:variable [ fhir:v "v" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "v"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "meta" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "m" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "m"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "language" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "language" ] ;
    fhir:variable [ fhir:v "l" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "language" ] ;
    fhir:transform [ fhir:v "evaluate" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:String ;
    fhir:v "l.lower()"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "text" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:variable [ fhir:v "n" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "text" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "n"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "status" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:variable [ fhir:v "s" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "s"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "code" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "c" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "c"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "subject" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "sbj" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "sbj"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "encounter" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:variable [ fhir:v "enc" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "encounter" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "enc"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "occurrence" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "occurrence" ] ;
    fhir:variable [ fhir:v "occ" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "occurrence" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "occ"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "condition" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "condition" ] ;
    fhir:variable [ fhir:v "cond" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "condition" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "cond"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "performer" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "performer" ] ;
    fhir:variable [ fhir:v "perf" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "performer" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "perf"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "reasonCodeToReason" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "reasonCode" ] ;
    fhir:variable [ fhir:v "rc" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "reason" ] ;
    fhir:variable [ fhir:v "r" ]       ] [
    fhir:context [ fhir:v "r" ] ;
    fhir:element [ fhir:v "concept" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "rc"           ]         ] )       ] ) ;
    fhir:documentation [ fhir:v "R4 reasonCode + reasonReference → R5 reason (CodeableReference)" ]     ] [
    fhir:name [ fhir:v "reasonRefToReason" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "reasonReference" ] ;
    fhir:variable [ fhir:v "rr" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "reason" ] ;
    fhir:variable [ fhir:v "r2" ]       ] [
    fhir:context [ fhir:v "r2" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "rr"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "basis" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "basis" ] ;
    fhir:variable [ fhir:v "b" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "basis" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "b"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "prediction" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "prediction" ] ;
    fhir:variable [ fhir:v "p" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "prediction" ] ;
    fhir:variable [ fhir:v "tp" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "outcome" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "p" ] ;
    fhir:element [ fhir:v "outcome" ] ;
    fhir:variable [ fhir:v "o" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "outcome" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "o"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "probabilityDecimal" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "p" ] ;
    fhir:element [ fhir:v "probabilityDecimal" ] ;
    fhir:variable [ fhir:v "d" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "probability" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "d"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "probabilityRange" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "p" ] ;
    fhir:element [ fhir:v "probabilityRange" ] ;
    fhir:variable [ fhir:v "pr" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "probability" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "pr"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "qualitativeRisk" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "p" ] ;
    fhir:element [ fhir:v "qualitativeRisk" ] ;
    fhir:variable [ fhir:v "qr" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "qualitativeRisk" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "qr"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "relativeRisk" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "p" ] ;
    fhir:element [ fhir:v "relativeRisk" ] ;
    fhir:variable [ fhir:v "rr" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "relativeRisk" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "rr"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "whenPeriod" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "p" ] ;
    fhir:element [ fhir:v "whenPeriod" ] ;
    fhir:variable [ fhir:v "wp" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "when" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "wp"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "whenRange" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "p" ] ;
    fhir:element [ fhir:v "whenRange" ] ;
    fhir:variable [ fhir:v "wr" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "when" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "wr"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "rationale" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "p" ] ;
    fhir:element [ fhir:v "rationale" ] ;
    fhir:variable [ fhir:v "ra" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "tp" ] ;
    fhir:element [ fhir:v "rationale" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "ra"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "mitigation" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "mitigation" ] ;
    fhir:variable [ fhir:v "mit" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "mitigation" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "mit"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "note" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "note" ] ;
    fhir:variable [ fhir:v "notes" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "tgt" ] ;
    fhir:element [ fhir:v "note" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:Id ;
    fhir:v "notes"           ]         ] )       ] )     ] )
      ] ) . #