RadOrderQrToBundle
type: StructureMap
node role: treeRoot
id:
  v: RadOrderQrToBundle
text:
  status:
    v: generated
  div:
    v: Generated Narrative: StructureMap RadOrderQrToBundle #xD; map "http://fhir.ch/ig/ch-rad-order/StructureMap/RadOrderQrToBundle" = "RadOrderQrToBundle"#xD; #xD; // Radiologoy QuestionnaireResponse to Bundle#xD; // Derived from ORF QuestionnaireResponse to Bundle#xD; // 2021-01-11 Oliver Egger, copyright ahdis ag, Apache License#xD; // QRF Questionnaire: http://fhir.ch/ig/ch-orf/Questionnaire-order-referral-form.html#xD; // QRF QuestionnaireResponse: http://fhir.ch/ig/ch-orf/QuestionnaireResponse-order-referral-form.xml.html#xD; // Bundle: http://fhir.ch/ig/ch-orf/StructureDefinition-ch-orf-document.html#xD; #xD; uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as source#xD; uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target#xD; uses "http://hl7.org/fhir/StructureDefinition/Composition" alias Composition as target#xD; uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as target#xD; uses "http://hl7.org/fhir/StructureDefinition/RelatedPerson" alias RelatedPerson as target#xD; uses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as target#xD; uses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias Practitioner as target#xD; uses "http://hl7.org/fhir/StructureDefinition/PractitionerRole" alias PractitionerRole as target#xD; uses "http://hl7.org/fhir/StructureDefinition/ServiceRequest" alias ServiceRequest as target#xD; uses "http://hl7.org/fhir/StructureDefinition/Extension" alias Extension as target#xD; uses "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" alias EpisodeOfCare as target#xD; uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponseTarget as target#xD; uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QuestionnaireResponse as source#xD; uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target#xD; uses "http://hl7.org/fhir/StructureDefinition/…
url:
  v: http://fhir.ch/ig/ch-rad-order/StructureMap/RadOrderQrToBundle
  l: RadOrderQrToBundle
version:
  v: 2.0.1
name:
  v: RadOrderQrToBundle
status:
  v: draft
date:
  v: 2025-12-17T07:22:04+00:00
publisher:
  v: HL7 Switzerland
contact:
  name:
    v: Juerg P. Bleuer
  telecom:
    system:
      v: url
    value:
      v: https://www.hl7.ch
description:
  v: Radiologoy QuestionnaireResponse to Bundle Derived from ORF QuestionnaireResponse to Bundle 2021-01-11 Oliver Egger, copyright ahdis ag, Apache License QRF Questionnaire: http://fhir.ch/ig/ch-orf/Questionnaire-order-referral-form.html QRF QuestionnaireResponse: http://fhir.ch/ig/ch-orf/QuestionnaireResponse-order-referral-form.xml.html Bundle: http://fhir.ch/ig/ch-orf/StructureDefinition-ch-orf-document.html
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: CH
copyright:
  v: CC0-1.0
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
    l: QuestionnaireResponse
  mode:
    v: source
  alias:
    v: QuestionnaireResponse
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Bundle
    l: Bundle
  mode:
    v: target
  alias:
    v: Bundle
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Composition
    l: Composition
  mode:
    v: target
  alias:
    v: Composition
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
  mode:
    v: target
  alias:
    v: Patient
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: RelatedPerson
  mode:
    v: target
  alias:
    v: RelatedPerson
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
  mode:
    v: target
  alias:
    v: Organization
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
  mode:
    v: target
  alias:
    v: Practitioner
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    l: PractitionerRole
  mode:
    v: target
  alias:
    v: PractitionerRole
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/ServiceRequest
    l: ServiceRequest
  mode:
    v: target
  alias:
    v: ServiceRequest
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
  mode:
    v: target
  alias:
    v: Extension
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
    l: EpisodeOfCare
  mode:
    v: target
  alias:
    v: EpisodeOfCare
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
    l: QuestionnaireResponse
  mode:
    v: target
  alias:
    v: QuestionnaireResponseTarget
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
    l: QuestionnaireResponse
  mode:
    v: source
  alias:
    v: QuestionnaireResponse
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Bundle
    l: Bundle
  mode:
    v: target
  alias:
    v: Bundle
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
  mode:
    v: target
  alias:
    v: Patient
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
  mode:
    v: target
  alias:
    v: Organization
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
  mode:
    v: target
  alias:
    v: Practitioner
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    l: PractitionerRole
  mode:
    v: target
  alias:
    v: PractitionerRole
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/ServiceRequest
    l: ServiceRequest
  mode:
    v: target
  alias:
    v: ServiceRequest
import:
  v: http://fhir.ch/ig/ch-orf/StructureMap/OrfQrToBundle
  l: OrfQrToBundle
group:
  name:
    v: RadOrderQrToBundle
  type mode:
    v: none

name:
  v: qr
type:
  v: QuestionnaireResponse
mode:
  v: source

name:
  v: bundle
type:
  v: Bundle
mode:
  v: target

name:
  v: documentIdentifier
source:
  context:
    v: qr
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: identifier
  variable:
    v: documentIdentifier
target:
  context:
    v: documentIdentifier
  context type:
    v: variable
  element:
    v: system
  transform:
    v: copy
  parameter:
    value: String
      v: urn:ietf:rfc:3986
target:
  context type:
    v: variable
  variable:
    v: uuidDoc
  transform:
    v: uuid
target:
  context:
    v: documentIdentifier
  context type:
    v: variable
  element:
    v: value
  transform:
    v: append
  parameter:
    value: String
      v: urn:uuid:
  parameter:
    value: Id
      v: uuidDoc

name:
  v: orfbundle
source:
  context:
    v: qr
  variable:
    v: qrcp
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e
target:
  context:
    v: e
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: composition
  transform:
    v: create
  parameter:
    value: String
      v: Composition
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid
  transform:
    v: uuid
target:
  context:
    v: e
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: evaluate
  parameter:
    value: String
      v: 'urn:uuid:' + %uuid
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: title
  transform:
    v: copy
  parameter:
    value: String
      v: Radiologieauftrag
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: type
  variable:
    v: type
target:
  context:
    v: type
  context type:
    v: variable
  element:
    v: coding
  variable:
    v: coding
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: copy
  parameter:
    value: String
      v: 2161000195103
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: system
  transform:
    v: copy
  parameter:
    value: String
      v: urn:oid:2.16.756.5.30.1.127.3.4
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: display
  transform:
    v: copy
  parameter:
    value: String
      v: Imaging order (record artifact)
target:
  context:
    v: composition
  context type:
    v: variable
  element:
    v: category
  variable:
    v: category
target:
  context:
    v: category
  context type:
    v: variable
  element:
    v: coding
  variable:
    v: coding
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: copy
  parameter:
    value: String
      v: 721963009
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: system
  transform:
    v: copy
  parameter:
    value: String
      v: http://snomed.info/sct
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: display
  transform:
    v: copy
  parameter:
    value: String
      v: Order (record artifact)
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e2
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: timestamp
  variable:
    v: timestamp
  transform:
    v: evaluate
  parameter:
    value: String
      v: now()
target:
  context:
    v: bundle
  context type:
    v: variable

v: type

v: copy

value: String
  v: document

context:
  v: composition
context type:
  v: variable
element:
  v: date
transform:
  v: copy
parameter:
  value: Id
    v: timestamp

context:
  v: e2
context type:
  v: variable
element:
  v: resource
