FHIR Extensions Pack v1.0.0 (2023-03-26)

This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Patient Administration Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: N/A Compartments: N/A

Following are maps for converting between the equivalent R4B resource and this R5 resource.

Maps to HealthcareService

FML Conversion for HealthcareService: R5 to R4 (Ready for Use/Trial Use)

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

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

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

group HealthcareService(source src : HealthcareServiceR5, target tgt : HealthcareServiceR4) 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;
}

FML Conversion for HealthcareService: R5 to R4B (Ready for Use/Trial Use)

/// 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;
}

Maps from HealthcareService

FML Conversion for HealthcareService: R4B to R5 (Ready for Use/Trial Use)

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

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

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

group HealthcareService(source src : HealthcareServiceR4B, target tgt : HealthcareServiceR5) 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.availableTime : BackboneElement as s -> tgt.availability as t then HealthcareServiceAvailabilityAvailableTime(s, t);
  src.notAvailable : BackboneElement as s -> tgt.availability = create('Availability') 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.daysOfWeek as s ->  tgt.availableTime as t,  t.daysOfWeek = s;
  src.allDay : boolean as s ->  tgt.availableTime as t,  t.allDay = s;
  src.availableStartTime : time as s ->  tgt.availableTime as t,  t.availableStartTime = s;
  src.availableEndTime : time as s ->  tgt.availableTime as t,  t.availableEndTime = s;
}

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

FML Conversion for HealthcareService: R4 to R5 (Ready for Use/Trial Use)

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

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

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

group HealthcareService(source src : HealthcareServiceR4, target tgt : HealthcareServiceR5) 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.availableTime : BackboneElement as s -> tgt.availability as t then HealthcareServiceAvailabilityAvailableTime(s, t);
  src.notAvailable : BackboneElement as s -> tgt.availability = create('Availability') 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.daysOfWeek as s ->  tgt.availableTime as t,  t.daysOfWeek = s;
  src.allDay : boolean as s ->  tgt.availableTime as t,  t.allDay = s;
  src.availableStartTime : time as s ->  tgt.availableTime as t,  t.availableStartTime = s;
  src.availableEndTime : time as s ->  tgt.availableTime as t,  t.availableEndTime = s;
}

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