CoreDataSetVSLibrary
type: StructureMap
node role: treeRoot
id:
  v: CoreDataSetVSLibrary
text:
  status:
    v: generated
  div: Generated Narrative: StructureMap CoreDataSetVSLibrary #xD; map "http://smart.who.int/ddcc/StructureMap/CoreDataSetVSLibrary" = "CoreDataSetVSLibrary"#xD; #xD; uses "http://smart.who.int/ddcc/StructureDefinition/DDCCCoreDataSetVS" alias DDCCVS as source#xD; uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias AddBundle as target#xD; uses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as target#xD; uses "http://smart.who.int/ddcc/StructureDefinition/DDCCPatient" alias DDCCPatient as target#xD; uses "http://smart.who.int/ddcc/StructureDefinition/DDCCDocumentReferenceQR" alias DDCCDocRefQR as target#xD; uses "http://smart.who.int/ddcc/StructureDefinition/DDCCVSComposition" alias DDCCVSComposition as target#xD; uses "http://smart.who.int/ddcc/StructureDefinition/DDCCImmunization" alias DDCCImmunization as target#xD; uses "http://smart.who.int/ddcc/StructureDefinition/DDCCImmunizationRecommendation" alias DDCCImmRec as target#xD; #xD; imports "http://smart.who.int/ddcc/StructureMap/CoreDataSetLibrary"#xD; #xD; group VSToAddBundle(source ddcc : DDCCVS, target bundle : AddBundle) {#xD; ddcc -> bundle.type = 'transaction' "set bundle type";#xD; ddcc -> uuid() as pid, uuid() as compid, uuid() as iid, uuid() as irid, uuid() as qrwhoid, uuid() as qrdccid then {#xD; ddcc -> bundle.entry as entry, entry.fullUrl = append('urn:uuid:', pid), entry.request as request, request.method = 'PUT', request.url = append('Patient/', pid), create('http://smart.who.int/ddcc/StructureDefinition/DDCCPatient') as patient then {#xD; ddcc then DDCCToPatient(ddcc, patient, pid) "setup patient";#xD; ddcc -> entry.resource = patient "set patient resource";#xD; } "create patient resource";#xD; ddcc -> bundle.entry as entry, entry.fullUrl = append('urn:uuid:', compid), entry.request as request, request.method = 'PUT', request.url = append('Composition/', compid), create('http://smart.who.int/ddcc/StructureDefinition/DDCCVSComposition') as comp then {#xD; ddcc then DDCCToCompositi…
url:
  v: http://smart.who.int/ddcc/StructureMap/CoreDataSetVSLibrary
version:
  v: 1.0.0
name:
  v: CoreDataSetVSLibrary
status:
  v: draft
date:
  v: 2025-09-23T10:33:16+00:00
publisher:
  v: WHO
contact:
  name:
    v: WHO
  telecom:
    system:
      v: url
    value:
      v: http://who.int
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
structure:
  url:
    v: http://smart.who.int/ddcc/StructureDefinition/DDCCCoreDataSetVS
    link: http://smart.who.int/ddcc/StructureDefinition/DDCCCoreDataSetVS
  mode:
    v: source
  alias:
    v: DDCCVS
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Bundle
    link: http://hl7.org/fhir/StructureDefinition/Bundle
  mode:
    v: target
  alias:
    v: AddBundle
structure:
  url:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  mode:
    v: target
  alias:
    v: Patient
structure:
  url:
    v: http://smart.who.int/ddcc/StructureDefinition/DDCCPatient
    link: http://smart.who.int/ddcc/StructureDefinition/DDCCPatient
  mode:
    v: target
  alias:
    v: DDCCPatient
structure:
  url:
    v: http://smart.who.int/ddcc/StructureDefinition/DDCCDocumentReferenceQR
    link: http://smart.who.int/ddcc/StructureDefinition/DDCCDocumentReferenceQR
  mode:
    v: target
  alias:
    v: DDCCDocRefQR
structure:
  url:
    v: http://smart.who.int/ddcc/StructureDefinition/DDCCVSComposition
    link: http://smart.who.int/ddcc/StructureDefinition/DDCCVSComposition
  mode:
    v: target
  alias:
    v: DDCCVSComposition