variable:
  v: patient
transform:
  v: create
parameter:
  value: String
    v: Patient

context:
  v: patient
context type:
  v: variable
element:
  v: id
variable:
  v: uuid2
transform:
  v: uuid

context:
  v: e2
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %uuid2

context:
  v: bundle
context type:
  v: variable
element:
  v: entry
variable:
  v: e4

context:
  v: e4
context type:
  v: variable
element:
  v: resource
variable:
  v: questionnaireresp
transform:
  v: create
parameter:
  value: String
    v: QuestionnaireResponse

name:
  v: questionnaireresp
source:
  context:
    v: qr
dependent:
  name:
    v: QuestionnaireResponseMap
  variable:
    v: qr
  variable:
    v: questionnaireresp

name:
  v: servicerequest
source:
  context:
    v: qr
target:
  context:
    v: questionnaireresp
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid4
  transform:
    v: uuid
target:
  context:
    v: e4
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: append
  parameter:
    value: String
      v: urn:uuid:
  parameter:
    value: Id
      v: uuid4
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e5
target:
  context:
    v: e5
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: servicerequest
  transform:
    v: create
  parameter:
    value: String
      v: ServiceRequest
target:
  context:
    v: servicerequest
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid5
  transform:
    v: uuid
target:
  context:
    v: e5
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: evaluate
  parameter:
    value: String
      v: 'urn:uuid:' + %uuid5
rule:
  name:
    v: composition
  source:
    context:
      v: qr
  dependent:
    name:
      v: OrfComposition
    variable:
      v: qr
    variable:
      v: composition
    variable:
      v: patient
    variable:
      v: questionnaireresp
    variable:
      v: servicerequest
    variable:
      v: bundle
rule:
  name:
    v: orf
  source:
    context:
      v: qr
  dependent:
    name:
      v: QrToGroups
    variable:
      v: questionnaireresp
    variable:
      v: patient
    variable:
      v: bundle
    variable:
      v: composition
    variable:
      v: servicerequest
rule:
  name:
    v: servicerequest
  source:
    context:
      v: qr
  dependent:
    name:
      v: RadOrderQrToServiceRequest
    variable:
      v: questionnaireresp
    variable:
      v: patient
    variable:
      v: bundle
    variable:
      v: composition
    variable:
      v: servicerequest

name:
  v: RadOrderQrToServiceRequest
type mode:
  v: none
input:
  name:
    v: qr
  type:
    v: QuestionnaireResponse
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: composition
  type:
    v: Composition
  mode:
    v: target
input:
  name:
    v: serviceRequest
  type:
    v: ServiceRequest
  mode:
    v: target
rule:
  name:
    v: requestedService
  source:
    context:
      v: qr
    element:
      v: item
    variable:
      v: grp
    condition:
      v: linkId = 'requestedService'
  dependent:
    name:
      v: RequestedServiceItems
    variable:
      v: grp
    variable:
      v: serviceRequest
rule:
  name:
    v: reason
  source:
    context:
      v: qr
    element:
      v: item
    variable:
      v: grp
    condition:
      v: linkId = 'reason'
  dependent:
    name:
      v: ReasonServiceItems
    variable:
      v: grp
    variable:
      v: serviceRequest
rule:
  name:
    v: imagingService
  source:
    context:
      v: qr
    element:
      v: item
    variable:
      v: grp
    condition:
      v: linkId = 'imagingService'
  dependent:
    name:
      v: ImagingServiceItems
    variable:
      v: grp
    variable:
      v: serviceRequest
rule:
  name:
    v: orderDetail
  source:
    context:
      v: qr
    element:
      v: item
    variable:
      v: grp
    condition:
      v: linkId = 'orderDetail'
  dependent:
    name:
      v: OrderDetailServiceItems
    variable:
      v: grp
    variable:
      v: serviceRequest
rule:
  name:
    v: desiredRadiologist
  source:
    context:
      v: qr
    element:
      v: item
    variable:
      v: grp
    condition:
      v: linkId = 'desiredRadiologist'
  dependent:
    name:
      v: DesiredRadiologistServiceItems
    variable:
      v: grp
    variable:
      v: bundle
    variable:
      v: serviceRequest
rule:
  name:
    v: diagnosisList
  source:
    context:
      v: qr
    element:
      v: item
    variable:
      v: grp
    condition:
      v: linkId = 'diagnosisList'
  dependent:
    name:
      v: DiagnosisListServiceItems
    variable:
      v: grp
    variable:
      v: patient
    variable:
      v: bundle
    variable:
      v: serviceRequest
rule:
  name:
    v: Caveat
  source:
    context:
      v: qr
    element:
      v: item
    variable:
      v: grp
    condition:
      v: linkId = 'caveat'
  dependent:
    name:
      v: CaveatServiceItems
    variable:
      v: grp
    variable:
      v: patient
    variable:
      v: bundle
    variable:
      v: serviceRequest
rule:
  name:
    v: previousResults
  source:
    context:
      v: qr
    element:
      v: item
    variable:
      v: grp
    condition:
      v: linkId = 'previousResults'
  rule:
    name:
      v: attachment
    source:
      context:
        v: grp
      element:
        v: item
      variable:
        v: grp

v: linkId = 'attachedFile'

name:
  v: PreviousImagingStudyResultsNonDicom
variable:
  v: grp
variable:
  v: bundle
variable:
  v: serviceRequest
variable:
  v: patient

name:
  v: attachment
source:
  context:
    v: grp
  element:
    v: item
  variable:
    v: grp
  condition:
    v: linkId = 'dicomObject'
dependent:
  name:
    v: PreviousImagingStudyResults
  variable:
    v: grp
  variable:
    v: bundle
  variable:
    v: serviceRequest
  variable:
    v: patient

name:
  v: RequestedServiceItems
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: serviceRequest
  type:
    v: ServiceRequest
  mode:
    v: target
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'requestedService.service') and answer.exists())
  rule:
    name:
      v: answerCalueCoding
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: requestedServiceService

v: answer

v: Coding

v: value

v: coding

v: serviceRequest

v: variable

v: category

v: cc

v: cc

v: variable

v: coding

v: copy

value: Id
  v: coding

name:
  v: ReasonServiceItems
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: serviceRequest
  type:
    v: ServiceRequest
  mode:
    v: target
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'reason.question') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: reasonQuestion

v: answer

v: string

v: value

v: value

v: serviceRequest

v: variable

v: reasonCode

v: reasonCode

v: reasonCode

v: variable

v: text

v: copy

value: Id
  v: value

name:
  v: ImagingServiceItems
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: serviceRequest
  type:
    v: ServiceRequest
  mode:
    v: target
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'imagingService.type') and answer.exists())
  rule:
    name:
      v: answerValueCoding
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: requestedServiceService

v: answer

v: Coding

v: value

v: coding

v: serviceRequest

v: variable

v: code

v: code

v: code

v: variable

v: coding

v: copy

value: Id
  v: coding

name:
  v: OrderDetailServiceItems
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: serviceRequest
  type:
    v: ServiceRequest
  mode:
    v: target
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'orderDetail.imagingRegion') and answer.exists())
  rule:
    name:
      v: answerValueCoding
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: orderDetailImagingRegion
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'orderDetail.imagingFocus') and answer.exists())
  rule:
    name:
      v: answerValueCoding
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: orderDetailImagingFocus
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'orderDetail.laterality') and answer.exists())
  rule:
    name:
      v: answerValueCoding
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: orderDetailLaterality
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'orderDetail.viewType') and answer.exists())
  rule:
    name:
      v: answerValueCoding
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: orderDetailViewType
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'orderDetail.maneuverType') and answer.exists())
  rule:
    name:
      v: answerValueCoding
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: orderDetailManeuverType
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'orderDetail.guidanceForAction') and answer.exists())
  rule:
    name:
      v: answerValueCoding
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: orderDetailGuidanceForAction

