SDOHCC-StructureMapPRAPARE
type: StructureMap
node role: treeRoot
id:
  v: SDOHCC-StructureMapPRAPARE
language:
  v: en
text:
  status:
    v: additional
  div: /// name = "SDOHCCPRAPAREMap" /// status = draft /// title = "SDOHCC StructureMap PRAPARE" /// 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)." // This is a more complex example where the author has chosen to extract *all* answers to Observations and to create a grouping Observation map "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureMap/SDOHCC-StructureMapPRAPARE" = "SDOHCCPRAPAREMap" uses "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" alias questionnaireResponse as source uses "http://hl7.org/fhir/StructureDefinition/Bundle" as target uses "http://hl7.org/fhir/StructureDefinition/Observation" as target uses "http://hl7.org/fhir/StructureDefinition/Condition" alias sdohccCondition as target uses "http://hl7.org/fhir/StructureDefinition/Observation" alias sdohccObservation as target group sdohMapping(source src : questionnaireResponse, target bundle : Bundle) { //temporarily set id to human-readable id as example //src -> bundle.id = uuid(); src -> bundle.id = 'SDOHCC-BundlePRAPAREExample' "bundleId"; src -> bundle.type = 'transaction' "bundleType"; //for each answer item in the questionnaireResponse, create an Observation and add it to the groupObservation src.item as rootItem then rootContent(src, rootItem, bundle); //create group observation containing all observations as hasMember src -> bundle.entry as entry, entry.resource = create('sdohccObservation') as groupObservation then TransformGroupObservation(src, bundle, groupObservation, entry) "bundleGroupObsn"; } group rootContent(source qResponse: questionnaireResponse, source rootItem, target bundle) { rootItem.item as groupItem then groupContent(qResponse, groupItem, bundle); } group groupContent(source qResponse: questionnaireResponse, source groupItem, target bundle) …
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
  value: code
    v: pc
url:
  v: http://hl7.org/fhir/us/sdoh-clinicalcare/StructureMap/SDOHCC-StructureMapPRAPARE
version:
  v: 3.0.0-draft
name:
  v: SDOHCCPRAPAREMap
status:
  v: draft
date:
  v: 2025-10-27T14:05:51+00:00
publisher:
  v: HL7 International / Patient Care
contact:
  name:
    v: HL7 International / Patient Care
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/patientcare
  telecom:
    system:
      v: email
description:
  v: 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:
      v: urn:iso:std:iso:3166
    code:
      v: US
    display:
      v: United States of America
structure:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse
    link: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse
  mode:
    v: source
  alias:
    v: questionnaireResponse
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Bundle
    link: http://hl7.org/fhir/StructureDefinition/Bundle
  mode:
    v: target
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    link: http://hl7.org/fhir/StructureDefinition/Observation
  mode:
    v: target
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Condition
    link: http://hl7.org/fhir/StructureDefinition/Condition
  mode:
    v: target
  alias:
    v: sdohccCondition
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    link: http://hl7.org/fhir/StructureDefinition/Observation
  mode:
    v: target
  alias:
    v: sdohccObservation
group:
  name:
    v: sdohMapping
  type mode:
    v: none
  input:
    name:
      v: src
    type:
      v: questionnaireResponse
    mode:
      v: source
  input:
    name:
      v: bundle
    type:
      v: Bundle
    mode:
      v: target
  rule:
    name:
      v: bundleId
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: id
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: bundleType
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: type
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: item
    source:
      context:
        v: src
      element:
        v: item
      variable:
        v: rootItem
    dependent:
      name:
        v: rootContent
      variable:
        v: src
      variable:
        v: rootItem
      variable:
        v: bundle
  rule:
    name:
      v: bundleGroupObsn
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: entry
      variable:
        v: entry
    target:
      context:
        v: entry
      context type:
        v: variable
      element:
        v: resource
      variable:
        v: groupObservation
      transform:
        v: create
      parameter:
        value: string
    dependent:
      name:
        v: TransformGroupObservation
      variable:
        v: src
      variable:
        v: bundle
      variable:
        v: groupObservation
      variable:
        v: entry

string
v: SDOHCC-BundlePRAPAREExample

string
v: transaction

string
v: sdohccObservation

name:
  v: rootContent
type mode:
  v: none
input:
  name:
    v: qResponse
  type:
    v: questionnaireResponse
  mode:
    v: source
input:
  name:
    v: rootItem
  mode:
    v: source
