RadOrderQrToBundle
type: StructureMap
node role: treeRoot
resource.id:
  value: RadOrderQrToBundle
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: map "http://fhir.ch/ig/ch-rad-order/StructureMap/RadOrderQrToBundle" = "RadOrderQrToBundle" // Radiologoy QuestionnaireResponse to Bundle uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as source uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as target uses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as target uses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias Practitioner as target uses "http://hl7.org/fhir/StructureDefinition/PractitionerRole" alias PractitionerRole as target uses "http://hl7.org/fhir/StructureDefinition/ServiceRequest" alias ServiceRequest as target uses "http://hl7.org/fhir/StructureDefinition/BackboneElement" alias BackboneElement as target imports "http://fhir.ch/ig/ch-orf/StructureMap/OrfQrToBundle" group RadOrderQrToBundle(source qr : QuestionnaireResponse, target bundle : Bundle) { qr -> bundle.identifier as documentIdentifier, documentIdentifier.system = 'urn:ietf:rfc:3986', uuid() as uuidDoc, documentIdentifier.value = ('urn:uuid:' + uuidDoc) "documentIdentifier"; qr as qrcp -> bundle.entry as e, e.resource = create('Composition') as composition, composition.id = uuid() as uuid, e.fullUrl = ('urn:uuid:' + uuid), bundle.entry as e2, bundle.timestamp = (now()) as timestamp, composition.date = timestamp, e2.resource = create('Patient') as patient, patient.id = uuid() as uuid2, e2.fullUrl = ('urn:uuid:' + uuid2), bundle.entry as e4, e4.resource = qrcp as questionnaireresp, questionnaireresp.id = uuid() as uuid4, e4.fullUrl = ('urn:uuid:' + uuid4), bundle.entry as e5, e5.resource = create('ServiceRequest') as servicerequest, servicerequest.id = uuid() as uuid5, e5.fullUrl = ('urn:uuid:' + uuid5) then { qr.questionnaire as can -> bundle.entry as e6, e6.resource = (can.resolve()) as q, q.id = uuid() as uuid6, e6.fullUrl = append('urn:uuid:', uuid6) then Qr…
structure map.url:
  value: http://fhir.ch/ig/ch-rad-order/StructureMap/RadOrderQrToBundle
structure map.version:
  value: 0.1.0
structure map.name:
  value: RadOrderQrToBundle
structure map.status:
  value: draft
structure map.date:
  value: 2021-06-17T15:58:58+02:00
structure map.publisher:
  value: HL7 Switzerland
structure map.contact:
  index: 0
  contact detail.name:
    value: Juerg P. Bleuer
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://www.hl7.ch
structure map.description:
  value: Radiologoy QuestionnaireResponse to Bundle
structure map.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: CH
structure map.copyright:
  value: CC-BY-SA-4.0
structure map.structure:
  index: 0
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
    link: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
  structure map.structure.mode:
    value: source
  structure map.structure.alias:
    value: QuestionnaireResponse
structure map.structure:
  index: 1
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Bundle
    link: http://hl7.org/fhir/StructureDefinition/Bundle
  structure map.structure.mode:
    value: target
  structure map.structure.alias:
    value: Bundle
structure map.structure:
  index: 2
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  structure map.structure.mode:
    value: target
  structure map.structure.alias:
    value: Patient
structure map.structure:
  index: 3
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
  structure map.structure.mode:
    value: target
  structure map.structure.alias:
    value: Organization
structure map.structure:
  index: 4
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  structure map.structure.mode:
    value: target
  structure map.structure.alias:
    value: Practitioner
structure map.structure:
  index: 5
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  structure map.structure.mode:
    value: target
  structure map.structure.alias:
    value: PractitionerRole
structure map.structure:
  index: 6
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/ServiceRequest
    link: http://hl7.org/fhir/StructureDefinition/ServiceRequest
  structure map.structure.mode:
    value: target
  structure map.structure.alias:
    value: ServiceRequest
structure map.structure:
  index: 7
  structure map.structure.url:
    value: http://hl7.org/fhir/StructureDefinition/BackboneElement
    link: http://hl7.org/fhir/StructureDefinition/BackboneElement
  structure map.structure.mode:
    value: target
  structure map.structure.alias:
    value: BackboneElement
structure map.import:
  value: http://fhir.ch/ig/ch-orf/StructureMap/OrfQrToBundle
  index: 0
  link: http://fhir.ch/ig/ch-orf/StructureMap/OrfQrToBundle
structure map.group:
  index: 0
  structure map.group.name:
    value: RadOrderQrToBundle
  structure map.group.type mode:
    value: none
  structure map.group.input:
    index: 0
    structure map.group.input.name:
      value: qr
    structure map.group.input.type:
      value: QuestionnaireResponse
    structure map.group.input.mode:
      value: source
  structure map.group.input:
    index: 1
    structure map.group.input.name:
      value: bundle
    structure map.group.input.type:
      value: Bundle
    structure map.group.input.mode:
      value: target
  structure map.group.rule:
    index: 0
    structure map.group.rule.name:
      value: documentIdentifier
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: qr
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: bundle
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: identifier
      structure map.group.rule.target.variable:
        value: documentIdentifier
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: documentIdentifier
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.variable:
        value: uuidDoc
      structure map.group.rule.target.transform:
        value: uuid
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: documentIdentifier
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
  structure map.group.rule:
    index: 1
    structure map.group.rule.name:
      value: orfbundle
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: qr
      structure map.group.rule.source.variable:
        value: qrcp
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: bundle

value: urn:ietf:rfc:3986

value: 'urn:uuid:' + uuidDoc

value: variable

value: entry

value: e

index: 1
structure map.group.rule.target.context:
  value: e
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: resource
structure map.group.rule.target.variable:
  value: composition
structure map.group.rule.target.transform:
  value: create
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Composition

index: 2
structure map.group.rule.target.context:
  value: composition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: id
structure map.group.rule.target.variable:
  value: uuid
structure map.group.rule.target.transform:
  value: uuid

index: 3
structure map.group.rule.target.context:
  value: e
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: fullUrl
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + uuid

index: 4
structure map.group.rule.target.context:
  value: bundle
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: entry
structure map.group.rule.target.variable:
  value: e2

index: 5
structure map.group.rule.target.context:
  value: bundle
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: timestamp
structure map.group.rule.target.variable:
  value: timestamp
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: now()

index: 6
structure map.group.rule.target.context:
  value: composition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: date
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value id:
    value: timestamp

index: 7
structure map.group.rule.target.context:
  value: e2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: resource