v: answer

v: Coding

v: value

v: coding

v: serviceRequest

v: variable

v: orderDetail

v: cc

v: cc

v: variable

v: extension

v: ext

v: ext

v: variable

v: url

v: copy

v: ext

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: code

v: copy

value: String
  v: imagingRegion

v: cc

v: variable

v: coding

v: copy

value: Id
  v: coding

v: answer

v: Coding

v: value

v: coding

v: serviceRequest

v: variable

v: bodySite

v: cc

v: cc

v: variable

v: coding

v: copy

value: Id
  v: coding

v: answer

v: Coding

v: value

v: coding

v: serviceRequest

v: variable

v: orderDetail

v: cc

v: cc

v: variable

v: extension

v: ext

v: ext

v: variable

v: url

v: copy

v: ext

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: code

v: copy

value: String
  v: laterality

v: cc

v: variable

v: coding

v: copy

value: Id
  v: coding

v: answer

v: Coding

v: value

v: coding

v: serviceRequest

v: variable

v: orderDetail

v: cc

v: cc

v: variable

v: extension

v: ext

v: ext

v: variable

v: url

v: copy

v: ext

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: code

v: copy

value: String
  v: viewType

v: cc

v: variable

v: coding

v: copy

value: Id
  v: coding

v: answer

v: Coding

v: value

v: coding

v: serviceRequest

v: variable

v: orderDetail

v: cc

v: cc

v: variable

v: extension

v: ext

v: ext

v: variable

v: url

v: copy

v: ext

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: code

v: copy

value: String
  v: maneuverType

v: cc

v: variable

v: coding

v: copy

value: Id
  v: coding

v: answer

v: Coding

v: value

v: coding

v: serviceRequest

v: variable

v: orderDetail

v: cc

v: cc

v: variable

v: extension

v: ext

v: ext

v: variable

v: url

v: copy

v: ext

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: code

v: copy

value: String
  v: guidanceForAction

v: cc

v: variable

v: coding

v: copy

value: Id
  v: coding

name:
  v: DesiredRadiologistServiceItems
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: serviceRequest
  type:
    v: ServiceRequest
  mode:
    v: target
rule:
  name:
    v: serviceRequestPerformer
  source:
    context:
      v: src
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e
  target:
    context:
      v: e
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: practitioner
    transform:
      v: create
    parameter:
      value: String
        v: Practitioner
  target:
    context:
      v: practitioner
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid
    transform:
      v: uuid
  target:
    context:
      v: serviceRequest
    context type:
      v: variable
    element:
      v: performer
    variable:
      v: performer
  target:
    context:
      v: performer
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: String
        v: 'urn:uuid:' + %uuid
  target:
    context:
      v: e
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: evaluate
    parameter:
      value: String
        v: 'urn:uuid:' + %uuid
  rule:
    name:
      v: item
    source:
      context:
        v: src
      element:
        v: item
      variable:
        v: item
      condition:
        v: ((linkId.value = 'desiredRadiologist.familyName') and answer.exists())
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: name
      variable:
        v: name
      list mode:
        v: share
      list rule id:
        v: name
    target:
      context:
        v: name
      context type:
        v: variable
      element:
        v: family
      transform:
        v: evaluate
      parameter:
        value: String
  rule:
    name:
      v: item
    source:
      context:
        v: src
      element:
        v: item
      variable:
        v: item
      condition:
        v: ((linkId.value = 'desiredRadiologist.givenName') and answer.exists())
    target:
      context:
        v: practitioner
      context type:
        v: variable
      element:
        v: name
      variable:
        v: name
      list mode:
        v: share
      list rule id:
        v: name
    target:
      context:
        v: name
      context type:
        v: variable
      element:
        v: given
      transform:
        v: evaluate
      parameter:
        value: String

String
v: %item.answer.value

String
v: %item.answer.value

name:
  v: DiagnosisListServiceItems
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: serviceRequest
  type:
    v: ServiceRequest
  mode:
    v: target
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'diagnosisList.primaryDiagnosis') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: diagnosisListPrimaryDiagnosis
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'diagnosisList.secondaryDiagnosis') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: diagnosisListSecondaryDiagnosis
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'diagnosisList.bodyHeight') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: observationBodyHeight
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'diagnosisList.bodyWeight') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: observationBbodyWeight

v: answer

v: string

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: condition

v: create

value: String
  v: Condition

v: condition

v: variable

v: id

v: uuid

v: uuid

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: serviceRequest

v: variable

v: reasonReference

v: reasonReference

v: reasonReference

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: condition

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: problem-list-item

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Problem List Item

v: condition

v: variable

v: code

v: code

v: code

v: variable

v: text

v: copy

value: Id
  v: value

v: condition

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

v: answer

v: string

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: condition

v: create

value: String
  v: Condition

v: condition

v: variable

v: id

v: uuid

v: uuid

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: serviceRequest

v: variable

v: supportingInfo

v: supportingInfo

v: supportingInfo

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: condition

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: problem-list-item

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Problem List Item

v: condition

v: variable

v: code

v: code

v: code

v: variable

v: text

v: copy

value: Id
  v: value

v: condition

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

v: answer

v: Quantity

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: observation

v: create

value: String
  v: Observation

v: observation

v: variable

v: status

v: copy

value: String
  v: final

v: observation

v: variable

v: id

v: uuid

v: uuid

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: observation

v: variable

v: status

v: copy

value: String
  v: final

v: serviceRequest

v: variable

v: supportingInfo

v: supportingInfo

v: supportingInfo

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: observation

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: vital-signs

v: coding

v: variable

v: system

v: copy

v: observation

v: variable

v: value

v: copy

value: Id
  v: value

v: observation

v: variable

v: code

v: cc

v: cc

v: variable

v: coding

v: c

v: c

v: variable

v: system

v: copy

v: c

v: variable

v: code

v: copy

value: String
  v: 8302-2

v: observation

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

v: answer

v: Quantity

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: observation

v: create

value: String
  v: Observation

v: observation

v: variable

v: status

v: copy

value: String
  v: final

v: observation

v: variable

v: id

v: uuid

v: uuid

v: observation

v: variable

v: status

v: copy

value: String
  v: final

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: serviceRequest

v: variable

v: supportingInfo

v: supportingInfo

v: supportingInfo

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: observation

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: vital-signs

v: coding

v: variable

v: system

v: copy

v: observation

v: variable

v: value

v: copy

value: Id
  v: value

v: observation

v: variable

v: code

v: cc

v: cc

v: variable

v: coding

v: c

v: c

v: variable

v: system

v: copy

v: c

v: variable

v: code

v: copy

value: String
  v: 29463-7

v: observation

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

name:
  v: CaveatServiceItems
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: serviceRequest
  type:
    v: ServiceRequest
  mode:
    v: target
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'caveatList.bloodCoagulation') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: bloodCoagulation
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'caveatList.renalInsufficiency') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: bloodCoagulation
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'caveatList.claustrophobia') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: caveatListClaustrophobia
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'caveatList.bodyPiercing') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: caveatListBodyPiercing
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'caveatList.device') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: caveatListDevice
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'caveatList.hyperthyroidism') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: caveatListHyperthyroidism
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: ((linkId.value = 'caveatList.diabetes') and answer.exists())
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer

v: answer

v: Coding

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: condition

v: create

value: String
  v: Condition

v: condition

v: variable

v: id

v: uuid

v: uuid

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: serviceRequest

v: variable

v: supportingInfo

v: supportingInfo

v: supportingInfo

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: condition

v: variable

v: extension

v: ext1

v: ext1

v: variable

v: url

v: copy

v: ext1

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: code

v: copy

value: String
  v: 64779008

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Blood coagulation disorder (disorder)

v: condition

v: variable

v: extension

v: ext2

v: ext2

v: variable

v: url

v: copy

v: ext2

v: variable

v: value

v: copy

value: Id
  v: value

v: condition

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: problem-list-item

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Problem List Item

v: condition

v: variable

v: code

v: code

v: code

v: variable

v: coding

v: coding2

v: coding2

v: variable

v: code

v: copy

value: String
  v: 64779008

v: coding2

v: variable

v: system

v: copy

v: coding2

v: variable

v: display

v: copy

value: String
  v: Blood coagulation disorder (disorder)

v: condition

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

v: caveatBloodCoagulationINR

context:
  v: answer
element:
  v: item
variable:
  v: subitem
condition:
  v: (linkId.value = 'caveatList.bloodCoagulation.INR')

context:
  v: bundle
context type:
  v: variable
element:
  v: entry
variable:
  v: e

context:
  v: e
context type:
  v: variable
element:
  v: resource
variable:
  v: observation
transform:
  v: create
parameter:
  value: String
    v: Observation

context:
  v: observation
context type:
  v: variable
element:
  v: id
variable:
  v: uuid
transform:
  v: uuid

context:
  v: observation
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: String
    v: final

context:
  v: e
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %uuid

context:
  v: condition
context type:
  v: variable
element:
  v: evidence
variable:
  v: evidence

context:
  v: evidence
context type:
  v: variable
element:
  v: detail
variable:
  v: detail

context:
  v: detail
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %uuid

context:
  v: observation
context type:
  v: variable
element:
  v: code
variable:
  v: cc

context:
  v: cc
context type:
  v: variable
element:
  v: coding
variable:
  v: c

context:
  v: c
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: String
    v: http://loinc.org

context:
  v: c
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: String
    v: 34714-6

context:
  v: observation
context type:
  v: variable
element:
  v: subject
variable:
  v: subject

context:
  v: subject
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %patient.id

name:
  v: caveatBloodCoagulationINRQuantity
source:
  context:
    v: subitem
  element:
    v: item
  variable:
    v: quantityitem
  condition:
    v: ((linkId.value = 'caveatList.bloodCoagulation.INR.quantity') and answer.exists())
rule:
  name:
    v: caveatBloodCoagulationINRQuantityValue
  source:
    context:
      v: quantityitem
    element:
      v: answer
    variable:
      v: answer
  rule:
    name:
      v: value
    source:
      context:
        v: answer
      type:
        v: Quantity
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id

Id
v: value

name:
  v: caveatBloodCoagulationINRDateTime
source:
  context:
    v: subitem
  element:
    v: item
  variable:
    v: datetimeitem
  condition:
    v: ((linkId.value = 'caveatList.bloodCoagulation.INR.dateTime') and answer.exists())
rule:
  name:
    v: caveatBloodCoagulationINRDateTimeValue
  source:
    context:
      v: datetimeitem
    element:
      v: answer
    variable:
      v: answer
  rule:
    name:
      v: value
    source:
      context:
        v: answer
      type:
        v: dateTime
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: effective
      transform:
        v: copy
      parameter:
        value: Id

Id
v: value

v: caveatBloodCoagulationINR

context:
  v: answer
element:
  v: item
variable:
  v: subitem
condition:
  v: (linkId.value = 'caveatList.bloodCoagulation.platelets')

context:
  v: bundle
context type:
  v: variable
element:
  v: entry
variable:
  v: e

context:
  v: e
context type:
  v: variable
element:
  v: resource
variable:
  v: observation
transform:
  v: create
parameter:
  value: String
    v: Observation

context:
  v: observation
context type:
  v: variable
element:
  v: id
variable:
  v: uuid
transform:
  v: uuid

context:
  v: observation
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: String
    v: final

context:
  v: e
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %uuid

context:
  v: condition
context type:
  v: variable
element:
  v: evidence
variable:
  v: evidence

context:
  v: evidence
context type:
  v: variable
element:
  v: detail
variable:
  v: detail

context:
  v: detail
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %uuid

context:
  v: observation
context type:
  v: variable
element:
  v: code
variable:
  v: cc

context:
  v: cc
context type:
  v: variable
element:
  v: coding
variable:
  v: c

context:
  v: c
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: String
    v: http://loinc.org

context:
  v: c
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: String
    v: 26515-7

context:
  v: observation
context type:
  v: variable
element:
  v: subject
variable:
  v: subject

context:
  v: subject
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %patient.id

name:
  v: caveatBloodCoagulationINRPlatelets
source:
  context:
    v: subitem
  element:
    v: item
  variable:
    v: quantityitem
  condition:
    v: ((linkId.value = 'caveatList.bloodCoagulation.platelets.quantity') and answer.exists())
rule:
  name:
    v: caveatBloodCoagulationINRPlateletsValue
  source:
    context:
      v: quantityitem
    element:
      v: answer
    variable:
      v: answer
  rule:
    name:
      v: value
    source:
      context:
        v: answer
      type:
        v: Quantity
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id

Id
v: value

name:
  v: caveatBloodCoagulationINRPlatelets
source:
  context:
    v: subitem
  element:
    v: item
  variable:
    v: datetimeitem
  condition:
    v: ((linkId.value = 'caveatList.bloodCoagulation.platelets.dateTime') and answer.exists())
rule:
  name:
    v: caveatBloodCoagulationINRPlateletsValue
  source:
    context:
      v: datetimeitem
    element:
      v: answer
    variable:
      v: answer
  rule:
    name:
      v: value
    source:
      context:
        v: answer
      type:
        v: dateTime
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: effective
      transform:
        v: copy
      parameter:
        value: Id

Id
v: value

v: answer

v: Coding

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: condition

v: create

value: String
  v: Condition

v: condition

v: variable

v: id

v: uuid

v: uuid

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: serviceRequest

v: variable

v: supportingInfo

v: supportingInfo

v: supportingInfo

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: condition

v: variable

v: extension

v: ext1

v: ext1

v: variable

v: url

v: copy

v: ext1

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: code

v: copy

value: String
  v: 723188008

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Renal insufficiency (disorder)

v: condition

v: variable

v: extension

v: ext2

v: ext2

v: variable

v: url

v: copy

v: ext2

v: variable

v: value

v: copy

value: Id
  v: value

v: condition

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: problem-list-item

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Problem List Item

v: condition

v: variable

v: code

v: code

v: code

v: variable

v: coding

v: coding2

v: coding2

v: variable

v: code

v: copy

value: String
  v: 723188008

v: coding2

v: variable

v: system

v: copy

v: coding2

v: variable

v: display

v: copy

value: String
  v: Renal insufficiency (disorder)

v: condition

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

v: caveatListRenalInsufficiencyCreatinineClearanceINR

context:
  v: answer
element:
  v: item
variable:
  v: subitem
