Current Build
Patient Administration Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: Business Compartments: Not linked to any defined compartments

R3 : R4 Conversion maps for HealthcareService.

Functional status for this map: 1 test that all execute ok. All tests pass round-trip testing and all r3 resources are valid. (see documentation)

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

uses "http://hl7.org/fhir/3.0/StructureDefinition/HealthcareService" alias HealthcareServiceR3 as source
uses "http://hl7.org/fhir/StructureDefinition/HealthcareService" alias HealthcareService as target

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

group HealthcareService(source src : HealthcareServiceR3, target tgt : HealthcareService) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.active -> tgt.active;
  src.providedBy -> tgt.providedBy;
  src.category -> tgt.category;
  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.telecom -> tgt.telecom;
  src.coverageArea -> tgt.coverageArea;
  src.serviceProvisionCode -> tgt.serviceProvisionCode;
  src.eligibility -> tgt.eligibility;
  src.eligibilityNote -> tgt.eligibilityNote;
  src.programName -> tgt.programName;
  src.characteristic -> tgt.characteristic;
  src.referralMethod -> tgt.referralMethod;
  src.appointmentRequired -> tgt.appointmentRequired;
  src.availableTime as vs0 -> tgt.availableTime as vt0 then {
    vs0.allDay -> vt0.allDay;
    vs0.availableStartTime -> vt0.availableStartTime;
    vs0.availableEndTime -> vt0.availableEndTime;
  };
  src.notAvailable as vs0 -> tgt.notAvailable as vt0 then {
    vs0.description -> vt0.description;
    vs0.during -> vt0.during;
  };
  src.availabilityExceptions -> tgt.availabilityExceptions;
  src.endpoint -> tgt.endpoint;
}


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

uses "http://hl7.org/fhir/StructureDefinition/HealthcareService" alias HealthcareService as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/HealthcareService" alias HealthcareServiceR3 as target

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

group HealthcareService(source src : HealthcareService, target tgt : HealthcareServiceR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.active -> tgt.active;
  src.providedBy -> tgt.providedBy;
  src.categoryFirstRep -> tgt.category "category";
  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.telecom -> tgt.telecom;
  src.coverageArea -> tgt.coverageArea;
  src.serviceProvisionCode -> tgt.serviceProvisionCode;
  src.eligibility -> tgt.eligibility;
  src.eligibilityNote -> tgt.eligibilityNote;
  src.programName -> tgt.programName;
  src.characteristic -> tgt.characteristic;
  src.referralMethod -> tgt.referralMethod;
  src.appointmentRequired -> tgt.appointmentRequired;
  src.availableTime as vs0 -> tgt.availableTime as vt0 then {
    vs0.allDay -> vt0.allDay;
    vs0.availableStartTime -> vt0.availableStartTime;
    vs0.availableEndTime -> vt0.availableEndTime;
  };
  src.notAvailable as vs0 -> tgt.notAvailable as vt0 then {
    vs0.description -> vt0.description;
    vs0.during -> vt0.during;
  };
  src.availabilityExceptions -> tgt.availabilityExceptions;
  src.endpoint -> tgt.endpoint;
}


<p>No validation errors - all conversions are clean</p>