structure:
  url:
    v: http://smart.who.int/ddcc/StructureDefinition/DDCCImmunization
    link: http://smart.who.int/ddcc/StructureDefinition/DDCCImmunization
  mode:
    v: target
  alias:
    v: DDCCImmunization
structure:
  url:
    v: http://smart.who.int/ddcc/StructureDefinition/DDCCImmunizationRecommendation
    link: http://smart.who.int/ddcc/StructureDefinition/DDCCImmunizationRecommendation
  mode:
    v: target
  alias:
    v: DDCCImmRec
import:
  v: http://smart.who.int/ddcc/StructureMap/CoreDataSetLibrary
  link: http://smart.who.int/ddcc/StructureMap/CoreDataSetLibrary
group:
  name:
    v: VSToAddBundle
  type mode:
    v: none
  input:
    name:
      v: ddcc
    type:
      v: DDCCVS
    mode:
      v: source
  input:
    name:
      v: bundle
    type:
      v: AddBundle
    mode:
      v: target
  rule:
    name:
      v: set bundle type
    source:
      context:
        v: ddcc
    target:
      context:
        v: bundle
      context type:
        v: variable
      element:
        v: type
      transform:
        v: copy
      parameter:
        value: string
  rule:
    name:
      v: set uuids
    source:
      context:
        v: ddcc
    target:
      context type:
        v: variable
      variable:
        v: pid
      transform:
        v: uuid
    target:
      context type:
        v: variable
      variable:
        v: compid
      transform:
        v: uuid
    target:
      context type:
        v: variable
      variable:
        v: iid
      transform:
        v: uuid
    target:
      context type:
        v: variable
      variable:
        v: irid
      transform:
        v: uuid
    target:
      context type:
        v: variable
      variable:
        v: qrwhoid
      transform:
        v: uuid
    target:
      context type:
        v: variable
      variable:
        v: qrdccid
      transform:
        v: uuid
    rule:
      name:
        v: create patient resource
    rule:
      name:
        v: create composition resource
    rule:
      name:
        v: create WHO QR Doc Ref
    rule:
      name:
        v: create DCC QR Doc Ref
    rule:
      name:
        v: create immunization resource
    rule:
      name:
        v: create immunization recommendation resource

string
v: transaction

v: ddcc

v: bundle

v: variable

v: entry

v: entry

v: entry

v: variable

v: fullUrl

v: append

value: string
  v: urn:uuid:

value: id
  v: pid

v: entry

v: variable

v: request

v: request

v: request

v: variable

v: method

v: copy

value: string
  v: PUT

v: request

v: variable

v: url

v: append

value: string
  v: Patient/

value: id
  v: pid

v: variable

v: patient

v: create

v: setup patient

context:
  v: ddcc

name:
  v: DDCCToPatient
variable:
  v: ddcc
variable:
  v: patient
variable:
  v: pid

v: set patient resource

context:
  v: ddcc

context:
  v: entry
context type:
  v: variable
element:
  v: resource
transform:
  v: copy
parameter:
  value: id
    v: patient

v: ddcc

v: bundle

v: variable

v: entry

v: entry

v: entry

v: variable

v: fullUrl

v: append

value: string
  v: urn:uuid:

value: id
  v: compid

v: entry

v: variable

v: request

v: request

v: request

v: variable

v: method

v: copy

value: string
  v: PUT

v: request

v: variable

v: url

v: append

value: string
  v: Composition/

value: id
  v: compid

v: variable

v: comp

v: create

v: setup composition

context:
  v: ddcc

name:
  v: DDCCToComposition
variable:
  v: ddcc
variable:
  v: comp
variable:
  v: compid
variable:
  v: pid

v: set category

context:
  v: ddcc

context:
  v: comp
context type:
  v: variable
element:
  v: category
variable:
  v: category

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

context:
  v: coding
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: string
    v: http://smart.who.int/ddcc/CodeSystem/DDCCCompositionCategoryCodeSystem

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: string
    v: ddcc-vs

v: set title

context:
  v: ddcc

context:
  v: comp
context type:
  v: variable
element:
  v: title
transform:
  v: copy
parameter:
  value: string
    v: International Certificate of Vaccination or Prophylaxis