condition:
  v: (linkId.value = 'caveatList.renalInsufficiency.creatinineClearance')

context:
  v: bundle
context type:
  v: variable
element:
  v: entry
variable:
  v: e

context:
  v: e
context type:
  v: variable
element:
  v: resource
variable:
  v: observation
transform:
  v: create
parameter:
  value: String
    v: Observation

context:
  v: observation
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: String
    v: final

context:
  v: observation
context type:
  v: variable
element:
  v: id
variable:
  v: uuid
transform:
  v: uuid

context:
  v: e
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %uuid

context:
  v: condition
context type:
  v: variable
element:
  v: evidence
variable:
  v: evidence

context:
  v: evidence
context type:
  v: variable
element:
  v: detail
variable:
  v: detail

context:
  v: detail
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %uuid

context:
  v: observation
context type:
  v: variable
element:
  v: code
variable:
  v: cc

context:
  v: cc
context type:
  v: variable
element:
  v: coding
variable:
  v: c

context:
  v: c
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: String
    v: http://loinc.org

context:
  v: c
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: String
    v: 33558-8

context:
  v: observation
context type:
  v: variable
element:
  v: subject
variable:
  v: subject

context:
  v: subject
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %patient.id

name:
  v: caveatListRenalInsufficiencyCreatinineClearanceQuantity
source:
  context:
    v: subitem
  element:
    v: item
  variable:
    v: quantityitem
  condition:
    v: ((linkId.value = 'caveatList.renalInsufficiency.creatinineClearance.quantity') and answer.exists())
rule:
  name:
    v: caveatListRenalInsufficiencyCreatinineClearanceQuantityValue
  source:
    context:
      v: quantityitem
    element:
      v: answer
    variable:
      v: answer
  rule:
    name:
      v: value
    source:
      context:
        v: answer
      type:
        v: Quantity
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id

Id
v: value

name:
  v: caveatListRenalInsufficiencyCreatinineClearancedateTime
source:
  context:
    v: subitem
  element:
    v: item
  variable:
    v: datetimeitem
  condition:
    v: ((linkId.value = 'caveatList.renalInsufficiency.creatinineClearance.dateTime') and answer.exists())
rule:
  name:
    v: caveatListRenalInsufficiencyCreatinineClearanceDateTimeValue
  source:
    context:
      v: datetimeitem
    element:
      v: answer
    variable:
      v: answer
  rule:
    name:
      v: value
    source:
      context:
        v: answer
      type:
        v: dateTime
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: effective
      transform:
        v: copy
      parameter:
        value: Id

Id
v: value

v: caveatListRenalInsufficiencyCreatinine

context:
  v: answer
element:
  v: item
variable:
  v: subitem
condition:
  v: (linkId.value = 'caveatList.renalInsufficiency.creatinine')

context:
  v: bundle
context type:
  v: variable
element:
  v: entry
variable:
  v: e

context:
  v: e
context type:
  v: variable
element:
  v: resource
variable:
  v: observation
transform:
  v: create
parameter:
  value: String
    v: Observation

context:
  v: observation
context type:
  v: variable
element:
  v: status
transform:
  v: copy
parameter:
  value: String
    v: final

context:
  v: observation
context type:
  v: variable
element:
  v: id
variable:
  v: uuid
transform:
  v: uuid

context:
  v: e
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %uuid

context:
  v: condition
context type:
  v: variable
element:
  v: evidence
variable:
  v: evidence

context:
  v: evidence
context type:
  v: variable
element:
  v: detail
variable:
  v: detail

context:
  v: detail
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %uuid

context:
  v: observation
context type:
  v: variable
element:
  v: code
variable:
  v: cc

context:
  v: cc
context type:
  v: variable
element:
  v: coding
variable:
  v: c

context:
  v: c
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: String
    v: http://loinc.org

context:
  v: c
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: String
    v: 77140-2

context:
  v: observation
context type:
  v: variable
element:
  v: subject
variable:
  v: subject

context:
  v: subject
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %patient.id

name:
  v: caveatListRenalInsufficiencyCreatinine
source:
  context:
    v: subitem
  element:
    v: item
  variable:
    v: quantityitem
  condition:
    v: ((linkId.value = 'caveatList.renalInsufficiency.creatinine.quantity') and answer.exists())
rule:
  name:
    v: caveatListRenalInsufficiencyCreatinineValue
  source:
    context:
      v: quantityitem
    element:
      v: answer
    variable:
      v: answer
  rule:
    name:
      v: value
    source:
      context:
        v: answer
      type:
        v: Quantity
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id

Id
v: value

name:
  v: caveatBloodCoagulationINRPlatelets
source:
  context:
    v: subitem
  element:
    v: item
  variable:
    v: datetimeitem
  condition:
    v: ((linkId.value = 'caveatList.renalInsufficiency.creatinine.dateTime') and answer.exists())
rule:
  name:
    v: caveatListRenalInsufficiencyCreatininevalue
  source:
    context:
      v: datetimeitem
    element:
      v: answer
    variable:
      v: answer
  rule:
    name:
      v: value
    source:
      context:
        v: answer
      type:
        v: dateTime
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: observation
      context type:
        v: variable
      element:
        v: effective
      transform:
        v: copy
      parameter:
        value: Id

Id
v: value

v: answer

v: Coding

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: condition

v: create

value: String
  v: Condition

v: condition

v: variable

v: id

v: uuid

v: uuid

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: serviceRequest

v: variable

v: supportingInfo

v: supportingInfo

v: supportingInfo

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: condition

v: variable

v: extension

v: ext1

v: ext1

v: variable

v: url

v: copy

v: ext1

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: code

v: copy

value: String
  v: 19887002

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Claustrophobia (finding)

v: condition

v: variable

v: extension

v: ext2

v: ext2

v: variable

v: url

v: copy

v: ext2

v: variable

v: value

v: copy

value: Id
  v: value

v: condition

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: problem-list-item

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Problem List Item

v: condition

v: variable

v: code

v: code

v: code

v: variable

v: coding

v: coding2

v: coding2

v: variable

v: code

v: copy

value: String
  v: 19887002

v: coding2

v: variable

v: system

v: copy

v: coding2

v: variable

v: display

v: copy

value: String
  v: Claustrophobia (finding)

v: condition

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

v: answer

v: Coding

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: condition

v: create

value: String
  v: Condition

v: condition

v: variable

v: id

v: uuid

v: uuid

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: serviceRequest

v: variable

v: supportingInfo

v: supportingInfo

v: supportingInfo

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: condition

v: variable

v: extension

v: ext1

v: ext1

v: variable

v: url

v: copy

v: ext1

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: code

v: copy

value: String
  v: 879862001

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Body piercing (finding)

v: condition

v: variable

v: extension

v: ext2

v: ext2

v: variable

v: url

v: copy

v: ext2

v: variable

v: value

v: copy

value: Id
  v: value

v: condition

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: problem-list-item

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Problem List Item

v: condition

v: variable

v: code

v: code

v: code

v: variable

v: coding

v: coding2

v: coding2

v: variable

v: code

v: copy

value: String
  v: 879862001

v: coding2

v: variable

v: system

v: copy

v: coding2

v: variable

v: display

v: copy

value: String
  v: Body piercing (finding)

v: condition

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

v: answer

v: Coding

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: condition

v: create

value: String
  v: Condition

v: condition

v: variable

v: id

v: uuid

v: uuid

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: serviceRequest

v: variable

v: supportingInfo

v: supportingInfo

v: supportingInfo

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: condition

