FHIR Cross-Version Mapping Pack
0.1.0 - Ballot for Release 5.1.0 International flag

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

StructureMap: R4 to R3 Conversion for OccupationalData

Official URL: http://hl7.org/fhir/StructureMap/OccupationalData4to3 Version: 0.1.0
Standards status: Draft Maturity Level: 1 Computable Name: OccupationalData4to3

R4toR3ConversionforOccupationalData

/// url = 'http://hl7.org/fhir/StructureMap/OccupationalData4to3'
/// name = 'OccupationalData4to3'
/// title = 'R4 to R3 Conversion for OccupationalData'
/// status = 'active'

uses "http://hl7.org/fhir/4.0/OccupationalData" alias OccupationalData as source
uses "http://hl7.org/fhir/3.0/OccupationalData" alias OccupationalDataR3 as target

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

group OccupationalData(source src : OccupationalDataR3, target tgt : OccupationalData) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.status -> tgt.status;
  src.subject -> tgt.subject;
  src.date -> tgt.date;
  src.recorder -> tgt.recorder;
  src.informant -> tgt.informant;
  src.employmentStatus as s -> tgt.employmentStatus as t then OccupationalDataEmploymentStatus(s, t);
  src.retirementDate -> tgt.retirementDate;
  src.combatZonePeriod -> tgt.combatZonePeriod;
  src.usualWork as s -> tgt.usualWork as t then OccupationalDataUsualWork(s, t);
  src.pastOrPresentJob as s -> tgt.pastOrPresentJob as t then OccupationalDataPastOrPresentJob(s, t);
}

group OccupationalDataEmploymentStatus(source src, target tgt) extends BackboneElement {
  src.code -> tgt.code;
  src.effective -> tgt.effective;
}

group OccupationalDataUsualWork(source src, target tgt) extends BackboneElement {
  src.occupation -> tgt.occupation;
  src.industry -> tgt.industry;
  src.start -> tgt.start;
  src.duration -> tgt.duration;
}

group OccupationalDataPastOrPresentJob(source src, target tgt) extends BackboneElement {
  src.occupation -> tgt.occupation;
  src.industry -> tgt.industry;
  src.effective -> tgt.effective;
  src.employer -> tgt.employer;
  src.workClassification -> tgt.workClassification;
  src.supervisoryLevel -> tgt.supervisoryLevel;
  src.jobDuty -> tgt.jobDuty;
  src.occupationalHazard -> tgt.occupationalHazard;
  src.workSchedule as s -> tgt.workSchedule as t then OccupationalDataPastOrPresentJobWorkSchedule(s, t);
}

group OccupationalDataPastOrPresentJobWorkSchedule(source src, target tgt) extends BackboneElement {
  src.code -> tgt.code;
  src.weeklyWorkDays -> tgt.weeklyWorkDays;
  src.dailyWorkHours -> tgt.dailyWorkHours;
}