input:
  name:
    v: bundle
  mode:
    v: target
rule:
  name:
    v: item
  source:
    context:
      v: rootItem
    element:
      v: item
    variable:
      v: groupItem
  dependent:
    name:
      v: groupContent
    variable:
      v: qResponse
    variable:
      v: groupItem
    variable:
      v: bundle

name:
  v: groupContent
type mode:
  v: none
input:
  name:
    v: qResponse
  type:
    v: questionnaireResponse
  mode:
    v: source
input:
  name:
    v: groupItem
  mode:
    v: source
input:
  name:
    v: bundle
  mode:
    v: target
rule:
  name:
    v: item
  source:
    context:
      v: groupItem
    element:
      v: item
    variable:
      v: answerItem
  dependent:
    name:
      v: itemContent
    variable:
      v: qResponse
    variable:
      v: answerItem
    variable:
      v: bundle

name:
  v: itemContent
type mode:
  v: none
input:
  name:
    v: qResponse
  type:
    v: questionnaireResponse
  mode:
    v: source
input:
  name:
    v: answerItem
  mode:
    v: source
input:
  name:
    v: bundle
  mode:
    v: target
rule:
  name:
    v: obsn
  source:
    context:
      v: answerItem
    variable:
      v: variable
    condition:
      v: (answerItem.linkId != '/93043-8/32624-9') and (answerItem.linkId != '/93041-2/93031-3') and (answerItem.linkId != '/93041-2/93030-5')
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: entry
  target:
    context:
      v: entry
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: observation
    transform:
      v: create
    parameter:
      value: string
        v: sdohccObservation
  dependent:
    name:
      v: TransformObservation
    variable:
      v: qResponse
    variable:
      v: answerItem
    variable:
      v: bundle
    variable:
      v: observation
    variable:
      v: entry
    variable:
      v: bundle
rule:
  name:
    v: answer
  source:
    context:
      v: answerItem
    element:
      v: answer
    variable:
      v: answer
    condition:
      v: (answerItem.linkId = '/93043-8/32624-9') or (answerItem.linkId = '/93041-2/93031-3') or (answerItem.linkId = '/93041-2/93030-5')
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: entry
  target:
    context:
      v: entry
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: observation
    transform:
      v: create
    parameter:
      value: string
        v: sdohccObservation
  dependent:
    name:
      v: TransformObservation
    variable:
      v: qResponse
    variable:
      v: answerItem
    variable:
      v: bundle
    variable:
      v: observation
    variable:
      v: entry
    variable:
      v: bundle
  dependent:
    name:
      v: SetValueCodeableConceptFromAnswer
    variable:
      v: answer
    variable:
      v: observation

name:
  v: SetValueCodeableConceptFromAnswer
type mode:
  v: none
input:
  name:
    v: answer
  mode:
    v: source
input:
  name:
    v: observation
  mode:
    v: target
rule:
  name:
    v: obsnValue
  source:
    context:
      v: answer
    variable:
      v: src
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: value
    variable:
      v: newCC
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  rule:
    name:
      v: value
    source:
      context:
        v: answer
      element:
        v: value
      variable:
        v: coding
    target:
      context:
        v: newCC
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: newCoding
      transform:
        v: copy
      parameter:
        value: id

id
v: coding

name:
  v: TransformObservation
type mode:
  v: none
input:
  name:
    v: src
  type:
    v: questionnaireResponse
  mode:
    v: source
input:
  name:
    v: answerItem
  mode:
    v: source
input:
  name:
    v: srcBundle
  type:
    v: Bundle
  mode:
    v: source
input:
  name:
    v: observation
  type:
    v: sdohccObservation
  mode:
    v: target
input:
  name:
    v: entry
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
rule:
  name:
    v: obsnFullUrl
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: id
    transform:
      v: uuid
  dependent:
    name:
      v: SetObservationFullUrl
    variable:
      v: observation
    variable:
      v: entry
rule:
  name:
    v: obsnStatus
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: final
rule:
  name:
    v: obsnCatSocialHistory
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: category
    transform:
      v: cc
    parameter:
      value: string
        v: http://terminology.hl7.org/CodeSystem/observation-category
    parameter:
      value: string
        v: social-history
    parameter:
      value: string
        v: Social History
rule:
  name:
    v: obsnCatSurvey
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: category
    transform:
      v: cc
    parameter:
      value: string
        v: http://terminology.hl7.org/CodeSystem/observation-category
    parameter:
      value: string
        v: survey
    parameter:
      value: string
        v: Survey