v: set section

context:
  v: ddcc

context:
  v: comp
context type:
  v: variable
element:
  v: section
variable:
  v: section

name:
  v: set code
source:
  context:
    v: ddcc
target:
  context:
    v: section
  context type:
    v: variable
  element:
    v: code
  variable:
    v: code
target:
  context:
    v: code
  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://loinc.org
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: copy
  parameter:
    value: string
      v: 11369-6

name:
  v: set certificate
source:
  context:
    v: ddcc
  element:
    v: certificate
  variable:
    v: certificate
rule:
  name:
    v: set author
  source:
    context:
      v: certificate
    element:
      v: issuer
    variable:
      v: issuer
  target:
    context:
      v: section
    context type:
      v: variable
    element:
      v: author
    transform:
      v: copy
    parameter:
      value: id
        v: issuer

name:
  v: set focus
source:
  context:
    v: ddcc
target:
  context:
    v: section
  context type:
    v: variable
  element:
    v: focus
  variable:
    v: focus
target:
  context:
    v: focus
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: append
  parameter:
    value: string
      v: Immunization/
  parameter:
    value: id
      v: iid

name:
  v: add Immunization entry
source:
  context:
    v: ddcc
target:
  context:
    v: section
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: entry
target:
  context:
    v: entry
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: append
  parameter:
    value: string
      v: Immunization/
  parameter:
    value: id
      v: iid

name:
  v: add ImmunizationRecommendation entry
source:
  context:
    v: ddcc
target:
  context:
    v: section
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: entry
target:
  context:
    v: entry
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: append
  parameter:
    value: string
      v: ImmunizationRecommendation/
  parameter:
    value: id
      v: irid

name:
  v: add WHO QR entry
source:
  context:
    v: ddcc
target:
  context:
    v: section
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: entry
target:
  context:
    v: entry
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: append
  parameter:
    value: string
      v: DocumentReference/
  parameter:
    value: id
      v: qrwhoid

name:
  v: add DCC QR entry
source:
  context:
    v: ddcc
target:
  context:
    v: section
  context type:
    v: variable
  element:
    v: entry
  variable:
    v: entry
target:
  context:
    v: entry
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: append
  parameter:
    value: string
      v: DocumentReference/
  parameter:
    value: id
      v: qrdccid

v: set composition resource

context:
  v: ddcc

context:
  v: entry
context type:
  v: variable
element:
  v: resource
transform:
  v: copy
parameter:
  value: id
    v: comp

v: ddcc

v: bundle

v: variable

v: entry

v: entry

v: entry

v: variable

v: fullUrl

v: append

value: string
  v: urn:uuid:

value: id
  v: qrwhoid

v: entry

v: variable

v: request

v: request

v: request

v: variable

v: method

v: copy

value: string
  v: PUT

v: request

v: variable

v: url

v: append

value: string
  v: DocumentReference/

value: id
  v: qrwhoid

v: variable

v: qr

v: create

v: setup WHO DocRef

context:
  v: ddcc

name:
  v: DDCCToDocumentReference
variable:
  v: ddcc
variable:
  v: qr
variable:
  v: qrwhoid
variable:
  v: pid

v: set category

context:
  v: ddcc

context:
  v: qr
context type:
  v: variable
element:
  v: category
variable:
  v: category

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

context:
  v: coding
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: string
    v: http://smart.who.int/ddcc/CodeSystem/DDCCQRCategoryUsageCodeSystem

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: string
    v: who

v: set description

context:
  v: ddcc

context:
  v: qr
context type:
  v: variable
element:
  v: description
transform:
  v: copy
parameter:
  value: string
    v: WHO QR code for COVID 19 Vaccine Certificate

v: set WHO QR

context:
  v: ddcc

context:
  v: entry
context type:
  v: variable
element:
  v: resource
transform:
  v: copy
parameter:
  value: id
    v: qr

v: ddcc

v: bundle

v: variable

v: entry

v: entry

v: entry

v: variable

v: fullUrl

v: append

value: string
  v: urn:uuid:

value: id
  v: qrdccid

v: entry

v: variable

v: request

v: request

v: request

v: variable

v: method

v: copy

