This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
Official URL: http://hl7.org/fhir/StructureMap/ActivityDefinition5to4 | Version: 1.0.0 | |||
Standards status: Trial-use | Maturity Level: 1 | Computable Name: ActivityDefinition5to4 |
FMLConversionforActivityDefinitionR5toR4
/// 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; }