v: variable

v: extension

v: ext1

v: ext1

v: variable

v: url

v: copy

v: ext1

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: code

v: copy

value: String
  v: 397578001

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Device in situ (finding)

v: condition

v: variable

v: extension

v: ext2

v: ext2

v: variable

v: url

v: copy

v: ext2

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: code

v: copy

value: String
  v: 52101004

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Present (qualifier value)

v: condition

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: problem-list-item

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Problem List Item

v: condition

v: variable

v: code

v: code

v: code

v: variable

v: coding

v: copy

value: Id
  v: value

v: condition

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

v: answer

v: Coding

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: condition

v: create

value: String
  v: Condition

v: condition

v: variable

v: id

v: uuid

v: uuid

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: serviceRequest

v: variable

v: supportingInfo

v: supportingInfo

v: supportingInfo

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: condition

v: variable

v: extension

v: ext1

v: ext1

v: variable

v: url

v: copy

v: ext1

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: code

v: copy

value: String
  v: 34486009

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Hyperthyroidism (disorder)

v: condition

v: variable

v: extension

v: ext2

v: ext2

v: variable

v: url

v: copy

v: ext2

v: variable

v: value

v: copy

value: Id
  v: value

v: condition

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: problem-list-item

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Problem List Item

v: condition

v: variable

v: code

v: code

v: code

v: variable

v: coding

v: coding2

v: coding2

v: variable

v: code

v: copy

value: String
  v: 34486009

v: coding2

v: variable

v: system

v: copy

v: coding2

v: variable

v: display

v: copy

value: String
  v: Hyperthyroidism (disorder)

v: condition

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

name:
  v: caveatListDiabetes
source:
  context:
    v: answer
  type:
    v: Coding
  element:
    v: value
  variable:
    v: value
target:
  context:
    v: bundle
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: e
target:
  context:
    v: e
  context type:
    v: variable
  element:
    v: resource
  variable:
    v: condition
  transform:
    v: create
  parameter:
    value: String
      v: Condition
target:
  context:
    v: condition
  context type:
    v: variable
  element:
    v: id
  variable:
    v: uuid
  transform:
    v: uuid
target:
  context:
    v: e
  context type:
    v: variable
  element:
    v: fullUrl
  transform:
    v: evaluate
  parameter:
    value: String
      v: 'urn:uuid:' + %uuid
target:
  context:
    v: serviceRequest
  context type:
    v: variable
  element:
    v: supportingInfo
  variable:
    v: supportingInfo
target:
  context:
    v: supportingInfo
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: evaluate
  parameter:
    value: String
      v: 'urn:uuid:' + %uuid
target:
  context:
    v: condition
  context type:
    v: variable
  element:
    v: extension
  variable:
    v: ext1
target:
  context:
    v: ext1
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: String
      v: http://fhir.ch/ig/ch-rad-order/StructureDefinition/ch-rad-order-caveat-type
target:
  context:
    v: ext1
  context type:
    v: variable
  element:
    v: value
  variable:
    v: coding
  transform:
    v: create
  parameter:
    value: String
      v: Coding
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: copy
  parameter:
    value: String
      v: 73211009
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: system
  transform:
    v: copy
  parameter:
    value: String
      v: http://snomed.info/sct
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: display
  transform:
    v: copy
  parameter:
    value: String
      v: Diabetes mellitus (disorder)
target:
  context:
    v: condition
  context type:
    v: variable
  element:
    v: extension
  variable:
    v: ext2
target:
  context:
    v: ext2
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: String
      v: http://fhir.ch/ig/ch-rad-order/StructureDefinition/ch-rad-order-qualifier-value
target:
  context:
    v: ext2
  context type:
    v: variable
  element:
    v: value
  transform:
    v: copy
  parameter:
    value: Id
      v: value
target:
  context:
    v: condition
  context type:
    v: variable
  element:
    v: category
  variable:
    v: category
target:
  context:
    v: category
  context type:
    v: variable
  element:
    v: coding
  variable:
    v: coding

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: String
    v: problem-list-item

context:
  v: coding
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: String
    v: http://terminology.hl7.org/CodeSystem/condition-category

context:
  v: coding
context type:
  v: variable
element:
  v: display
transform:
  v: copy
parameter:
  value: String
    v: Problem List Item

context:
  v: condition
context type:
  v: variable
element:
  v: code
variable:
  v: code

context:
  v: code
context type:
  v: variable
element:
  v: coding
variable:
  v: coding2

context:
  v: coding2
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: String
    v: 73211009

context:
  v: coding2
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: String
    v: http://snomed.info/sct

context:
  v: coding2
context type:
  v: variable
element:
  v: display
transform:
  v: copy
parameter:
  value: String
    v: Diabetes mellitus (disorder)

context:
  v: condition
context type:
  v: variable
element:
  v: subject
variable:
  v: subject

context:
  v: subject
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %patient.id

name:
  v: itemAnswer
source:
  context:
    v: src
  element:
    v: item
  variable:
    v: item
  condition:
    v: ((linkId.value = 'caveatList.gravida') and answer.exists())
rule:
  name:
    v: answerValueString
  source:
    context:
      v: item
    element:
      v: answer
    variable:
      v: answer
  rule:
    name:
      v: caveatListGravida
    source:
      context:
        v: answer
      type:
        v: Coding
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: entry
      variable:
        v: e
    target:
      context:
        v: e
      context type:
        v: variable
      element:
        v: resource
      variable:
        v: condition
      transform:
        v: create
      parameter:
        value: String
    target:
      context:
        v: condition
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid
      transform:
        v: uuid
    target:
      context:
        v: e
      context type:
        v: variable
      element:
        v: fullUrl
      transform:
        v: evaluate
      parameter:
        value: String
    target:
      context:
        v: serviceRequest
      context type:
        v: variable
      element:
        v: supportingInfo
      variable:
        v: supportingInfo
    target:
      context:
        v: supportingInfo
      context type:
        v: variable
      element:
        v: reference
      transform:
        v: evaluate
      parameter:
        value: String
    target:
      context:
        v: condition
      context type:
        v: variable
      element:
        v: extension
      variable:
        v: ext1
    target:
      context:
        v: ext1
      context type:
        v: variable
      element:
        v: url
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: ext1
      context type:
        v: variable
      element:
        v: value
      variable:
        v: coding
      transform:
        v: create
      parameter:
        value: String
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: condition
      context type:
        v: variable
      element:
        v: extension
      variable:
        v: ext2
    target:
      context:
        v: ext2
      context type:
        v: variable
      element:
        v: url
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: ext2
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id
    target:
      context:
        v: condition
      context type:
        v: variable
      element:
        v: category
      variable:
        v: category

String
v: Condition

String
v: 'urn:uuid:' + %uuid

String
v: 'urn:uuid:' + %uuid

String
v: Coding

String
v: 366321006

String
v: Finding of gravida (finding)

Id
v: value

context:
  v: category
context type:
  v: variable
element:
  v: coding
variable:
  v: coding

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: String
    v: problem-list-item

context:
  v: coding
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: String
    v: http://terminology.hl7.org/CodeSystem/condition-category

context:
  v: coding
context type:
  v: variable
element:
  v: display
transform:
  v: copy
parameter:
  value: String
    v: Problem List Item

context:
  v: condition
context type:
  v: variable
element:
  v: code
variable:
  v: code

context:
  v: code
context type:
  v: variable
element:
  v: coding
variable:
  v: coding2

context:
  v: coding2
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: String
    v: 366321006