value: string
  v: PUT

v: request

v: variable

v: url

v: append

value: string
  v: DocumentReference/

value: id
  v: qrdccid

v: variable

v: qr

v: create

v: setup DCC DocRef

context:
  v: ddcc

name:
  v: DDCCToDocumentReference
variable:
  v: ddcc
variable:
  v: qr
variable:
  v: qrdccid
variable:
  v: pid

v: set category

context:
  v: ddcc

context:
  v: qr
context type:
  v: variable
element:
  v: category
variable:
  v: category

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

context:
  v: coding
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: string
    v: http://smart.who.int/ddcc/CodeSystem/DDCCQRCategoryUsageCodeSystem

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: string
    v: dcc

v: set description

context:
  v: ddcc

context:
  v: qr
context type:
  v: variable
element:
  v: description
transform:
  v: copy
parameter:
  value: string
    v: DCC QR code for COVID 19 Vaccine Certificate

v: set DCC QR

context:
  v: ddcc

context:
  v: entry
context type:
  v: variable
element:
  v: resource
transform:
  v: copy
parameter:
  value: id
    v: qr

v: ddcc

v: vaccination

v: first

v: vaccination

v: bundle

v: variable

v: entry

v: entry

v: entry

v: variable

v: fullUrl

v: append

value: string
  v: urn:uuid:

value: id
  v: iid

v: entry

v: variable

v: request

v: request

v: request

v: variable

v: method

v: copy

value: string
  v: PUT

v: request

v: variable

v: url

v: append

value: string
  v: Immunization/

value: id
  v: iid

v: variable

v: immunization

v: create

v: setup immunization

context:
  v: ddcc
element:
  v: certificate
variable:
  v: certificate

name:
  v: DDCCToImmunization
variable:
  v: vaccination
variable:
  v: immunization
variable:
  v: certificate
variable:
  v: iid
variable:
  v: pid

v: set immunization resource

context:
  v: ddcc

context:
  v: entry
context type:
  v: variable
element:
  v: resource
transform:
  v: copy
parameter:
  value: id
    v: immunization

context:
  v: ddcc
element:
  v: vaccination
list mode:
  v: first
variable:
  v: vaccination

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

context:
  v: entry
context type:
  v: variable
element:
  v: fullUrl
transform:
  v: append
parameter:
  value: string
    v: urn:uuid:
parameter:
  value: id
    v: irid

context:
  v: entry
context type:
  v: variable
element:
  v: request
variable:
  v: request

context:
  v: request
context type:
  v: variable
element:
  v: method
transform:
  v: copy
parameter:
  value: string
    v: PUT

context:
  v: request
context type:
  v: variable
element:
  v: url
transform:
  v: append
parameter:
  value: string
    v: ImmunizationRecommendation/
parameter:
  value: id
    v: irid

context type:
  v: variable
variable:
  v: immrec
transform:
  v: create
parameter:
  value: string
    v: http://smart.who.int/ddcc/StructureDefinition/DDCCImmunizationRecommendation

name:
  v: setup immunization recommendation
source:
  context:
    v: vaccination
dependent:
  name:
    v: DDCCToImmRec
  variable:
    v: vaccination
  variable:
    v: immrec
  variable:
    v: irid
  variable:
    v: iid
  variable:
    v: pid

name:
  v: set immunization recommendation resource
source:
  context:
    v: ddcc
target:
  context:
    v: entry
  context type:
    v: variable
  element:
    v: resource
  transform:
    v: copy
  parameter:
    value: id
      v: immrec

name:
  v: DDCCToImmunization
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: immunization
  type:
    v: DDCCImmunization
  mode:
    v: target
input:
  name:
    v: certificate
  mode:
    v: source
input:
  name:
    v: iid
  mode:
    v: source
input:
  name:
    v: pid
  mode:
    v: source
rule:
  name:
    v: set id
  source:
    context:
      v: iid
  target:
    context:
      v: immunization
    context type:
      v: variable
    element:
      v: id
    transform:
      v: copy
    parameter:
      value: id
        v: iid
