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

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

R3 : R4 Conversion maps for AuditEvent.

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

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


uses "http://hl7.org/fhir/3.0/StructureDefinition/AuditEvent" alias AuditEventR3 as source
uses "http://hl7.org/fhir/StructureDefinition/AuditEvent" alias AuditEvent as target

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



group AuditEvent extends DomainResource
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.type": for src.type make tgt.type
  "AuditEvent.subtype": for src.subtype make tgt.subtype
  "AuditEvent.action": for src.action make tgt.action
  "AuditEvent.period": for src.period make tgt.period
  "AuditEvent.recorded": for src.recorded make tgt.recorded
  "AuditEvent.outcome": for src.outcome make tgt.outcome
  "AuditEvent.outcomeDesc": for src.outcomeDesc make tgt.outcomeDesc
  "AuditEvent.purposeOfEvent": for src.purposeOfEvent make tgt.purposeOfEvent
  "AuditEvent.agent": for src.agent as s make tgt.agent as t then AuditEventAgent(s,t)
  "AuditEvent.source": for src.source as s make tgt.source as t then AuditEventSource(s,t)
  "AuditEvent.entity": for src.entity as s make tgt.entity as t then AuditEventEntity(s,t)
endgroup


group AuditEventAgent extends BackboneElement
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.agent.type": for src.type make tgt.type
  "AuditEvent.agent.role": for src.role make tgt.role
  "AuditEvent.agent.who": for src.who make tgt.who
  "AuditEvent.agent.altId": for src.altId make tgt.altId
  "AuditEvent.agent.name": for src.name make tgt.name
  "AuditEvent.agent.requestor": for src.requestor make tgt.requestor
  "AuditEvent.agent.location": for src.location make tgt.location
  "AuditEvent.agent.policy": for src.policy make tgt.policy
  "AuditEvent.agent.media": for src.media make tgt.media
  "AuditEvent.agent.network": for src.network as s make tgt.network as t then AuditEventAgentNetwork(s,t)
  "AuditEvent.agent.purposeOfUse": for src.purposeOfUse make tgt.purposeOfUse
endgroup


group AuditEventAgentNetwork extends BackboneElement
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.agent.network.address": for src.address make tgt.address
  "AuditEvent.agent.network.type": for src.type make tgt.type
endgroup


group AuditEventSource extends BackboneElement
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.source.site": for src.site make tgt.site
  "AuditEvent.source.observer": for src.observer make tgt.observer
  "AuditEvent.source.type": for src.type make tgt.type
endgroup


group AuditEventEntity extends BackboneElement
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.entity.what": for src.what make tgt.what
  "AuditEvent.entity.type": for src.type make tgt.type
  "AuditEvent.entity.role": for src.role make tgt.role
  "AuditEvent.entity.lifecycle": for src.lifecycle make tgt.lifecycle
  "AuditEvent.entity.securityLabel": for src.securityLabel make tgt.securityLabel
  "AuditEvent.entity.name": for src.name make tgt.name
  "AuditEvent.entity.description": for src.description make tgt.description
  "AuditEvent.entity.query": for src.query make tgt.query
  "AuditEvent.entity.detail": for src.detail as s make tgt.detail as t then AuditEventEntityDetail(s,t)
endgroup


group AuditEventEntityDetail extends BackboneElement
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.entity.detail.type": for src.type make tgt.type
  "AuditEvent.entity.detail.value": for src.value make tgt.value
endgroup


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


uses "http://hl7.org/fhir/StructureDefinition/AuditEvent" alias AuditEvent as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/AuditEvent" alias AuditEventR3 as target

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



group AuditEvent extends DomainResource
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.type": for src.type make tgt.type
  "AuditEvent.subtype": for src.subtype make tgt.subtype
  "AuditEvent.action": for src.action make tgt.action
  "AuditEvent.period": for src.period make tgt.period
  "AuditEvent.recorded": for src.recorded make tgt.recorded
  "AuditEvent.outcome": for src.outcome make tgt.outcome
  "AuditEvent.outcomeDesc": for src.outcomeDesc make tgt.outcomeDesc
  "AuditEvent.purposeOfEvent": for src.purposeOfEvent make tgt.purposeOfEvent
  "AuditEvent.agent": for src.agent as s make tgt.agent as t then AuditEventAgent(s,t)
  "AuditEvent.source": for src.source as s make tgt.source as t then AuditEventSource(s,t)
  "AuditEvent.entity": for src.entity as s make tgt.entity as t then AuditEventEntity(s,t)
endgroup

group AuditEventAgent extends BackboneElement
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.agent.type": for src.type make tgt.type
  "AuditEvent.agent.role": for src.role make tgt.role
  "AuditEvent.agent.who": for src.who make tgt.who
  "AuditEvent.agent.altId": for src.altId make tgt.altId
  "AuditEvent.agent.name": for src.name make tgt.name
  "AuditEvent.agent.requestor": for src.requestor make tgt.requestor
  "AuditEvent.agent.location": for src.location make tgt.location
  "AuditEvent.agent.policy": for src.policy make tgt.policy
  "AuditEvent.agent.media": for src.media make tgt.media
  "AuditEvent.agent.network": for src.network as s make tgt.network as t then AuditEventAgentNetwork(s,t)
  "AuditEvent.agent.purposeOfUse": for src.purposeOfUse make tgt.purposeOfUse
endgroup

group AuditEventAgentNetwork extends BackboneElement
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.agent.network.address": for src.address make tgt.address
  "AuditEvent.agent.network.type": for src.type make tgt.type
endgroup

group AuditEventSource extends BackboneElement
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.source.site": for src.site make tgt.site
  "AuditEvent.source.observer": for src.observer make tgt.observer
  "AuditEvent.source.type": for src.type make tgt.type
endgroup

group AuditEventEntity extends BackboneElement
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.entity.what": for src.what make tgt.what
  "AuditEvent.entity.type": for src.type make tgt.type
  "AuditEvent.entity.role": for src.role make tgt.role
  "AuditEvent.entity.lifecycle": for src.lifecycle make tgt.lifecycle
  "AuditEvent.entity.securityLabel": for src.securityLabel make tgt.securityLabel
  "AuditEvent.entity.name": for src.name make tgt.name
  "AuditEvent.entity.description": for src.description make tgt.description
  "AuditEvent.entity.query": for src.query make tgt.query
  "AuditEvent.entity.detail": for src.detail as s make tgt.detail as t then AuditEventEntityDetail(s,t)
endgroup

group AuditEventEntityDetail extends BackboneElement
  input src : AuditEventR3 as source
  input tgt : AuditEvent as target

  "AuditEvent.entity.detail.type": for src.type make tgt.type
  "AuditEvent.entity.detail.value": for src.value make tgt.value
endgroup