FHIR Extensions Pack
5.1.0-cibuild - Working Copy International flag

FHIR Extensions Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 5.1.0-cibuild built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-extensions/ and changes regularly. See the Directory of published versions

StructureMap: FML Conversion for HealthcareService: R5 to R4B

Official URL: http://hl7.org/fhir/StructureMap/HealthcareService5to4B Version: 5.1.0-cibuild
Standards status: Trial-use Maturity Level: 1 Computable Name: HealthcareService5to4B


/// url = 'http://hl7.org/fhir/StructureMap/HealthcareService5to4B'
/// name = 'HealthcareService5to4B'
/// title = 'FML Conversion for HealthcareService: R5 to R4B'
/// status = 'active'

uses "http://hl7.org/fhir/StructureDefinition/HealthcareService" alias HealthcareServiceR5 as source
uses "http://hl7.org/fhir/4.3/StructureDefinition/HealthcareService" alias HealthcareServiceR4B as target

imports "http://hl7.org/fhir/StructureMap/*5to4B"

group HealthcareService(source src : HealthcareServiceR5, target tgt : HealthcareServiceR4B) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.active -> tgt.active;
  src.providedBy -> tgt.providedBy;
  src.category -> tgt.category; // src.offeredIn -> tgt.offeredIn;
  src.type -> tgt.type;
  src.specialty -> tgt.specialty;
  src.location -> tgt.location;
  src.name -> tgt.name;
  src.comment -> tgt.comment;
  src.extraDetails -> tgt.extraDetails;
  src.photo -> tgt.photo;
  src.coverageArea -> tgt.coverageArea; // src.contact -> tgt.contact;
  src.serviceProvisionCode -> tgt.serviceProvisionCode;
  src.eligibility as s -> tgt.eligibility as t then HealthcareServiceEligibility(s, t);
  src.program -> tgt.program;
  src.characteristic -> tgt.characteristic;
  src.communication -> tgt.communication;
  src.referralMethod -> tgt.referralMethod;
  src.appointmentRequired -> tgt.appointmentRequired;
  src.availability as s -> tgt.availableTime as t then HealthcareServiceAvailabilityAvailableTime(s, t) "availableTime";
  src.availability as s -> tgt.notAvailable as t then HealthcareServiceAvailabilityNotAvailableTime(s, t) "notAvailableTime";
  src.endpoint -> tgt.endpoint;

group HealthcareServiceEligibility(source src, target tgt) extends BackboneElement {
  src.code -> tgt.code;
  src.comment -> tgt.comment;

group HealthcareServiceAvailabilityAvailableTime(source src, target tgt) extends BackboneElement {
  src.availableTime as s ->  tgt.daysOfWeek as t,  t = s.daysOfWeek;
  src.availableTime as s ->  tgt.allDay as t,  t = s.allDay;
  src.availableTime as s ->  tgt.availableStartTime as t,  t = s.availableStartTime;
  src.availableTime as s ->  tgt.availableEndTime as t,  t = s.availableEndTime;

group HealthcareServiceAvailabilityNotAvailableTime(source src, target tgt) extends BackboneElement {
  src.notAvailableTime as s ->  tgt.description as t,  t = s.description;
  src.notAvailableTime as s ->  tgt.during as t,  t = s.during;