structure map.group.rule.target.variable:
  value: patient
structure map.group.rule.target.transform:
  value: create
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Patient

index: 8
structure map.group.rule.target.context:
  value: patient
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: id
structure map.group.rule.target.variable:
  value: uuid2
structure map.group.rule.target.transform:
  value: uuid

index: 9
structure map.group.rule.target.context:
  value: e2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: fullUrl
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + uuid2

index: 10
structure map.group.rule.target.context:
  value: bundle
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: entry
structure map.group.rule.target.variable:
  value: e4

index: 11
structure map.group.rule.target.context:
  value: e4
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: resource
structure map.group.rule.target.variable:
  value: questionnaireresp
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value id:
    value: qrcp

index: 12
structure map.group.rule.target.context:
  value: questionnaireresp
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: id
structure map.group.rule.target.variable:
  value: uuid4
structure map.group.rule.target.transform:
  value: uuid

index: 13
structure map.group.rule.target.context:
  value: e4
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: fullUrl
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + uuid4

index: 14
structure map.group.rule.target.context:
  value: bundle
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: entry
structure map.group.rule.target.variable:
  value: e5

index: 15
structure map.group.rule.target.context:
  value: e5
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: resource
structure map.group.rule.target.variable:
  value: servicerequest
structure map.group.rule.target.transform:
  value: create
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: ServiceRequest

index: 16
structure map.group.rule.target.context:
  value: servicerequest
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: id
structure map.group.rule.target.variable:
  value: uuid5
structure map.group.rule.target.transform:
  value: uuid

index: 17
structure map.group.rule.target.context:
  value: e5
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: fullUrl
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + uuid5

index: 0
structure map.group.rule.name:
  value: orfbundle
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: qr
  structure map.group.rule.source.element:
    value: questionnaire
  structure map.group.rule.source.variable:
    value: can
structure map.group.rule.target:
  index: 0
  structure map.group.rule.target.context:
    value: bundle
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: entry
  structure map.group.rule.target.variable:
    value: e6
structure map.group.rule.target:
  index: 1
  structure map.group.rule.target.context:
    value: e6
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: resource
  structure map.group.rule.target.variable:
    value: q
  structure map.group.rule.target.transform:
    value: evaluate
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: can.resolve()
structure map.group.rule.target:
  index: 2
  structure map.group.rule.target.context:
    value: q
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: id
  structure map.group.rule.target.variable:
    value: uuid6
  structure map.group.rule.target.transform:
    value: uuid
structure map.group.rule.target:
  index: 3
  structure map.group.rule.target.context:
    value: e6
  structure map.group.rule.target.context type:
    value: variable
  structure map.group.rule.target.element:
    value: fullUrl
  structure map.group.rule.target.transform:
    value: append
  structure map.group.rule.target.parameter:
    index: 0
    structure map.group.rule.target.parameter.value string:
      value: urn:uuid:
  structure map.group.rule.target.parameter:
    index: 1
    structure map.group.rule.target.parameter.value id:
      value: uuid6
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: QrToBundle
  structure map.group.rule.dependent.variable:
    value: qr
    index: 0
  structure map.group.rule.dependent.variable:
    value: q
    index: 1
  structure map.group.rule.dependent.variable:
    value: patient
    index: 2
  structure map.group.rule.dependent.variable:
    value: questionnaireresp
    index: 3
  structure map.group.rule.dependent.variable:
    value: servicerequest
    index: 4
  structure map.group.rule.dependent.variable:
    value: composition
    index: 5
  structure map.group.rule.dependent.variable:
    value: bundle
    index: 6

index: 1
structure map.group.rule.name:
  value: servicerequest
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: qr
structure map.group.rule.dependent:
  index: 0
  structure map.group.rule.dependent.name:
    value: RadOrderQrToServiceRequest
  structure map.group.rule.dependent.variable:
    value: qr
    index: 0
  structure map.group.rule.dependent.variable:
    value: patient
    index: 1
  structure map.group.rule.dependent.variable:
    value: bundle
    index: 2
  structure map.group.rule.dependent.variable:
    value: composition
    index: 3
  structure map.group.rule.dependent.variable:
    value: servicerequest
    index: 4

index: 1
structure map.group.name:
  value: RadOrderQrToServiceRequest
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: qr
  structure map.group.input.type:
    value: QuestionnaireResponse
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: patient
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: composition
  structure map.group.input.type:
    value: Composition
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 4
  structure map.group.input.name:
    value: serviceRequest
  structure map.group.input.type:
    value: ServiceRequest
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: requestedService
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: grp
    structure map.group.rule.source.condition:
      value: linkId = 'requestedService'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: RequestedServiceItems
    structure map.group.rule.dependent.variable:
      value: grp
      index: 0
    structure map.group.rule.dependent.variable:
      value: serviceRequest
      index: 1
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: reason
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: grp
    structure map.group.rule.source.condition:
      value: linkId = 'reason'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ReasonServiceItems
    structure map.group.rule.dependent.variable:
      value: grp
      index: 0
    structure map.group.rule.dependent.variable:
      value: serviceRequest
      index: 1
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: imagingService
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: grp
    structure map.group.rule.source.condition:
      value: linkId = 'imagingService'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: ImagingServiceItems
    structure map.group.rule.dependent.variable:
      value: grp
      index: 0
    structure map.group.rule.dependent.variable:
      value: serviceRequest
      index: 1
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: orderDetail
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: grp
    structure map.group.rule.source.condition:
      value: linkId = 'orderDetail'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: OrderDetailServiceItems
    structure map.group.rule.dependent.variable:
      value: grp
      index: 0
    structure map.group.rule.dependent.variable:
      value: serviceRequest
      index: 1
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: diagnosisList
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: grp
    structure map.group.rule.source.condition:
      value: linkId = 'diagnosisList'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: DiagnosisListServiceItems
    structure map.group.rule.dependent.variable:
      value: grp
      index: 0
    structure map.group.rule.dependent.variable:
      value: patient
      index: 1
    structure map.group.rule.dependent.variable:
      value: bundle
      index: 2
    structure map.group.rule.dependent.variable:
      value: serviceRequest
      index: 3
structure map.group.rule:
  index: 5
  structure map.group.rule.name:
    value: Caveat
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: qr
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: grp
    structure map.group.rule.source.condition:
      value: linkId = 'caveat'
  structure map.group.rule.dependent:
    index: 0
    structure map.group.rule.dependent.name:
      value: CaveatServiceItems
    structure map.group.rule.dependent.variable:
      value: grp
      index: 0
    structure map.group.rule.dependent.variable:
      value: patient
      index: 1
    structure map.group.rule.dependent.variable:
      value: bundle
      index: 2
    structure map.group.rule.dependent.variable:
      value: serviceRequest
      index: 3

