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

FHIR Infrastructure Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Device, Patient, Practitioner

R2 : R3 Conversion maps for Group.

Functional status for this map: 2 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/Group2to3" = "R2 to R3 Conversions for Group"

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Group" alias GroupR2 as source
uses "http://hl7.org/fhir/StructureDefinition/Group" alias Group as target

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

group for type+types  Group extends DomainResource
  input src : GroupR2 as source
  input tgt : Group as target

  "Group-identifier" : for src.identifier make tgt.identifier
  "Group-type" : for src.type make tgt.type
  "Group-actual" : for src.actual make tgt.actual
  "Group-code" : for src.code make tgt.code
  "Group-name" : for src.name make tgt.name
  "Group-quantity" : for src.quantity make tgt.quantity
  "Group-characteristic" : for src.characteristic as vs0 make tgt.characteristic as vt0 then grpCharacteristic(vs0, vt0)
  "Group-member" : for src.member as vs0 make tgt.member as vt0 then grpMember(vs0, vt0)
endgroup

group grpCharacteristic extends BackboneElement
  input src as source
  input tgt as target

  "Group.characteristic-code" : for src.code make tgt.code
  "Group.characteristic-value" : for src.value make tgt.value 
  "Group.characteristic-exclude" : for src.exclude make tgt.exclude
  "Group.characteristic-period" : for src.period make tgt.period
endgroup

group grpMember extends BackboneElement
  input src as source
  input tgt as target

  "Group.member-entity" : for src.entity make tgt.entity
  "Group.member-period" : for src.period make tgt.period
  "Group.member-inactive" : for src.inactive make tgt.inactive
endgroup



map "http://hl7.org/fhir/StructureMap/Group3to2" = "R3 to R2 Conversion for Group"

uses "http://hl7.org/fhir/StructureDefinition/Group" alias Group as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Group" alias GroupR2 as target

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

group for type+types  Group extends DomainResource
  input src : Group as source
  input tgt : GroupR2 as target

  "Group-identifier" : for src.identifier make tgt.identifier
  "Group-type" : for src.type make tgt.type
  "Group-actual" : for src.actual make tgt.actual
  "Group-code" : for src.code make tgt.code
  "Group-name" : for src.name make tgt.name
  "Group-quantity" : for src.quantity make tgt.quantity
  "Group-characteristic" : for src.characteristic as vs0 make tgt.characteristic as vt0 then grpCharacteristic(vs0, vt0)
  "Group-member" : for src.member as vs0 make tgt.member as vt0 then grpMember(vs0, vt0)
endgroup

group grpCharacteristic extends BackboneElement
  input src as source
  input tgt as target

  "Group.characteristic-code" : for src.code make tgt.code
  "Group.characteristic-value" : for src.value make tgt.value 
  "Group.characteristic-exclude" : for src.exclude make tgt.exclude
  "Group.characteristic-period" : for src.period make tgt.period
endgroup

group grpMember extends BackboneElement
  input src as source
  input tgt as target

  "Group.member-entity" : for src.entity make tgt.entity
  "Group.member-period" : for src.period make tgt.period
  "Group.member-inactive" : for src.inactive make tgt.inactive
endgroup