MeaslesQuestionnaireToLogicalModel
type: StructureMap
node role: treeRoot
id:
  v: MeaslesQuestionnaireToLogicalModel
text:
  status:
    v: generated
  div: map "http://worldhealthorganization.github.io/smart-ot/StructureMap/MeaslesQuestionnaireToLogicalModel" = "MeaslesQuestionnaireToLogicalModel" uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as source uses "http://worldhealthorganization.github.io/smart-ot/StructureDefinition/SOTMeasles" alias MeaslesLogicalModel as target group MeaslesQuestionnaireToLogicalModel(source qr : QuestionnaireResponse, target measlesLm : SOTMeasles) { qr.item as item where linkId.value in ('investigationForm') -> measlesLm as measlesLm then mapInvestigationForm(item, measlesLm) "set Investigation form"; } group mapInvestigationForm(source investigationForm, target measlesLm : SOTMeasles) { investigationForm.item as qrReportingSource where linkId.value in ('reportingSource') -> measlesLm.ReportingSource as lmReportingSource then mapReportingSource(qrReportingSource, lmReportingSource) "set Reporting Source"; investigationForm.item as qrDemographics where linkId.value in ('demographics') -> measlesLm.Demographics as lmDemographics then mapDemographics(qrDemographics, lmDemographics) "set Demographics"; investigationForm.item as qrVaccinationStatus where linkId.value in ('vaccinationStatus') -> measlesLm.VaccinationStatus as lmVaccinationStatus then mapVaccinationStatus(qrVaccinationStatus, lmVaccinationStatus) "set Vaccination Status"; investigationForm.item as qrClinical where linkId.value in ('clinical') -> measlesLm.Clinical as lmClinical then mapClinical(qrClinical, lmClinical) "set Clinical"; investigationForm.item as qrLaboratoryResults where linkId.value in ('laboratoryResults') -> measlesLm.LaboratoryResults as lmLaboratoryResults then mapLaboratoryResults(qrLaboratoryResults, lmLaboratoryResults) "set Laboratory Results"; investigationForm.item as qrContactTracing where linkId.value in ('contactTracing') -> measlesLm.ContactTracing as lmContactTracing then mapContactTracing(qrContactTracing, lmContactTracing) "set Contact Tracing"; …
url:
  v: http://worldhealthorganization.github.io/smart-ot/StructureMap/MeaslesQuestionnaireToLogicalModel
version:
  v: 0.2.1
name:
  v: MeaslesQuestionnaireToLogicalModel
status:
  v: draft
date:
  v: 2023-11-07T05:59:29+00:00
publisher:
  v: WHO
contact:
  name:
    v: WHO
  telecom:
    system:
      v: url
    value:
      v: http://who.int
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
    link: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
  mode:
    v: source
  alias:
    v: QuestionnaireResponse
structure:
  url:
    v: http://worldhealthorganization.github.io/smart-ot/StructureDefinition/SOTMeasles
    link: http://worldhealthorganization.github.io/smart-ot/StructureDefinition/SOTMeasles
  mode:
    v: target
  alias:
    v: MeaslesLogicalModel
group:
  name:
    v: MeaslesQuestionnaireToLogicalModel
  type mode:
    v: none
  input:
    name:
      v: qr
    type:
      v: QuestionnaireResponse
    mode:
      v: source
  input:
    name:
      v: measlesLm
    type:
      v: SOTMeasles
    mode:
      v: target
  rule:
    name:
      v: set Investigation form
    source:
      context:
        v: qr
      element:
        v: item
      variable:
        v: item
      condition:
        v: linkId.value in ('investigationForm')
    target:
      context type:
        v: variable
      variable:
        v: measlesLm
      transform:
        v: copy
    dependent:
      name:
        v: mapInvestigationForm
      variable:
        v: item
      variable:
        v: measlesLm
group:
  name:
    v: mapInvestigationForm
  type mode:
    v: none
  input:
    name:
      v: investigationForm
    mode:
      v: source
  input:
    name:
      v: measlesLm
    type:
      v: SOTMeasles
    mode:
      v: target
  rule:
    name:
      v: set Reporting Source
    source:
      context:
        v: investigationForm
      element:
        v: item
      variable:
        v: qrReportingSource
      condition:
        v: linkId.value in ('reportingSource')
    target:
      context:
        v: measlesLm
      context type:
        v: variable
      element:
        v: ReportingSource
      variable:
        v: lmReportingSource
    dependent:
      name:
        v: mapReportingSource
      variable:
        v: qrReportingSource
      variable:
        v: lmReportingSource
  rule:
    name:
      v: set Demographics
    source:
      context:
        v: investigationForm
      element:
        v: item
      variable:
        v: qrDemographics
      condition:
        v: linkId.value in ('demographics')
    target:
      context:
        v: measlesLm
      context type:
        v: variable
      element:
        v: Demographics
      variable:
        v: lmDemographics
    dependent:
      name:
        v: mapDemographics
      variable:
        v: qrDemographics
      variable:
        v: lmDemographics
  rule:
    name:
      v: set Vaccination Status
    source:
      context:
        v: investigationForm
      element:
        v: item
      variable:
        v: qrVaccinationStatus
      condition:
        v: linkId.value in ('vaccinationStatus')
    target:
      context:
        v: measlesLm
      context type:
        v: variable
      element:
        v: VaccinationStatus
      variable:
        v: lmVaccinationStatus
    dependent:
      name:
        v: mapVaccinationStatus
      variable:
        v: qrVaccinationStatus
      variable:
        v: lmVaccinationStatus
  rule:
    name:
      v: set Clinical
    source:
      context:
        v: investigationForm
      element:
        v: item

v: measlesLm

v: qrClinical

v: linkId.value in ('clinical')

context:
  v: measlesLm
context type:
  v: variable
element:
  v: Clinical
variable:
  v: lmClinical

name:
  v: mapClinical
variable:
  v: qrClinical
variable:
  v: lmClinical

name:
  v: set Laboratory Results
source:
  context:
    v: investigationForm
  element:
    v: item
  variable:
    v: qrLaboratoryResults
  condition:
    v: linkId.value in ('laboratoryResults')
target:
  context:
    v: measlesLm
  context type:
    v: variable
  element:
    v: LaboratoryResults
  variable:
    v: lmLaboratoryResults
dependent:
  name:
    v: mapLaboratoryResults
  variable:
    v: qrLaboratoryResults
  variable:
    v: lmLaboratoryResults

name:
  v: set Contact Tracing
source:
  context:
    v: investigationForm
  element:
    v: item
  variable:
    v: qrContactTracing
  condition:
    v: linkId.value in ('contactTracing')
target:
  context:
    v: measlesLm
  context type:
    v: variable
  element:
    v: ContactTracing
  variable:
    v: lmContactTracing
dependent:
  name:
    v: mapContactTracing
  variable:
    v: qrContactTracing
  variable:
    v: lmContactTracing

name:
  v: set Epi Data
source:
  context:
    v: investigationForm
  element:
    v: item
  variable:
    v: qrEpiData
  condition:
    v: linkId.value in ('epiData')
target:
  context:
    v: measlesLm
  context type:
    v: variable
  element:
    v: EpiData
  variable:
    v: lmEpiData
dependent:
  name:
    v: mapEpiData
  variable:
    v: qrEpiData
  variable:
    v: lmEpiData

name:
  v: set Classification
source:
  context:
    v: investigationForm
  element:
    v: item
  variable:
    v: qrClassification
  condition:
    v: linkId.value in ('classification')
target:
  context:
    v: measlesLm
  context type:
    v: variable
  element:
    v: Classification
  variable:
    v: lmClassification
dependent:
  name:
    v: mapClassification
  variable:
    v: qrClassification
  variable:
    v: lmClassification

name:
  v: mapReportingSource
type mode:
  v: none
input:
  name:
    v: qrReportingSource
  mode:
    v: source
input:
  name:
    v: lmReportingSource
  type:
    v: SOTMeaslesReportingSource
  mode:
    v: target
rule:
  name:
    v: set reporting source
  source:
    context:
      v: qrReportingSource
    element:
      v: item
    variable:
      v: item
  rule:
    name:
      v: set initial diag
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: initialDiagnosis
      condition:
        v: item.linkId = 'initialDiagnosis'
    rule:
      name:
        v: set Initial Diagnosis
  rule:
    name:
      v: set case ID
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: reportedBy
      condition:
        v: item.linkId = 'reportedBy'
    rule:
      name:
        v: set case ID
  rule:
    name:
      v: set reporting institution
    source:
      context:
        v: qrReportingSource
      element:
        v: item
      variable:
        v: qrReportingInstitution
      condition:
        v: linkId.value in ('reportingInstitution')
    target:
      context type:
        v: variable
      variable:
        v: lmReportingSource
      transform:
        v: copy
    dependent:
      name:
        v: mapReportingInstitution
      variable:
        v: qrReportingInstitution
      variable:
        v: lmReportingSource
  rule:
    name:
      v: set date of consultation
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: dateOfConsultation
      condition:
        v: item.linkId = 'DateOfConsultation'
    rule:
      name:
        v: set date of consultation
  rule:
    name:
      v: set date of home visit
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: dateOfHomeVisit
      condition:
        v: item.linkId = 'DateOfHomeVisit'
    rule:
      name:
        v: set date of home visit
  rule:
    name:
      v: set date reported local
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: dateReportedLocal
      condition:
        v: item.linkId = 'dateReported'
    rule:
      name:
        v: set date reported local
  rule:
    name:
      v: set date reported national
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: dateReportedNational
      condition:
        v: item.linkId = 'DateReportedNational'
    rule:
      name:
        v: set date reported national
  rule:
    name:
      v: set provider type
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: providerType
      condition:
        v: item.linkId = 'TypeOfProviderReporting'
    rule:
      name:
        v: set provider type
  rule:
    name:
      v: set detected by
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: detectedBy
      condition:
        v: item.linkId = 'DetectedBy'
    rule:
      name:
        v: set detected by

v: initialDiagnosis

v: value

v: coding

v: lmReportingSource

v: variable

v: InitialDiagnosis

v: copy

value:
  v: coding

v: reportedBy

v: value

v: value

v: lmReportingSource

v: variable

v: ReportedBy

v: copy

value:
  v: value

v: lmReportingSource

v: dateOfConsultation

v: value

v: value

v: lmReportingSource

v: variable

v: DateOfConsultation

v: copy

value:
  v: value

v: dateOfHomeVisit

v: value

v: value

v: lmReportingSource

v: variable

v: DateOfHomeVisit

v: copy

value:
  v: value

v: dateReportedLocal

v: value

v: value

v: lmReportingSource

v: variable

v: DateReportedLocal

v: copy

value:
  v: value

v: dateReportedNational

v: value

v: value

v: lmReportingSource

v: variable

v: DateReportedNational

v: copy

value:
  v: value

v: providerType

v: value

v: value

v: lmReportingSource

v: variable

v: TypeOfProviderReporting

v: copy

value:
  v: value

v: detectedBy

v: value

v: value

v: lmReportingSource

v: variable

v: DetectedBy

v: copy

value:
  v: value

name:
  v: mapReportingInstitution
type mode:
  v: none
input:
  name:
    v: qrReportingInstitution
  mode:
    v: source
input:
  name:
    v: lmReportingSource
  type:
    v: SOTMeaslesReportingSource
  mode:
    v: target
rule:
  name:
    v: set reporting institution
  source:
    context:
      v: qrReportingInstitution
    element:
      v: item
    variable:
      v: item
  rule:
    name:
      v: set health facility name
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: reportingFacility
      condition:
        v: item.linkId = 'reportingFacility'
    rule:
      name:
        v: set health facility name
  rule:
    name:
      v: set telephone
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: telephone
      condition:
        v: item.linkId = 'telephone'
    rule:
      name:
        v: set telephone
  rule:
    name:
      v: set address
    source:
      context:
        v: qrReportingInstitution
    target:
      context type:
        v: variable
      variable:
        v: lmAddress
      transform:
        v: create
    rule:
      name:
        v: set country
    rule:
      name:
        v: set city
    rule:
      name:
        v: set state
    rule:
      name:
        v: set locality
    rule:
      name:
        v: assign address

v: reportingFacility

v: value

v: healthFacilityName

v: lmReportingSource

v: variable

v: HealthServiceName

v: copy

value:
  v: healthFacilityName

v: telephone

v: value

v: value

v: variable

v: lmTelephone

v: create

value:
  v: ContactPoint

v: lmTelephone

v: variable

v: value

v: copy

value:
  v: value

v: lmReportingSource

v: variable

v: HealthServiceTelephone

v: copy

value:
  v: lmTelephone

v: Address

v: item

v: answer

v: first

v: country

v: item.linkId = 'country'

v: set country

context:
  v: country
element:
  v: value
variable:
  v: countryValue

context:
  v: lmAddress
context type:
  v: variable
element:
  v: country
transform:
  v: copy
parameter:
  value:
    v: countryValue

v: item

v: answer

v: first

v: municipality

v: item.linkId = 'municipality'

v: set city

context:
  v: municipality
element:
  v: value
variable:
  v: cityValue

context:
  v: lmAddress
context type:
  v: variable
element:
  v: city
transform:
  v: copy
parameter:
  value:
    v: cityValue

v: item

v: answer

v: first

v: state

v: item.linkId = 'state'

v: set state

context:
  v: state
element:
  v: value
variable:
  v: stateValue

context:
  v: lmAddress
context type:
  v: variable
element:
  v: state
transform:
  v: copy
parameter:
  value:
    v: stateValue

v: item

v: answer

v: first

v: locality

v: item.linkId = 'locality'

v: set locality

context:
  v: locality
element:
  v: value
variable:
  v: localityValue

context:
  v: lmAddress
context type:
  v: variable
element:
  v: line
transform:
  v: copy
parameter:
  value:
    v: localityValue

v: qrReportingInstitution

v: lmReportingSource

v: variable

v: PlaceOfReporting

v: copy

value:
  v: lmAddress

name:
  v: mapDemographics
type mode:
  v: none
input:
  name:
    v: qrDemographics
  mode:
    v: source
input:
  name:
    v: lmDemographics
  type:
    v: SOTMeaslesDemographic
  mode:
    v: target
rule:
  name:
    v: set demographics
  source:
    context:
      v: qrDemographics
    element:
      v: item
    variable:
      v: item
  rule:
    name:
      v: set name
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: name
      condition:
        v: item.linkId = 'name'
    rule:
      name:
        v: set name
  rule:
    name:
      v: set guardian
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: guardian
      condition:
        v: item.linkId = 'guardian'
    rule:
      name:
        v: set guardian
  rule:
    name:
      v: set address
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: address
      condition:
        v: item.linkId = 'address'
    rule:
      name:
        v: set address
  rule:
    name:
      v: set telephone
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: telephone
      condition:
        v: item.linkId = 'telephone'
    rule:
      name:
        v: set telephone
  rule:
    name:
      v: set landmark
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: landmark
      condition:
        v: item.linkId = 'landmark'
    rule:
      name:
        v: set landmark
  rule:
    name:
      v: set occupation
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: occupation
      condition:
        v: item.linkId = 'occupation'
    rule:
      name:
        v: set occupation
  rule:
    name:
      v: set Locality Type
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: location
      condition:
        v: item.linkId = 'location living in'
    rule:
      name:
        v: set Locality Type
  rule:
    name:
      v: set workAddress
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: workAddress
      condition:
        v: item.linkId = 'workAddress'
    rule:
      name:
        v: set workAddress
  rule:
    name:
      v: set sex
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: sex
      condition:
        v: item.linkId = 'sex'
    rule:
      name:
        v: set sex
  rule:
    name:
      v: set DoB
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: DoB
      condition:
        v: item.linkId = 'DoB'
    rule:
      name:
        v: set DoB
  rule:
    name:
      v: set ageOnset
    source:
      context:
        v: item
      element:
        v: answer

v: name

v: value

v: nameValue

v: variable

v: lmName

v: create

value:
  v: HumanName

v: lmName

v: variable

v: family

v: copy

value:
  v: nameValue

v: lmDemographics

v: variable

v: Name

v: copy

value:
  v: lmName

v: guardian

v: value

v: value

v: variable

v: lmGuardian

v: create

value:
  v: HumanName

v: lmGuardian

v: variable

v: family

v: copy

value:
  v: value

v: lmDemographics

v: variable

v: Guardian

v: copy

value:
  v: lmGuardian

v: address

v: value

v: value

v: variable

v: lmAddress

v: create

value:
  v: Address

v: lmAddress

v: variable

v: text

v: copy

value:
  v: value

v: lmDemographics

v: variable

v: PlaceOfResidence

v: copy

value:
  v: lmAddress

v: telephone

v: value

v: value

v: variable

v: lmTelephone

v: create

value:
  v: ContactPoint

v: lmTelephone

v: variable

v: value

v: copy

value:
  v: value

v: lmDemographics

v: variable

v: Telephone

v: copy

value:
  v: lmTelephone

v: landmark

v: value

v: value

v: lmDemographics

v: variable

v: Landmark

v: copy

value:
  v: value

v: occupation

v: value

v: value

v: lmDemographics

v: variable

v: Occupation

v: copy

value:
  v: value

v: location

v: value

v: value

v: locationlmDemographics

v: variable

v: LocalityType

v: copy

value:
  v: value

v: workAddress

v: value

v: value

v: variable

v: lmAddress

v: create

value:
  v: Address

v: lmAddress

v: variable

v: text

v: copy

value:
  v: value

v: lmDemographics

v: variable

v: WorkAddress

v: copy

value:
  v: lmAddress

v: sex

v: value

v: value

v: lmDemographics

v: variable

v: Sex

v: copy

value:
  v: value

v: DoB

v: value

v: value

v: lmDemographics

v: variable

v: DateOfBirth

v: copy

value:
  v: value

v: first

v: ageOnset

v: item.linkId = 'ageOnset'

name:
  v: set ageOnset
source:
  context:
    v: ageOnset
  element:
    v: value
  variable:
    v: value
target:
  context type:
    v: variable
  variable:
    v: lmAgeOnset
  transform:
    v: create
  parameter:
    value:
      v: Quantity
target:
  context:
    v: lmAgeOnset
  context type:
    v: variable
  element:
    v: value
  transform:
    v: copy
  parameter:
    value:
      v: value
target:
  context:
    v: lmDemographics
  context type:
    v: variable
  element:
    v: Age
  transform:
    v: copy
  parameter:
    value:
      v: lmAgeOnset

name:
  v: mapVaccinationStatus
type mode:
  v: none
input:
  name:
    v: qrVaccinationStatus
  mode:
    v: source
input:
  name:
    v: lmVaccinationStatus
  type:
    v: SOTMeaslesVaccinationStatus
  mode:
    v: target
rule:
  name:
    v: set
  source:
    context:
      v: qrVaccinationStatus
    element:
      v: item
    variable:
      v: item
  rule:
    name:
      v: set last dose date
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: lastDoseDate
      condition:
        v: item.linkId = 'lastDoseDate'
    rule:
      name:
        v: set Last Dose Date
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: sourceOfInformation
      condition:
        v: item.linkId = 'sourceOfInformation'
    rule:
      name:
        v: set Source of Vaccination Information
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: noOfDoses
      condition:
        v: item.linkId = 'noOfDoses'
    rule:
      name:
        v: set number of doses
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: vaccineType
      condition:
        v: item.linkId = 'vaccineType'
    rule:
      name:
        v: set vaccine type

v: lastDoseDate

v: value

v: value

v: lmVaccinationStatus

v: variable

v: LastDoseDate

v: copy

value:
  v: value

v: sourceOfInformation

v: value

v: value

v: lmVaccinationStatus

v: variable

v: Source

v: copy

value:
  v: value

v: noOfDoses

v: value

v: value

v: lmVaccinationStatus

v: variable

v: NumberOfDoses

v: copy

value:
  v: value

v: vaccineType

v: value

v: value

v: lmVaccinationStatus

v: variable

v: VaccineType

v: copy

value:
  v: value

name:
  v: mapClinical
type mode:
  v: none
input:
  name:
    v: qrClinical
  mode:
    v: source
input:
  name:
    v: lmClinical
  type:
    v: SOTMeaslesClinical
  mode:
    v: target
rule:
  name:
    v: set clinical
  source:
    context:
      v: qrClinical
    element:
      v: item
    variable:
      v: item
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: fever
      condition:
        v: item.linkId = 'fever'
    rule:
      name:
        v: set Fever
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: temperature
      condition:
        v: item.linkId = 'temperature'
    rule:
      name:
        v: set Temperature
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: dateOfFeverOnset
      condition:
        v: item.linkId = 'dateOfFeverOnset'
    rule:
      name:
        v: set Date of Fever Onset
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: rash
      condition:
        v: item.linkId = 'rash'
    rule:
      name:
        v: set Rash
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: rashType
      condition:
        v: item.linkId = 'rashType'
    rule:
      name:
        v: set Rash Type
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: rashDuration
      condition:
        v: item.linkId = 'rashDuration'
    rule:
      name:
        v: set Rash Duration
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: rashOnsetDate
      condition:
        v: item.linkId = 'rashOnsetDate'
    rule:
      name:
        v: set Rash Onset Date
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: cough
      condition:
        v: item.linkId = 'cough'
    rule:
      name:
        v: set Cough
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: conjunctivitis
      condition:
        v: item.linkId = 'conjunctivitis'
    rule:
      name:
        v: set Conjunctivitis
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: coryza
      condition:
        v: item.linkId = 'coryza'
    rule:
      name:
        v: set Coryza
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer

v: fever

v: value

v: value

v: lmClinical

v: variable

v: Fever

v: copy

value:
  v: value

v: temperature

v: value

v: value

v: lmClinical

v: variable

v: Temperature

v: temp

v: temp

v: variable

v: value

v: copy

value:
  v: value

v: dateOfFeverOnset

v: value

v: value

v: lmClinical

v: variable

v: FeverOnsetDate

v: copy

value:
  v: value

v: rash

v: value

v: value

v: lmClinical

v: variable

v: Rash

v: copy

value:
  v: value

v: rashType

v: value

v: value

v: lmClinical

v: variable

v: TypeOfRash

v: copy

value:
  v: value

v: rashDuration

v: value

v: value

v: lmClinical

v: variable

v: DurationOfRash

v: copy

value:
  v: value

v: rashOnsetDate

v: value

v: value

v: lmClinical

v: variable

v: RashOnsetDate

v: copy

value:
  v: value

v: cough

v: value

v: value

v: lmClinical

v: variable

v: Cough

v: copy

value:
  v: value

v: conjunctivitis

v: value

v: value

v: lmClinical

v: variable

v: Conjunctivitis

v: copy

value:
  v: value

v: coryza

v: value

v: value

v: lmClinical

v: variable

v: Coryza

v: copy

value:
  v: value

v: first

v: koplikSpots

v: item.linkId = 'koplikSpots'

name:
  v: set Koplik Spots
source:
  context:
    v: koplikSpots
  element:
    v: value
  variable:
    v: value
target:
  context:
    v: lmClinical
  context type:
    v: variable
  element:
    v: KoplikSpots
  transform:
    v: copy
  parameter:
    value:
      v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: lymphadenopathy
  condition:
    v: item.linkId = 'lymphadenopathy'
rule:
  name:
    v: set Lymphadenopathy
  source:
    context:
      v: lymphadenopathy
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: Lymphadenopathy
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: jointPain
  condition:
    v: item.linkId = 'jointPain'
rule:
  name:
    v: set Arthralgia
  source:
    context:
      v: jointPain
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: JointPain
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: pregnancy
  condition:
    v: item.linkId = 'pregnancy'
rule:
  name:
    v: set Pregnant
  source:
    context:
      v: pregnancy
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: PregnancyStatus
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: monthsPregnant
  condition:
    v: item.linkId = 'monthsPregnant'
rule:
  name:
    v: set Pregnancy Weeks
  source:
    context:
      v: monthsPregnant
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: GestationWeeks
    variable:
      v: weeks
  target:
    context:
      v: weeks
    context type:
      v: variable
    element:
      v: value
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: placeOfBirth
  condition:
    v: item.linkId = 'placeOfBirth'
rule:
  name:
    v: set Place of Birth
  source:
    context:
      v: placeOfBirth
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: IntentedBirthPlacce
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: admitted
  condition:
    v: item.linkId = 'admitted'
rule:
  name:
    v: set Hospitalized
  source:
    context:
      v: admitted
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: HistoryOfHospitalization
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: admittedHCFName
  condition:
    v: item.linkId = 'admittedHCFName'
rule:
  name:
    v: set Hospital Name
  source:
    context:
      v: admittedHCFName
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: HospitalName
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: admissionDate
  condition:
    v: item.linkId = 'admissionDate'
rule:
  name:
    v: set Admission Date
  source:
    context:
      v: admissionDate
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: DateOfAdmission
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: hospitalRecordNumber
  condition:
    v: item.linkId = 'hospitalRecordNumber'
rule:
  name:
    v: set Hospital Record Number
  source:
    context:
      v: hospitalRecordNumber
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: HospitalRecordNumber
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: outcome
  condition:
    v: item.linkId = 'outcome'
rule:
  name:
    v: set Outcome
  source:
    context:
      v: outcome
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: Outcome
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: deathCause
  condition:
    v: item.linkId = 'primaryCauseOfDeath'
rule:
  name:
    v: set cause
  source:
    context:
      v: deathCause
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: primaryCauseOfDeath
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: outcomeDate
  condition:
    v: item.linkId = 'outcomeDate'
rule:
  name:
    v: set death date
  source:
    context:
      v: outcomeDate
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: DateOfDeath
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: diseaseAdditionalInfo
  condition:
    v: item.linkId = 'diseaseAdditionalInfo'
rule:
  name:
    v: set Comments
  source:
    context:
      v: diseaseAdditionalInfo
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmClinical
    context type:
      v: variable
    element:
      v: Comments
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: mapLaboratoryResults
type mode:
  v: none
input:
  name:
    v: qrLaboratoryResults
  mode:
    v: source
input:
  name:
    v: lmLaboratoryResults
  type:
    v: LaboratoryResultsLogicalModel
  mode:
    v: target
rule:
  name:
    v: set labs
  source:
    context:
      v: qrLaboratoryResults
    element:
      v: item
    variable:
      v: item
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'specimenNumber'
    rule:
      name:
        v: set SpecimenNumber
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'sampleType'
    rule:
      name:
        v: set SampleType
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'collectionDate'
    rule:
      name:
        v: set SpecimenCollectionDate
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'labName'
    rule:
      name:
        v: set Shipment Date
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'specimenSentDate'
    rule:
      name:
        v: set SpecimenSentDate
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'specimenReceivedDate'
    rule:
      name:
        v: set SpecimenRecdDate
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'sampleId'
    rule:
      name:
        v: set SampleId
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'testPerformed'
    rule:
      name:
        v: set TypeOfTest
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'antigen'
    rule:
      name:
        v: set Antigen
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'result'
    rule:
      name:
        v: set Results
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer

v: answer

v: value

v: value

v: lmLaboratoryResults

v: variable

v: SpecimenNumber

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmLaboratoryResults

v: variable

v: SampleType

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmLaboratoryResults

v: variable

v: SpecimenCollectionDate

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmLaboratoryResults

v: variable

v: LabName

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmLaboratoryResults

v: variable

v: SpecimenSentDate

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmLaboratoryResults

v: variable

v: SpecimenRecdDate

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmLaboratoryResults

v: variable

v: SampleId

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmLaboratoryResults

v: variable

v: TypeOfTest

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmLaboratoryResults

v: variable

v: Antigen

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmLaboratoryResults

v: variable

v: Results

v: copy

value:
  v: value

v: first

v: answer

v: item.linkId = 'resultDate'

name:
  v: set LabResultsDate
source:
  context:
    v: answer
  element:
    v: value
  variable:
    v: value
target:
  context:
    v: lmLaboratoryResults
  context type:
    v: variable
  element:
    v: LabResultsDate
  transform:
    v: copy
  parameter:
    value:
      v: value

name:
  v: set
source:
  context:
    v: item
  element:
    v: answer
  list mode:
    v: first
  variable:
    v: answer
  condition:
    v: item.linkId = 'specifyVirus'
rule:
  name:
    v: set specify virus
  source:
    context:
      v: answer
    element:
      v: value
    variable:
      v: value
  target:
    context:
      v: lmLaboratoryResults
    context type:
      v: variable
    element:
      v: ViralGenotype
    transform:
      v: copy
    parameter:
      value:
        v: value

name:
  v: mapTravelDetails
type mode:
  v: none
input:
  name:
    v: qrTravelDetails
  mode:
    v: source
input:
  name:
    v: lmContactTracing
  type:
    v: SOTMeaslesContactTracing
  mode:
    v: target
rule:
  name:
    v: set
  source:
    context:
      v: qrTravelDetails
    element:
      v: answer
    list mode:
      v: first
    variable:
      v: answer
    condition:
      v: item.linkId = 'placeOfTravel'
  rule:
    name:
      v: set specify virus
    source:
      context:
        v: answer
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: lmTravelDetails
      context type:
        v: variable
      element:
        v: placeOfTravel
      transform:
        v: copy
rule:
  name:
    v: set
  source:
    context:
      v: qrTravelDetails
    element:
      v: answer
    list mode:
      v: first
    variable:
      v: answer
    condition:
      v: item.linkId = 'arrivalDate'
  rule:
    name:
      v: set specify virus
    source:
      context:
        v: answer
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: lmTravelDetails
      context type:
        v: variable
      element:
        v: arrivalDate
      transform:
        v: copy
rule:
  name:
    v: set
  source:
    context:
      v: qrTravelDetails
    element:
      v: answer
    list mode:
      v: first
    variable:
      v: answer
    condition:
      v: item.linkId = 'departureDate'
  rule:
    name:
      v: set specify virus
    source:
      context:
        v: answer
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: lmTravelDetails
      context type:
        v: variable
      element:
        v: departureDate
      transform:
        v: copy

v: value

v: value

v: value

name:
  v: mapContactTracing
type mode:
  v: none
input:
  name:
    v: qrContactTracing
  mode:
    v: source
input:
  name:
    v: lmContactTracing
  type:
    v: SOTMeaslesContactTracing
  mode:
    v: target
rule:
  name:
    v: set contact tracing
  source:
    context:
      v: qrContactTracing
    element:
      v: item
    variable:
      v: item
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'caseSearchConducted'
    rule:
      name:
        v: set specify virus
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'noOfsuspectCases'
    rule:
      name:
        v: set specify virus
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'pregnantContact'
    rule:
      name:
        v: set specify virus
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'pregnantContactNames'
    rule:
      name:
        v: set specify virus
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'localCasesPresent'
    rule:
      name:
        v: set specify virus
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'travelledOutside'
    rule:
      name:
        v: set specify virus
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: qrTravelDetails
      condition:
        v: item.linkId = 'travelDetails'
    target:
      context type:
        v: variable
      variable:
        v: tgtTravelDetails
      transform:
        v: create
    rule:
      name:
        v: d
    rule:
      name:
        v: set
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'infectionSetting'
    rule:
      name:
        v: set specify virus
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'specifyInfectionSetting'
    rule:
      name:
        v: set specify virus

v: answer

v: value

v: value

v: lmContactTracing

v: variable

v: caseSearchConducted

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmContactTracing

v: variable

v: noOfsuspectCases

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmContactTracing

v: variable

v: pregnantContact

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmContactTracing

v: variable

v: pregnantContactNames

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmContactTracing

v: variable

v: localCasesPresent

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmContactTracing

v: variable

v: travelledOutside

v: copy

value:
  v: value

v: qrTravelDetails

v: variable

v: copy

value:
  v: qrTravelDetails

v: mapTravelDetails

v: qrTravelDetails

v: tgtTravelDetails

v: qrTravelDetails

v: lmContactTracing

v: variable

v: travelDetails

v: copy

value:
  v: tgtTravelDetails

v: answer

v: value

v: value

v: lmContactTracing

v: variable

v: infectionSetting

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmContactTracing

v: variable

v: specifyInfectionSetting

v: copy

value:
  v: value

name:
  v: mapEpiData
type mode:
  v: none
input:
  name:
    v: qrEpiData
  mode:
    v: source
input:
  name:
    v: lmEpiData
  type:
    v: EpiDataLogicalModel
  mode:
    v: target
rule:
  name:
    v: set epi data
  source:
    context:
      v: qrEpiData
    element:
      v: item
    variable:
      v: item
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'ringVaccination'
    rule:
      name:
        v: set finalClassification
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'dateStarted'
    rule:
      name:
        v: set finalClassification
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'dateEnded'
    rule:
      name:
        v: set finalClassification
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'noOfDosesRingVaccination'
    rule:
      name:
        v: set finalClassification
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'rapidCoverageMonitioring'
    rule:
      name:
        v: set finalClassification
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'percentVaccinated'
    rule:
      name:
        v: set finalClassification
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'contactTracingDone'
    rule:
      name:
        v: set finalClassification
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'lastFollowUp'
    rule:
      name:
        v: set finalClassification

v: answer

v: value

v: value

v: lmEpiData

v: variable

v: ringVaccination

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmEpiData

v: variable

v: dateStarted

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmEpiData

v: variable

v: dateEnded

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmEpiData

v: variable

v: noOfDosesRingVaccination

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmEpiData

v: variable

v: rapidCoverageMonitioring

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmEpiData

v: variable

v: percentVaccinated

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmEpiData

v: variable

v: contactTracingDone

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmEpiData

v: variable

v: lastFollowUp

v: copy

value:
  v: value

name:
  v: mapClassification
type mode:
  v: none
input:
  name:
    v: qrClassification
  mode:
    v: source
input:
  name:
    v: lmClassification
  type:
    v: ClassificationLogicalModel
  mode:
    v: target
rule:
  name:
    v: set classification
  source:
    context:
      v: qrClassification
    element:
      v: item
    variable:
      v: item
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'finalClassification'
    rule:
      name:
        v: set finalClassification
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'confirmationBasis'
    rule:
      name:
        v: set confirmationBasis
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'source'
    rule:
      name:
        v: set source
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'countryImportation'
    rule:
      name:
        v: set countryImportation
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'discardingBasis'
    rule:
      name:
        v: set discardingBasis
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'contact'
    rule:
      name:
        v: set contact
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'contactCaseNo'
    rule:
      name:
        v: set contactCaseNo
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'classifiedBy'
    rule:
      name:
        v: set classifiedBy
  rule:
    name:
      v: set
    source:
      context:
        v: item
      element:
        v: answer
      list mode:
        v: first
      variable:
        v: answer
      condition:
        v: item.linkId = 'classificationDate'
    rule:
      name:
        v: set classificationDate

v: answer

v: value

v: value

v: lmClassification

v: variable

v: FinalClassification

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmClassification

v: variable

v: ConfirmationBasis

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmClassification

v: variable

v: Source

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmClassification

v: variable

v: CountryImportation

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmClassification

v: variable

v: DiscardingBasis

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmClassification

v: variable

v: Contact

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmClassification

v: variable

v: ContactCaseNo

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmClassification

v: variable

v: ClassifiedBy

v: copy

value:
  v: value

v: answer

v: value

v: value

v: lmClassification

v: variable

v: ClassificationDate

v: copy

value:
  v: value