context:
  v: coding2
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: String
    v: http://snomed.info/sct

context:
  v: coding2
context type:
  v: variable
element:
  v: display
transform:
  v: copy
parameter:
  value: String
    v: Finding of gravida (finding)

context:
  v: condition
context type:
  v: variable
element:
  v: subject
variable:
  v: subject

context:
  v: subject
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %patient.id

name:
  v: itemAnswer
source:
  context:
    v: src
  element:
    v: item
  variable:
    v: item
  condition:
    v: ((linkId.value = 'caveatList.contrastMediaAllergy') and answer.exists())
rule:
  name:
    v: answerValueString
  source:
    context:
      v: item
    element:
      v: answer
    variable:
      v: answer
  rule:
    name:
      v: caveatListContrastMediaAllergy
    source:
      context:
        v: answer
      type:
        v: Coding
      element:
        v: value
      variable:
        v: value
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: entry
      variable:
        v: e
    target:
      context:
        v: e
      context type:
        v: variable
      element:
        v: resource
      variable:
        v: condition
      transform:
        v: create
      parameter:
        value: String
    target:
      context:
        v: condition
      context type:
        v: variable
      element:
        v: id
      variable:
        v: uuid
      transform:
        v: uuid
    target:
      context:
        v: e
      context type:
        v: variable
      element:
        v: fullUrl
      transform:
        v: evaluate
      parameter:
        value: String
    target:
      context:
        v: serviceRequest
      context type:
        v: variable
      element:
        v: supportingInfo
      variable:
        v: supportingInfo
    target:
      context:
        v: supportingInfo
      context type:
        v: variable
      element:
        v: reference
      transform:
        v: evaluate
      parameter:
        value: String
    target:
      context:
        v: condition
      context type:
        v: variable
      element:
        v: extension
      variable:
        v: ext1
    target:
      context:
        v: ext1
      context type:
        v: variable
      element:
        v: url
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: ext1
      context type:
        v: variable
      element:
        v: value
      variable:
        v: coding
      transform:
        v: create
      parameter:
        value: String
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: code
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: system
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: coding
      context type:
        v: variable
      element:
        v: display
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: condition
      context type:
        v: variable
      element:
        v: extension
      variable:
        v: ext2
    target:
      context:
        v: ext2
      context type:
        v: variable
      element:
        v: url
      transform:
        v: copy
      parameter:
        value: String
    target:
      context:
        v: ext2
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id
    target:
      context:
        v: condition
      context type:
        v: variable
      element:
        v: category
      variable:
        v: category

String
v: Condition

String
v: 'urn:uuid:' + %uuid

String
v: 'urn:uuid:' + %uuid

String
v: Coding

String
v: 293637006

String
v: Allergy to contrast media (finding)

Id
v: value

context:
  v: category
context type:
  v: variable
element:
  v: coding
variable:
  v: coding

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: String
    v: problem-list-item

context:
  v: coding
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: String
    v: http://terminology.hl7.org/CodeSystem/condition-category

context:
  v: coding
context type:
  v: variable
element:
  v: display
transform:
  v: copy
parameter:
  value: String
    v: Problem List Item

context:
  v: condition
context type:
  v: variable
element:
  v: code
variable:
  v: code

context:
  v: code
context type:
  v: variable
element:
  v: coding
variable:
  v: coding2

context:
  v: coding2
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: String
    v: 293637006

context:
  v: coding2
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: String
    v: http://snomed.info/sct

context:
  v: coding2
context type:
  v: variable
element:
  v: display
transform:
  v: copy
parameter:
  value: String
    v: Allergy to contrast media (finding)

context:
  v: condition
context type:
  v: variable
element:
  v: subject
variable:
  v: subject

context:
  v: subject
context type:
  v: variable
element:
  v: reference
transform:
  v: evaluate
parameter:
  value: String
    v: 'urn:uuid:' + %patient.id

name:
  v: DrugPrescription
source:
  context:
    v: src
  element:
    v: item
  variable:
    v: item
  condition:
    v: (linkId.value = 'caveatList.drugPrescription')
dependent:
  name:
    v: DesiredRadiologistServiceItemsDrugDescription
  variable:
    v: item
  variable:
    v: bundle
  variable:
    v: serviceRequest
  variable:
    v: patient

name:
  v: DesiredRadiologistServiceItemsDrugDescription
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: serviceRequest
  type:
    v: ServiceRequest
  mode:
    v: target
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
rule:
  name:
    v: caveatListDrugPrescriptionMetformin
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: (linkId.value = 'caveatList.drugPrescription.metformin')
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: caveatListDrugPrescription
rule:
  name:
    v: caveatListDrugPrescriptionBetaBlocker
  source:
    context:
      v: src
    element:
      v: item
    variable:
      v: item
    condition:
      v: (linkId.value = 'caveatList.drugPrescription.betaBlocker')
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: caveatListDrugPrescription

v: answer

v: Coding

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: condition

v: create

value: String
  v: Condition

v: condition

v: variable

v: id

v: uuid

v: uuid

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: serviceRequest

v: variable

v: supportingInfo

v: supportingInfo

v: supportingInfo

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: condition

v: variable

v: extension

v: ext1

v: ext1

v: variable

v: url

v: copy

v: ext1

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: code

v: copy

value: String
  v: 182817000

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Drug prescription (situation)

v: condition

v: variable

v: extension

v: ext2

v: ext2

v: variable

v: url

v: copy

v: ext2

v: variable

v: value

v: copy

value: Id
  v: value

v: condition

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: problem-list-item

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Problem List Item

v: condition

v: variable

v: code

v: code

v: code

v: variable

v: coding

v: coding2

v: coding2

v: variable

v: code

v: copy

value: String
  v: 372567009

v: coding2

v: variable

v: system

v: copy

v: coding2

v: variable

v: display

v: copy

value: String
  v: Metformin (substance)

v: condition

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

v: answer

v: Coding

v: value

v: value

v: bundle

v: variable

v: entry

v: e

v: e

v: variable

v: resource

v: condition

v: create

value: String
  v: Condition

v: condition

v: variable

v: id

v: uuid

v: uuid

v: e

v: variable

v: fullUrl

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: serviceRequest

v: variable

v: supportingInfo

v: supportingInfo

v: supportingInfo

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %uuid

v: condition

v: variable

v: extension

v: ext1

v: ext1

v: variable

v: url

v: copy

v: ext1

v: variable

v: value

v: coding

v: create

value: String
  v: Coding

v: coding

v: variable

v: code

v: copy

value: String
  v: 182817000

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Drug prescription (situation)

v: condition

v: variable

v: extension

v: ext2

v: ext2

v: variable

v: url

v: copy

v: ext2

v: variable

v: value

v: copy

value: Id
  v: value

v: condition

v: variable

v: category

v: category

v: category

v: variable

v: coding

v: coding

v: coding

v: variable

v: code

v: copy

value: String
  v: problem-list-item

v: coding

v: variable

v: system

v: copy

v: coding

v: variable

v: display

v: copy

value: String
  v: Problem List Item

v: condition

v: variable

v: code

v: code

v: code

v: variable

v: coding

v: coding2

v: coding2

v: variable

v: code

v: copy

value: String
  v: 373254001

v: coding2

v: variable

v: system

v: copy

v: coding2

v: variable

v: display

v: copy

value: String
  v: Substance with beta adrenergic receptor antagonist mechanism of action (substance)

v: condition

v: variable

v: subject

v: subject

