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

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

R3 : R4 Conversion maps for UserSession.

Functional status for this map: Not Mapped (see documentation)

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


uses "http://hl7.org/fhir/3.0/StructureDefinition/UserSession" alias UserSessionR3 as source
uses "http://hl7.org/fhir/StructureDefinition/UserSession" alias UserSession as target

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



group UserSession extends DomainResource
  input src : UserSessionR3 as source
  input tgt : UserSession as target

  "UserSession.identifier": for src.identifier make tgt.identifier
  "UserSession.user": for src.user make tgt.user
  "UserSession.status": for src.status as s make tgt.status as t then UserSessionStatus(s,t)
  "UserSession.workstation": for src.workstation make tgt.workstation
  "UserSession.focus": for src.focus make tgt.focus
  "UserSession.created": for src.created make tgt.created
  "UserSession.expires": for src.expires make tgt.expires
  "UserSession.context": for src.context as s make tgt.context as t then UserSessionContext(s,t)
endgroup


group UserSessionStatus extends BackboneElement
  input src : UserSessionR3 as source
  input tgt : UserSession as target

  "UserSession.status.code": for src.code make tgt.code
  "UserSession.status.source": for src.source make tgt.source
endgroup


group UserSessionContext extends BackboneElement
  input src : UserSessionR3 as source
  input tgt : UserSession as target

  "UserSession.context.type": for src.type make tgt.type
  "UserSession.context.value": for src.value make tgt.value
endgroup


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


uses "http://hl7.org/fhir/StructureDefinition/UserSession" alias UserSession as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/UserSession" alias UserSessionR3 as target

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



group UserSession extends DomainResource
  input src : UserSessionR3 as source
  input tgt : UserSession as target

  "UserSession.identifier": for src.identifier make tgt.identifier
  "UserSession.user": for src.user make tgt.user
  "UserSession.status": for src.status as s make tgt.status as t then UserSessionStatus(s,t)
  "UserSession.workstation": for src.workstation make tgt.workstation
  "UserSession.focus": for src.focus make tgt.focus
  "UserSession.created": for src.created make tgt.created
  "UserSession.expires": for src.expires make tgt.expires
  "UserSession.context": for src.context as s make tgt.context as t then UserSessionContext(s,t)
endgroup

group UserSessionStatus extends BackboneElement
  input src : UserSessionR3 as source
  input tgt : UserSession as target

  "UserSession.status.code": for src.code make tgt.code
  "UserSession.status.source": for src.source make tgt.source
endgroup

group UserSessionContext extends BackboneElement
  input src : UserSessionR3 as source
  input tgt : UserSession as target

  "UserSession.context.type": for src.type make tgt.type
  "UserSession.context.value": for src.value make tgt.value
endgroup

n/a