rule:
  name:
    v: set brand extension
  source:
    context:
      v: src
    element:
      v: brand
    variable:
      v: brand
  target:
    context:
      v: immunization
    context type:
      v: variable
    element:
      v: extension
    variable:
      v: ext
  rule:
    name:
      v: set brand extension values
    source:
      context:
        v: brand
    target:
      context:
        v: ext
      context type:
        v: variable
      element:
        v: url
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: ext
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
rule:
  name:
    v: set maholder extension
  source:
    context:
      v: src
    element:
      v: maholder
    variable:
      v: maholder
  target:
    context:
      v: immunization
    context type:
      v: variable
    element:
      v: extension
    variable:
      v: ext
  rule:
    name:
      v: set MA Holder extension values
    source:
      context:
        v: maholder
    target:
      context:
        v: ext
      context type:
        v: variable
      element:
        v: url
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: ext
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
rule:
  name:
    v: set country extension
  source:
    context:
      v: src
    element:
      v: country
    variable:
      v: country
  target:
    context:
      v: immunization
    context type:
      v: variable
    element:
      v: extension
    variable:
      v: ext
  rule:
    name:
      v: set country extension values
    source:
      context:
        v: country
      element:
        v: code
      variable:
        v: code
    target:
      context:
        v: ext
      context type:
        v: variable
      element:
        v: url
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: ext
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: id
rule:
  name:
    v: set vaccine valid extension
  source:
    context:
      v: src
    element:
      v: validFrom

id
v: brand

id
v: maholder

id
v: code

v: validFrom

context:
  v: immunization
context type:
  v: variable
element:
  v: extension
variable:
  v: ext

name:
  v: set valid from extension values
source:
  context:
    v: validFrom
target:
  context:
    v: ext
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: string
      v: http://smart.who.int/ddcc/StructureDefinition/DDCCVaccineValidFrom
target:
  context:
    v: ext
  context type:
    v: variable
  element:
    v: value
  transform:
    v: copy
  parameter:
    value: id
      v: validFrom

name:
  v: set status
source:
  context:
    v: src
target:
  context:
    v: immunization
  context type:
    v: variable
  element:
    v: status
  transform:
    v: copy
  parameter:
    value: string
      v: completed

name:
  v: set vaccine
source:
  context:
    v: src
  element:
    v: vaccine
  variable:
    v: vaccine
target:
  context:
    v: immunization
  context type:
    v: variable
  element:
    v: vaccineCode
  variable:
    v: vacCode
target:
  context:
    v: vacCode
  context type:
    v: variable
  element:
    v: coding
  transform:
    v: copy
  parameter:
    value: id
      v: vaccine

name:
  v: set patient
source:
  context:
    v: src
target:
  context:
    v: immunization
  context type:
    v: variable
  element:
    v: patient
  variable:
    v: patient
target:
  context:
    v: patient
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: append
  parameter:
    value: string
      v: Patient/
  parameter:
    value: id
      v: pid

name:
  v: set manufacturer identifier
source:
  context:
    v: src
  element:
    v: manufacturer
  variable:
    v: manufacturer
target:
  context:
    v: immunization
  context type:
    v: variable
  element:
    v: manufacturer
  variable:
    v: tman
target:
  context:
    v: tman
  context type:
    v: variable
  element:
    v: identifier
  variable:
    v: ident
rule:
  name:
    v: set system
  source:
    context:
      v: manufacturer
    element:
      v: system
    variable:
      v: system
  target:
    context:
      v: ident
    context type:
      v: variable
    element:
      v: system
    transform:
      v: copy
    parameter:
      value: id
        v: system
rule:
  name:
    v: set value
  source:
    context:
      v: manufacturer
    element:
      v: code
    variable:
      v: code
  target:
    context:
      v: ident
    context type:
      v: variable
    element:
      v: value
    transform:
      v: copy
    parameter:
      value: id
        v: code

name:
  v: set lot number
source:
  context:
    v: src
  element:
    v: lot
  variable:
    v: lot
target:
  context:
    v: immunization
  context type:
    v: variable
  element:
    v: lotNumber
  transform:
    v: copy
  parameter:
    value: id
      v: lot

name:
  v: set occurrence date
source:
  context:
    v: src
  element:
    v: date
  variable:
    v: date
