Current Build
FHIR Infrastructure Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Not linked to any defined compartments

R3 : R4 Conversion maps for Questionnaire.

Functional status for this map: 6 tests of which 6 fail to execute. (see documentation)

map "http://hl7.org/fhir/StructureMap/Questionnaire3to4" = "R3 to R4 Conversions for Questionnaire"


uses "http://hl7.org/fhir/3.0/StructureDefinition/Questionnaire" alias QuestionnaireR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Questionnaire" alias Questionnaire as target

imports "http://hl7.org/fhir/StructureMap/*3to4"



group Questionnaire extends DomainResource
  input src : QuestionnaireR3 as source
  input tgt : Questionnaire as target

  "Questionnaire.url": for src.url make tgt.url
  "Questionnaire.identifier": for src.identifier make tgt.identifier
  "Questionnaire.version": for src.version make tgt.version
  "Questionnaire.name": for src.name make tgt.name
  "Questionnaire.title": for src.title make tgt.title
  "Questionnaire.derivedFrom": for src.derivedFrom make tgt.derivedFrom
  "Questionnaire.status": for src.status make tgt.status
  "Questionnaire.experimental": for src.experimental make tgt.experimental
  "Questionnaire.subjectType": for src.subjectType make tgt.subjectType
  "Questionnaire.date": for src.date make tgt.date
  "Questionnaire.publisher": for src.publisher make tgt.publisher
  "Questionnaire.contact": for src.contact make tgt.contact
  "Questionnaire.description": for src.description make tgt.description
  "Questionnaire.useContext": for src.useContext make tgt.useContext
  "Questionnaire.jurisdiction": for src.jurisdiction make tgt.jurisdiction
  "Questionnaire.purpose": for src.purpose make tgt.purpose
  "Questionnaire.copyright": for src.copyright make tgt.copyright
  "Questionnaire.approvalDate": for src.approvalDate make tgt.approvalDate
  "Questionnaire.lastReviewDate": for src.lastReviewDate make tgt.lastReviewDate
  "Questionnaire.effectivePeriod": for src.effectivePeriod make tgt.effectivePeriod
  "Questionnaire.code": for src.code make tgt.code
  "Questionnaire.item": for src.item as s make tgt.item as t then QuestionnaireItem(s,t)
endgroup


group QuestionnaireItem extends BackboneElement
  input src : QuestionnaireR3 as source
  input tgt : Questionnaire as target

  "Questionnaire.item.linkId": for src.linkId make tgt.linkId
  "Questionnaire.item.definition": for src.definition make tgt.definition
  "Questionnaire.item.code": for src.code make tgt.code
  "Questionnaire.item.prefix": for src.prefix make tgt.prefix
  "Questionnaire.item.text": for src.text make tgt.text
  "Questionnaire.item.type": for src.type make tgt.type
  "Questionnaire.item.enableWhen": for src.enableWhen as s make tgt.enableWhen as t then QuestionnaireItemEnableWhen(s,t)
  "Questionnaire.item.enableBehavior": for src.enableBehavior make tgt.enableBehavior
  "Questionnaire.item.required": for src.required make tgt.required
  "Questionnaire.item.repeats": for src.repeats make tgt.repeats
  "Questionnaire.item.readOnly": for src.readOnly make tgt.readOnly
  "Questionnaire.item.maxLength": for src.maxLength make tgt.maxLength
  "Questionnaire.item.answerValueSet": for src.answerValueSet make tgt.answerValueSet
  "Questionnaire.item.answerOption": for src.answerOption as s make tgt.answerOption as t then QuestionnaireItemAnswerOption(s,t)
  "Questionnaire.item.initial": for src.initial as s make tgt.initial as t then QuestionnaireItemInitial(s,t)
  "Questionnaire.item.item": for src.item make tgt.item
endgroup


group QuestionnaireItemEnableWhen extends BackboneElement
  input src : QuestionnaireR3 as source
  input tgt : Questionnaire as target

  "Questionnaire.item.enableWhen.question": for src.question make tgt.question
  "Questionnaire.item.enableWhen.operator": for src.operator make tgt.operator
  "Questionnaire.item.enableWhen.answer": for src.answer make tgt.answer
endgroup


group QuestionnaireItemAnswerOption extends BackboneElement
  input src : QuestionnaireR3 as source
  input tgt : Questionnaire as target

  "Questionnaire.item.answerOption.value": for src.value make tgt.value
  "Questionnaire.item.answerOption.initialSelected": for src.initialSelected make tgt.initialSelected
endgroup


group QuestionnaireItemInitial extends BackboneElement
  input src : QuestionnaireR3 as source
  input tgt : Questionnaire as target

  "Questionnaire.item.initial.value": for src.value make tgt.value