v: subject

v: variable

v: reference

v: evaluate

value: String
  v: 'urn:uuid:' + %patient.id

name:
  v: PreviousImagingStudyResultsNonDicom
type mode:
  v: none
input:
  name:
    v: item
  mode:
    v: source
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: serviceRequest
  type:
    v: ServiceRequest
  mode:
    v: target
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
rule:
  name:
    v: itemAnswer
  source:
    context:
      v: item
    variable:
      v: item
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e
  target:
    context:
      v: e
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: documentReference
    transform:
      v: create
    parameter:
      value: String
        v: DocumentReference
  target:
    context:
      v: documentReference
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid
    transform:
      v: uuid
  target:
    context:
      v: documentReference
    context type:
      v: variable
    element:
      v: subject
    variable:
      v: subject
  target:
    context:
      v: subject
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: String
        v: 'urn:uuid:' + %patient.id
  target:
    context:
      v: e
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: String
        v: urn:uuid:
    parameter:
      value: Id
        v: uuid
  target:
    context:
      v: documentReference
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: String
        v: current
  target:
    context:
      v: serviceRequest
    context type:
      v: variable
    element:
      v: supportingInfo
    variable:
      v: supportingInfo
  target:
    context:
      v: supportingInfo
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: String
        v: 'urn:uuid:' + %uuid
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    target:
      context:
        v: documentReference
      context type:
        v: variable
      element:
        v: content
      variable:
        v: content
    target:
      context:
        v: content
      context type:
        v: variable
      element:
        v: attachment
      variable:
        v: attachment
      transform:
        v: evaluate
      parameter:
        value: String
    rule:
      name:
        v: description

String
v: %answer.value

v: answer

v: item

v: dictomitem

v: ((linkId.value = 'attachedFile.description') and answer.exists())

v: documentReference

v: variable

v: description

v: evaluate

value: String
  v: %dictomitem.answer.value

name:
  v: PreviousImagingStudyResults
type mode:
  v: none
input:
  name:
    v: item
  mode:
    v: source
input:
  name:
    v: bundle
  type:
    v: Bundle
  mode:
    v: target
input:
  name:
    v: serviceRequest
  type:
    v: ServiceRequest
  mode:
    v: target
input:
  name:
    v: patient
  type:
    v: Patient
  mode:
    v: target
rule:
  name:
    v: supportingInfo
  source:
    context:
      v: item
    variable:
      v: item
  target:
    context:
      v: bundle
    context type:
      v: variable
    element:
      v: entry
    variable:
      v: e
  target:
    context:
      v: e
    context type:
      v: variable
    element:
      v: resource
    variable:
      v: imagingStudy
    transform:
      v: create
    parameter:
      value: String
        v: ImagingStudy
  target:
    context:
      v: imagingStudy
    context type:
      v: variable
    element:
      v: id
    variable:
      v: uuid
    transform:
      v: uuid
  target:
    context:
      v: imagingStudy
    context type:
      v: variable
    element:
      v: status
    transform:
      v: copy
    parameter:
      value: String
        v: available
  target:
    context:
      v: imagingStudy
    context type:
      v: variable
    element:
      v: subject
    variable:
      v: subject
  target:
    context:
      v: subject
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: String
        v: 'urn:uuid:' + %patient.id
  target:
    context:
      v: e
    context type:
      v: variable
    element:
      v: fullUrl
    transform:
      v: append
    parameter:
      value: String
        v: urn:uuid:
    parameter:
      value: Id
        v: uuid
  target:
    context:
      v: serviceRequest
    context type:
      v: variable
    element:
      v: subject
    variable:
      v: subject
  target:
    context:
      v: subject
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: String
        v: 'urn:uuid:' + %patient.id
  target:
    context:
      v: serviceRequest
    context type:
      v: variable
    element:
      v: supportingInfo
    variable:
      v: supportingInfo
  target:
    context:
      v: imagingStudy
    context type:
      v: variable
    element:
      v: series
    variable:
      v: series
  target:
    context:
      v: series
    context type:
      v: variable
    element:
      v: instance
    variable:
      v: instance
  target:
    context:
      v: supportingInfo
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: evaluate
    parameter:
      value: String
        v: 'urn:uuid:' + %uuid
  rule:
    name:
      v: answerValueString
    source:
      context:
        v: item
      element:
        v: answer
      variable:
        v: answer
    rule:
      name:
        v: description
  rule:
    name:
      v: uid
    source:
      context:
        v: item
      element:
        v: item
      variable:
        v: item

v: answer

v: string

v: value

v: value

v: imagingStudy

v: variable

v: description

v: copy

value: Id
  v: value

v: (linkId.value = 'dicomObject.sopInstanceUid') and answer.exists()

context:
  v: instance
context type:
  v: variable
element:
  v: uid
transform:
  v: evaluate
parameter:
  value: String
    v: %item.answer.value

name:
  v: modality
source:
  context:
    v: item
  element:
    v: item
  variable:
    v: item
  condition:
    v: (linkId.value = 'dicomObject.modality') and answer.exists()
target:
  context:
    v: series
  context type:
    v: variable
  element:
    v: modality
  variable:
    v: modality
target:
  context:
    v: modality
  context type:
    v: variable
  element:
    v: code
  transform:
    v: evaluate
  parameter:
    value: String
      v: %item.answer.value.code

name:
  v: uid
source:
  context:
    v: item
  element:
    v: item
  variable:
    v: item
  condition:
    v: (linkId.value = 'dicomObject.studyInstanceUid') and answer.exists()
target:
  context:
    v: imagingStudy
  context type:
    v: variable
  element:
    v: identifier
  variable:
    v: uid
target:
  context:
    v: uid
  context type:
    v: variable
  element:
    v: type
  variable:
    v: type
target:
  context:
    v: type
  context type:
    v: variable
  element:
    v: coding
  variable:
    v: coding
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: system
  transform:
    v: copy
  parameter:
    value: String
      v: urn:dicom:uid
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: copy
  parameter:
    value: String
      v: PLAC
target:
  context:
    v: uid
  context type:
    v: variable
  element:
    v: value
  transform:
    v: evaluate
  parameter:
    value: String
      v: %item.answer.value

name:
  v: attachmentdicomSeriesInstanceUid
source:
  context:
    v: item
  element:
    v: item
  variable:
    v: item
  condition:
    v: (linkId.value = 'dicomObject.SeriesInstanceUid') and answer.exists()
target:
  context:
    v: series
  context type:
    v: variable
  element:
    v: uid
  transform:
    v: evaluate
  parameter:
    value: String
      v: %item.answer.value

name:
  v: acsn
source:
  context:
    v: item
  element:
    v: item
  variable:
    v: item
  condition:
    v: (linkId.value = 'dicomObject.acsn') and answer.exists()
target:
  context:
    v: imagingStudy
  context type:
    v: variable
  element:
    v: identifier
  variable:
    v: acsn
target:
  context:
    v: acsn
  context type:
    v: variable
  element:
    v: type
  variable:
    v: type
target:
  context:
    v: type
  context type:
    v: variable
  element:
    v: coding
  variable:
    v: coding
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: system
  transform:
    v: copy
  parameter:
    value: String
      v: http://terminology.hl7.org/CodeSystem/v2-0203
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: copy
  parameter:
    value: String
      v: ACSN
target:
  context:
    v: acsn
  context type:
    v: variable
  element:
    v: value
  transform:
    v: evaluate
  parameter:
    value: String
      v: %item.answer.value