index: 2
structure map.group.name:
  value: RequestedServiceItems
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: BackboneElement
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: serviceRequest
  structure map.group.input.type:
    value: ServiceRequest
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: item
    structure map.group.rule.source.condition:
      value: ((linkId.value = 'requestedService.service') and answer.exists())
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: answer.valueCoding
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: item
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: answer
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: requestedService.service
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1

value: answer

value: Coding

value: value

value: coding

value: serviceRequest

value: variable

value: category

value: cc

value: cc

value: variable

value: coding

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: coding

index: 3
structure map.group.name:
  value: ReasonServiceItems
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: BackboneElement
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: serviceRequest
  structure map.group.input.type:
    value: ServiceRequest
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: item
    structure map.group.rule.source.condition:
      value: ((linkId.value = 'reason.question') and answer.exists())
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: answer.valueString
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: item
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: answer
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: reason.question
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1

value: answer

value: string

value: value

value: value

value: serviceRequest

value: variable

value: reasonCode

value: reasonCode

value: reasonCode

value: variable

value: text

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: value

index: 4
structure map.group.name:
  value: ImagingServiceItems
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: BackboneElement
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: serviceRequest
  structure map.group.input.type:
    value: ServiceRequest
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: item
    structure map.group.rule.source.condition:
      value: ((linkId.value = 'imagingService.type') and answer.exists())
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: answer.valueCoding
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: item
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: answer
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: requestedService.service
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1

value: answer

value: Coding

value: value

value: coding

value: serviceRequest

value: variable

value: code

value: code

value: code

value: variable

value: coding

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: coding

index: 5
structure map.group.name:
  value: OrderDetailServiceItems
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: BackboneElement
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: serviceRequest
  structure map.group.input.type:
    value: ServiceRequest
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: item
    structure map.group.rule.source.condition:
      value: ((linkId.value = 'orderDetail.imagingRegion') and answer.exists())
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: answer.valueCoding
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: item
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: answer
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: orderDetail.imagingRegion
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
      structure map.group.rule.target:
        index: 2
      structure map.group.rule.target:
        index: 3
      structure map.group.rule.target:
        index: 4
      structure map.group.rule.target:
        index: 5
      structure map.group.rule.target:
        index: 6
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: item
    structure map.group.rule.source.condition:
      value: ((linkId.value = 'orderDetail.imagingFocus') and answer.exists())
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: answer.valueCoding
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: item
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: answer
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: orderDetail.imagingFocus
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: item
    structure map.group.rule.source.condition:
      value: ((linkId.value = 'orderDetail.laterality') and answer.exists())
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: answer.valueCoding
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: item
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: answer
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: orderDetail.laterality
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
      structure map.group.rule.target:
        index: 2
      structure map.group.rule.target:
        index: 3
      structure map.group.rule.target:
        index: 4
      structure map.group.rule.target:
        index: 5
      structure map.group.rule.target:
        index: 6
structure map.group.rule:
  index: 3
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: item
    structure map.group.rule.source.condition:
      value: ((linkId.value = 'orderDetail.viewType') and answer.exists())
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: answer.valueCoding
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: item
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: answer
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: orderDetail.viewType
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
      structure map.group.rule.target:
        index: 2
      structure map.group.rule.target:
        index: 3
      structure map.group.rule.target:
        index: 4
      structure map.group.rule.target:
        index: 5
      structure map.group.rule.target:
        index: 6
structure map.group.rule:
  index: 4
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src

value: answer

value: Coding

value: value

value: coding

value: serviceRequest

value: variable

value: orderDetail

value: cc

value: cc

value: variable

value: extension

value: ext

value: ext

value: variable

value: url

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://fhir.ch/ig/ch-rad-order/StructureDefinition/ch-rad-order-order-detail-type

value: ext

value: variable

value: value

value: coding

value: create

index: 0
structure map.group.rule.target.parameter.value string:
  value: Coding

value: coding

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://fhir.ch/ig/ch-rad-order/CodeSystem/ch-rad-order-order-detail-type

value: coding

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: imagingRegion

value: cc

value: variable

value: coding

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: coding

value: answer

value: Coding

value: value

value: coding

value: serviceRequest

value: variable

value: bodySite

value: cc

value: cc

value: variable

value: coding

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: coding

value: answer

value: Coding

value: value

value: coding

value: serviceRequest

value: variable

value: orderDetail

value: cc

value: cc

value: variable

value: extension

value: ext

value: ext

value: variable

value: url

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://fhir.ch/ig/ch-rad-order/StructureDefinition/ch-rad-order-order-detail-type

value: ext

value: variable

value: value

value: coding

value: create

index: 0
structure map.group.rule.target.parameter.value string:
  value: Coding

value: coding

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://fhir.ch/ig/ch-rad-order/CodeSystem/ch-rad-order-order-detail-type

value: coding

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: laterality

value: cc

value: variable

value: coding

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: coding

value: answer

value: Coding

value: value

value: coding

value: serviceRequest

value: variable

value: orderDetail

value: cc

value: cc

value: variable

value: extension

value: ext

value: ext

value: variable

value: url

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://fhir.ch/ig/ch-rad-order/StructureDefinition/ch-rad-order-order-detail-type

value: ext

value: variable

value: value

value: coding

value: create

index: 0
structure map.group.rule.target.parameter.value string:
  value: Coding

value: coding

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://fhir.ch/ig/ch-rad-order/CodeSystem/ch-rad-order-order-detail-type

value: coding

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: viewType

value: cc

value: variable

value: coding

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: coding

value: item

value: item

value: ((linkId.value = 'orderDetail.maneuverType') and answer.exists())

