R4 Ballot #1 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.3.0: R4 Ballot 2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Patient Administration Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Not linked to any defined compartments

R2 : R3 Conversion maps for Location.

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

map "http://hl7.org/fhir/StructureMap/Location2to3" = "R2 to R3 Conversions for Location"

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Location" alias LocationR2 as source
uses "http://hl7.org/fhir/StructureDefinition/Location" alias Location as target

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

group for type+types  Location extends DomainResource
  input src : LocationR2 as source
  input tgt : Location as target

  "Location-identifier" : for src.identifier make tgt.identifier
  "Location-status" : for src.status make tgt.status
  "Location-name" : for src.name make tgt.name
  "Location-description" : for src.description make tgt.description
  "Location-mode" : for src.mode make tgt.mode
  "Location-type" : for src.type make tgt.type
  "Location-telecom" : for src.telecom make tgt.telecom
  "Location-address" : for src.address make tgt.address
  "Location-physicalType" : for src.physicalType make tgt.physicalType
  "Location-position" : for src.position as vs0 make tgt.position as vt0 then locPosition(vs0, vt0)
  "Location-managingOrganization" : for src.managingOrganization make tgt.managingOrganization
  "Location-partOf" : for src.partOf make tgt.partOf
endgroup

group locPosition extends BackboneElement
  input src : Location as source
  input tgt : LocationR2 as target

  "Location.position-longitude" : for src.longitude make tgt.longitude
  "Location.position-latitude" : for src.latitude make tgt.latitude
  "Location.position-altitude" : for src.altitude make tgt.altitude
endgroup
  
map "http://hl7.org/fhir/StructureMap/Location3to2" = "R3 to R2 Conversion for Location"

uses "http://hl7.org/fhir/StructureDefinition/Location" alias Location as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Location" alias LocationR2 as target

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

group for type+types  Location extends DomainResource
  input src : Location as source
  input tgt : LocationR2 as target

  "Location-identifier" : for src.identifier make tgt.identifier
  "Location-status" : for src.status make tgt.status
  "Location-name" : for src.name make tgt.name
  "Location-description" : for src.description make tgt.description
  "Location-mode" : for src.mode make tgt.mode
  "Location-type" : for src.type make tgt.type
  "Location-telecom" : for src.telecom make tgt.telecom
  "Location-address" : for src.address make tgt.address
  "Location-physicalType" : for src.physicalType make tgt.physicalType
  "Location-position" : for src.position as vs0 make tgt.position as vt0 then locPosition(vs0, vt0)
  "Location-managingOrganization" : for src.managingOrganization make tgt.managingOrganization
  "Location-partOf" : for src.partOf make tgt.partOf
endgroup

group locPosition extends BackboneElement
  input src : Location as source
  input tgt : LocationR2 as target

  "Location.position-longitude" : for src.longitude make tgt.longitude
  "Location.position-latitude" : for src.latitude make tgt.latitude
  "Location.position-altitude" : for src.altitude make tgt.altitude
endgroup