endgroup


map "http://hl7.org/fhir/StructureMap/Questionnaire4to3" = "R4 to R3 Conversion for Questionnaire"


uses "http://hl7.org/fhir/StructureDefinition/Questionnaire" alias Questionnaire as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Questionnaire" alias QuestionnaireR3 as target

imports "http://hl7.org/fhir/StructureMap/*4to3"



group Questionnaire extends DomainResource
  input src : QuestionnaireR3 as source
  input tgt : Questionnaire as target

  "Questionnaire.url": for src.url make tgt.url
  "Questionnaire.identifier": for src.identifier make tgt.identifier
  "Questionnaire.version": for src.version make tgt.version
  "Questionnaire.name": for src.name make tgt.name
  "Questionnaire.title": for src.title make tgt.title
  "Questionnaire.derivedFrom": for src.derivedFrom make tgt.derivedFrom
  "Questionnaire.status": for src.status make tgt.status
  "Questionnaire.experimental": for src.experimental make tgt.experimental
  "Questionnaire.subjectType": for src.subjectType make tgt.subjectType
  "Questionnaire.date": for src.date make tgt.date
  "Questionnaire.publisher": for src.publisher make tgt.publisher
  "Questionnaire.contact": for src.contact make tgt.contact
  "Questionnaire.description": for src.description make tgt.description
  "Questionnaire.useContext": for src.useContext make tgt.useContext
  "Questionnaire.jurisdiction": for src.jurisdiction make tgt.jurisdiction
  "Questionnaire.purpose": for src.purpose make tgt.purpose
  "Questionnaire.copyright": for src.copyright make tgt.copyright
  "Questionnaire.approvalDate": for src.approvalDate make tgt.approvalDate
  "Questionnaire.lastReviewDate": for src.lastReviewDate make tgt.lastReviewDate
  "Questionnaire.effectivePeriod": for src.effectivePeriod make tgt.effectivePeriod
  "Questionnaire.code": for src.code make tgt.code
  "Questionnaire.item": for src.item as s make tgt.item as t then QuestionnaireItem(s,t)
endgroup

group QuestionnaireItem extends BackboneElement
  input src : QuestionnaireR3 as source
  input tgt : Questionnaire as target

  "Questionnaire.item.linkId": for src.linkId make tgt.linkId
  "Questionnaire.item.definition": for src.definition make tgt.definition
  "Questionnaire.item.code": for src.code make tgt.code
  "Questionnaire.item.prefix": for src.prefix make tgt.prefix
  "Questionnaire.item.text": for src.text make tgt.text
  "Questionnaire.item.type": for src.type make tgt.type
  "Questionnaire.item.enableWhen": for src.enableWhen as s make tgt.enableWhen as t then QuestionnaireItemEnableWhen(s,t)
  "Questionnaire.item.enableBehavior": for src.enableBehavior make tgt.enableBehavior
  "Questionnaire.item.required": for src.required make tgt.required
  "Questionnaire.item.repeats": for src.repeats make tgt.repeats
  "Questionnaire.item.readOnly": for src.readOnly make tgt.readOnly
  "Questionnaire.item.maxLength": for src.maxLength make tgt.maxLength
  "Questionnaire.item.answerValueSet": for src.answerValueSet make tgt.answerValueSet
  "Questionnaire.item.answerOption": for src.answerOption as s make tgt.answerOption as t then QuestionnaireItemAnswerOption(s,t)
  "Questionnaire.item.initial": for src.initial as s make tgt.initial as t then QuestionnaireItemInitial(s,t)
  "Questionnaire.item.item": for src.item make tgt.item
endgroup

group QuestionnaireItemEnableWhen extends BackboneElement
  input src : QuestionnaireR3 as source
  input tgt : Questionnaire as target

  "Questionnaire.item.enableWhen.question": for src.question make tgt.question
  "Questionnaire.item.enableWhen.operator": for src.operator make tgt.operator
  "Questionnaire.item.enableWhen.answer": for src.answer make tgt.answer
endgroup

group QuestionnaireItemAnswerOption extends BackboneElement
  input src : QuestionnaireR3 as source
  input tgt : Questionnaire as target

  "Questionnaire.item.answerOption.value": for src.value make tgt.value
  "Questionnaire.item.answerOption.initialSelected": for src.initialSelected make tgt.initialSelected
endgroup

group QuestionnaireItemInitial extends BackboneElement
  input src : QuestionnaireR3 as source
  input tgt : Questionnaire as target

  "Questionnaire.item.initial.value": for src.value make tgt.value
endgroup