rule:
  name:
    v: obsnMeta
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: newMeta
    transform:
      v: create
    parameter:
      value: string
        v: Meta
  rule:
    name:
      v: obsnMetaProfile
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newMeta
      context type:
        v: variable
      element:
        v: profile
      transform:
        v: copy
      parameter:
        value: string
rule:
  name:
    v: authored
  source:
    context:
      v: src
    element:
      v: authored
    variable:
      v: authored
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: issued
    transform:
      v: copy
    parameter:
      value: id
        v: authored

context:
  v: observation
context type:
  v: variable
element:
  v: effective
transform:
  v: copy
parameter:
  value: id
    v: authored

name:
  v: subject
source:
  context:
    v: src
  element:
    v: subject
  variable:
    v: qSubject
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: subject
  variable:
    v: newReference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
rule:
  name:
    v: reference
  source:
    context:
      v: qSubject
    element:
      v: reference
    variable:
      v: qReference
  target:
    context:
      v: newReference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: copy
    parameter:
      value: id
        v: qReference
rule:
  name:
    v: display
  source:
    context:
      v: qSubject
    element:
      v: display
    variable:
      v: qDisplay
  target:
    context:
      v: newReference
    context type:
      v: variable
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: id
        v: qDisplay

name:
  v: subject
source:
  context:
    v: src
  element:
    v: subject
  variable:
    v: qSubject
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: performer
  variable:
    v: newReference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
rule:
  name:
    v: reference
  source:
    context:
      v: qSubject
    element:
      v: reference
    variable:
      v: qReference
  target:
    context:
      v: newReference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: copy
    parameter:
      value: id
        v: qReference
rule:
  name:
    v: display
  source:
    context:
      v: qSubject
    element:
      v: display
    variable:
      v: qDisplay
  target:
    context:
      v: newReference
    context type:
      v: variable
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: id
        v: qDisplay

name:
  v: obsnDerivedFrom
source:
  context:
    v: src
  element:
    v: id
  variable:
    v: id
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: derivedFrom
  variable:
    v: newReference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
rule:
  name:
    v: obsnDerivedFromReference
  source:
    context:
      v: id
    variable:
      v: src
  target:
    context:
      v: newReference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: append
    parameter:
      value: string
        v: QuestionnaireResponse/
    parameter:
      value: id
        v: id

name:
  v: obsnCodeEthnicity
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93043-8/56051-6'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 56051-6
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93043-8/56051-6'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: sdoh-category-unspecified

string
v: SDOH Category Unspecified

name:
  v: obsCodeRace
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93043-8/32624-9'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 32624-9

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93043-8/32624-9'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: sdoh-category-unspecified

string
v: SDOH Category Unspecified

name:
  v: obsnCodeFarmWorkerStatus
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93043-8/93035-4'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 93035-4
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93043-8/93035-4'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: sdoh-category-unspecified

string
v: SDOH Category Unspecified

name:
  v: obsnCodeVetStatus
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93043-8/93034-7'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 93034-7
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93043-8/93034-7'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: veteran-status

string
v: Veteran Status

name:
  v: obsnCodeEngProf
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93043-8/54899-0'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 54899-0
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93043-8/54899-0'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: sdoh-category-unspecified

string
v: SDOH Category Unspecified

name:
  v: obsnCodeHouseholdSize
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93042-0/63512-8'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 63512-8
rule:
  name:
    v: obsnValue
  source:
    context:
      v: answerItem
    element:
      v: answer
    variable:
      v: answer
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: value
    variable:
      v: newQty
    transform:
      v: create
    parameter:
      value: string
        v: Quantity
  rule:
    name:
      v: obsnQtyValue
    source:
      context:
        v: answer
      element:
        v: value
      variable:
        v: vs
    target:
      context:
        v: newQty
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: obsnQtyUnit
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newQty
      context type:
        v: variable
      element:
        v: unit
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnQtySystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newQty
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnQtyCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newQty
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string

id
v: vs

