SDOH Clinical Care
2.2.0 - STU 2.2 United States of America flag

This page is part of the SDOH Clinical Care for Multiple Domains (v2.2.0: STU 2.2) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

: SDOHCCPRAPAREMap - JSON Representation

Page standards status: Trial-use

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "SDOHCC-StructureMapPRAPARE",
  "text" : {
    "status" : "additional",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <pre>/// name = &quot;SDOHCCPRAPAREMap&quot;\n/// status = draft\n/// title = &quot;SDOHCC StructureMap PRAPARE&quot;\n/// description = &quot;A StructureMap instance that represents the resource that transforms specific questions and answers from the PRAPARE questionnaire represented in LOINC (code 93025-5) into their corresponding Observations and derived Conditions (health concerns).&quot;\n\n\n// This is a more complex example where the author has chosen to extract *all* answers to Observations and to create a grouping Observation\n\nmap &quot;http://hl7.org/fhir/us/sdoh-clinicalcare/StructureMap/SDOHCC-StructureMapPRAPARE&quot; = &quot;SDOHCCPRAPAREMap&quot;\n\nuses &quot;http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse&quot; alias questionnaireResponse as source\nuses &quot;http://hl7.org/fhir/StructureDefinition/Bundle&quot; as target\nuses &quot;http://hl7.org/fhir/StructureDefinition/Observation&quot; as target\nuses &quot;http://hl7.org/fhir/StructureDefinition/Condition&quot; alias sdohccCondition as target\nuses &quot;http://hl7.org/fhir/StructureDefinition/Observation&quot; 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-BundlePRAPAREExample' &quot;bundleId&quot;;\n  src -&gt; bundle.type = 'transaction' &quot;bundleType&quot;;\n    \n  //for each answer item in the questionnareResponse, create an Observation and add it to the groupObservation\n  src.item as rootItem then \n    rootContent(src, rootItem, bundle);\n\n  //create group observation containing all observations as hasMember\n  src -&gt; bundle.entry as entry, entry.resource = create('sdohccObservation') as groupObservation then \n    TransformGroupObservation(src, bundle, groupObservation, entry) &quot;bundleGroupObsn&quot;;  \n}\n\ngroup rootContent(source qResponse: questionnaireResponse, source rootItem, target bundle) {\n  rootItem.item as groupItem then \n    groupContent(qResponse, groupItem, bundle);\n}\n\ngroup groupContent(source qResponse: questionnaireResponse, source groupItem, target bundle) {\n  groupItem.item as answerItem then\n    itemContent(qResponse, answerItem, bundle);\n}\n\ngroup itemContent(source qResponse: questionnaireResponse, source answerItem, target bundle) {\n  //create a single Observation for questions that can only have one answer\n  answerItem where answerItem.linkId != '/93043-8/32624-9' and answerItem.linkId != '/93041-2/93031-3' and answerItem.linkId != '/93041-2/93030-5'-&gt; bundle.entry as entry, entry.resource = create('sdohccObservation') as observation then \n    TransformObservation(qResponse, answerItem, bundle, observation, entry, bundle) &quot;obsn&quot;;\n\n  //create multiple Observations for each answer on questions that can have multiple answers (Question 2, 14 and 15)\n  answerItem.answer as answer where answerItem.linkId = '/93043-8/32624-9' or answerItem.linkId = '/93041-2/93031-3' or answerItem.linkId = '/93041-2/93030-5' -&gt; bundle.entry as entry, entry.resource = create('sdohccObservation') as observation then \n    TransformObservation(qResponse, answerItem, bundle, observation, entry, bundle),\n    SetValueCodeableConceptFromAnswer(answer, observation);\n}\n\ngroup SetValueCodeableConceptFromAnswer(source answer, target observation) {\n  answer -&gt; observation.value = create('CodeableConcept') as newCC then {\n    answer.value as coding -&gt; newCC.coding = coding as newCoding;\n  } &quot;obsnValue&quot;;\n}\n\ngroup TransformObservation(source src: questionnaireResponse, source answerItem, source srcBundle: Bundle, target observation: sdohccObservation, target entry, target bundle: Bundle)\n{\n  src -&gt; observation.id = uuid() then\n  \tSetObservationFullUrl(observation, entry) &quot;obsnFullUrl&quot;;\n  src -&gt; observation.status = 'final' &quot;obsnStatus&quot;;\n  src -&gt; observation.category = cc('http://terminology.hl7.org/CodeSystem/observation-category', 'social-history', 'Social History') &quot;obsnCatSocialHistory&quot;;\n  src -&gt; observation.category = cc('http://terminology.hl7.org/CodeSystem/observation-category', 'survey', 'Survey') &quot;obsnCatSurvey&quot;;\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' &quot;obsnMetaProfile&quot;;\n  } &quot;obsnMeta&quot;;\n\n  //set dates\n  src.authored as authored -&gt; observation.issued = authored, observation.effective = authored;\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  src.subject as qSubject -&gt; observation.performer = 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.id as id -&gt; observation.derivedFrom = create('Reference') as newReference then {\n    id -&gt; newReference.reference = append('QuestionnaireResponse/', id) &quot;obsnDerivedFromReference&quot;;\n  } &quot;obsnDerivedFrom&quot;;\n\n  //answerItem.answer as answer -&gt; observation.id = uuid() then\n  //\tSetValue(answer, observation);\n\n  //Set observation.code mapping for each corresponding answer\n\n  // 1. Ethnicity\n  answerItem where linkId = '/93043-8/56051-6' -&gt; observation.code = cc('http://loinc.org', '56051-6') as code then \n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeEthnicity&quot;;\n  answerItem where linkId = '/93043-8/56051-6' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'sdoh-category-unspecified' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'SDOH Category Unspecified' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 2. Race\n  //TBD: How to handle &quot;Others&quot; text?\n  answerItem where linkId = '/93043-8/32624-9' -&gt; observation.code = cc('http://loinc.org', '32624-9') as code &quot;obsCodeRace&quot;;\n  answerItem where linkId = '/93043-8/32624-9' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'sdoh-category-unspecified' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'SDOH Category Unspecified' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 3. Farm Worker Status\n  answerItem where linkId = '/93043-8/93035-4' -&gt; observation.code = cc('http://loinc.org', '93035-4') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeFarmWorkerStatus&quot;;\n  answerItem where linkId = '/93043-8/93035-4' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'sdoh-category-unspecified' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'SDOH Category Unspecified' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 4. Veteran Status\n  answerItem where linkId = '/93043-8/93034-7' -&gt; observation.code = cc('http://loinc.org', '93034-7') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeVetStatus&quot;;\n  answerItem where linkId = '/93043-8/93034-7' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'veteran-status' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Veteran Status' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;  \n  \n  // 5. English Proficiency\n  answerItem where linkId = '/93043-8/54899-0' -&gt; observation.code = cc('http://loinc.org', '54899-0') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeEngProf&quot;;\n  answerItem where linkId = '/93043-8/54899-0' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'sdoh-category-unspecified' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'SDOH Category Unspecified' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 6. Household Size\n  answerItem where linkId = '/93042-0/63512-8' -&gt; observation.code = cc('http://loinc.org', '63512-8') as code then {\n    answerItem.answer as answer -&gt; observation.value = create('Quantity') as newQty then {\n      answer.value as vs -&gt; newQty.value = vs &quot;obsnQtyValue&quot;;\n      src -&gt; newQty.unit = '{#}' &quot;obsnQtyUnit&quot;;\n      src -&gt; newQty.system = 'http://unitsofmeasure.org' &quot;obsnQtySystem&quot;;\n      src -&gt; newQty.code = '{#}' &quot;obsnQtyCode&quot;;\n    } &quot;obsnValue&quot;;\n  } &quot;obsnCodeHouseholdSize&quot;;\n  answerItem where linkId = '/93042-0/63512-8' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'sdoh-category-unspecified' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'SDOH Category Unspecified' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 7. Housing\n  answerItem where linkId = '/93042-0/71802-3' -&gt; observation.code = cc('http://loinc.org', '71802-3') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeHousing&quot;;\n  answerItem where linkId = '/93042-0/71802-3' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'homelessness' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Homelessness' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 8. Housing Status\n  answerItem where linkId = '/93042-0/93033-9' -&gt; observation.code = cc('http://loinc.org', '93033-9') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeHousingStatus&quot;;\n  answerItem where linkId = '/93042-0/93033-9' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'housing-instability' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Housing Instability' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 9. Neighborhood\n  answerItem where linkId = '/93042-0/56799-0' -&gt; observation.code = cc('http://loinc.org', '56799-0') as code then\n    SetValue(answerItem, observation) &quot;obsnCodeNeighborhood&quot;;\n  answerItem where linkId = '/93042-0/56799-0' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'sdoh-category-unspecified' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'SDOH Category Unspecified' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 10. Education\n  answerItem where linkId = '/93041-2/82589-3' -&gt; observation.code = cc('http://loinc.org', '82589-3') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeEducation&quot;;\n  answerItem where linkId = '/93041-2/82589-3' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'educational-attainment' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Educational Attainment' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 11. Employment\n  answerItem where linkId = '/93041-2/67875-5' -&gt; observation.code = cc('http://loinc.org', '67875-5') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeEmployment&quot;;\n  answerItem where linkId = '/93041-2/67875-5' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'employment-status' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Employment Status' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 12. Insurance\n  answerItem where linkId = '/93041-2/76437-3' -&gt; observation.code = cc('http://loinc.org', '76437-3') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeInsurance&quot;;\n  answerItem where linkId = '/93041-2/76437-3' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'health-insurance-coverage-status' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Health Insurance Coverage Status' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 13. Household Income\n  answerItem where linkId = '/93041-2/63586-2' -&gt; observation.code = cc('http://loinc.org', '63586-2') as code then {\n    answerItem.answer as answer -&gt; observation.value = create('Quantity') as newQty then {\n      answer.value as vs -&gt; newQty.value = vs &quot;obsnQtyValue&quot;;\n      src -&gt; newQty.unit = '/a' &quot;obsnQtyUnit&quot;;\n      src -&gt; newQty.system = 'http://unitsofmeasure.org' &quot;obsnQtySystem&quot;;\n      src -&gt; newQty.code = '/a' &quot;obsnQtyCode&quot;;\n    } &quot;obsnBalue&quot;;\n  } &quot;obsnCodeHouseholdIncome&quot;;\n  answerItem where linkId = '/93041-2/63586-2' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'sdoh-category-unspecified' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'SDOH Category Unspecified' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;  \n\n  // 14. Material Security\n  answerItem where linkId = '/93041-2/93031-3' -&gt; observation.code = cc('http://loinc.org', '93031-3') as code &quot;obsnCodeMaterialSecurity&quot;;\n  // answer: Food\n  answerItem where linkId = '/93041-2/93031-3' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'material-hardship' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Material Hardship' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n  \n  // 15. Transportation\n  answerItem where linkId = '/93041-2/93030-5' -&gt; observation.code = cc('http://loinc.org', '93030-5') as code &quot;obsnCodeTransportation&quot;;\n  answerItem where linkId = '/93041-2/93030-5' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'transportation-insecurity' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Transportation Insecurity' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 16. Social Integration\n  answerItem where linkId = '/93040-4/93029-7' -&gt; observation.code = cc('http://loinc.org', '93029-7') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeSocInteg&quot;;\n  answerItem where linkId = '/93040-4/93029-7' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'social-connection' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Social Connection' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 17. Stress\n  answerItem where linkId = '/93040-4/93038-8' -&gt; observation.code = cc('http://loinc.org', '93038-8') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeStress&quot;;\n  answerItem where linkId = '/93040-4/93038-8' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'stress' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Stress' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 18. Incarceration\n  answerItem where linkId = '/93039-6/93028-9' -&gt; observation.code = cc('http://loinc.org', '93028-9') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeIncarceration&quot;;\n  answerItem where linkId = '/93039-6/93028-9' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'sdoh-category-unspecified' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'SDOH Category Unspecified' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 19. Refugee\n  answerItem where linkId = '/93039-6/93027-1' -&gt; observation.code = cc('http://loinc.org', '93027-1') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeRefugee&quot;;\n  answerItem where linkId = '/93039-6/93027-1' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'sdoh-category-unspecified' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'SDOH Category Unspecified' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 20. Safety\n  answerItem where linkId = '/93039-6/93026-3' -&gt; observation.code = cc('http://loinc.org', '93026-3') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeSafety&quot;;\n  answerItem where linkId = '/93039-6/93026-3' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'sdoh-category-unspecified' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'SDOH Category Unspecified' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  // 21. Domestic Violence\n  answerItem where linkId = '/93039-6/76501-6' -&gt; observation.code = cc('http://loinc.org', '76501-6') as code then\n    SetValueCodeableConcept(answerItem, observation) &quot;obsnCodeDomViolence&quot;;\n  answerItem where linkId = '/93039-6/76501-6' -&gt; observation.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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;obsnCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'intimate-partner-violence' &quot;obsnCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Intimate Partner Violence' &quot;obsnCatCodingDisplay&quot;;\n    } &quot;obsnCatCoding&quot;;\n  } &quot;obsnCat&quot;;\n\n  //create a Condition if homeless\n  answerItem where linkId = '/93042-0/71802-3' and answer.value.code ='LA30190-5' -&gt; bundle.entry as entry, entry.resource = create('sdohccCondition') as condition then\n    TransformCondition(src, bundle, condition, entry), SetConditionCodeAndEvidence1(src, srcBundle, condition) &quot;conditionHomeless&quot;;\n\n  //create a Condition if unemployed\n  answerItem where linkId = '/93041-2/67875-5' and answer.value.code ='LA17956-6' -&gt; bundle.entry as entry, entry.resource = create('sdohccCondition') as condition then\n    TransformCondition(src, bundle, condition, entry), SetConditionCodeAndEvidence2(src, srcBundle, condition) &quot;conditionUnemployed&quot;;\n\n  src -&gt; entry.request as request then {\n    src -&gt; request.method = 'POST' &quot;obsnRequestMethod&quot;;\n    src -&gt; request.url = 'Observation' &quot;obsnRequestUrl&quot;;\n  } &quot;obsnEntryRequest&quot;;\n}\n\ngroup SetValue(source answerItem, target observation) {\n  answerItem.answer as answer -&gt; observation.id as id then {\n    answer.value as vs -&gt; observation.value = vs;\n  };\n}\n\ngroup SetValueCodeableConcept(source src, target observation) {\n  src.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\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, target condition: sdohccCondition, target entry)\n{\n  src -&gt; condition.id = uuid() then\n    SetConditionFullUrl(condition, entry) &quot;conditionFullUrl&quot;;\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' &quot;conditionMetaProfile&quot;;\n  } &quot;conditionMeta&quot;;\n\n  src -&gt; condition.clinicalStatus = cc('http://terminology.hl7.org/CodeSystem/condition-clinical', 'active', 'Active') &quot;conditionClinicalStatus&quot;;\n  src -&gt; condition.verificationStatus = cc('http://terminology.hl7.org/CodeSystem/condition-ver-status', 'unconfirmed', 'Unconfirmed') &quot;conditionVerificationStatus&quot;;\n\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' &quot;conditionCatCodingSystem&quot;;\n      src -&gt; newCoding.code = 'health-concern' &quot;conditionCatCodingCode&quot;;\n      src -&gt; newCoding.display = 'Health Concern' &quot;conditionCatCodingDisplay&quot;;\n    } &quot;conditionCatCoding&quot;;\n  } &quot;conditionCat&quot;;\n    \n  src.authored as authored -&gt; condition.onset = create('Period') as period,\n    period.start = authored &quot;conditionOnset&quot;;\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.subject as qSubject -&gt; condition.asserter = 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' &quot;conditionRequestMethod&quot;;\n    src -&gt; request.url = 'Condition' &quot;conditionRequestUrl&quot;;\n  } &quot;conditionEntryRequest&quot;;    \n}\n\ngroup SetConditionFullUrl(source condition: sdohccCondition, target entry)\n{\n  condition.id as id -&gt; entry.fullUrl = append('http://hl7.org/fhir/us/sdoh-clinicalcare/Condition/', id);\n}\n\ngroup SetConditionCodeAndEvidence1(source src: questionnaireResponse, source bundle, target condition)\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' &quot;conditionCodeCodingSystem&quot;;\n        src -&gt; newCoding.code = '32911000' &quot;conditionCodeCodingCode&quot;;\n        src -&gt; newCoding.display = 'Homeless' &quot;conditionCodeCodingDisplay&quot;;\n    } &quot;conditionCoding&quot;;\n    src -&gt; newCodeCC.coding = create('Coding') as newCoding2 then {\n        src -&gt; newCoding2.system = 'http://hl7.org/fhir/sid/icd-10-cm' &quot;conditionCodeCodingSystem&quot;;\n        src -&gt; newCoding2.code = 'Z59.0' &quot;conditionCodeCodingCode&quot;;\n        src -&gt; newCoding2.display = 'Homelessness' &quot;conditionCodeCodingDisplay&quot;;\n    } &quot;conditionCoding&quot;;\n  } &quot;conditionCode&quot;;\n  \n  //Add sdoh category\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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;conditionCatCodingSystem&quot;;\n        src -&gt; newCoding.code = 'homelessness' &quot;conditionCatCodingCode&quot;;\n        src -&gt; newCoding.display = 'Homelessness' &quot;conditionCatCodingDisplay&quot;;\n    } &quot;conditionCatCoding&quot;;\n  } &quot;conditionCat&quot;;\n\n  bundle.entry as entries -&gt; condition.evidence as evidence, evidence.detail = create('Reference') as detailReference then {\n  \tentries.resource as obs where code.coding.code = '71802-3'-&gt; detailReference.reference = reference(obs) &quot;conditionEvidence&quot;;\n  };\n}\n\ngroup SetConditionCodeAndEvidence2(source src: questionnaireResponse, source bundle, target condition)\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' &quot;conditionCodeCodingSystem&quot;;\n        src -&gt; newCoding.code = '73438004' &quot;conditionCodeCodingCode&quot;;\n        src -&gt; newCoding.display = 'Unemployed' &quot;conditionCodeCodingDisplay&quot;;\n    } &quot;conditionCoding&quot;;\n    src -&gt; newCodeCC.coding = create('Coding') as newCoding2 then {\n        src -&gt; newCoding2.system = 'http://hl7.org/fhir/sid/icd-10-cm' &quot;conditionCodeCodingSystem&quot;;\n        src -&gt; newCoding2.code = 'Z56.0' &quot;conditionCodeCodingCode&quot;;\n        src -&gt; newCoding2.display = 'Unemployment, unspecified' &quot;conditionCodeCodingDisplay&quot;;\n    } &quot;conditionCoding&quot;;\n  } &quot;conditionCode&quot;; \n  //Add sdoh category\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/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes' &quot;conditionCatCodingSystem&quot;;\n        src -&gt; newCoding.code = 'employment-status' &quot;conditionCatCodingCode&quot;;\n        src -&gt; newCoding.display = 'Employment Status' &quot;conditionCatCodingDisplay&quot;;\n    } &quot;conditionCatCoding&quot;;\n  }&quot;conditionCat&quot;;  \n  bundle.entry as entries -&gt; condition.evidence as evidence, evidence.detail = create('Reference') as detailReference then {\n  \tentries.resource as obs where code.coding.code = '67875-5'-&gt; detailReference.reference = reference(obs)  &quot;conditionEvidence&quot;; \n  };\n}\n\ngroup TransformGroupObservation(source src: questionnaireResponse, source bundle:Bundle, target groupObservation: Observation, target entry)\n{\n  src -&gt; groupObservation.id = uuid() then\n    SetObservationFullUrl(groupObservation, entry) &quot;grpObsnFullUrl&quot;; \n  src -&gt; groupObservation.status = 'final' &quot;grpObsnStatus&quot;; \n  src -&gt; groupObservation.category = cc('http://terminology.hl7.org/CodeSystem/observation-category', 'social-history', 'Social History') &quot;grpObsnCatSocialHistory&quot;;\n  src -&gt; groupObservation.category = cc('http://terminology.hl7.org/CodeSystem/observation-category', 'survey', 'Survey') &quot;grpObsnCatSurvey&quot;;\n\n  src -&gt; groupObservation.meta = create('Meta') as newMeta then {\n    src -&gt; newMeta.profile = 'http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse' &quot;grpObsnMetaProfile&quot;;\n  } &quot;grpObsMeta&quot;; \n\n  src.authored as authored -&gt; groupObservation.effective = authored;\n  src.subject as qSubject -&gt; groupObservation.subject = create('Reference') as newReference then {\n    qSubject.reference as qReference -&gt; newReference.reference = qReference &quot;grpObsnSubjRef&quot;;\n    qSubject.display as qDisplay -&gt; newReference.display = qDisplay &quot;grpObsnSubjDisplay&quot;;\n  } &quot;grpObsnSubject&quot;;  \n\n  src -&gt; groupObservation.code = cc('http://loinc.org', '93025-5') &quot;grpObsnCode&quot;;   \n\n  //only add observations that are derived from the answers\n  bundle.entry as entries -&gt; groupObservation.hasMember = create('Reference') as df then {\n    entries.resource as obs where status.exists() and hasMember.exists().not() -&gt; df.reference = reference(obs) &quot;grpObsnHasMemberReference&quot;; \n  } &quot;grpObsnHasMember&quot;;\n\n  src.id as id -&gt; groupObservation.derivedFrom = create('Reference') as newReference then {\n    id -&gt; newReference.reference = append('QuestionnaireResponse/', id) &quot;grpObsnDerivedFromReference&quot;;\n  } &quot;grpObsnDerivedFrom&quot;;\n\n  src -&gt; entry.request as request then {\n    src -&gt; request.method = 'POST' &quot;obsnRequestMethod&quot;;\n    src -&gt; request.url = 'Observation' &quot;obsnRequestUrl&quot;;\n  } &quot;obsnEntryRequest&quot;;    \n}</pre>\n    </div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode" : "pc"
    }
  ],
  "url" : "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureMap/SDOHCC-StructureMapPRAPARE",
  "version" : "2.2.0",
  "name" : "SDOHCCPRAPAREMap",
  "status" : "draft",
  "date" : "2024-08-27T17:19:22+00:00",
  "publisher" : "HL7 International / Patient Care",
  "contact" : [
    {
      "name" : "HL7 International / Patient Care",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/patientcare"
        },
        {
          "system" : "email",
          "value" : "patientcare@lists.hl7.org"
        }
      ]
    }
  ],
  "description" : "A StructureMap instance that represents the resource that transforms specific questions and answers from the PRAPARE questionnaire represented in LOINC (code 93025-5) into their corresponding Observations and derived Conditions (health concerns)",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "US",
          "display" : "United States of America"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse",
      "mode" : "source",
      "alias" : "questionnaireResponse"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Bundle",
      "mode" : "target"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "mode" : "target"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Condition",
      "mode" : "target",
      "alias" : "sdohccCondition"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Observation",
      "mode" : "target",
      "alias" : "sdohccObservation"
    }
  ],
  "group" : [
    {
      "name" : "sdohMapping",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "type" : "questionnaireResponse",
          "mode" : "source"
        },
        {
          "name" : "bundle",
          "type" : "Bundle",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "bundleId",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "bundle",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "SDOHCC-BundlePRAPAREExample"
                }
              ]
            }
          ]
        },
        {
          "name" : "bundleType",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "bundle",
              "contextType" : "variable",
              "element" : "type",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "transaction"
                }
              ]
            }
          ]
        },
        {
          "name" : "item",
          "source" : [
            {
              "context" : "src",
              "element" : "item",
              "variable" : "rootItem"
            }
          ],
          "dependent" : [
            {
              "name" : "rootContent",
              "variable" : [
                "src",
                "rootItem",
                "bundle"
              ]
            }
          ]
        },
        {
          "name" : "bundleGroupObsn",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "bundle",
              "contextType" : "variable",
              "element" : "entry",
              "variable" : "entry"
            },
            {
              "context" : "entry",
              "contextType" : "variable",
              "element" : "resource",
              "variable" : "groupObservation",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "sdohccObservation"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "TransformGroupObservation",
              "variable" : [
                "src",
                "bundle",
                "groupObservation",
                "entry"
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "rootContent",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "qResponse",
          "type" : "questionnaireResponse",
          "mode" : "source"
        },
        {
          "name" : "rootItem",
          "mode" : "source"
        },
        {
          "name" : "bundle",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "item",
          "source" : [
            {
              "context" : "rootItem",
              "element" : "item",
              "variable" : "groupItem"
            }
          ],
          "dependent" : [
            {
              "name" : "groupContent",
              "variable" : [
                "qResponse",
                "groupItem",
                "bundle"
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "groupContent",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "qResponse",
          "type" : "questionnaireResponse",
          "mode" : "source"
        },
        {
          "name" : "groupItem",
          "mode" : "source"
        },
        {
          "name" : "bundle",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "item",
          "source" : [
            {
              "context" : "groupItem",
              "element" : "item",
              "variable" : "answerItem"
            }
          ],
          "dependent" : [
            {
              "name" : "itemContent",
              "variable" : [
                "qResponse",
                "answerItem",
                "bundle"
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "itemContent",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "qResponse",
          "type" : "questionnaireResponse",
          "mode" : "source"
        },
        {
          "name" : "answerItem",
          "mode" : "source"
        },
        {
          "name" : "bundle",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "obsn",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "(answerItem.linkId != '/93043-8/32624-9') and (answerItem.linkId != '/93041-2/93031-3') and (answerItem.linkId != '/93041-2/93030-5')"
            }
          ],
          "target" : [
            {
              "context" : "bundle",
              "contextType" : "variable",
              "element" : "entry",
              "variable" : "entry"
            },
            {
              "context" : "entry",
              "contextType" : "variable",
              "element" : "resource",
              "variable" : "observation",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "sdohccObservation"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "TransformObservation",
              "variable" : [
                "qResponse",
                "answerItem",
                "bundle",
                "observation",
                "entry",
                "bundle"
              ]
            }
          ]
        },
        {
          "name" : "answer",
          "source" : [
            {
              "context" : "answerItem",
              "element" : "answer",
              "variable" : "answer",
              "condition" : "(answerItem.linkId = '/93043-8/32624-9') or (answerItem.linkId = '/93041-2/93031-3') or (answerItem.linkId = '/93041-2/93030-5')"
            }
          ],
          "target" : [
            {
              "context" : "bundle",
              "contextType" : "variable",
              "element" : "entry",
              "variable" : "entry"
            },
            {
              "context" : "entry",
              "contextType" : "variable",
              "element" : "resource",
              "variable" : "observation",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "sdohccObservation"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "TransformObservation",
              "variable" : [
                "qResponse",
                "answerItem",
                "bundle",
                "observation",
                "entry",
                "bundle"
              ]
            },
            {
              "name" : "SetValueCodeableConceptFromAnswer",
              "variable" : [
                "answer",
                "observation"
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "SetValueCodeableConceptFromAnswer",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "answer",
          "mode" : "source"
        },
        {
          "name" : "observation",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "obsnValue",
          "source" : [
            {
              "context" : "answer"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "value",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "value",
              "source" : [
                {
                  "context" : "answer",
                  "element" : "value",
                  "variable" : "coding"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "coding"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "TransformObservation",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "type" : "questionnaireResponse",
          "mode" : "source"
        },
        {
          "name" : "answerItem",
          "mode" : "source"
        },
        {
          "name" : "srcBundle",
          "type" : "Bundle",
          "mode" : "source"
        },
        {
          "name" : "observation",
          "type" : "sdohccObservation",
          "mode" : "target"
        },
        {
          "name" : "entry",
          "mode" : "target"
        },
        {
          "name" : "bundle",
          "type" : "Bundle",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "obsnFullUrl",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ],
          "dependent" : [
            {
              "name" : "SetObservationFullUrl",
              "variable" : [
                "observation",
                "entry"
              ]
            }
          ]
        },
        {
          "name" : "obsnStatus",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCatSocialHistory",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://terminology.hl7.org/CodeSystem/observation-category"
                },
                {
                  "valueString" : "social-history"
                },
                {
                  "valueString" : "Social History"
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCatSurvey",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://terminology.hl7.org/CodeSystem/observation-category"
                },
                {
                  "valueString" : "survey"
                },
                {
                  "valueString" : "Survey"
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnMeta",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnMetaProfile",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newMeta",
                  "contextType" : "variable",
                  "element" : "profile",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "authored",
          "source" : [
            {
              "context" : "src",
              "element" : "authored",
              "variable" : "authored"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "issued",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "authored"
                }
              ]
            },
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "effective",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "authored"
                }
              ]
            }
          ]
        },
        {
          "name" : "subject",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "qSubject"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "subject",
              "variable" : "newReference",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Reference"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "reference",
              "source" : [
                {
                  "context" : "qSubject",
                  "element" : "reference",
                  "variable" : "qReference"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "reference",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "qReference"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "display",
              "source" : [
                {
                  "context" : "qSubject",
                  "element" : "display",
                  "variable" : "qDisplay"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "display",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "qDisplay"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "subject",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "qSubject"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "performer",
              "variable" : "newReference",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Reference"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "reference",
              "source" : [
                {
                  "context" : "qSubject",
                  "element" : "reference",
                  "variable" : "qReference"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "reference",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "qReference"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "display",
              "source" : [
                {
                  "context" : "qSubject",
                  "element" : "display",
                  "variable" : "qDisplay"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "display",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "qDisplay"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnDerivedFrom",
          "source" : [
            {
              "context" : "src",
              "element" : "id",
              "variable" : "id"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "derivedFrom",
              "variable" : "newReference",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Reference"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnDerivedFromReference",
              "source" : [
                {
                  "context" : "id"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "reference",
                  "transform" : "append",
                  "parameter" : [
                    {
                      "valueString" : "QuestionnaireResponse/"
                    },
                    {
                      "valueId" : "id"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeEthnicity",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93043-8/56051-6'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "56051-6"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93043-8/56051-6'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "sdoh-category-unspecified"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "SDOH Category Unspecified"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsCodeRace",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93043-8/32624-9'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "32624-9"
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93043-8/32624-9'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "sdoh-category-unspecified"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "SDOH Category Unspecified"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeFarmWorkerStatus",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93043-8/93035-4'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "93035-4"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93043-8/93035-4'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "sdoh-category-unspecified"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "SDOH Category Unspecified"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeVetStatus",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93043-8/93034-7'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "93034-7"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93043-8/93034-7'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "veteran-status"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Veteran Status"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeEngProf",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93043-8/54899-0'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "54899-0"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93043-8/54899-0'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "sdoh-category-unspecified"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "SDOH Category Unspecified"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeHouseholdSize",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93042-0/63512-8'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "63512-8"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnValue",
              "source" : [
                {
                  "context" : "answerItem",
                  "element" : "answer",
                  "variable" : "answer"
                }
              ],
              "target" : [
                {
                  "context" : "observation",
                  "contextType" : "variable",
                  "element" : "value",
                  "variable" : "newQty",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Quantity"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnQtyValue",
                  "source" : [
                    {
                      "context" : "answer",
                      "element" : "value",
                      "variable" : "vs"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newQty",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "vs"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnQtyUnit",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newQty",
                      "contextType" : "variable",
                      "element" : "unit",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "{#}"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnQtySystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newQty",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://unitsofmeasure.org"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnQtyCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newQty",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "{#}"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93042-0/63512-8'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "sdoh-category-unspecified"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "SDOH Category Unspecified"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeHousing",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93042-0/71802-3'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "71802-3"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93042-0/71802-3'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "homelessness"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Homelessness"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeHousingStatus",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93042-0/93033-9'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "93033-9"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93042-0/93033-9'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "housing-instability"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Housing Instability"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeNeighborhood",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93042-0/56799-0'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "56799-0"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValue",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93042-0/56799-0'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "sdoh-category-unspecified"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "SDOH Category Unspecified"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeEducation",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/82589-3'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "82589-3"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/82589-3'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "educational-attainment"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Educational Attainment"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeEmployment",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/67875-5'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "67875-5"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/67875-5'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "employment-status"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Employment Status"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeInsurance",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/76437-3'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "76437-3"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/76437-3'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "health-insurance-coverage-status"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Health Insurance Coverage Status"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeHouseholdIncome",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/63586-2'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "63586-2"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnBalue",
              "source" : [
                {
                  "context" : "answerItem",
                  "element" : "answer",
                  "variable" : "answer"
                }
              ],
              "target" : [
                {
                  "context" : "observation",
                  "contextType" : "variable",
                  "element" : "value",
                  "variable" : "newQty",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Quantity"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnQtyValue",
                  "source" : [
                    {
                      "context" : "answer",
                      "element" : "value",
                      "variable" : "vs"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newQty",
                      "contextType" : "variable",
                      "element" : "value",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueId" : "vs"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnQtyUnit",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newQty",
                      "contextType" : "variable",
                      "element" : "unit",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "/a"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnQtySystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newQty",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://unitsofmeasure.org"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnQtyCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newQty",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "/a"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/63586-2'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "sdoh-category-unspecified"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "SDOH Category Unspecified"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeMaterialSecurity",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/93031-3'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "93031-3"
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/93031-3'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "material-hardship"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Material Hardship"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeTransportation",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/93030-5'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "93030-5"
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93041-2/93030-5'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "transportation-insecurity"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Transportation Insecurity"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeSocInteg",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93040-4/93029-7'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "93029-7"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93040-4/93029-7'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "social-connection"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Social Connection"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeStress",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93040-4/93038-8'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "93038-8"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93040-4/93038-8'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "stress"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Stress"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeIncarceration",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93039-6/93028-9'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "93028-9"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93039-6/93028-9'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "sdoh-category-unspecified"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "SDOH Category Unspecified"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeRefugee",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93039-6/93027-1'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "93027-1"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93039-6/93027-1'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "sdoh-category-unspecified"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "SDOH Category Unspecified"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeSafety",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93039-6/93026-3'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "93026-3"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93039-6/93026-3'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "sdoh-category-unspecified"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "SDOH Category Unspecified"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnCodeDomViolence",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93039-6/76501-6'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "76501-6"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "SetValueCodeableConcept",
              "variable" : [
                "answerItem",
                "observation"
              ]
            }
          ]
        },
        {
          "name" : "obsnCat",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "linkId = '/93039-6/76501-6'"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "obsnCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "obsnCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "intimate-partner-violence"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "obsnCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Intimate Partner Violence"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "conditionHomeless",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "(linkId = '/93042-0/71802-3') and (answer.value.code = 'LA30190-5')"
            }
          ],
          "target" : [
            {
              "context" : "bundle",
              "contextType" : "variable",
              "element" : "entry",
              "variable" : "entry"
            },
            {
              "context" : "entry",
              "contextType" : "variable",
              "element" : "resource",
              "variable" : "condition",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "sdohccCondition"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "TransformCondition",
              "variable" : [
                "src",
                "bundle",
                "condition",
                "entry"
              ]
            },
            {
              "name" : "SetConditionCodeAndEvidence1",
              "variable" : [
                "src",
                "srcBundle",
                "condition"
              ]
            }
          ]
        },
        {
          "name" : "conditionUnemployed",
          "source" : [
            {
              "context" : "answerItem",
              "condition" : "(linkId = '/93041-2/67875-5') and (answer.value.code = 'LA17956-6')"
            }
          ],
          "target" : [
            {
              "context" : "bundle",
              "contextType" : "variable",
              "element" : "entry",
              "variable" : "entry"
            },
            {
              "context" : "entry",
              "contextType" : "variable",
              "element" : "resource",
              "variable" : "condition",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "sdohccCondition"
                }
              ]
            }
          ],
          "dependent" : [
            {
              "name" : "TransformCondition",
              "variable" : [
                "src",
                "bundle",
                "condition",
                "entry"
              ]
            },
            {
              "name" : "SetConditionCodeAndEvidence2",
              "variable" : [
                "src",
                "srcBundle",
                "condition"
              ]
            }
          ]
        },
        {
          "name" : "obsnEntryRequest",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "entry",
              "contextType" : "variable",
              "element" : "request",
              "variable" : "request"
            }
          ],
          "rule" : [
            {
              "name" : "obsnRequestMethod",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "request",
                  "contextType" : "variable",
                  "element" : "method",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "POST"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "obsnRequestUrl",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "request",
                  "contextType" : "variable",
                  "element" : "url",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "Observation"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "SetValue",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "answerItem",
          "mode" : "source"
        },
        {
          "name" : "observation",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "answer",
          "source" : [
            {
              "context" : "answerItem",
              "element" : "answer",
              "variable" : "answer"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "id",
              "variable" : "id"
            }
          ],
          "rule" : [
            {
              "name" : "value",
              "source" : [
                {
                  "context" : "answer",
                  "element" : "value",
                  "variable" : "vs"
                }
              ],
              "target" : [
                {
                  "context" : "observation",
                  "contextType" : "variable",
                  "element" : "value",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "vs"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "SetValueCodeableConcept",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "observation",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "answer",
          "source" : [
            {
              "context" : "src",
              "element" : "answer",
              "variable" : "answer"
            }
          ],
          "target" : [
            {
              "context" : "observation",
              "contextType" : "variable",
              "element" : "value",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "value",
              "source" : [
                {
                  "context" : "answer",
                  "element" : "value",
                  "variable" : "coding"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "coding"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "SetObservationFullUrl",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "observation",
          "type" : "Observation",
          "mode" : "source"
        },
        {
          "name" : "entry",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id",
          "source" : [
            {
              "context" : "observation",
              "element" : "id",
              "variable" : "id"
            }
          ],
          "target" : [
            {
              "context" : "entry",
              "contextType" : "variable",
              "element" : "fullUrl",
              "transform" : "append",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/Observation/"
                },
                {
                  "valueId" : "id"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "TransformCondition",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "type" : "questionnaireResponse",
          "mode" : "source"
        },
        {
          "name" : "bundle",
          "mode" : "source"
        },
        {
          "name" : "condition",
          "type" : "sdohccCondition",
          "mode" : "target"
        },
        {
          "name" : "entry",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "conditionFullUrl",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ],
          "dependent" : [
            {
              "name" : "SetConditionFullUrl",
              "variable" : [
                "condition",
                "entry"
              ]
            }
          ]
        },
        {
          "name" : "conditionMeta",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "conditionMetaProfile",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newMeta",
                  "contextType" : "variable",
                  "element" : "profile",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-Condition"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "conditionClinicalStatus",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "clinicalStatus",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://terminology.hl7.org/CodeSystem/condition-clinical"
                },
                {
                  "valueString" : "active"
                },
                {
                  "valueString" : "Active"
                }
              ]
            }
          ]
        },
        {
          "name" : "conditionVerificationStatus",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "verificationStatus",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://terminology.hl7.org/CodeSystem/condition-ver-status"
                },
                {
                  "valueString" : "unconfirmed"
                },
                {
                  "valueString" : "Unconfirmed"
                }
              ]
            }
          ]
        },
        {
          "name" : "conditionCat",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "conditionCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "conditionCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/core/CodeSystem/condition-category"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "health-concern"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Health Concern"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "conditionOnset",
          "source" : [
            {
              "context" : "src",
              "element" : "authored",
              "variable" : "authored"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "onset",
              "variable" : "period",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Period"
                }
              ]
            },
            {
              "context" : "period",
              "contextType" : "variable",
              "element" : "start",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "authored"
                }
              ]
            }
          ]
        },
        {
          "name" : "subject",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "qSubject"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "subject",
              "variable" : "newReference",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Reference"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "reference",
              "source" : [
                {
                  "context" : "qSubject",
                  "element" : "reference",
                  "variable" : "qReference"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "reference",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "qReference"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "display",
              "source" : [
                {
                  "context" : "qSubject",
                  "element" : "display",
                  "variable" : "qDisplay"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "display",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "qDisplay"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "subject",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "qSubject"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "asserter",
              "variable" : "newReference",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Reference"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "reference",
              "source" : [
                {
                  "context" : "qSubject",
                  "element" : "reference",
                  "variable" : "qReference"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "reference",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "qReference"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "display",
              "source" : [
                {
                  "context" : "qSubject",
                  "element" : "display",
                  "variable" : "qDisplay"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "display",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "qDisplay"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "conditionEntryRequest",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "entry",
              "contextType" : "variable",
              "element" : "request",
              "variable" : "request"
            }
          ],
          "rule" : [
            {
              "name" : "conditionRequestMethod",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "request",
                  "contextType" : "variable",
                  "element" : "method",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "POST"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "conditionRequestUrl",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "request",
                  "contextType" : "variable",
                  "element" : "url",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "Condition"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "SetConditionFullUrl",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "condition",
          "type" : "sdohccCondition",
          "mode" : "source"
        },
        {
          "name" : "entry",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "id",
          "source" : [
            {
              "context" : "condition",
              "element" : "id",
              "variable" : "id"
            }
          ],
          "target" : [
            {
              "context" : "entry",
              "contextType" : "variable",
              "element" : "fullUrl",
              "transform" : "append",
              "parameter" : [
                {
                  "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/Condition/"
                },
                {
                  "valueId" : "id"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "SetConditionCodeAndEvidence1",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "type" : "questionnaireResponse",
          "mode" : "source"
        },
        {
          "name" : "bundle",
          "mode" : "source"
        },
        {
          "name" : "condition",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "conditionCode",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "newCodeCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "conditionCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCodeCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "conditionCodeCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://snomed.info/sct"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCodeCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "32911000"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCodeCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Homeless"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "conditionCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCodeCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding2",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "conditionCodeCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding2",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/sid/icd-10-cm"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCodeCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding2",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Z59.0"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCodeCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding2",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Homelessness"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "conditionCat",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "conditionCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "conditionCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "homelessness"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Homelessness"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "entry",
          "source" : [
            {
              "context" : "bundle",
              "element" : "entry",
              "variable" : "entries"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "evidence",
              "variable" : "evidence"
            },
            {
              "context" : "evidence",
              "contextType" : "variable",
              "element" : "detail",
              "variable" : "detailReference",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Reference"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "conditionEvidence",
              "source" : [
                {
                  "context" : "entries",
                  "element" : "resource",
                  "variable" : "obs",
                  "condition" : "code.coding.code = '71802-3'"
                }
              ],
              "target" : [
                {
                  "context" : "detailReference",
                  "contextType" : "variable",
                  "element" : "reference",
                  "transform" : "reference",
                  "parameter" : [
                    {
                      "valueId" : "obs"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "SetConditionCodeAndEvidence2",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "type" : "questionnaireResponse",
          "mode" : "source"
        },
        {
          "name" : "bundle",
          "mode" : "source"
        },
        {
          "name" : "condition",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "conditionCode",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "code",
              "variable" : "newCodeCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "conditionCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCodeCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "conditionCodeCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://snomed.info/sct"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCodeCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "73438004"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCodeCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Unemployed"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "name" : "conditionCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCodeCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding2",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "conditionCodeCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding2",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/sid/icd-10-cm"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCodeCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding2",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Z56.0"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCodeCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding2",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Unemployment, unspecified"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "conditionCat",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "category",
              "variable" : "newCC",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "CodeableConcept"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "conditionCatCoding",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newCC",
                  "contextType" : "variable",
                  "element" : "coding",
                  "variable" : "newCoding",
                  "transform" : "create",
                  "parameter" : [
                    {
                      "valueString" : "Coding"
                    }
                  ]
                }
              ],
              "rule" : [
                {
                  "name" : "conditionCatCodingSystem",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "system",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCatCodingCode",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "code",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "employment-status"
                        }
                      ]
                    }
                  ]
                },
                {
                  "name" : "conditionCatCodingDisplay",
                  "source" : [
                    {
                      "context" : "src"
                    }
                  ],
                  "target" : [
                    {
                      "context" : "newCoding",
                      "contextType" : "variable",
                      "element" : "display",
                      "transform" : "copy",
                      "parameter" : [
                        {
                          "valueString" : "Employment Status"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "entry",
          "source" : [
            {
              "context" : "bundle",
              "element" : "entry",
              "variable" : "entries"
            }
          ],
          "target" : [
            {
              "context" : "condition",
              "contextType" : "variable",
              "element" : "evidence",
              "variable" : "evidence"
            },
            {
              "context" : "evidence",
              "contextType" : "variable",
              "element" : "detail",
              "variable" : "detailReference",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Reference"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "conditionEvidence",
              "source" : [
                {
                  "context" : "entries",
                  "element" : "resource",
                  "variable" : "obs",
                  "condition" : "code.coding.code = '67875-5'"
                }
              ],
              "target" : [
                {
                  "context" : "detailReference",
                  "contextType" : "variable",
                  "element" : "reference",
                  "transform" : "reference",
                  "parameter" : [
                    {
                      "valueId" : "obs"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "TransformGroupObservation",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "src",
          "type" : "questionnaireResponse",
          "mode" : "source"
        },
        {
          "name" : "bundle",
          "type" : "Bundle",
          "mode" : "source"
        },
        {
          "name" : "groupObservation",
          "type" : "Observation",
          "mode" : "target"
        },
        {
          "name" : "entry",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "grpObsnFullUrl",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "groupObservation",
              "contextType" : "variable",
              "element" : "id",
              "transform" : "uuid"
            }
          ],
          "dependent" : [
            {
              "name" : "SetObservationFullUrl",
              "variable" : [
                "groupObservation",
                "entry"
              ]
            }
          ]
        },
        {
          "name" : "grpObsnStatus",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "groupObservation",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueString" : "final"
                }
              ]
            }
          ]
        },
        {
          "name" : "grpObsnCatSocialHistory",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "groupObservation",
              "contextType" : "variable",
              "element" : "category",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://terminology.hl7.org/CodeSystem/observation-category"
                },
                {
                  "valueString" : "social-history"
                },
                {
                  "valueString" : "Social History"
                }
              ]
            }
          ]
        },
        {
          "name" : "grpObsnCatSurvey",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "groupObservation",
              "contextType" : "variable",
              "element" : "category",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://terminology.hl7.org/CodeSystem/observation-category"
                },
                {
                  "valueString" : "survey"
                },
                {
                  "valueString" : "Survey"
                }
              ]
            }
          ]
        },
        {
          "name" : "grpObsMeta",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "groupObservation",
              "contextType" : "variable",
              "element" : "meta",
              "variable" : "newMeta",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Meta"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "grpObsnMetaProfile",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "newMeta",
                  "contextType" : "variable",
                  "element" : "profile",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "authored",
          "source" : [
            {
              "context" : "src",
              "element" : "authored",
              "variable" : "authored"
            }
          ],
          "target" : [
            {
              "context" : "groupObservation",
              "contextType" : "variable",
              "element" : "effective",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "authored"
                }
              ]
            }
          ]
        },
        {
          "name" : "grpObsnSubject",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "qSubject"
            }
          ],
          "target" : [
            {
              "context" : "groupObservation",
              "contextType" : "variable",
              "element" : "subject",
              "variable" : "newReference",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Reference"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "grpObsnSubjRef",
              "source" : [
                {
                  "context" : "qSubject",
                  "element" : "reference",
                  "variable" : "qReference"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "reference",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "qReference"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "grpObsnSubjDisplay",
              "source" : [
                {
                  "context" : "qSubject",
                  "element" : "display",
                  "variable" : "qDisplay"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "display",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueId" : "qDisplay"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "grpObsnCode",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "groupObservation",
              "contextType" : "variable",
              "element" : "code",
              "transform" : "cc",
              "parameter" : [
                {
                  "valueString" : "http://loinc.org"
                },
                {
                  "valueString" : "93025-5"
                }
              ]
            }
          ]
        },
        {
          "name" : "grpObsnHasMember",
          "source" : [
            {
              "context" : "bundle",
              "element" : "entry",
              "variable" : "entries"
            }
          ],
          "target" : [
            {
              "context" : "groupObservation",
              "contextType" : "variable",
              "element" : "hasMember",
              "variable" : "df",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Reference"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "grpObsnHasMemberReference",
              "source" : [
                {
                  "context" : "entries",
                  "element" : "resource",
                  "variable" : "obs",
                  "condition" : "status.exists() and hasMember.exists().not()"
                }
              ],
              "target" : [
                {
                  "context" : "df",
                  "contextType" : "variable",
                  "element" : "reference",
                  "transform" : "reference",
                  "parameter" : [
                    {
                      "valueId" : "obs"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "grpObsnDerivedFrom",
          "source" : [
            {
              "context" : "src",
              "element" : "id",
              "variable" : "id"
            }
          ],
          "target" : [
            {
              "context" : "groupObservation",
              "contextType" : "variable",
              "element" : "derivedFrom",
              "variable" : "newReference",
              "transform" : "create",
              "parameter" : [
                {
                  "valueString" : "Reference"
                }
              ]
            }
          ],
          "rule" : [
            {
              "name" : "grpObsnDerivedFromReference",
              "source" : [
                {
                  "context" : "id"
                }
              ],
              "target" : [
                {
                  "context" : "newReference",
                  "contextType" : "variable",
                  "element" : "reference",
                  "transform" : "append",
                  "parameter" : [
                    {
                      "valueString" : "QuestionnaireResponse/"
                    },
                    {
                      "valueId" : "id"
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "name" : "obsnEntryRequest",
          "source" : [
            {
              "context" : "src"
            }
          ],
          "target" : [
            {
              "context" : "entry",
              "contextType" : "variable",
              "element" : "request",
              "variable" : "request"
            }
          ],
          "rule" : [
            {
              "name" : "obsnRequestMethod",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "request",
                  "contextType" : "variable",
                  "element" : "method",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "POST"
                    }
                  ]
                }
              ]
            },
            {
              "name" : "obsnRequestUrl",
              "source" : [
                {
                  "context" : "src"
                }
              ],
              "target" : [
                {
                  "context" : "request",
                  "contextType" : "variable",
                  "element" : "url",
                  "transform" : "copy",
                  "parameter" : [
                    {
                      "valueString" : "Observation"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}