index: 0
structure map.group.rule.name:
  value: answer.valueCoding
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: item
  structure map.group.rule.source.element:
    value: answer
  structure map.group.rule.source.variable:
    value: answer
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: orderDetail.maneuverType
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: answer
    structure map.group.rule.source.type:
      value: Coding
    structure map.group.rule.source.element:
      value: value
    structure map.group.rule.source.variable:
      value: coding
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: serviceRequest
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: orderDetail
    structure map.group.rule.target.variable:
      value: cc
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: cc
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: extension
    structure map.group.rule.target.variable:
      value: ext
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: url
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: http://fhir.ch/ig/ch-rad-order/StructureDefinition/ch-rad-order-order-detail-type
  structure map.group.rule.target:
    index: 3
    structure map.group.rule.target.context:
      value: ext
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: value
    structure map.group.rule.target.variable:
      value: coding
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Coding
  structure map.group.rule.target:
    index: 4
    structure map.group.rule.target.context:
      value: coding
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: system
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: http://fhir.ch/ig/ch-rad-order/CodeSystem/ch-rad-order-order-detail-type
  structure map.group.rule.target:
    index: 5
    structure map.group.rule.target.context:
      value: coding
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: maneuverType
  structure map.group.rule.target:
    index: 6
    structure map.group.rule.target.context:
      value: cc
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: coding
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value id:
        value: coding

