R4 Ballot #2 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.5.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: Device, Patient, Practitioner

R3 : R4 Conversion maps for Account.

Functional status for this map: 2 tests of which 2 fail to execute. (see documentation)

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


uses "http://hl7.org/fhir/3.0/StructureDefinition/Account" alias AccountR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Account" alias Account as target

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



group Account extends DomainResource
  input src : AccountR3 as source
  input tgt : Account as target

  "Account.identifier": for src.identifier make tgt.identifier
  "Account.status": for src.status make tgt.status
  "Account.type": for src.type make tgt.type
  "Account.name": for src.name make tgt.name
  "Account.subject": for src.subject make tgt.subject
  "Account.servicePeriod": for src.servicePeriod make tgt.servicePeriod
  "Account.coverage": for src.coverage as s make tgt.coverage as t then AccountCoverage(s,t)
  "Account.owner": for src.owner make tgt.owner
  "Account.description": for src.description make tgt.description
  "Account.guarantor": for src.guarantor as s make tgt.guarantor as t then AccountGuarantor(s,t)
  "Account.partOf": for src.partOf make tgt.partOf
endgroup


group AccountCoverage extends BackboneElement
  input src : AccountR3 as source
  input tgt : Account as target

  "Account.coverage.coverage": for src.coverage make tgt.coverage
  "Account.coverage.priority": for src.priority make tgt.priority
endgroup


group AccountGuarantor extends BackboneElement
  input src : AccountR3 as source
  input tgt : Account as target

  "Account.guarantor.party": for src.party make tgt.party
  "Account.guarantor.onHold": for src.onHold make tgt.onHold
  "Account.guarantor.period": for src.period make tgt.period
endgroup


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


uses "http://hl7.org/fhir/StructureDefinition/Account" alias Account as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Account" alias AccountR3 as target

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



group Account extends DomainResource
  input src : AccountR3 as source
  input tgt : Account as target

  "Account.identifier": for src.identifier make tgt.identifier
  "Account.status": for src.status make tgt.status
  "Account.type": for src.type make tgt.type
  "Account.name": for src.name make tgt.name
  "Account.subject": for src.subject make tgt.subject
  "Account.servicePeriod": for src.servicePeriod make tgt.servicePeriod
  "Account.coverage": for src.coverage as s make tgt.coverage as t then AccountCoverage(s,t)
  "Account.owner": for src.owner make tgt.owner
  "Account.description": for src.description make tgt.description
  "Account.guarantor": for src.guarantor as s make tgt.guarantor as t then AccountGuarantor(s,t)
  "Account.partOf": for src.partOf make tgt.partOf
endgroup

group AccountCoverage extends BackboneElement
  input src : AccountR3 as source
  input tgt : Account as target

  "Account.coverage.coverage": for src.coverage make tgt.coverage
  "Account.coverage.priority": for src.priority make tgt.priority

endgroup

group AccountGuarantor extends BackboneElement
  input src : AccountR3 as source
  input tgt : Account as target

  "Account.guarantor.party": for src.party make tgt.party
  "Account.guarantor.onHold": for src.onHold make tgt.onHold
  "Account.guarantor.period": for src.period make tgt.period
endgroup