FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions
Official URL: http://hl7.org/fhir/StructureMap/Questionnaire4to5 | Version: 0.1.0 | |||
Standards status: Draft | Maturity Level: 1 | Computable Name: Questionnaire4to5 |
QuestionnaireTransformsR4toR5
/// url = 'http://hl7.org/fhir/StructureMap/Questionnaire4to5' /// name = 'Questionnaire4to5' /// title = 'Questionnaire Transforms: R4 to R5' /// status = 'active' uses "http://hl7.org/fhir/4.0/Questionnaire" alias QuestionnaireR4 as source uses "http://hl7.org/fhir/5.0/Questionnaire" alias QuestionnaireR5 as target imports "http://hl7.org/fhir/StructureMap/*4to5" group Questionnaire(source src : QuestionnaireR4, target tgt : QuestionnaireR5) extends DomainResource <<type+>> { src.url -> tgt.url; src.identifier -> tgt.identifier; src.version -> tgt.version; src.name -> tgt.name; src.title -> tgt.title; src.derivedFrom -> tgt.derivedFrom; src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/Questionnaire.status-R4toR5', 'code'); src.experimental -> tgt.experimental; src.subjectType -> tgt.subjectType; src.date -> tgt.date; src.publisher -> tgt.publisher; src.contact -> tgt.contact; src.description -> tgt.description; src.useContext -> tgt.useContext; src.jurisdiction -> tgt.jurisdiction; src.purpose -> tgt.purpose; src.copyright -> tgt.copyright; src.approvalDate -> tgt.approvalDate; src.lastReviewDate -> tgt.lastReviewDate; src.effectivePeriod -> tgt.effectivePeriod; src.code -> tgt.code; src.item as s -> tgt.item as t then QuestionnaireItem(s, t); } group QuestionnaireItem(source src, target tgt) extends BackboneElement { src.linkId -> tgt.linkId; src.definition -> tgt.definition; src.code -> tgt.code; src.prefix -> tgt.prefix; src.text -> tgt.text; src.type as v -> tgt.type = translate(v, 'http://hl7.org/fhir/ConceptMap/Questionnaire.item.type-R4toR5', 'code'); src.type as s where type = 'choice' -> tgt.answerConstraint as t, t.value = 'optionsOnly'; src.type as s where type = 'open-choice' -> tgt.answerConstraint as t, t.value = 'optionsOrString'; src.enableWhen as s -> tgt.enableWhen as t then QuestionnaireItemEnableWhen(s, t); src.enableBehavior as v -> tgt.enableBehavior = translate(v, 'http://hl7.org/fhir/ConceptMap/Questionnaire.item.enableBehavior-R4toR5', 'code'); src.required -> tgt.required; src.repeats -> tgt.repeats; src.readOnly -> tgt.readOnly; src.maxLength -> tgt.maxLength; src.answerValueSet -> tgt.answerValueSet; src.answerOption as s -> tgt.answerOption as t then QuestionnaireItemAnswerOption(s, t); src.initial as s -> tgt.initial as t then QuestionnaireItemInitial(s, t); } group QuestionnaireItemEnableWhen(source src, target tgt) extends BackboneElement { src.question -> tgt.question; src.operator as v -> tgt.operator = translate(v, 'http://hl7.org/fhir/ConceptMap/Questionnaire.item.enableWhen.operator-R4toR5', 'code'); src.answer : boolean -> tgt.answer; src.answer : decimal -> tgt.answer; src.answer : integer -> tgt.answer; src.answer : date -> tgt.answer; src.answer : dateTime -> tgt.answer; src.answer : time -> tgt.answer; src.answer : string -> tgt.answer; src.answer : Coding -> tgt.answer; src.answer : Quantity -> tgt.answer; src.answer : Reference -> tgt.answer; } group QuestionnaireItemAnswerOption(source src, target tgt) extends BackboneElement { src.value : integer -> tgt.value; src.value : date -> tgt.value; src.value : time -> tgt.value; src.value : string -> tgt.value; src.value : Coding -> tgt.value; src.value : Reference -> tgt.value; src.initialSelected -> tgt.initialSelected; } group QuestionnaireItemInitial(source src, target tgt) extends BackboneElement { src.value : boolean -> tgt.value; src.value : decimal -> tgt.value; src.value : integer -> tgt.value; src.value : date -> tgt.value; src.value : dateTime -> tgt.value; src.value : time -> tgt.value; src.value : string -> tgt.value; src.value : uri -> tgt.value; src.value : Attachment -> tgt.value; src.value : Coding -> tgt.value; src.value : Quantity -> tgt.value; src.value : Reference -> tgt.value; }