string
v: {#}

string
v: {#}

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93042-0/63512-8'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: sdoh-category-unspecified

string
v: SDOH Category Unspecified

name:
  v: obsnCodeHousing
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93042-0/71802-3'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 71802-3
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93042-0/71802-3'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: homelessness

string
v: Homelessness

name:
  v: obsnCodeHousingStatus
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93042-0/93033-9'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 93033-9
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93042-0/93033-9'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: housing-instability

string
v: Housing Instability

name:
  v: obsnCodeNeighborhood
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93042-0/56799-0'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 56799-0
dependent:
  name:
    v: SetValue
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93042-0/56799-0'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: sdoh-category-unspecified

string
v: SDOH Category Unspecified

name:
  v: obsnCodeEducation
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/82589-3'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 82589-3
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/82589-3'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: educational-attainment

string
v: Educational Attainment

name:
  v: obsnCodeEmployment
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/67875-5'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 67875-5
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/67875-5'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: employment-status

string
v: Employment Status

name:
  v: obsnCodeInsurance
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/76437-3'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 76437-3
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/76437-3'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: health-insurance-coverage-status

string
v: Health Insurance Coverage Status

name:
  v: obsnCodeHouseholdIncome
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/63586-2'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 63586-2
rule:
  name:
    v: obsnBalue
  source:
    context:
      v: answerItem
    element:
      v: answer
    variable:
      v: answer
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: value
    variable:
      v: newQty
    transform:
      v: create
    parameter:
      value: string
        v: Quantity
  rule:
    name:
      v: obsnQtyValue
    source:
      context:
        v: answer
      element:
        v: value
      variable:
        v: vs
    target:
      context:
        v: newQty
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
  rule:
    name:
      v: obsnQtyUnit
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newQty
      context type:
        v: variable
      element:
        v: unit
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnQtySystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newQty
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnQtyCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newQty
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string

id
v: vs

string
v: /a

string
v: /a

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/63586-2'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: sdoh-category-unspecified

string
v: SDOH Category Unspecified

name:
  v: obsnCodeMaterialSecurity
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/93031-3'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 93031-3

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/93031-3'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: material-hardship

string
v: Material Hardship

name:
  v: obsnCodeTransportation
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/93030-5'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 93030-5

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93041-2/93030-5'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: transportation-insecurity

string
v: Transportation Insecurity

name:
  v: obsnCodeSocInteg
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93040-4/93029-7'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 93029-7
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93040-4/93029-7'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: social-connection

string
v: Social Connection

name:
  v: obsnCodeStress
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93040-4/93038-8'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 93038-8
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93040-4/93038-8'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: stress

string
v: Stress

name:
  v: obsnCodeIncarceration
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93039-6/93028-9'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 93028-9
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93039-6/93028-9'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: sdoh-category-unspecified

string
v: SDOH Category Unspecified

name:
  v: obsnCodeRefugee
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93039-6/93027-1'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 93027-1
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93039-6/93027-1'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: sdoh-category-unspecified

string
v: SDOH Category Unspecified

name:
  v: obsnCodeSafety
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93039-6/93026-3'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 93026-3
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93039-6/93026-3'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: sdoh-category-unspecified

string
v: SDOH Category Unspecified

name:
  v: obsnCodeDomViolence
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93039-6/76501-6'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 76501-6
dependent:
  name:
    v: SetValueCodeableConcept
  variable:
    v: answerItem
  variable:
    v: observation

name:
  v: obsnCat
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: linkId = '/93039-6/76501-6'
target:
  context:
    v: observation
  context type:
    v: variable
  element:
    v: category
  variable:
    v: newCC
  transform:
    v: create
  parameter:
    value: string
      v: CodeableConcept
rule:
  name:
    v: obsnCatCoding
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: newCC
    context type:
      v: variable
    element:
      v: coding
    variable:
      v: newCoding
    transform:
      v: create
    parameter:
      value: string
        v: Coding
  rule:
    name:
      v: obsnCatCodingSystem
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingCode
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: obsnCatCodingDisplay
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCoding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: string

string
v: intimate-partner-violence

string
v: Intimate Partner Violence

name:
  v: conditionHomeless
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: (linkId = '/93042-0/71802-3') and (answer.value.code = 'LA30190-5')
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: entry
target:
  context:
    v: entry
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: condition
  transform:
    v: create
  parameter:
    value: string
      v: sdohccCondition
dependent:
  name:
    v: TransformCondition
  variable:
    v: src
  variable:
    v: bundle
  variable:
    v: condition
  variable:
    v: entry
dependent:
  name:
    v: SetConditionCodeAndEvidence1
  variable:
    v: src
  variable:
    v: srcBundle
  variable:
    v: condition

name:
  v: conditionUnemployed
source:
  context:
    v: answerItem
  variable:
    v: variable
  condition:
    v: (linkId = '/93041-2/67875-5') and (answer.value.code = 'LA17956-6')
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: entry
target:
  context:
    v: entry
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: condition
  transform:
    v: create
  parameter:
    value: string
      v: sdohccCondition
dependent:
  name:
    v: TransformCondition
  variable:
    v: src
  variable:
    v: bundle
  variable:
    v: condition
  variable:
    v: entry
dependent:
  name:
    v: SetConditionCodeAndEvidence2
  variable:
    v: src
  variable:
    v: srcBundle
  variable:
    v: condition

name:
  v: obsnEntryRequest
source:
  context:
    v: src
  variable:
    v: src
target:
  context:
    v: entry
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
rule:
  name:
    v: obsnRequestMethod
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
rule:
  name:
    v: obsnRequestUrl
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Observation

name:
  v: SetValue
type mode:
  v: none
input:
  name:
    v: answerItem
  mode:
    v: source
input:
  name:
    v: observation
  mode:
    v: target
rule:
  name:
    v: answer
  source:
    context:
      v: answerItem
    element:
      v: answer
    variable:
      v: answer
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: id
    variable:
      v: id
  rule:
    name:
      v: value
    source:
      context:
        v: answer
      element:
        v: value
      variable:
        v: vs
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id

id
v: vs

name:
  v: SetValueCodeableConcept
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: observation
  mode:
    v: target
rule:
  name:
    v: answer
  source:
    context:
      v: src
    element:
      v: answer
    variable:
      v: answer
  target:
    context:
      v: observation
    context type:
      v: variable
    element:
      v: value
    variable:
      v: newCC
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  rule:
    name:
      v: value
    source:
      context:
        v: answer
      element:
        v: value
      variable:
        v: coding
    target:
      context:
        v: newCC
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: newCoding
      transform:
        v: copy
      parameter:
        value: id

id
v: coding

name:
  v: SetObservationFullUrl
type mode:
  v: none
input:
  name:
    v: observation
  type:
    v: Observation
  mode:
    v: source
input:
  name:
    v: entry
  mode:
    v: target
rule:
  name:
    v: id
  source:
    context:
      v: observation
    element:
      v: id
    variable:
      v: id
  target:
    context:
      v: entry
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: http://hl7.org/fhir/us/sdoh-clinicalcare/Observation/
    parameter:
      value: id
        v: id

name:
  v: TransformCondition
type mode:
  v: none
input:
  name:
    v: src
  type:
    v: questionnaireResponse
  mode:
    v: source
input:
  name:
    v: bundle
  mode:
    v: source
input:
  name:
    v: condition
  type:
    v: sdohccCondition
  mode:
    v: target
input:
  name:
    v: entry
  mode:
    v: target
rule:
  name:
    v: conditionFullUrl
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: id
    transform:
      v: uuid
  dependent:
    name:
      v: SetConditionFullUrl
    variable:
      v: condition
    variable:
      v: entry
rule:
  name:
    v: conditionMeta
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: newMeta
    transform:
      v: create
    parameter:
      value: string
        v: Meta
  rule:
    name:
      v: conditionMetaProfile
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newMeta
      context type:
        v: variable
      element:
        v: profile
      transform:
        v: copy
      parameter:
        value: string
rule:
  name:
    v: conditionClinicalStatus
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: clinicalStatus
    transform:
      v: cc
    parameter:
      value: string
        v: http://terminology.hl7.org/CodeSystem/condition-clinical
    parameter:
      value: string
        v: active
    parameter:
      value: string
        v: Active
rule:
  name:
    v: conditionVerificationStatus
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: verificationStatus
    transform:
      v: cc
    parameter:
      value: string
        v: http://terminology.hl7.org/CodeSystem/condition-ver-status
    parameter:
      value: string
        v: unconfirmed
    parameter:
      value: string
        v: Unconfirmed
rule:
  name:
    v: conditionCat
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: category
    variable:
      v: newCC
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  rule:
    name:
      v: conditionCatCoding
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCC
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: newCoding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: conditionCatCodingSystem
    rule:
      name:
        v: conditionCatCodingCode
    rule:
      name:
        v: conditionCatCodingDisplay
rule:
  name:
    v: conditionOnset
  source:
    context:
      v: src

string
v: Coding

v: src

v: src

v: newCoding

v: variable

v: system

v: copy

v: src

v: src

v: newCoding

v: variable

v: code

v: copy

value: string
  v: health-concern

v: src

v: src

v: newCoding

v: variable

v: display

v: copy

value: string
  v: Health Concern

v: authored

v: authored

context:
  v: condition
context type:
  v: variable
element:
  v: onset
variable:
  v: period
transform:
  v: create
parameter:
  value: string
    v: Period

context:
  v: period
context type:
  v: variable
element:
  v: start
transform:
  v: copy
parameter:
  value: id
    v: authored

name:
  v: subject
source:
  context:
    v: src
  element:
    v: subject
  variable:
    v: qSubject
target:
  context:
    v: condition
  context type:
    v: variable
  element:
    v: subject
  variable:
    v: newReference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
rule:
  name:
    v: reference
  source:
    context:
      v: qSubject
    element:
      v: reference
    variable:
      v: qReference
  target:
    context:
      v: newReference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: copy
    parameter:
      value: id
        v: qReference
rule:
  name:
    v: display
  source:
    context:
      v: qSubject
    element:
      v: display
    variable:
      v: qDisplay
  target:
    context:
      v: newReference
    context type:
      v: variable
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: id
        v: qDisplay

name:
  v: subject
source:
  context:
    v: src
  element:
    v: subject
  variable:
    v: qSubject
target:
  context:
    v: condition
  context type:
    v: variable
  element:
    v: asserter
  variable:
    v: newReference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
rule:
  name:
    v: reference
  source:
    context:
      v: qSubject
    element:
      v: reference
    variable:
      v: qReference
  target:
    context:
      v: newReference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: copy
    parameter:
      value: id
        v: qReference
rule:
  name:
    v: display
  source:
    context:
      v: qSubject
    element:
      v: display
    variable:
      v: qDisplay
  target:
    context:
      v: newReference
    context type:
      v: variable
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: id
        v: qDisplay

name:
  v: conditionEntryRequest
source:
  context:
    v: src
  variable:
    v: src
target:
  context:
    v: entry
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
rule:
  name:
    v: conditionRequestMethod
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
rule:
  name:
    v: conditionRequestUrl
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Condition

name:
  v: SetConditionFullUrl
type mode:
  v: none
input:
  name:
    v: condition
  type:
    v: sdohccCondition
  mode:
    v: source
input:
  name:
    v: entry
  mode:
    v: target
rule:
  name:
    v: id
  source:
    context:
      v: condition
    element:
      v: id
    variable:
      v: id
  target:
    context:
      v: entry
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: string
        v: http://hl7.org/fhir/us/sdoh-clinicalcare/Condition/
    parameter:
      value: id
        v: id

name:
  v: SetConditionCodeAndEvidence1
type mode:
  v: none
input:
  name:
    v: src
  type:
    v: questionnaireResponse
  mode:
    v: source
input:
  name:
    v: bundle
  mode:
    v: source
input:
  name:
    v: condition
  mode:
    v: target
rule:
  name:
    v: conditionCode
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: code
    variable:
      v: newCodeCC
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  rule:
    name:
      v: conditionCoding
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCodeCC
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: newCoding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: conditionCodeCodingSystem
    rule:
      name:
        v: conditionCodeCodingCode
    rule:
      name:
        v: conditionCodeCodingDisplay
  rule:
    name:
      v: conditionCoding
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCodeCC
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: newCoding2
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: conditionCodeCodingSystem
    rule:
      name:
        v: conditionCodeCodingCode
    rule:
      name:
        v: conditionCodeCodingDisplay
rule:
  name:
    v: conditionCat
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: category
    variable:
      v: newCC
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  rule:
    name:
      v: conditionCatCoding
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCC
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: newCoding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: conditionCatCodingSystem
    rule:
      name:
        v: conditionCatCodingCode
    rule:
      name:
        v: conditionCatCodingDisplay
rule:
  name:
    v: entry
  source:
    context:
      v: bundle
    element:
      v: entry
    variable:
      v: entries
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: evidence
    variable:
      v: evidence
  target:
    context:
      v: evidence
    context type:
      v: variable
    element:
      v: detail
    variable:
      v: detailReference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  rule:
    name:
      v: conditionEvidence
    source:
      context:
        v: entries
      element:
        v: resource
      variable:
        v: obs
      condition:
        v: code.coding.code = '71802-3'
    target:
      context:
        v: detailReference

string
v: Coding

v: src

v: src

v: newCoding

v: variable

v: system

v: copy

v: src

v: src

v: newCoding

v: variable

v: code

v: copy

value: string
  v: 32911000

v: src

v: src

v: newCoding

v: variable

v: display

v: copy

value: string
  v: Homeless

string
v: Coding

v: src

v: src

v: newCoding2

v: variable

v: system

v: copy

v: src

v: src

v: newCoding2

v: variable

v: code

v: copy

value: string
  v: Z59.0

v: src

v: src

v: newCoding2

v: variable

v: display

v: copy

value: string
  v: Homelessness

string
v: Coding

v: src

v: src

v: newCoding

v: variable

v: system

v: copy

v: src

v: src

v: newCoding

v: variable

v: code

v: copy

value: string
  v: homelessness

v: src

v: src

v: newCoding

v: variable

v: display

v: copy

value: string
  v: Homelessness

v: variable

v: reference

v: reference

value: id
  v: obs

name:
  v: SetConditionCodeAndEvidence2
type mode:
  v: none
input:
  name:
    v: src
  type:
    v: questionnaireResponse
  mode:
    v: source
input:
  name:
    v: bundle
  mode:
    v: source
input:
  name:
    v: condition
  mode:
    v: target
rule:
  name:
    v: conditionCode
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: code
    variable:
      v: newCodeCC
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  rule:
    name:
      v: conditionCoding
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCodeCC
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: newCoding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: conditionCodeCodingSystem
    rule:
      name:
        v: conditionCodeCodingCode
    rule:
      name:
        v: conditionCodeCodingDisplay
  rule:
    name:
      v: conditionCoding
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCodeCC
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: newCoding2
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: conditionCodeCodingSystem
    rule:
      name:
        v: conditionCodeCodingCode
    rule:
      name:
        v: conditionCodeCodingDisplay
rule:
  name:
    v: conditionCat
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: category
    variable:
      v: newCC
    transform:
      v: create
    parameter:
      value: string
        v: CodeableConcept
  rule:
    name:
      v: conditionCatCoding
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newCC
      context type:
        v: variable
      element:
        v: coding
      variable:
        v: newCoding
      transform:
        v: create
      parameter:
        value: string
    rule:
      name:
        v: conditionCatCodingSystem
    rule:
      name:
        v: conditionCatCodingCode
    rule:
      name:
        v: conditionCatCodingDisplay
rule:
  name:
    v: entry
  source:
    context:
      v: bundle
    element:
      v: entry
    variable:
      v: entries
  target:
    context:
      v: condition
    context type:
      v: variable
    element:
      v: evidence
    variable:
      v: evidence
  target:
    context:
      v: evidence
    context type:
      v: variable
    element:
      v: detail
    variable:
      v: detailReference
    transform:
      v: create
    parameter:
      value: string
        v: Reference
  rule:
    name:
      v: conditionEvidence
    source:
      context:
        v: entries
      element:
        v: resource
      variable:
        v: obs
      condition:
        v: code.coding.code = '67875-5'
    target:
      context:
        v: detailReference

string
v: Coding

v: src

v: src

v: newCoding

v: variable

v: system

v: copy

v: src

v: src

v: newCoding

v: variable

v: code

v: copy

value: string
  v: 73438004

v: src

v: src

v: newCoding

v: variable

v: display

v: copy

value: string
  v: Unemployed

string
v: Coding

v: src

v: src

v: newCoding2

v: variable

v: system

v: copy

v: src

v: src

v: newCoding2

v: variable

v: code

v: copy

value: string
  v: Z56.0

v: src

v: src

v: newCoding2

v: variable

v: display

v: copy

value: string
  v: Unemployment, unspecified

string
v: Coding

v: src

v: src

v: newCoding

v: variable

v: system

v: copy

v: src

v: src

v: newCoding

v: variable

v: code

v: copy

value: string
  v: employment-status

v: src

v: src

v: newCoding

v: variable

v: display

v: copy

value: string
  v: Employment Status

v: variable

v: reference

v: reference

value: id
  v: obs

name:
  v: TransformGroupObservation
type mode:
  v: none
input:
  name:
    v: src
  type:
    v: questionnaireResponse
  mode:
    v: source
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: source
input:
  name:
    v: groupObservation
  type:
    v: Observation
  mode:
    v: target
input:
  name:
    v: entry
  mode:
    v: target
rule:
  name:
    v: grpObsnFullUrl
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: groupObservation
    context type:
      v: variable
    element:
      v: id
    transform:
      v: uuid
  dependent:
    name:
      v: SetObservationFullUrl
    variable:
      v: groupObservation
    variable:
      v: entry
rule:
  name:
    v: grpObsnStatus
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: groupObservation
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: string
        v: final
rule:
  name:
    v: grpObsnCatSocialHistory
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: groupObservation
    context type:
      v: variable
    element:
      v: category
    transform:
      v: cc
    parameter:
      value: string
        v: http://terminology.hl7.org/CodeSystem/observation-category
    parameter:
      value: string
        v: social-history
    parameter:
      value: string
        v: Social History
rule:
  name:
    v: grpObsnCatSurvey
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: groupObservation
    context type:
      v: variable
    element:
      v: category
    transform:
      v: cc
    parameter:
      value: string
        v: http://terminology.hl7.org/CodeSystem/observation-category
    parameter:
      value: string
        v: survey
    parameter:
      value: string
        v: Survey
rule:
  name:
    v: grpObsMeta
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: groupObservation
    context type:
      v: variable
    element:
      v: meta
    variable:
      v: newMeta
    transform:
      v: create
    parameter:
      value: string
        v: Meta
  rule:
    name:
      v: grpObsnMetaProfile
    source:
      context:
        v: src
      variable:
        v: src
    target:
      context:
        v: newMeta
      context type:
        v: variable
      element:
        v: profile
      transform:
        v: copy
      parameter:
        value: string
rule:
  name:
    v: authored
  source:
    context:
      v: src
    element:
      v: authored
    variable:
      v: authored
  target:
    context:
      v: groupObservation
    context type:
      v: variable
    element:
      v: effective
    transform:
      v: copy
    parameter:
      value: id
        v: authored
rule:
  name:
    v: grpObsnSubject
  source:
    context:
      v: src
    element:
      v: subject
    variable:
      v: qSubject
  target:
    context:
      v: groupObservation

v: variable

v: subject

v: newReference

v: create

value: string
  v: Reference

name:
  v: grpObsnSubjRef
source:
  context:
    v: qSubject
  element:
    v: reference
  variable:
    v: qReference
target:
  context:
    v: newReference
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: copy
  parameter:
    value: id
      v: qReference

name:
  v: grpObsnSubjDisplay
source:
  context:
    v: qSubject
  element:
    v: display
  variable:
    v: qDisplay
target:
  context:
    v: newReference
  context type:
    v: variable
  element:
    v: display
  transform:
    v: copy
  parameter:
    value: id
      v: qDisplay

name:
  v: grpObsnCode
source:
  context:
    v: src
  variable:
    v: src
target:
  context:
    v: groupObservation
  context type:
    v: variable
  element:
    v: code
  transform:
    v: cc
  parameter:
    value: string
      v: http://loinc.org
  parameter:
    value: string
      v: 93025-5

name:
  v: grpObsnHasMember
source:
  context:
    v: bundle
  element:
    v: entry
  variable:
    v: entries
target:
  context:
    v: groupObservation
  context type:
    v: variable
  element:
    v: hasMember
  variable:
    v: df
  transform:
    v: create
  parameter:
    value: string
      v: Reference
rule:
  name:
    v: grpObsnHasMemberReference
  source:
    context:
      v: entries
    element:
      v: resource
    variable:
      v: obs
    condition:
      v: status.exists() and hasMember.exists().not()
  target:
    context:
      v: df
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: reference
    parameter:
      value: id
        v: obs

name:
  v: grpObsnDerivedFrom
source:
  context:
    v: src
  element:
    v: id
  variable:
    v: id
target:
  context:
    v: groupObservation
  context type:
    v: variable
  element:
    v: derivedFrom
  variable:
    v: newReference
  transform:
    v: create
  parameter:
    value: string
      v: Reference
rule:
  name:
    v: grpObsnDerivedFromReference
  source:
    context:
      v: id
    variable:
      v: src
  target:
    context:
      v: newReference
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: append
    parameter:
      value: string
        v: QuestionnaireResponse/
    parameter:
      value: id
        v: id

name:
  v: obsnEntryRequest
source:
  context:
    v: src
  variable:
    v: src
target:
  context:
    v: entry
  context type:
    v: variable
  element:
    v: request
  variable:
    v: request
rule:
  name:
    v: obsnRequestMethod
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: method
    transform:
      v: copy
    parameter:
      value: string
        v: POST
rule:
  name:
    v: obsnRequestUrl
  source:
    context:
      v: src
    variable:
      v: src
  target:
    context:
      v: request
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: string
        v: Observation