target:
  context:
    v: immunization
  context type:
    v: variable
  element:
    v: occurrence
  transform:
    v: copy
  parameter:
    value: id
      v: date

name:
  v: set location
source:
  context:
    v: src
  element:
    v: centre
  variable:
    v: centre
target:
  context:
    v: immunization
  context type:
    v: variable
  element:
    v: location
  variable:
    v: location
rule:
  name:
    v: set location display
  source:
    context:
      v: centre
  target:
    context:
      v: location
    context type:
      v: variable
    element:
      v: display
    transform:
      v: copy
    parameter:
      value: id
        v: centre

name:
  v: set practitioner
source:
  context:
    v: src
  element:
    v: practitioner
  variable:
    v: practitioner
target:
  context:
    v: immunization
  context type:
    v: variable
  element:
    v: performer
  variable:
    v: performer
rule:
  name:
    v: set performer
  source:
    context:
      v: practitioner
    element:
      v: value
    variable:
      v: hw
  target:
    context:
      v: performer
    context type:
      v: variable
    element:
      v: actor
    variable:
      v: actor
  rule:
    name:
      v: set actor
    source:
      context:
        v: hw
    target:
      context:
        v: actor
      context type:
        v: variable
      element:
        v: type
      transform:
        v: copy
      parameter:
        value: string
    target:
      context:
        v: actor
      context type:
        v: variable
      element:
        v: identifier
      variable:
        v: identifier
    rule:
      name:
        v: set hw identifier

string
v: Practitioner

v: hw

v: identifier

v: variable

v: value

v: copy

value: id
  v: hw

name:
  v: set protocolApplied
source:
  context:
    v: src
target:
  context:
    v: immunization
  context type:
    v: variable
  element:
    v: protocolApplied
  variable:
    v: protocol
rule:
  name:
    v: set authority
  source:
    context:
      v: src
  target:
    context:
      v: protocol
    context type:
      v: variable
    element:
      v: authority
    variable:
      v: authority
  rule:
    name:
      v: set issuer
    source:
      context:
        v: certificate
      element:
        v: issuer
      variable:
        v: issuer
    target:
      context:
        v: authority
      context type:
        v: variable
      element:
        v: type
      transform:
        v: copy
      parameter:
        value: string
    rule:
      name:
        v: set issuer identifier
rule:
  name:
    v: set target disease
  source:
    context:
      v: src
    element:
      v: disease
    variable:
      v: disease
  target:
    context:
      v: protocol
    context type:
      v: variable
    element:
      v: targetDisease
    variable:
      v: tdisease
  rule:
    name:
      v: set target disease code
    source:
      context:
        v: disease
    target:
      context:
        v: tdisease
      context type:
        v: variable
      element:
        v: coding
      transform:
        v: copy
      parameter:
        value: id
rule:
  name:
    v: set dose number
  source:
    context:
      v: src
    element:
      v: dose
    variable:
      v: dose
  target:
    context:
      v: protocol
    context type:
      v: variable
    element:
      v: doseNumber
    transform:
      v: copy
    parameter:
      value: id
        v: dose
rule:
  name:
    v: set total doses
  source:
    context:
      v: src
    element:
      v: totalDoses
    variable:
      v: totalDoses
  target:
    context:
      v: protocol
    context type:
      v: variable
    element:
      v: seriesDoses
    transform:
      v: copy
    parameter:
      value: id
        v: totalDoses

string
v: Organization

v: issuer

v: identifier

v: pha

v: authority

v: variable

v: identifier

v: identifier

v: set pha

context:
  v: pha
element:
  v: value
variable:
  v: value

context:
  v: identifier
context type:
  v: variable
element:
  v: value
transform:
  v: copy
parameter:
  value: id
    v: value

id
v: disease

name:
  v: DDCCToImmRec
type mode:
  v: none
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: immrec
  type:
    v: DDCCImmunizationRecommendation
  mode:
    v: target
input:
  name:
    v: irid
  mode:
    v: source
input:
  name:
    v: iid
  mode:
    v: source
input:
  name:
    v: pid
  mode:
    v: source
rule:
  name:
    v: set date
  source:
    context:
      v: src
    element:
      v: date
    variable:
      v: date
  target:
    context:
      v: immrec
    context type:
      v: variable
    element:
      v: date
    transform:
      v: copy
    parameter:
      value: id
        v: date
