FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions
Official URL: http://hl7.org/fhir/StructureMap/AuditEvent4Bto5 | Version: 0.1.0 | |||
Standards status: Draft | Maturity Level: 1 | Computable Name: AuditEvent4Bto5 |
AuditEventTransformsR4BtoR5
/// url = 'http://hl7.org/fhir/StructureMap/AuditEvent4Bto5' /// name = 'AuditEvent4Bto5' /// title = 'AuditEvent Transforms: R4B to R5' /// status = 'active' uses "http://hl7.org/fhir/4.3/AuditEvent" alias AuditEventR4B as source uses "http://hl7.org/fhir/5.0/AuditEvent" alias AuditEventR5 as target imports "http://hl7.org/fhir/StructureMap/*4Bto5" group AuditEvent(source src : AuditEventR4B, target tgt : AuditEventR5) extends DomainResource <<type+>> { src.type -> tgt.category; src.subtype -> tgt.code; src.action as v -> tgt.action = translate(v, 'http://hl7.org/fhir/ConceptMap/AuditEventB.action-R4BtoR5', 'code'); src.recorded -> tgt.recorded; src.outcome as s where outcome = '0' -> tgt.outcome as t, t.code = create('Coding') as tc, tc.system = 'http://hl7.org/fhir/issue-severity', tc.code = 'success', tc.display = 'Success'; src.outcome as s where outcome = '4' -> tgt.outcome as t, t.code = create('Coding') as tc, tc.system = 'http://hl7.org/fhir/issue-severity', tc.code = 'warning', tc.display = 'Warning'; src.outcome as s where outcome = '8' -> tgt.outcome as t, t.code = create('Coding') as tc, tc.system = 'http://hl7.org/fhir/issue-severity', tc.code = 'error', tc.display = 'error'; src.outcome as s where outcome = '12' -> tgt.outcome as t, t.code = create('Coding') as tc, tc.system = 'http://hl7.org/fhir/issue-severity', tc.code = 'fatal', tc.display = 'Fatal'; src.agent as s -> tgt.agent as t then AuditEventAgent(s, t); src.source as s -> tgt.source as t then AuditEventSource(s, t); src.entity as s -> tgt.entity as t then AuditEventEntity(s, t); } // group AuditEventOutcome(source src, target tgt) extends BackboneElement { // src.code -> tgt.code; // src.detail -> tgt.detail; // } group AuditEventAgent(source src, target tgt) extends BackboneElement { src.type -> tgt.type; src.role -> tgt.role; src.who -> tgt.who; src.requestor -> tgt.requestor; src.location -> tgt.location; src.policy -> tgt.policy; src.network as v -> tgt then { v.address -> tgt.network "network"; }; src.purposeOfUse -> tgt.authorization; } group AuditEventSource(source src, target tgt) extends BackboneElement { src.site as v -> tgt.site = create('Reference') as t, t.display = v; src.observer -> tgt.observer; src.type -> tgt.type; } group AuditEventEntity(source src, target tgt) extends BackboneElement { src.what -> tgt.what; src.role -> tgt.role; src.securityLabel -> tgt.securityLabel; src.query -> tgt.query; src.detail as s -> tgt.detail as t then AuditEventEntityDetail(s, t); } group AuditEventEntityDetail(source src, target tgt) extends BackboneElement { src.type -> tgt.type; src.value : string -> tgt.value; src.value : base64Binary -> tgt.value; }