This page is part of the FHIR Core Extensions Registry (v5.1.0-snapshot1: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions
Official URL: http://hl7.org/fhir/StructureMap/TerminologyCapabilities5to4B | Version: 5.1.0-snapshot1 | |||
Standards status: Trial-use | Maturity Level: 1 | Computable Name: TerminologyCapabilities5to4B |
FMLConversionforTerminologyCapabilitiesR5toR4B
/// url = 'http://hl7.org/fhir/StructureMap/TerminologyCapabilities5to4B' /// name = 'TerminologyCapabilities5to4B' /// title = 'FML Conversion for TerminologyCapabilities: R5 to R4B' /// status = 'active' conceptmap "CapabilityStatementKind" { prefix s = "http://hl7.org/fhir/capability-statement-kind" prefix t = "http://hl7.org/fhir/4.3/capability-statement-kind" s:instance - t:instance s:capability - t:capability s:requirements - t:requirements } conceptmap "CodeSearchSupport" { prefix s = "http://hl7.org/fhir/code-search-support" prefix t = "http://hl7.org/fhir/4.3/code-search-support" s:"in-compose" - t:explicit s:"in-expansion" - t:all s:"in-compose-or-expansion" - t:all } conceptmap "CodeSystemContentMode" { prefix s = "http://hl7.org/fhir/codesystem-content-mode" prefix t = "http://hl7.org/fhir/4.3/codesystem-content-mode" s:"not-present" - t:"not-present" s:example - t:example s:fragment - t:fragment s:complete - t:complete s:supplement - t:supplement } 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 } uses "http://hl7.org/fhir/StructureDefinition/TerminologyCapabilities" alias TerminologyCapabilitiesR5 as source uses "http://hl7.org/fhir/4.3/StructureDefinition/TerminologyCapabilities" alias TerminologyCapabilitiesR4B as target imports "http://hl7.org/fhir/StructureMap/*5to4B" group TerminologyCapabilities(source src : TerminologyCapabilitiesR5, target tgt : TerminologyCapabilitiesR4B) extends DomainResource <<type+>> { src.url -> tgt.url; src.version -> tgt.version; // src.identifier -> tgt.identifier; src.name -> tgt.name; // src.versionAlgorithm : string -> tgt.versionAlgorithm; src.title -> tgt.title; src.status as v -> tgt.status = translate(v, '#PublicationStatus', 'code'); src.experimental -> tgt.experimental; 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.copyright -> tgt.copyright; src.kind as v -> tgt.kind = translate(v, '#CapabilityStatementKind', 'code'); // src.copyrightLabel -> tgt.copyrightLabel; src.software as s -> tgt.software as t then TerminologyCapabilitiesSoftware(s, t); src.implementation as s -> tgt.implementation as t then TerminologyCapabilitiesImplementation(s, t); src.lockedDate -> tgt.lockedDate; src.codeSystem as s -> tgt.codeSystem as t then TerminologyCapabilitiesCodeSystem(s, t); src.expansion as s -> tgt.expansion as t then TerminologyCapabilitiesExpansion(s, t); src.codeSearch as v -> tgt.codeSearch = translate(v, '#CodeSearchSupport', 'code'); src.validateCode as s -> tgt.validateCode as t then TerminologyCapabilitiesValidateCode(s, t); src.translation as s -> tgt.translation as t then TerminologyCapabilitiesTranslation(s, t); src.closure as s -> tgt.closure as t then TerminologyCapabilitiesClosure(s, t); } group TerminologyCapabilitiesSoftware(source src, target tgt) extends BackboneElement { src.name -> tgt.name; src.version -> tgt.version; } group TerminologyCapabilitiesImplementation(source src, target tgt) extends BackboneElement { src.description -> tgt.description; src.url -> tgt.url; } group TerminologyCapabilitiesCodeSystem(source src, target tgt) extends BackboneElement { src.uri -> tgt.uri; src.version as s -> tgt.version as t then TerminologyCapabilitiesCodeSystemVersion(s, t); src.subsumption -> tgt.subsumption; // src.content as v -> tgt.content = translate(v, '#CodeSystemContentMode', 'code'); } group TerminologyCapabilitiesCodeSystemVersion(source src, target tgt) extends BackboneElement { src.code -> tgt.code; src.isDefault -> tgt.isDefault; src.compositional -> tgt.compositional; src.language -> tgt.language; src.filter as s -> tgt.filter as t then TerminologyCapabilitiesCodeSystemVersionFilter(s, t); src.property -> tgt.property; } group TerminologyCapabilitiesCodeSystemVersionFilter(source src, target tgt) extends BackboneElement { src.code -> tgt.code; src.op -> tgt.op; } group TerminologyCapabilitiesExpansion(source src, target tgt) extends BackboneElement { src.hierarchical -> tgt.hierarchical; src.paging -> tgt.paging; src.incomplete -> tgt.incomplete; src.parameter as s -> tgt.parameter as t then TerminologyCapabilitiesExpansionParameter(s, t); src.textFilter -> tgt.textFilter; } group TerminologyCapabilitiesExpansionParameter(source src, target tgt) extends BackboneElement { src.name -> tgt.name; src.documentation -> tgt.documentation; } group TerminologyCapabilitiesValidateCode(source src, target tgt) extends BackboneElement { src.translations -> tgt.translations; } group TerminologyCapabilitiesTranslation(source src, target tgt) extends BackboneElement { src.needsMap -> tgt.needsMap; } group TerminologyCapabilitiesClosure(source src, target tgt) extends BackboneElement { src.translation -> tgt.translation; }