rule:
  name:
    v: set patient
  source:
    context:
      v: src
  target:
    context:
      v: immrec
    context type:
      v: variable
    element:
      v: patient
    variable:
      v: patient
  target:
    context:
      v: patient
    context type:
      v: variable
    element:
      v: reference
    transform:
      v: append
    parameter:
      value: string
        v: Patient/
    parameter:
      value: id
        v: pid
rule:
  name:
    v: set recommendation
  source:
    context:
      v: src
  target:
    context:
      v: immrec
    context type:
      v: variable
    element:
      v: recommendation
    variable:
      v: rec
  rule:
    name:
      v: set vaccine code
    source:
      context:
        v: src
      element:
        v: vaccine
      variable:
        v: vaccine
    target:
      context:
        v: rec
      context type:
        v: variable
      element:
        v: vaccineCode
      variable:
        v: vaccineCode
    rule:
      name:
        v: set vaccine code coding
  rule:
    name:
      v: set target disease
    source:
      context:
        v: src
      element:
        v: disease
      variable:
        v: disease
    target:
      context:
        v: rec
      context type:
        v: variable
      element:
        v: targetDisease
      variable:
        v: targetDisease
    rule:
      name:
        v: set target disease coding
  rule:
    name:
      v: set forecast status
    source:
      context:
        v: src
    target:
      context:
        v: rec
      context type:
        v: variable
      element:
        v: forecastStatus
      variable:
        v: forecast
    rule:
      name:
        v: set forecast status coding
  rule:
    name:
      v: set date criterion
    source:
      context:
        v: src
    target:
      context:
        v: rec
      context type:
        v: variable
      element:
        v: dateCriterion
      variable:
        v: due_date
    rule:
      name:
        v: set due date code
    rule:
      name:
        v: set due date value
  rule:
    name:
      v: set dose number
    source:
      context:
        v: src
      element:
        v: dose
      variable:
        v: dose
    target:
      context:
        v: rec
      context type:
        v: variable
      element:
        v: doseNumber
      transform:
        v: evaluate
      parameter:
        value: string

v: vaccine

v: vaccineCode

v: variable

v: coding

v: copy

value: id
  v: vaccine

v: disease

v: targetDisease

v: variable

v: coding

v: copy

value: id
  v: disease

v: src

v: forecast

v: variable

v: coding

v: coding

v: set forecast system

context:
  v: src

context:
  v: coding
context type:
  v: variable
element:
  v: system
transform:
  v: copy
parameter:
  value: string
    v: http://terminology.hl7.org/2.1.0/CodeSystem-immunization-recommendation-status.html

v: set forecast code

context:
  v: src

context:
  v: coding
context type:
  v: variable
element:
  v: code
transform:
  v: copy
parameter:
  value: string
    v: due

v: src

v: due_date

v: variable

v: code

v: code

v: set due date code coding

context:
  v: src

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

name:
  v: set due date code system
source:
  context:
    v: src
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: system
  transform:
    v: copy
  parameter:
    value: string
      v: http://loinc.org

name:
  v: set due date code code
source:
  context:
    v: src
target:
  context:
    v: coding
  context type:
    v: variable
  element:
    v: code
  transform:
    v: copy
  parameter:
    value: string
      v: 30980-7

v: src

v: nextDose

v: nextDose

v: due_date

v: variable

v: value

v: copy

value: id
  v: nextDose

string
v: dose.toInteger() + 1

name:
  v: set total doses
source:
  context:
    v: src
  element:
    v: totalDoses
  variable:
    v: totalDoses
target:
  context:
    v: rec
  context type:
    v: variable
  element:
    v: seriesDoses
  transform:
    v: copy
  parameter:
    value: id
      v: totalDoses

name:
  v: set supporting immunization
source:
  context:
    v: src
target:
  context:
    v: rec
  context type:
    v: variable
  element:
    v: supportingImmunization
  variable:
    v: imm
target:
  context:
    v: imm
  context type:
    v: variable
  element:
    v: reference
  transform:
    v: append
  parameter:
    value: string
      v: Immunization/
  parameter:
    value: id
      v: iid