This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions
Clinical Decision Support Work Group | Maturity Level: N/A | Standards Status: Informative | Security Category: N/A | Compartments: N/A |
Following are maps for converting between the equivalent R4B resource and this R5 resource.
/// url = 'http://hl7.org/fhir/StructureMap/ActivityDefinition5to4' /// name = 'ActivityDefinition5to4' /// title = 'FML Conversion for ActivityDefinition: R5 to R4' /// status = 'active' conceptmap "ActivityParticipantType" { prefix s = "http://hl7.org/fhir/action-participant-type" prefix t = "http://hl7.org/fhir/4.0/action-participant-type" s:device - t:device s:patient - t:patient s:practitioner - t:practitioner s:relatedperson - t:"related-person" } conceptmap "PublicationStatus" { prefix s = "http://hl7.org/fhir/publication-status" prefix t = "http://hl7.org/fhir/4.0/publication-status" s:draft - t:draft s:active - t:active s:retired - t:retired s:unknown - t:unknown } conceptmap "RequestIntent" { prefix s = "http://hl7.org/fhir/request-intent" prefix t = "http://hl7.org/fhir/4.0/request-intent" s:proposal - t:proposal s:plan - t:plan s:directive - t:directive s:order - t:order s:"original-order" - t:"original-order" s:"reflex-order" - t:"reflex-order" s:"filler-order" - t:"filler-order" s:"instance-order" - t:"instance-order" s:option - t:option } conceptmap "RequestPriority" { prefix s = "http://hl7.org/fhir/request-priority" prefix t = "http://hl7.org/fhir/4.0/request-priority" s:routine - t:routine s:urgent - t:urgent s:asap - t:asap s:stat - t:stat } uses "http://hl7.org/fhir/StructureDefinition/ActivityDefinition" alias ActivityDefinitionR5 as source uses "http://hl7.org/fhir/4.0/StructureDefinition/ActivityDefinition" alias ActivityDefinitionR4 as target imports "http://hl7.org/fhir/StructureMap/*5to4" group ActivityDefinition(source src : ActivityDefinitionR5, target tgt : ActivityDefinitionR4) extends DomainResource <<type+>> { src.url -> tgt.url; src.identifier -> tgt.identifier; src.version -> tgt.version; src.name -> tgt.name; // src.versionAlgorithm : string -> tgt.versionAlgorithm; src.title -> tgt.title; src.subtitle -> tgt.subtitle; src.status as v -> tgt.status = translate(v, '#PublicationStatus', 'code'); src.experimental -> tgt.experimental; src.subject as s where code = 'Patient' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/resource-types', tcc.code = 'Patient', tcc.display = 'Patient'; src.subject as s where code = 'Practitioner' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/resource-types', tcc.code = 'Patient', tcc.display = 'Practitioner'; src.subject as s where code = 'Organization' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/resource-types', tcc.code = 'Patient', tcc.display = 'Organization'; src.subject as s where code = 'Location' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/resource-types', tcc.code = 'Patient', tcc.display = 'Location'; src.subject as s where code = 'Device' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/resource-types', tcc.code = 'Patient', tcc.display = 'Device'; src.subject : Reference -> tgt.subject; src.subject : canonical -> tgt.subject; src.date -> tgt.date; src.publisher -> tgt.publisher; src.contact -> tgt.contact; src.description -> tgt.description; src.useContext -> tgt.useContext; src.jurisdiction -> tgt.jurisdiction; src.purpose -> tgt.purpose; src.usage -> tgt.usage; src.copyright -> tgt.copyright; src.approvalDate -> tgt.approvalDate; // src.copyrightLabel -> tgt.copyrightLabel; src.lastReviewDate -> tgt.lastReviewDate; src.effectivePeriod -> tgt.effectivePeriod; src.topic -> tgt.topic; src.author -> tgt.author; src.editor -> tgt.editor; src.reviewer -> tgt.reviewer; src.endorser -> tgt.endorser; src.relatedArtifact -> tgt.relatedArtifact; src.library -> tgt.library; src.kind -> tgt.kind; src.profile -> tgt.profile; src.code -> tgt.code; src.intent as v -> tgt.intent = translate(v, '#RequestIntent', 'code'); src.priority as v -> tgt.priority = translate(v, '#RequestPriority', 'code'); src.doNotPerform -> tgt.doNotPerform; src.timing : Timing -> tgt.timing; src.timing : Age -> tgt.timing; src.timing : Range -> tgt.timing; src.timing : Duration -> tgt.timing; src.location -> tgt.location; // src.asNeeded : boolean -> tgt.asNeeded; src.participant as s -> tgt.participant as t then ActivityDefinitionParticipant(s, t); src.product : Reference -> tgt.product; src.product : CodeableConcept -> tgt.product; src.quantity -> tgt.quantity; src.dosage -> tgt.dosage; src.bodySite -> tgt.bodySite; src.specimenRequirement -> tgt.specimenRequirement; src.observationRequirement -> tgt.observationRequirement; src.observationResultRequirement -> tgt.observationResultRequirement; src.transform -> tgt.transform; src.dynamicValue as s -> tgt.dynamicValue as t then ActivityDefinitionDynamicValue(s, t); } group ActivityDefinitionParticipant(source src, target tgt) extends BackboneElement { src.type as v -> tgt.type = translate(v, '#ActivityParticipantType', 'code'); src.role -> tgt.role; // src.typeCanonical -> tgt.typeCanonical; } group ActivityDefinitionDynamicValue(source src, target tgt) extends BackboneElement { src.path -> tgt.path; src.expression -> tgt.expression; }
/// url = 'http://hl7.org/fhir/StructureMap/ActivityDefinition5to4B' /// name = 'ActivityDefinition5to4B' /// title = 'FML Conversion for ActivityDefinition: R5 to R4B' /// status = 'active' conceptmap "ActivityParticipantType" { prefix s = "http://hl7.org/fhir/action-participant-type" prefix t = "http://hl7.org/fhir/4.3/action-participant-type" s:device - t:device s:patient - t:patient s:practitioner - t:practitioner s:relatedperson - t:"related-person" } conceptmap "PublicationStatus" { prefix s = "http://hl7.org/fhir/publication-status" prefix t = "http://hl7.org/fhir/4.3/publication-status" s:draft - t:draft s:active - t:active s:retired - t:retired s:unknown - t:unknown } conceptmap "RequestIntent" { prefix s = "http://hl7.org/fhir/request-intent" prefix t = "http://hl7.org/fhir/4.3/request-intent" s:proposal - t:proposal s:plan - t:plan s:directive - t:directive s:order - t:order s:"original-order" - t:"original-order" s:"reflex-order" - t:"reflex-order" s:"filler-order" - t:"filler-order" s:"instance-order" - t:"instance-order" s:option - t:option } conceptmap "RequestPriority" { prefix s = "http://hl7.org/fhir/request-priority" prefix t = "http://hl7.org/fhir/4.3/request-priority" s:routine - t:routine s:urgent - t:urgent s:asap - t:asap s:stat - t:stat } uses "http://hl7.org/fhir/StructureDefinition/ActivityDefinition" alias ActivityDefinitionR5 as source uses "http://hl7.org/fhir/4.3/StructureDefinition/ActivityDefinition" alias ActivityDefinitionR4B as target imports "http://hl7.org/fhir/StructureMap/*5to4B" group ActivityDefinition(source src : ActivityDefinitionR5, target tgt : ActivityDefinitionR4B) extends DomainResource <<type+>> { src.url -> tgt.url; src.identifier -> tgt.identifier; src.version -> tgt.version; src.name -> tgt.name; // src.versionAlgorithm : string -> tgt.versionAlgorithm; src.title -> tgt.title; src.subtitle -> tgt.subtitle; src.experimental -> tgt.experimental; src.subject as s where code = 'Patient' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/resource-types', tcc.code = 'Patient', tcc.display = 'Patient'; src.subject as s where code = 'Practitioner' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/resource-types', tcc.code = 'Patient', tcc.display = 'Practitioner'; src.subject as s where code = 'Organization' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/resource-types', tcc.code = 'Patient', tcc.display = 'Organization'; src.subject as s where code = 'Location' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/resource-types', tcc.code = 'Patient', tcc.display = 'Location'; src.subject as s where code = 'Device' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/resource-types', tcc.code = 'Patient', tcc.display = 'Device'; src.subject : Reference -> tgt.subject; src.subject : canonical -> tgt.subject; src.date -> tgt.date; src.publisher -> tgt.publisher; src.contact -> tgt.contact; src.description -> tgt.description; src.useContext -> tgt.useContext; src.jurisdiction -> tgt.jurisdiction; src.purpose -> tgt.purpose; src.usage -> tgt.usage; src.copyright -> tgt.copyright; src.approvalDate -> tgt.approvalDate; // src.copyrightLabel -> tgt.copyrightLabel; src.lastReviewDate -> tgt.lastReviewDate; src.effectivePeriod -> tgt.effectivePeriod; src.topic -> tgt.topic; src.author -> tgt.author; src.editor -> tgt.editor; src.reviewer -> tgt.reviewer; src.endorser -> tgt.endorser; src.relatedArtifact -> tgt.relatedArtifact; src.library -> tgt.library; src.kind -> tgt.kind; src.profile -> tgt.profile; src.code -> tgt.code; src.intent as v -> tgt.intent = translate(v, '#RequestIntent', 'code'); src.priority as v -> tgt.priority = translate(v, '#RequestPriority', 'code'); src.doNotPerform -> tgt.doNotPerform; src.timing : Timing -> tgt.timing; src.timing : Age -> tgt.timing; src.timing : Range -> tgt.timing; src.timing : Duration -> tgt.timing; src.location -> tgt.location; // src.asNeeded : boolean -> tgt.asNeeded; src.participant as s -> tgt.participant as t then ActivityDefinitionParticipant(s, t); src.product : Reference -> tgt.product; src.product : CodeableConcept -> tgt.product; src.quantity -> tgt.quantity; src.dosage -> tgt.dosage; src.bodySite -> tgt.bodySite; src.specimenRequirement -> tgt.specimenRequirement; src.observationRequirement -> tgt.observationRequirement; src.observationResultRequirement -> tgt.observationResultRequirement; src.transform -> tgt.transform; src.dynamicValue as s -> tgt.dynamicValue as t then ActivityDefinitionDynamicValue(s, t); } group ActivityDefinitionParticipant(source src, target tgt) extends BackboneElement { src.type as v -> tgt.type = translate(v, '#ActivityParticipantType', 'code'); src.role -> tgt.role; // src.typeCanonical -> tgt.typeCanonical; } group ActivityDefinitionDynamicValue(source src, target tgt) extends BackboneElement { src.path -> tgt.path; src.expression -> tgt.expression; }
/// url = 'http://hl7.org/fhir/StructureMap/ActivityDefinition4Bto5' /// name = 'ActivityDefinition4Bto5' /// title = 'FML Conversion for ActivityDefinition: R4B to R5' /// status = 'active' conceptmap "ActivityParticipantType" { prefix s = "http://hl7.org/fhir/4.3/action-participant-type" prefix t = "http://hl7.org/fhir/action-participant-type" s:device - t:device s:patient - t:patient s:practitioner - t:practitioner s:"related-person" - t:relatedperson } conceptmap "PublicationStatus" { prefix s = "http://hl7.org/fhir/4.3/publication-status" prefix t = "http://hl7.org/fhir/publication-status" s:draft - t:draft s:active - t:active s:retired - t:retired s:unknown - t:unknown } conceptmap "RequestIntent" { prefix s = "http://hl7.org/fhir/4.3/request-intent" prefix t = "http://hl7.org/fhir/request-intent" s:proposal - t:proposal s:plan - t:plan s:directive - t:directive s:order - t:order s:"original-order" - t:"original-order" s:"reflex-order" - t:"reflex-order" s:"filler-order" - t:"filler-order" s:"instance-order" - t:"instance-order" s:option - t:option } conceptmap "RequestPriority" { prefix s = "http://hl7.org/fhir/4.3/request-priority" prefix t = "http://hl7.org/fhir/request-priority" s:routine - t:routine s:urgent - t:urgent s:asap - t:asap s:stat - t:stat } uses "http://hl7.org/fhir/4.3/StructureDefinition/ActivityDefinition" alias ActivityDefinitionR4B as source uses "http://hl7.org/fhir/StructureDefinition/ActivityDefinition" alias ActivityDefinitionR5 as target imports "http://hl7.org/fhir/StructureMap/*4Bto5" group ActivityDefinition(source src : ActivityDefinitionR4B, target tgt : ActivityDefinitionR5) extends DomainResource <<type+>> { src.url -> tgt.url; src.identifier -> tgt.identifier; src.version -> tgt.version; src.name -> tgt.name; // src.versionAlgorithm : string -> tgt.versionAlgorithm; src.title -> tgt.title; src.subtitle -> tgt.subtitle; src.status as v -> tgt.status = translate(v, '#PublicationStatus', 'code'); src.experimental -> tgt.experimental; src.subject as s where code = 'Patient' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/fhir-types', tcc.code = 'Patient', tcc.display = 'Patient'; src.subject as s where code = 'Practitioner' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/fhir-types', tcc.code = 'Patient', tcc.display = 'Practitioner'; src.subject as s where code = 'Organization' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/fhir-types', tcc.code = 'Patient', tcc.display = 'Organization'; src.subject as s where code = 'Location' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/fhir-types', tcc.code = 'Patient', tcc.display = 'Location'; src.subject as s where code = 'Device' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/fhir-types', tcc.code = 'Patient', tcc.display = 'Device'; src.subject : Reference -> tgt.subject; src.subject : canonical -> tgt.subject; src.date -> tgt.date; src.publisher -> tgt.publisher; src.contact -> tgt.contact; src.description -> tgt.description; src.useContext -> tgt.useContext; src.jurisdiction -> tgt.jurisdiction; src.purpose -> tgt.purpose; src.usage -> tgt.usage; src.copyright -> tgt.copyright; src.approvalDate -> tgt.approvalDate; // src.copyrightLabel -> tgt.copyrightLabel; src.lastReviewDate -> tgt.lastReviewDate; src.effectivePeriod -> tgt.effectivePeriod; src.topic -> tgt.topic; src.author -> tgt.author; src.editor -> tgt.editor; src.reviewer -> tgt.reviewer; src.endorser -> tgt.endorser; src.relatedArtifact -> tgt.relatedArtifact; src.library -> tgt.library; src.kind -> tgt.kind; src.profile -> tgt.profile; src.code -> tgt.code; src.intent as v -> tgt.intent = translate(v, '#RequestIntent', 'code'); src.priority as v -> tgt.priority = translate(v, '#RequestPriority', 'code'); src.doNotPerform -> tgt.doNotPerform; src.timing : Timing -> tgt.timing; src.timing : Age -> tgt.timing; src.timing : Range -> tgt.timing; src.timing : Duration -> tgt.timing; src.location -> tgt.location; // src.asNeeded : boolean -> tgt.asNeeded; src.participant as s -> tgt.participant as t then ActivityDefinitionParticipant(s, t); src.product : Reference -> tgt.product; src.product : CodeableConcept -> tgt.product; src.quantity -> tgt.quantity; src.dosage -> tgt.dosage; src.bodySite -> tgt.bodySite; src.specimenRequirement -> tgt.specimenRequirement; src.observationRequirement -> tgt.observationRequirement; src.observationResultRequirement -> tgt.observationResultRequirement; src.transform -> tgt.transform; src.dynamicValue as s -> tgt.dynamicValue as t then ActivityDefinitionDynamicValue(s, t); } group ActivityDefinitionParticipant(source src, target tgt) extends BackboneElement { src.type as v -> tgt.type = translate(v, '#ActivityParticipantType', 'code'); src.role -> tgt.role; // src.typeCanonical -> tgt.typeCanonical; } group ActivityDefinitionDynamicValue(source src, target tgt) extends BackboneElement { src.path -> tgt.path; src.expression -> tgt.expression; }
/// url = 'http://hl7.org/fhir/StructureMap/ActivityDefinition4to5' /// name = 'ActivityDefinition4to5' /// title = 'FML Conversion for ActivityDefinition: R4 to R5' /// status = 'active' conceptmap "ActivityParticipantType" { prefix s = "http://hl7.org/fhir/4.0/action-participant-type" prefix t = "http://hl7.org/fhir/action-participant-type" s:device - t:device s:patient - t:patient s:practitioner - t:practitioner s:"related-person" - t:relatedperson } conceptmap "PublicationStatus" { prefix s = "http://hl7.org/fhir/4.0/publication-status" prefix t = "http://hl7.org/fhir/publication-status" s:draft - t:draft s:active - t:active s:retired - t:retired s:unknown - t:unknown } conceptmap "RequestIntent" { prefix s = "http://hl7.org/fhir/4.0/request-intent" prefix t = "http://hl7.org/fhir/request-intent" s:proposal - t:proposal s:plan - t:plan s:directive - t:directive s:order - t:order s:"original-order" - t:"original-order" s:"reflex-order" - t:"reflex-order" s:"filler-order" - t:"filler-order" s:"instance-order" - t:"instance-order" s:option - t:option } conceptmap "RequestPriority" { prefix s = "http://hl7.org/fhir/4.0/request-priority" prefix t = "http://hl7.org/fhir/request-priority" s:routine - t:routine s:urgent - t:urgent s:asap - t:asap s:stat - t:stat } uses "http://hl7.org/fhir/4.0/StructureDefinition/ActivityDefinition" alias ActivityDefinitionR4 as source uses "http://hl7.org/fhir/StructureDefinition/ActivityDefinition" alias ActivityDefinitionR5 as target imports "http://hl7.org/fhir/StructureMap/*4to5" group ActivityDefinition(source src : ActivityDefinitionR4, target tgt : ActivityDefinitionR5) extends DomainResource <<type+>> { src.url -> tgt.url; src.identifier -> tgt.identifier; src.version -> tgt.version; src.name -> tgt.name; // src.versionAlgorithm : string -> tgt.versionAlgorithm; src.title -> tgt.title; src.subtitle -> tgt.subtitle; src.status as v -> tgt.status = translate(v, '#PublicationStatus', 'code'); src.experimental -> tgt.experimental; src.subject as s where code = 'Patient' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/fhir-types', tcc.code = 'Patient', tcc.display = 'Patient'; src.subject as s where code = 'Practitioner' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/fhir-types', tcc.code = 'Patient', tcc.display = 'Practitioner'; src.subject as s where code = 'Organization' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/fhir-types', tcc.code = 'Patient', tcc.display = 'Organization'; src.subject as s where code = 'Location' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/fhir-types', tcc.code = 'Patient', tcc.display = 'Location'; src.subject as s where code = 'Device' -> tgt.subject = create('CodeableConcept') as tc, tc.coding = create('Coding') as tcc, tcc.system = 'http://hl7.org/fhir/fhir-types', tcc.code = 'Patient', tcc.display = 'Device'; src.subject : Reference -> tgt.subject; src.date -> tgt.date; src.publisher -> tgt.publisher; src.contact -> tgt.contact; src.description -> tgt.description; src.useContext -> tgt.useContext; src.jurisdiction -> tgt.jurisdiction; src.purpose -> tgt.purpose; src.usage -> tgt.usage; src.copyright -> tgt.copyright; src.approvalDate -> tgt.approvalDate; // src.copyrightLabel -> tgt.copyrightLabel; src.lastReviewDate -> tgt.lastReviewDate; src.effectivePeriod -> tgt.effectivePeriod; src.topic -> tgt.topic; src.author -> tgt.author; src.editor -> tgt.editor; src.reviewer -> tgt.reviewer; src.endorser -> tgt.endorser; src.relatedArtifact -> tgt.relatedArtifact; src.library -> tgt.library; src.kind -> tgt.kind; src.profile -> tgt.profile; src.code -> tgt.code; src.intent as v -> tgt.intent = translate(v, '#RequestIntent', 'code'); src.priority as v -> tgt.priority = translate(v, '#RequestPriority', 'code'); src.doNotPerform -> tgt.doNotPerform; src.timing : Timing -> tgt.timing; src.timing : Age -> tgt.timing; src.timing : Range -> tgt.timing; src.timing : Duration -> tgt.timing; src.location -> tgt.location; // src.asNeeded : boolean -> tgt.asNeeded; src.participant as s -> tgt.participant as t then ActivityDefinitionParticipant(s, t); src.product : Reference -> tgt.product; src.product : CodeableConcept -> tgt.product; src.quantity -> tgt.quantity; src.dosage -> tgt.dosage; src.bodySite -> tgt.bodySite; src.specimenRequirement -> tgt.specimenRequirement; src.observationRequirement -> tgt.observationRequirement; src.observationResultRequirement -> tgt.observationResultRequirement; src.transform -> tgt.transform; src.dynamicValue as s -> tgt.dynamicValue as t then ActivityDefinitionDynamicValue(s, t); } group ActivityDefinitionParticipant(source src, target tgt) extends BackboneElement { src.type as v -> tgt.type = translate(v, '#ActivityParticipantType', 'code'); src.role -> tgt.role; // src.typeCanonical -> tgt.typeCanonical; } group ActivityDefinitionDynamicValue(source src, target tgt) extends BackboneElement { src.path -> tgt.path; src.expression -> tgt.expression; }