SDOH Clinical Care
3.0.0 - STU 3

SDOH Clinical Care, published by HL7 International / Patient Care. This guide is not an authorized publication; it is the continuous build for version 3.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-sdoh-clinicalcare/ and changes regularly. See the Directory of published versions

## : SDOHCCHungerVitalSignMap - TTL Representation

Page standards status: Trial-use | Maturity Level: 2

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 "SDOHCC-StructureMapHungerVitalSign"] ; #
      fhir:text [
    fhir:status [ fhir:v "additional" ] ;
    fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n         <pre>/// name = \"SDOHCCHungerVitalSignMap\"\n/// status = draft\n/// title = \"SDOHCC StructureMap HungerVitalSign\"\n/// description = \"A StructureMap instance that represents the resource that transforms a specific question and answer from the LOINC Hunger Vital Sign [HVS] questionnaire (LOINC code 88121-9) into a corresponding Observation (SDOHCC Observation response Hunger Vital Sign Q3 Example) and derived Condition (SDOHCC Condition Food Insecurity Example).\"\n\nmap \"http://hl7.org/fhir/us/sdoh-clinicalcare/StructureMap/SDOHCC-StructureMapHungerVitalSign\" = \"SDOHCCHungerVitalSignMap\"\n\nuses \"http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse\" alias questionnaireResponse as source\nuses \"http://hl7.org/fhir/StructureDefinition/Bundle\" alias bundle as target\nuses \"http://hl7.org/fhir/StructureDefinition/Observation\" alias observation as target\nuses \"http://hl7.org/fhir/StructureDefinition/Condition\" alias sdohccCondition as target\nuses \"http://hl7.org/fhir/StructureDefinition/Observation\" alias sdohccObservation as target\n\ngroup sdohMapping(source src : questionnaireResponse, target bundle : Bundle) {\n  //temporarily set id to human-readable id as example\n  //src -&gt; bundle.id = uuid();\n  src -&gt; bundle.id = 'SDOHCC-BundleHungerVitalSignExample' \"bundleId\";\n  src -&gt; bundle.type = 'transaction' \"bundleType\";\n\n  //for each 'key' answer item in the questionnaireResponse, create an Observation\n  src.item as answerItem3 where linkId = '/88124-3' -&gt; bundle.entry as entry, entry.resource = create('Observation') as observation3 then \n    TransformObservation(src, answerItem3, observation3, entry); \n\n  //create condition if answer to third question is \"At Risk\"\n  src.item as answerItem4 where linkId = '/88124-3' and answer.value.code ='LA19952-3' -&gt; bundle.entry as entry, entry.resource = create('Condition') as condition then\n    TransformCondition(src, bundle, condition, entry);\n}\n\ngroup TransformObservation(source src: questionnaireResponse, source answerItem, target observation: Observation, target entry)\n{\n  src -&gt; entry.request as request then {\n    src -&gt; request.method = 'POST' \"obsnRequestMethod\";\n    src -&gt; request.url = 'Observation' \"obsnRequestUrl\";\n  } \"obsnEntryRequest\";\n\n  //temporarily set id to human-readable id as example\n  //src -&gt; observation.id = uuid() then\n  //  SetObservationFullUrl(observation, entry);\n  src -&gt; observation.id = 'SDOHCC-ObservationResponseHungerVitalSignQuestion3Example' then\n   	SetObservationFullUrl(observation, entry) \"obsn3Id\";\n\n  src -&gt; observation.meta = create('Meta') as newMeta then {\n    src -&gt; newMeta.profile = 'http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse' \"obsnMetaProfile\";\n  } \"obsnMeta\";\n\n  src -&gt; observation.status = 'final' \"obsnStatus\";\n\n  src -&gt; observation.category = cc('http://terminology.hl7.org/CodeSystem/observation-category', 'social-history', 'Social History') \"obsnCatSocialHist\";\n  src -&gt; observation.category = cc('http://terminology.hl7.org/CodeSystem/observation-category', 'survey', 'Survey') \"obsnCatSurvey\";\n  src -&gt; observation.category = cc('http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes', 'food-insecurity', 'Food Insecurity') \"obsnCatFoodInsecurity\";  \n\n  answerItem as i -&gt; observation.code = cc('http://loinc.org', '88124-3') as code \"obsn3Code\";\n\n  src.subject as qSubject -&gt; observation.subject = create('Reference') as newReference then {\n    qSubject.reference as qReference -&gt; newReference.reference = qReference;\n    qSubject.display as qDisplay -&gt; newReference.display = qDisplay;\n  };\n\n  src.authored as authored -&gt; observation.effective = authored, observation.issued = authored;\n\n  answerItem.answer as answer -&gt; observation.value = create('CodeableConcept') as newCC then {\n    answer.value as coding -&gt; newCC.coding = coding as newCoding;\n  };\n\n  src -&gt; observation.derivedFrom = create('Reference') as newReference then {\n    src.id as id -&gt; newReference.reference = append('QuestionnaireResponse/', id);\n  } \"obsnDerivation\";\n}\n\ngroup SetObservationFullUrl(source observation: Observation, target entry)\n{\n  observation.id as id -&gt; entry.fullUrl = append('http://hl7.org/fhir/us/sdoh-clinicalcare/Observation/', id);\n}\n\ngroup TransformCondition(source src: QuestionnaireResponse, source bundle: Bundle, target condition: Condition, target entry)\n{\n  //temporarily set id to human-readable id as example\n  //src -&gt; condition.id = uuid() then\n  src -&gt; condition.id = 'SDOHCC-ConditionFoodInsecurityExample' then\n    SetConditionFullUrl(condition, entry) \"conditionId\";\n       \n  src -&gt; condition.meta = create('Meta') as newMeta then {\n    src -&gt; newMeta.profile = 'http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-Condition' \"conditionMetaProfile\";\n  } \"conditionMeta\";\n\n  src -&gt; condition.clinicalStatus = cc('http://terminology.hl7.org/CodeSystem/condition-clinical', 'active', 'Active') \"conditionClinicalStatus\";\n  src -&gt; condition.verificationStatus = cc('http://terminology.hl7.org/CodeSystem/condition-ver-status', 'unconfirmed', 'Unconfirmed') \"conditionVeriStatus\";\n  src -&gt; condition.category = create('CodeableConcept') as newCC then {\n      src -&gt; newCC.coding = create('Coding') as newCoding then {\n        src -&gt; newCoding.system = 'http://hl7.org/fhir/us/core/CodeSystem/condition-category' \"conditionCatCodingSystemHealthConcern\";\n        src -&gt; newCoding.code = 'health-concern' \"conditionCatCodingCodeHealthConcern\";\n        src -&gt; newCoding.display = 'Health Concern' \"conditionCatCodingDisplayHealthConcern\";\n    } \"conditionCatCodingHealthConcern\";\n  } \"conditionCatHealthConcern\";\n\n  //Add sdoh category\n  src -&gt; condition.category = cc('http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes', 'food-insecurity', 'Food Insecurity') \"conditionCatFoodInsecurity\";\n\n  src -&gt; condition.code = create('CodeableConcept') as newCodeCC then {\n      src -&gt; newCodeCC.coding = create('Coding') as newCoding then {\n        src -&gt; newCoding.system = 'http://snomed.info/sct' \"conditionCodeCodingSystemFoodInsecurity\";\n        src -&gt; newCoding.code = '733423003' \"conditionCodeCodingCodeFoodInsecurity\";\n        src -&gt; newCoding.display = 'Food insecurity' \"conditionCodeCodingDisplayFoodInsecurity\";\n    } \"conditionCodeCodingFoodInsecurity\";\n    src -&gt; newCodeCC.coding = create('Coding') as newCoding2 then {\n        src -&gt; newCoding2.system = 'http://hl7.org/fhir/sid/icd-10-cm' \"conditionCodeCodingSystemLackOfFood\";\n        src -&gt; newCoding2.code = 'Z59.4' \"conditionCodeCodingCodeLackOfFood\";\n        src -&gt; newCoding2.display = 'Lack of adequate food' \"conditionCodeCodingDisplayLackOfFood\";\n    } \"conditionCodeCodingLackOfFood\";\n  } \"conditionCode\";\n      \n  src.authored as authored -&gt; condition.onset = create('Period') as period,\n    period.start = authored;\n\n  bundle.entry as entries -&gt; condition.evidence as evidence, evidence.detail = create('Reference') as detailReference then {\n  	entries.resource as obs3 where code.coding.code = '88124-3'-&gt; detailReference.reference = reference(obs3); \n  };\n\n  src.subject as qSubject -&gt; condition.subject = create('Reference') as newReference then {\n    qSubject.reference as qReference -&gt; newReference.reference = qReference;\n    qSubject.display as qDisplay -&gt; newReference.display = qDisplay;\n  };\n\n  src -&gt; entry.request as request then {\n    src -&gt; request.method = 'POST' \"conditionRequestMethod\";\n    src -&gt; request.url = 'Condition' \"conditionRequestUrl\";\n  } \"conditionEntryRequest\";  \n}\n\ngroup SetConditionFullUrl(source condition: Condition, target entry)\n{\n  condition.id as id -&gt; entry.fullUrl = append('http://hl7.org/fhir/us/sdoh-clinicalcare/Condition/', id);\n}</pre>\n      </div>"^^rdf:XMLLiteral
      ] ; #
      fhir:extension ( [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:code ;
    fhir:v "pc"     ]
      ] ) ; #
      fhir:url [ fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureMap/SDOHCC-StructureMapHungerVitalSign"^^xsd:anyURI] ; #
      fhir:version [ fhir:v "3.0.0"] ; #
      fhir:name [ fhir:v "SDOHCCHungerVitalSignMap"] ; #
      fhir:status [ fhir:v "draft"] ; #
      fhir:date [ fhir:v "2025-09-26T13:12:57+00:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "HL7 International / Patient Care"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "HL7 International / Patient Care" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "http://www.hl7.org/Special/committees/patientcare" ]     ] [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "patientcare@lists.hl7.org" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "A StructureMap instance that represents the resource that transforms a specific question and answer from the LOINC Hunger Vital Sign [HVS] questionnaire (LOINC code 88121-9) into a corresponding Observation (SDOHCC Observation response Hunger Vital Sign Q3 Example) and derived Condition (SDOHCC Condition Food Insecurity Example)"] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "US" ] ;
    fhir:display [ fhir:v "United States of America" ]     ] )
      ] ) ; #
      fhir:structure ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse>     ] ;
    fhir:mode [ fhir:v "source" ] ;
    fhir:alias [ fhir:v "questionnaireResponse" ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Bundle"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "bundle" ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "observation" ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Condition>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "sdohccCondition" ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ] ;
    fhir:mode [ fhir:v "target" ] ;
    fhir:alias [ fhir:v "sdohccObservation" ]
      ] ) ; #
      fhir:group ( [
    fhir:name [ fhir:v "sdohMapping" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:type [ fhir:v "questionnaireResponse" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "bundle" ] ;
    fhir:type [ fhir:v "Bundle" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "bundleId" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "SDOHCC-BundleHungerVitalSignExample"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "bundleType" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "type" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "transaction"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "item" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "answerItem3" ] ;
    fhir:condition [ fhir:v "linkId = '/88124-3'" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]       ] [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "observation3" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Observation"           ]         ] )       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "TransformObservation" ] ;
            ( fhir:variable [ fhir:v "src" ] [ fhir:v "answerItem3" ] [ fhir:v "observation3" ] [ fhir:v "entry" ] )       ] )     ] [
    fhir:name [ fhir:v "item" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "item" ] ;
    fhir:variable [ fhir:v "answerItem4" ] ;
    fhir:condition [ fhir:v "(linkId = '/88124-3') and (answer.value.code = 'LA19952-3')" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entry" ]       ] [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "condition" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Condition"           ]         ] )       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "TransformCondition" ] ;
            ( fhir:variable [ fhir:v "src" ] [ fhir:v "bundle" ] [ fhir:v "condition" ] [ fhir:v "entry" ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "TransformObservation" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:type [ fhir:v "questionnaireResponse" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "answerItem" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "observation" ] ;
    fhir:type [ fhir:v "Observation" ] ;
    fhir:mode [ fhir:v "target" ]     ] [
    fhir:name [ fhir:v "entry" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "obsnEntryRequest" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "obsnRequestMethod" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "POST"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "obsnRequestUrl" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Observation"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "obsn3Id" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "SDOHCC-ObservationResponseHungerVitalSignQuestion3Example"           ]         ] )       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "SetObservationFullUrl" ] ;
            ( fhir:variable [ fhir:v "observation" ] [ fhir:v "entry" ] )       ] )     ] [
    fhir:name [ fhir:v "obsnMeta" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Meta"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "obsnMetaProfile" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "obsnStatus" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "status" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "final"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "obsnCatSocialHist" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "category" ] ;
    fhir:transform [ fhir:v "cc" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "social-history"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "Social History"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "obsnCatSurvey" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "category" ] ;
    fhir:transform [ fhir:v "cc" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "survey"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "Survey"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "obsnCatFoodInsecurity" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "category" ] ;
    fhir:transform [ fhir:v "cc" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "food-insecurity"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "Food Insecurity"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "obsn3Code" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "answerItem" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "cc" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://loinc.org"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "88124-3"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "subject" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "qSubject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "newReference" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Reference"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "qSubject" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newReference" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:id ;
    fhir:v "qReference"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "display" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "qSubject" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newReference" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:id ;
    fhir:v "qDisplay"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "authored" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "authored" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "effective" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:id ;
    fhir:v "authored"           ]         ] )       ] [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "issued" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:id ;
    fhir:v "authored"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "answer" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "answerItem" ] ;
    fhir:element [ fhir:v "answer" ] ;
    fhir:variable [ fhir:v "answer" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "newCC" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "CodeableConcept"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "value" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "answer" ] ;
    fhir:element [ fhir:v "value" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newCC" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "newCoding" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:id ;
    fhir:v "coding"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "obsnDerivation" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "observation" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "derivedFrom" ] ;
    fhir:variable [ fhir:v "newReference" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Reference"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "id" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newReference" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:transform [ fhir:v "append" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "QuestionnaireResponse/"             ]           ] [
    fhir:value [
    a fhir:id ;
    fhir:v "id"             ]           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "SetObservationFullUrl" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "observation" ] ;
    fhir:type [ fhir:v "Observation" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "entry" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "observation" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "fullUrl" ] ;
    fhir:transform [ fhir:v "append" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/Observation/"           ]         ] [
    fhir:value [
    a fhir:id ;
    fhir:v "id"           ]         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "TransformCondition" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "src" ] ;
    fhir:type [ fhir:v "QuestionnaireResponse" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "bundle" ] ;
    fhir:type [ fhir:v "Bundle" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "condition" ] ;
    fhir:type [ fhir:v "Condition" ] ;
    fhir:mode [ fhir:v "target" ]     ] [
    fhir:name [ fhir:v "entry" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "conditionId" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "condition" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "SDOHCC-ConditionFoodInsecurityExample"           ]         ] )       ] ) ;
          ( fhir:dependent [
    fhir:name [ fhir:v "SetConditionFullUrl" ] ;
            ( fhir:variable [ fhir:v "condition" ] [ fhir:v "entry" ] )       ] )     ] [
    fhir:name [ fhir:v "conditionMeta" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "condition" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "meta" ] ;
    fhir:variable [ fhir:v "newMeta" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Meta"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "conditionMetaProfile" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newMeta" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "profile" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-Condition"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "conditionClinicalStatus" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "condition" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "clinicalStatus" ] ;
    fhir:transform [ fhir:v "cc" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "active"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "Active"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "conditionVeriStatus" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "condition" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "verificationStatus" ] ;
    fhir:transform [ fhir:v "cc" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://terminology.hl7.org/CodeSystem/condition-ver-status"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "unconfirmed"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "Unconfirmed"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "conditionCatHealthConcern" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "condition" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "category" ] ;
    fhir:variable [ fhir:v "newCC" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "CodeableConcept"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "conditionCatCodingHealthConcern" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newCC" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "newCoding" ] ;
    fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Coding"             ]           ] )         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "conditionCatCodingSystemHealthConcern" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "newCoding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://hl7.org/fhir/us/core/CodeSystem/condition-category"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "conditionCatCodingCodeHealthConcern" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "newCoding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "health-concern"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "conditionCatCodingDisplayHealthConcern" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "newCoding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Health Concern"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "conditionCatFoodInsecurity" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "condition" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "category" ] ;
    fhir:transform [ fhir:v "cc" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "food-insecurity"           ]         ] [
    fhir:value [
    a fhir:string ;
    fhir:v "Food Insecurity"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "conditionCode" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "condition" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:variable [ fhir:v "newCodeCC" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "CodeableConcept"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "conditionCodeCodingFoodInsecurity" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newCodeCC" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "newCoding" ] ;
    fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Coding"             ]           ] )         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "conditionCodeCodingSystemFoodInsecurity" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "newCoding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://snomed.info/sct"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "conditionCodeCodingCodeFoodInsecurity" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "newCoding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "733423003"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "conditionCodeCodingDisplayFoodInsecurity" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "newCoding" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Food insecurity"               ]             ] )           ] )         ] )       ] [
    fhir:name [ fhir:v "conditionCodeCodingLackOfFood" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newCodeCC" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "coding" ] ;
    fhir:variable [ fhir:v "newCoding2" ] ;
    fhir:transform [ fhir:v "create" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Coding"             ]           ] )         ] ) ;
            ( fhir:rule [
    fhir:name [ fhir:v "conditionCodeCodingSystemLackOfFood" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "newCoding2" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "system" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://hl7.org/fhir/sid/icd-10-cm"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "conditionCodeCodingCodeLackOfFood" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "newCoding2" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "code" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Z59.4"               ]             ] )           ] )         ] [
    fhir:name [ fhir:v "conditionCodeCodingDisplayLackOfFood" ] ;
              ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]           ] ) ;
              ( fhir:target [
    fhir:context [ fhir:v "newCoding2" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
                ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Lack of adequate food"               ]             ] )           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "authored" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "authored" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "condition" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "onset" ] ;
    fhir:variable [ fhir:v "period" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Period"           ]         ] )       ] [
    fhir:context [ fhir:v "period" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "start" ] ;
    fhir:transform [ fhir:v "copy" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:id ;
    fhir:v "authored"           ]         ] )       ] )     ] [
    fhir:name [ fhir:v "entry" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "bundle" ] ;
    fhir:element [ fhir:v "entry" ] ;
    fhir:variable [ fhir:v "entries" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "condition" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "evidence" ] ;
    fhir:variable [ fhir:v "evidence" ]       ] [
    fhir:context [ fhir:v "evidence" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "detail" ] ;
    fhir:variable [ fhir:v "detailReference" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Reference"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "resource" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "entries" ] ;
    fhir:element [ fhir:v "resource" ] ;
    fhir:variable [ fhir:v "obs3" ] ;
    fhir:condition [ fhir:v "code.coding.code = '88124-3'" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "detailReference" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:transform [ fhir:v "reference" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:id ;
    fhir:v "obs3"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "subject" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "qSubject" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "condition" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "subject" ] ;
    fhir:variable [ fhir:v "newReference" ] ;
    fhir:transform [ fhir:v "create" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Reference"           ]         ] )       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "reference" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "qSubject" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:variable [ fhir:v "qReference" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newReference" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "reference" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:id ;
    fhir:v "qReference"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "display" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "qSubject" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:variable [ fhir:v "qDisplay" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "newReference" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "display" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:id ;
    fhir:v "qDisplay"             ]           ] )         ] )       ] )     ] [
    fhir:name [ fhir:v "conditionEntryRequest" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "request" ] ;
    fhir:variable [ fhir:v "request" ]       ] ) ;
          ( fhir:rule [
    fhir:name [ fhir:v "conditionRequestMethod" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "method" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "POST"             ]           ] )         ] )       ] [
    fhir:name [ fhir:v "conditionRequestUrl" ] ;
            ( fhir:source [
    fhir:context [ fhir:v "src" ] ;
    fhir:variable [ fhir:v "src" ]         ] ) ;
            ( fhir:target [
    fhir:context [ fhir:v "request" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "url" ] ;
    fhir:transform [ fhir:v "copy" ] ;
              ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "Condition"             ]           ] )         ] )       ] )     ] )
      ] [
    fhir:name [ fhir:v "SetConditionFullUrl" ] ;
    fhir:typeMode [ fhir:v "none" ] ;
        ( fhir:input [
    fhir:name [ fhir:v "condition" ] ;
    fhir:type [ fhir:v "Condition" ] ;
    fhir:mode [ fhir:v "source" ]     ] [
    fhir:name [ fhir:v "entry" ] ;
    fhir:mode [ fhir:v "target" ]     ] ) ;
        ( fhir:rule [
    fhir:name [ fhir:v "id" ] ;
          ( fhir:source [
    fhir:context [ fhir:v "condition" ] ;
    fhir:element [ fhir:v "id" ] ;
    fhir:variable [ fhir:v "src" ]       ] ) ;
          ( fhir:target [
    fhir:context [ fhir:v "entry" ] ;
    fhir:contextType [ fhir:v "variable" ] ;
    fhir:element [ fhir:v "fullUrl" ] ;
    fhir:transform [ fhir:v "append" ] ;
            ( fhir:parameter [
    fhir:value [
    a fhir:string ;
    fhir:v "http://hl7.org/fhir/us/sdoh-clinicalcare/Condition/"           ]         ] [
    fhir:value [
    a fhir:id ;
    fhir:v "id"           ]         ] )       ] )     ] )
      ] ) . #