index: 5
structure map.group.rule.name:
  value: item.answer
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: item
  structure map.group.rule.source.condition:
    value: ((linkId.value = 'orderDetail.guidanceForAction') and answer.exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: answer.valueCoding
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: item
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: orderDetail.guidanceForAction
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.type:
        value: Coding
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: coding
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: serviceRequest
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: orderDetail
      structure map.group.rule.target.variable:
        value: cc
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: cc
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: extension
      structure map.group.rule.target.variable:
        value: ext
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: ext
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: url
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: ext
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.variable:
        value: coding
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 4
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 5
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 6
      structure map.group.rule.target.context:
        value: cc
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0

value: Coding

value: guidanceForAction

value: coding

index: 6
structure map.group.name:
  value: DiagnosisListServiceItems
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: BackboneElement
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: patient
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: serviceRequest
  structure map.group.input.type:
    value: ServiceRequest
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: item
    structure map.group.rule.source.condition:
      value: ((linkId.value = 'diagnosisList.secondaryDiagnosis') and answer.exists())
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: answer.valueString
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: item
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: answer
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: diagnosisList.secondaryDiagnosis
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
      structure map.group.rule.target:
        index: 2
      structure map.group.rule.target:
        index: 3
      structure map.group.rule.target:
        index: 4
      structure map.group.rule.target:
        index: 5
      structure map.group.rule.target:
        index: 6
      structure map.group.rule.target:
        index: 7
      structure map.group.rule.target:
        index: 8
      structure map.group.rule.target:
        index: 9
      structure map.group.rule.target:
        index: 10
      structure map.group.rule.target:
        index: 11
      structure map.group.rule.target:
        index: 12
      structure map.group.rule.target:
        index: 13
      structure map.group.rule.target:
        index: 14

value: answer

value: string

value: value

value: value

value: bundle

value: variable

value: entry

value: e

value: e

value: variable

value: resource

value: condition

value: create

index: 0
structure map.group.rule.target.parameter.value string:
  value: Condition

value: condition

value: variable

value: id

value: uuid

value: uuid

value: e

value: variable

value: fullUrl

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'urn:uuid:' + uuid

value: serviceRequest

value: variable

value: supportingInfo

value: supportingInfo

value: supportingInfo

value: variable

value: reference

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'urn:uuid:' + uuid

value: condition

value: variable

value: category

value: category

value: category

value: variable

value: coding

value: coding

value: coding

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: problem-list-item

value: coding

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://terminology.hl7.org/CodeSystem/condition-category

value: coding

value: variable

value: display

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: Problem List Item

value: condition

value: variable

value: code

value: code

value: code

value: variable

value: text

value: copy

index: 0
structure map.group.rule.target.parameter.value id:
  value: value

value: condition

value: variable

value: subject

value: subject

value: subject

value: variable

value: reference

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'urn:uuid:' + patient.id

index: 7
structure map.group.name:
  value: CaveatServiceItems
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: BackboneElement
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: patient
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: serviceRequest
  structure map.group.input.type:
    value: ServiceRequest
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: item
    structure map.group.rule.source.condition:
      value: ((linkId.value = 'caveat.bloodCoagulation') and answer.exists())
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: answer.valueString
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: item
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: answer
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: caveat.bloodCoagulation
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
      structure map.group.rule.target:
        index: 2
      structure map.group.rule.target:
        index: 3
      structure map.group.rule.target:
        index: 4
      structure map.group.rule.target:
        index: 5
      structure map.group.rule.target:
        index: 6
      structure map.group.rule.target:
        index: 7
      structure map.group.rule.target:
        index: 8
      structure map.group.rule.target:
        index: 9
      structure map.group.rule.target:
        index: 10
      structure map.group.rule.target:
        index: 11
      structure map.group.rule.target:
        index: 12
      structure map.group.rule.target:
        index: 13
      structure map.group.rule.target:
        index: 14
      structure map.group.rule.target:
        index: 15
      structure map.group.rule.target:
        index: 16
      structure map.group.rule.target:
        index: 17
structure map.group.rule:
  index: 1
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: item
    structure map.group.rule.source.condition:
      value: ((linkId.value = 'caveat.renalInsufficiency') and answer.exists())
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: answer.valueString
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: item
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: answer
    structure map.group.rule.rule:
      index: 0
      structure map.group.rule.name:
        value: caveat.renalInsufficiency
      structure map.group.rule.source:
        index: 0
      structure map.group.rule.target:
        index: 0
      structure map.group.rule.target:
        index: 1
      structure map.group.rule.target:
        index: 2
      structure map.group.rule.target:
        index: 3
      structure map.group.rule.target:
        index: 4
      structure map.group.rule.target:
        index: 5
      structure map.group.rule.target:
        index: 6
      structure map.group.rule.target:
        index: 7
      structure map.group.rule.target:
        index: 8
      structure map.group.rule.target:
        index: 9
      structure map.group.rule.target:
        index: 10
      structure map.group.rule.target:
        index: 11
      structure map.group.rule.target:
        index: 12
      structure map.group.rule.target:
        index: 13
      structure map.group.rule.target:
        index: 14
      structure map.group.rule.target:
        index: 15
      structure map.group.rule.target:
        index: 16
      structure map.group.rule.target:
        index: 17
      structure map.group.rule.rule:
        index: 0
structure map.group.rule:
  index: 2
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
    structure map.group.rule.source.element:
      value: item
    structure map.group.rule.source.variable:
      value: item
    structure map.group.rule.source.condition:
      value: ((linkId.value = 'caveat.claustrophobia') and answer.exists())
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: answer.valueString
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: item
      structure map.group.rule.source.element:
        value: answer
      structure map.group.rule.source.variable:
        value: answer
    structure map.group.rule.rule:
      index: 0

value: answer

value: boolean

value: value

value: value

value: answer.valueBoolean

value: bundle

value: variable

value: entry

value: e

value: e

value: variable

value: resource

value: condition

value: create

index: 0
structure map.group.rule.target.parameter.value string:
  value: Condition

value: condition

value: variable

value: id

value: uuid

value: uuid

value: e

value: variable

value: fullUrl

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'urn:uuid:' + uuid

value: serviceRequest

value: variable

value: supportingInfo

value: supportingInfo

value: supportingInfo

value: variable

value: reference

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'urn:uuid:' + uuid

value: condition

value: variable

value: category

value: category

value: category

value: variable

value: coding

value: coding

value: coding

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: problem-list-item

value: coding

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://terminology.hl7.org/CodeSystem/condition-category

value: coding

value: variable

value: display

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: Problem List Item

value: condition

value: variable

value: code

value: code

value: code

value: variable

value: coding

value: coding2

value: coding2

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: 64779008

value: coding2

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://snomed.info/sct

value: coding2

value: variable

value: display

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: Blood coagulation disorder (disorder)

value: condition

value: variable

value: subject

value: subject

value: subject

value: variable

value: reference

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'urn:uuid:' + patient.id

value: answer

value: boolean

value: value

value: value

value: answer.valueBoolean

value: bundle

value: variable

value: entry

value: e

value: e

value: variable

value: resource

value: condition

value: create

index: 0
structure map.group.rule.target.parameter.value string:
  value: Condition

value: condition

value: variable

value: id

value: uuid

value: uuid

value: e

value: variable

value: fullUrl

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'urn:uuid:' + uuid

value: serviceRequest

value: variable

value: supportingInfo

value: supportingInfo

value: supportingInfo

value: variable

value: reference

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'urn:uuid:' + uuid

value: condition

value: variable

value: category

value: category

value: category

value: variable

value: coding

value: coding

value: coding

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: problem-list-item

value: coding

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://terminology.hl7.org/CodeSystem/condition-category

value: coding

value: variable

value: display

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: Problem List Item

value: condition

value: variable

value: code

value: code

value: code

value: variable

value: coding

value: coding2

value: coding2

value: variable

value: code

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: 723188008

value: coding2

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://snomed.info/sct

value: coding2

value: variable

value: display

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: Renal insufficiency (disorder)

value: condition

value: variable

value: subject

value: subject

value: subject

value: variable

value: reference

value: evaluate

index: 0
structure map.group.rule.target.parameter.value string:
  value: 'urn:uuid:' + patient.id

value: RenalInsufficiencyCreatinineServiceItems

index: 0
structure map.group.rule.source.context:
  value: answer
structure map.group.rule.source.element:
  value: item
structure map.group.rule.source.variable:
  value: item2
structure map.group.rule.source.condition:
  value: (linkId.value = 'caveat.renalInsufficiency.creatinine')

index: 0
structure map.group.rule.dependent.name:
  value: RenalInsufficiencyCreatinineServiceItems
structure map.group.rule.dependent.variable:
  value: item2
  index: 0
structure map.group.rule.dependent.variable:
  value: patient
  index: 1
structure map.group.rule.dependent.variable:
  value: bundle
  index: 2
structure map.group.rule.dependent.variable:
  value: serviceRequest
  index: 3
structure map.group.rule.dependent.variable:
  value: condition
  index: 4

value: FIXME TODO answer.item as item2 where (linkId.value = 'caveat.renalInsufficiency.creatinineClearance') then RenalInsufficiencyCreatinineServiceItems(item2, patient, bundle, serviceRequest, condition) "RenalInsufficiencyCreatinineServiceItems";

value: caveat.claustrophobia

index: 0
structure map.group.rule.source.context:
  value: answer
structure map.group.rule.source.type:
  value: boolean
structure map.group.rule.source.element:
  value: value
structure map.group.rule.source.variable:
  value: value
structure map.group.rule.source.condition:
  value: answer.valueBoolean

index: 0
structure map.group.rule.target.context:
  value: bundle
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: entry
structure map.group.rule.target.variable:
  value: e

index: 1
structure map.group.rule.target.context:
  value: e
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: resource
structure map.group.rule.target.variable:
  value: condition
structure map.group.rule.target.transform:
  value: create
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Condition

index: 2
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: id
structure map.group.rule.target.variable:
  value: uuid
structure map.group.rule.target.transform:
  value: uuid

index: 3
structure map.group.rule.target.context:
  value: e
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: fullUrl
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + uuid

index: 4
structure map.group.rule.target.context:
  value: serviceRequest
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: supportingInfo
structure map.group.rule.target.variable:
  value: supportingInfo

index: 5
structure map.group.rule.target.context:
  value: supportingInfo
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + uuid

index: 6
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: category
structure map.group.rule.target.variable:
  value: category

index: 7
structure map.group.rule.target.context:
  value: category
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: coding
structure map.group.rule.target.variable:
  value: coding

index: 8
structure map.group.rule.target.context:
  value: coding
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: code
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: problem-list-item

index: 9
structure map.group.rule.target.context:
  value: coding
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: system
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: http://terminology.hl7.org/CodeSystem/condition-category

index: 10
structure map.group.rule.target.context:
  value: coding
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: display
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Problem List Item

index: 11
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: code
structure map.group.rule.target.variable:
  value: code

index: 12
structure map.group.rule.target.context:
  value: code
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: coding
structure map.group.rule.target.variable:
  value: coding2

index: 13
structure map.group.rule.target.context:
  value: coding2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: code
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 19887002

index: 14
structure map.group.rule.target.context:
  value: coding2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: system
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: http://snomed.info/sct

index: 15
structure map.group.rule.target.context:
  value: coding2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: display
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Claustrophobia (finding)

index: 16
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: subject
structure map.group.rule.target.variable:
  value: subject

index: 17
structure map.group.rule.target.context:
  value: subject
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + patient.id

index: 3
structure map.group.rule.name:
  value: item.answer
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: item
  structure map.group.rule.source.condition:
    value: ((linkId.value = 'caveat.bodyPiercing') and answer.exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: answer.valueString
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: item
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: caveat.bodyPiercing
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.type:
        value: boolean
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
      structure map.group.rule.source.condition:
        value: answer.valueBoolean
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: bundle
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: entry
      structure map.group.rule.target.variable:
        value: e
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: resource
      structure map.group.rule.target.variable:
        value: condition
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: id
      structure map.group.rule.target.variable:
        value: uuid
      structure map.group.rule.target.transform:
        value: uuid
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: fullUrl
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 4
      structure map.group.rule.target.context:
        value: serviceRequest
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: supportingInfo
      structure map.group.rule.target.variable:
        value: supportingInfo
    structure map.group.rule.target:
      index: 5
      structure map.group.rule.target.context:
        value: supportingInfo
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: reference
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 6
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: category
      structure map.group.rule.target.variable:
        value: category
    structure map.group.rule.target:
      index: 7
      structure map.group.rule.target.context:
        value: category
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding
    structure map.group.rule.target:
      index: 8
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 9
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 10
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: display
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 11
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: code
    structure map.group.rule.target:
      index: 12
      structure map.group.rule.target.context:
        value: code
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding2
    structure map.group.rule.target:
      index: 13
      structure map.group.rule.target.context:
        value: coding2
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 14
      structure map.group.rule.target.context:
        value: coding2

value: Condition

value: 'urn:uuid:' + uuid

value: 'urn:uuid:' + uuid

value: problem-list-item

value: Problem List Item

value: 879862001

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://snomed.info/sct

index: 15
structure map.group.rule.target.context:
  value: coding2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: display
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Body piercing (finding)

index: 16
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: subject
structure map.group.rule.target.variable:
  value: subject

index: 17
structure map.group.rule.target.context:
  value: subject
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + patient.id

index: 4
structure map.group.rule.name:
  value: item.answer
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: item
  structure map.group.rule.source.condition:
    value: ((linkId.value = 'caveat.device') and answer.exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: answer.valueString
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: item
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: caveat.device
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.type:
        value: string
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: bundle
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: entry
      structure map.group.rule.target.variable:
        value: e
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: resource
      structure map.group.rule.target.variable:
        value: condition
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: id
      structure map.group.rule.target.variable:
        value: uuid
      structure map.group.rule.target.transform:
        value: uuid
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: fullUrl
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 4
      structure map.group.rule.target.context:
        value: serviceRequest
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: supportingInfo
      structure map.group.rule.target.variable:
        value: supportingInfo
    structure map.group.rule.target:
      index: 5
      structure map.group.rule.target.context:
        value: supportingInfo
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: reference
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 6
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: category
      structure map.group.rule.target.variable:
        value: category
    structure map.group.rule.target:
      index: 7
      structure map.group.rule.target.context:
        value: category
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding
    structure map.group.rule.target:
      index: 8
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 9
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 10
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: display
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 11
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: code
    structure map.group.rule.target:
      index: 12
      structure map.group.rule.target.context:
        value: code
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding2
    structure map.group.rule.target:
      index: 13
      structure map.group.rule.target.context:
        value: coding2
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 14
      structure map.group.rule.target.context:
        value: coding2
      structure map.group.rule.target.context type:
        value: variable

value: Condition

value: 'urn:uuid:' + uuid

value: 'urn:uuid:' + uuid

value: problem-list-item

value: Problem List Item

value: 397578001

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://snomed.info/sct

index: 15
structure map.group.rule.target.context:
  value: coding2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: display
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Device in situ (finding)

index: 16
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: subject
structure map.group.rule.target.variable:
  value: subject

index: 17
structure map.group.rule.target.context:
  value: subject
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + patient.id

index: 18
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: note
structure map.group.rule.target.variable:
  value: note

index: 19
structure map.group.rule.target.context:
  value: note
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: text
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value id:
    value: value

index: 5
structure map.group.rule.name:
  value: item.answer
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: item
  structure map.group.rule.source.condition:
    value: ((linkId.value = 'caveat.hyperthyroidism') and answer.exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: answer.valueString
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: item
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: caveat.hyperthyroidism
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.type:
        value: boolean
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
      structure map.group.rule.source.condition:
        value: answer.valueBoolean
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: bundle
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: entry
      structure map.group.rule.target.variable:
        value: e
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: resource
      structure map.group.rule.target.variable:
        value: condition
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: id
      structure map.group.rule.target.variable:
        value: uuid
      structure map.group.rule.target.transform:
        value: uuid
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: fullUrl
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 4
      structure map.group.rule.target.context:
        value: serviceRequest
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: supportingInfo
      structure map.group.rule.target.variable:
        value: supportingInfo
    structure map.group.rule.target:
      index: 5
      structure map.group.rule.target.context:
        value: supportingInfo
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: reference
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 6
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: category
      structure map.group.rule.target.variable:
        value: category
    structure map.group.rule.target:
      index: 7
      structure map.group.rule.target.context:
        value: category
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding
    structure map.group.rule.target:
      index: 8
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 9
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 10
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: display
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 11
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: code
    structure map.group.rule.target:
      index: 12
      structure map.group.rule.target.context:
        value: code
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding2
    structure map.group.rule.target:
      index: 13
      structure map.group.rule.target.context:
        value: coding2
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 14
      structure map.group.rule.target.context:
        value: coding2

value: Condition

value: 'urn:uuid:' + uuid

value: 'urn:uuid:' + uuid

value: problem-list-item

value: Problem List Item

value: 34486009

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://snomed.info/sct

index: 15
structure map.group.rule.target.context:
  value: coding2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: display
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Hyperthyroidism (disorder)

index: 16
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: subject
structure map.group.rule.target.variable:
  value: subject

index: 17
structure map.group.rule.target.context:
  value: subject
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + patient.id

index: 6
structure map.group.rule.name:
  value: item.answer
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: item
  structure map.group.rule.source.condition:
    value: ((linkId.value = 'caveat.diabetes') and answer.exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: answer.valueString
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: item
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: caveat.diabetes
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.type:
        value: boolean
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
      structure map.group.rule.source.condition:
        value: answer.valueBoolean
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: bundle
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: entry
      structure map.group.rule.target.variable:
        value: e
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: resource
      structure map.group.rule.target.variable:
        value: condition
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: id
      structure map.group.rule.target.variable:
        value: uuid
      structure map.group.rule.target.transform:
        value: uuid
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: fullUrl
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 4
      structure map.group.rule.target.context:
        value: serviceRequest
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: supportingInfo
      structure map.group.rule.target.variable:
        value: supportingInfo
    structure map.group.rule.target:
      index: 5
      structure map.group.rule.target.context:
        value: supportingInfo
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: reference
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 6
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: category
      structure map.group.rule.target.variable:
        value: category
    structure map.group.rule.target:
      index: 7
      structure map.group.rule.target.context:
        value: category
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding
    structure map.group.rule.target:
      index: 8
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 9
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 10
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: display
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 11
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: code
    structure map.group.rule.target:
      index: 12
      structure map.group.rule.target.context:
        value: code
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding2
    structure map.group.rule.target:
      index: 13
      structure map.group.rule.target.context:
        value: coding2
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 14
      structure map.group.rule.target.context:
        value: coding2

value: Condition

value: 'urn:uuid:' + uuid

value: 'urn:uuid:' + uuid

value: problem-list-item

value: Problem List Item

value: 73211009

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://snomed.info/sct

index: 15
structure map.group.rule.target.context:
  value: coding2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: display
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Diabetes mellitus (disorder)

index: 16
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: subject
structure map.group.rule.target.variable:
  value: subject

index: 17
structure map.group.rule.target.context:
  value: subject
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + patient.id

index: 7
structure map.group.rule.name:
  value: item.answer
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: item
  structure map.group.rule.source.condition:
    value: ((linkId.value = 'caveat.gravida') and answer.exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: answer.valueString
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: item
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: caveat.gravida
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.type:
        value: boolean
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
      structure map.group.rule.source.condition:
        value: answer.valueBoolean
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: bundle
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: entry
      structure map.group.rule.target.variable:
        value: e
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: resource
      structure map.group.rule.target.variable:
        value: condition
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: id
      structure map.group.rule.target.variable:
        value: uuid
      structure map.group.rule.target.transform:
        value: uuid
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: fullUrl
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 4
      structure map.group.rule.target.context:
        value: serviceRequest
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: supportingInfo
      structure map.group.rule.target.variable:
        value: supportingInfo
    structure map.group.rule.target:
      index: 5
      structure map.group.rule.target.context:
        value: supportingInfo
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: reference
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 6
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: category
      structure map.group.rule.target.variable:
        value: category
    structure map.group.rule.target:
      index: 7
      structure map.group.rule.target.context:
        value: category
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding
    structure map.group.rule.target:
      index: 8
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 9
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 10
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: display
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 11
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: code
    structure map.group.rule.target:
      index: 12
      structure map.group.rule.target.context:
        value: code
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding2
    structure map.group.rule.target:
      index: 13
      structure map.group.rule.target.context:
        value: coding2
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 14
      structure map.group.rule.target.context:
        value: coding2

value: Condition

value: 'urn:uuid:' + uuid

value: 'urn:uuid:' + uuid

value: problem-list-item

value: Problem List Item

value: 366321006

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://snomed.info/sct

index: 15
structure map.group.rule.target.context:
  value: coding2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: display
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Finding of gravida (finding)

index: 16
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: subject
structure map.group.rule.target.variable:
  value: subject

index: 17
structure map.group.rule.target.context:
  value: subject
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + patient.id

index: 8
structure map.group.rule.name:
  value: item.answer
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: item
  structure map.group.rule.source.condition:
    value: ((linkId.value = 'caveat.contrastMediaAllergy') and answer.exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: answer.valueString
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: item
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: caveat.contrastMediaAllergy
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.type:
        value: boolean
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
      structure map.group.rule.source.condition:
        value: answer.valueBoolean
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: bundle
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: entry
      structure map.group.rule.target.variable:
        value: e
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: resource
      structure map.group.rule.target.variable:
        value: condition
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: id
      structure map.group.rule.target.variable:
        value: uuid
      structure map.group.rule.target.transform:
        value: uuid
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: fullUrl
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 4
      structure map.group.rule.target.context:
        value: serviceRequest
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: supportingInfo
      structure map.group.rule.target.variable:
        value: supportingInfo
    structure map.group.rule.target:
      index: 5
      structure map.group.rule.target.context:
        value: supportingInfo
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: reference
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 6
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: category
      structure map.group.rule.target.variable:
        value: category
    structure map.group.rule.target:
      index: 7
      structure map.group.rule.target.context:
        value: category
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding
    structure map.group.rule.target:
      index: 8
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 9
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 10
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: display
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 11
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: code
    structure map.group.rule.target:
      index: 12
      structure map.group.rule.target.context:
        value: code
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding2
    structure map.group.rule.target:
      index: 13
      structure map.group.rule.target.context:
        value: coding2
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 14
      structure map.group.rule.target.context:
        value: coding2

value: Condition

value: 'urn:uuid:' + uuid

value: 'urn:uuid:' + uuid

value: problem-list-item

value: Problem List Item

value: 293637006

value: variable

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://snomed.info/sct

index: 15
structure map.group.rule.target.context:
  value: coding2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: display
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Allergy to contrast media (finding)

index: 16
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: subject
structure map.group.rule.target.variable:
  value: subject

index: 17
structure map.group.rule.target.context:
  value: subject
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + patient.id

index: 9
structure map.group.rule.name:
  value: item.answer
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: item
  structure map.group.rule.source.condition:
    value: ((linkId.value = 'caveat.drugPrescription') and answer.exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: answer.valueString
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: item
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: caveat.drugPrescription
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.type:
        value: string
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: bundle
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: entry
      structure map.group.rule.target.variable:
        value: e
    structure map.group.rule.target:
      index: 1
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: resource
      structure map.group.rule.target.variable:
        value: condition
      structure map.group.rule.target.transform:
        value: create
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 2
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: id
      structure map.group.rule.target.variable:
        value: uuid
      structure map.group.rule.target.transform:
        value: uuid
    structure map.group.rule.target:
      index: 3
      structure map.group.rule.target.context:
        value: e
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: fullUrl
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 4
      structure map.group.rule.target.context:
        value: serviceRequest
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: supportingInfo
      structure map.group.rule.target.variable:
        value: supportingInfo
    structure map.group.rule.target:
      index: 5
      structure map.group.rule.target.context:
        value: supportingInfo
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: reference
      structure map.group.rule.target.transform:
        value: evaluate
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 6
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: category
      structure map.group.rule.target.variable:
        value: category
    structure map.group.rule.target:
      index: 7
      structure map.group.rule.target.context:
        value: category
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding
    structure map.group.rule.target:
      index: 8
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 9
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: system
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 10
      structure map.group.rule.target.context:
        value: coding
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: display
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 11
      structure map.group.rule.target.context:
        value: condition
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.variable:
        value: code
    structure map.group.rule.target:
      index: 12
      structure map.group.rule.target.context:
        value: code
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: coding
      structure map.group.rule.target.variable:
        value: coding2
    structure map.group.rule.target:
      index: 13
      structure map.group.rule.target.context:
        value: coding2
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: code
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0
    structure map.group.rule.target:
      index: 14
      structure map.group.rule.target.context:
        value: coding2
      structure map.group.rule.target.context type:
        value: variable

value: Condition

value: 'urn:uuid:' + uuid

value: 'urn:uuid:' + uuid

value: problem-list-item

value: Problem List Item

value: 182817000

value: system

value: copy

index: 0
structure map.group.rule.target.parameter.value string:
  value: http://snomed.info/sct

index: 15
structure map.group.rule.target.context:
  value: coding2
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: display
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: Drug prescription (situation)

index: 16
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: subject
structure map.group.rule.target.variable:
  value: subject

index: 17
structure map.group.rule.target.context:
  value: subject
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + patient.id

index: 18
structure map.group.rule.target.context:
  value: condition
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: note
structure map.group.rule.target.variable:
  value: note

index: 19
structure map.group.rule.target.context:
  value: note
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: text
structure map.group.rule.target.transform:
  value: copy
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value id:
    value: value

index: 8
structure map.group.name:
  value: RenalInsufficiencyCreatinineServiceItems
structure map.group.type mode:
  value: none
structure map.group.input:
  index: 0
  structure map.group.input.name:
    value: src
  structure map.group.input.type:
    value: BackboneElement
  structure map.group.input.mode:
    value: source
structure map.group.input:
  index: 1
  structure map.group.input.name:
    value: patient
  structure map.group.input.type:
    value: Patient
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 2
  structure map.group.input.name:
    value: bundle
  structure map.group.input.type:
    value: Bundle
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 3
  structure map.group.input.name:
    value: serviceRequest
  structure map.group.input.type:
    value: ServiceRequest
  structure map.group.input.mode:
    value: target
structure map.group.input:
  index: 4
  structure map.group.input.name:
    value: condition
  structure map.group.input.type:
    value: Condition
  structure map.group.input.mode:
    value: target
structure map.group.rule:
  index: 0
  structure map.group.rule.name:
    value: observation
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: src
  structure map.group.rule.target:
    index: 0
    structure map.group.rule.target.context:
      value: bundle
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: entry
    structure map.group.rule.target.variable:
      value: e
  structure map.group.rule.target:
    index: 1
    structure map.group.rule.target.context:
      value: e
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: resource
    structure map.group.rule.target.variable:
      value: observation
    structure map.group.rule.target.transform:
      value: create
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Observation
  structure map.group.rule.target:
    index: 2
    structure map.group.rule.target.context:
      value: observation
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: id
    structure map.group.rule.target.variable:
      value: uuid
    structure map.group.rule.target.transform:
      value: uuid
  structure map.group.rule.target:
    index: 3
    structure map.group.rule.target.context:
      value: e
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: fullUrl
    structure map.group.rule.target.transform:
      value: evaluate
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 'urn:uuid:' + uuid
  structure map.group.rule.target:
    index: 4
    structure map.group.rule.target.context:
      value: observation
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: status
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: final
  structure map.group.rule.target:
    index: 5
    structure map.group.rule.target.context:
      value: observation
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.variable:
      value: code
  structure map.group.rule.target:
    index: 6
    structure map.group.rule.target.context:
      value: code
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: coding
    structure map.group.rule.target.variable:
      value: coding2
  structure map.group.rule.target:
    index: 7
    structure map.group.rule.target.context:
      value: coding2
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: code
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: 723188008
  structure map.group.rule.target:
    index: 8
    structure map.group.rule.target.context:
      value: coding2
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: system
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: http://snomed.info/sct
  structure map.group.rule.target:
    index: 9
    structure map.group.rule.target.context:
      value: coding2
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: display
    structure map.group.rule.target.transform:
      value: copy
    structure map.group.rule.target.parameter:
      index: 0
      structure map.group.rule.target.parameter.value string:
        value: Renal insufficiency (disorder)
  structure map.group.rule.target:
    index: 10
    structure map.group.rule.target.context:
      value: condition
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: evidence
    structure map.group.rule.target.variable:
      value: evidence
  structure map.group.rule.target:
    index: 11
    structure map.group.rule.target.context:
      value: evidence
    structure map.group.rule.target.context type:
      value: variable
    structure map.group.rule.target.element:
      value: detail
    structure map.group.rule.target.variable:
      value: detail

index: 12
structure map.group.rule.target.context:
  value: detail
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + uuid

index: 13
structure map.group.rule.target.context:
  value: observation
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: subject
structure map.group.rule.target.variable:
  value: subject

index: 14
structure map.group.rule.target.context:
  value: subject
structure map.group.rule.target.context type:
  value: variable
structure map.group.rule.target.element:
  value: reference
structure map.group.rule.target.transform:
  value: evaluate
structure map.group.rule.target.parameter:
  index: 0
  structure map.group.rule.target.parameter.value string:
    value: 'urn:uuid:' + patient.id

index: 0
structure map.group.rule.name:
  value: caveat.renalInsufficiency.creatinine.quantity
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: item
  structure map.group.rule.source.condition:
    value: ((linkId.value = 'caveat.renalInsufficiency.creatinine.quantity') and answer.exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: item
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: value-Quantity
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.type:
        value: Quantity
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: observation
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: value
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0

value: value

index: 1
structure map.group.rule.name:
  value: caveat.renalInsufficiency.creatinine.dateTime
structure map.group.rule.source:
  index: 0
  structure map.group.rule.source.context:
    value: src
  structure map.group.rule.source.element:
    value: item
  structure map.group.rule.source.variable:
    value: item
  structure map.group.rule.source.condition:
    value: ((linkId.value = 'caveat.renalInsufficiency.creatinine.dateTime') and answer.exists())
structure map.group.rule.rule:
  index: 0
  structure map.group.rule.name:
    value: item.answer
  structure map.group.rule.source:
    index: 0
    structure map.group.rule.source.context:
      value: item
    structure map.group.rule.source.element:
      value: answer
    structure map.group.rule.source.variable:
      value: answer
  structure map.group.rule.rule:
    index: 0
    structure map.group.rule.name:
      value: value-dateTime
    structure map.group.rule.source:
      index: 0
      structure map.group.rule.source.context:
        value: answer
      structure map.group.rule.source.type:
        value: dateTime
      structure map.group.rule.source.element:
        value: value
      structure map.group.rule.source.variable:
        value: value
    structure map.group.rule.target:
      index: 0
      structure map.group.rule.target.context:
        value: observation
      structure map.group.rule.target.context type:
        value: variable
      structure map.group.rule.target.element:
        value: effective
      structure map.group.rule.target.transform:
        value: copy
      structure map.group.rule.target.parameter:
        index: 0

value: value