FHIR Extensions Pack v5.1.0-cibuild (2024-03-27)

FHIR Extensions Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 5.1.0-cibuild built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-extensions/ and changes regularly. See the Directory of published versions

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: N/A Compartments: N/A

Following are maps for converting between the equivalent R4B resource and this R5 resource.

Maps to SearchParameter

FML Conversion for SearchParameter: R5 to R4 (Ready for Use/Trial Use)

/// url = 'http://hl7.org/fhir/StructureMap/SearchParameter5to4'
/// name = 'SearchParameter5to4'
/// title = 'FML Conversion for SearchParameter: R5 to R4'
/// status = 'active'

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 "SearchComparator" {
  prefix s = "http://hl7.org/fhir/search-comparator"
  prefix t = "http://hl7.org/fhir/4.0/search-comparator"

  s:eq - t:eq
  s:ne - t:ne
  s:gt - t:gt
  s:lt - t:lt
  s:ge - t:ge
  s:le - t:le
  s:sa - t:sa
  s:eb - t:eb
  s:ap - t:ap
}

conceptmap "SearchModifierCode" {
  prefix s = "http://hl7.org/fhir/search-modifier-code"
  prefix t = "http://hl7.org/fhir/4.0/search-modifier-code"

  s:missing - t:missing
  s:exact - t:exact
  s:contains - t:contains
  s:not - t:not
  s:text - t:text
  s:in - t:in
  s:"not-in" - t:"not-in"
  s:below - t:below
  s:above - t:above
  s:type - t:type
  s:identifier - t:identifier
}

conceptmap "SearchParamType" {
  prefix s = "http://hl7.org/fhir/search-param-type"
  prefix t = "http://hl7.org/fhir/4.0/search-param-type"

  s:number - t:number
  s:date - t:date
  s:string - t:string
  s:token - t:token
  s:reference - t:reference
  s:composite - t:composite
  s:quantity - t:quantity
  s:uri - t:uri
  s:special - t:special
}

conceptmap "SearchProcessingModeType" {
  prefix s = "http://hl7.org/fhir/search-processingmode"
  prefix t = "http://hl7.org/fhir/4.0/search-xpath-usage"

  s:normal - t:normal
  s:phonetic - t:phonetic
  s:other - t:other
}

uses "http://hl7.org/fhir/StructureDefinition/SearchParameter" alias SearchParameterR5 as source
uses "http://hl7.org/fhir/4.0/StructureDefinition/SearchParameter" alias SearchParameterR4 as target

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

group SearchParameter(source src : SearchParameterR5, target tgt : SearchParameterR4) 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.derivedFrom -> tgt.derivedFrom; // 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.code -> tgt.code; // src.copyright -> tgt.copyright;
  src.base -> tgt.base;
  src.type as v -> tgt.type = translate(v, '#SearchParamType', 'code');
  src.expression -> tgt.expression;
  src.processingMode as v -> tgt.xpathUsage = translate(v, '#SearchProcessingModeType', 'code');
  src.target -> tgt.target; // src.constraint -> tgt.constraint;
  src.multipleOr -> tgt.multipleOr;
  src.multipleAnd -> tgt.multipleAnd;
  src.comparator as v -> tgt.comparator = translate(v, '#SearchComparator', 'code');
  src.modifier as v -> tgt.modifier = translate(v, '#SearchModifierCode', 'code');
  src.chain -> tgt.chain;
  src.component as s -> tgt.component as t then SearchParameterComponent(s, t);
}

group SearchParameterComponent(source src, target tgt) extends BackboneElement {
  src.definition -> tgt.definition;
  src.expression -> tgt.expression;
}

FML Conversion for SearchParameter: R5 to R4B (Ready for Use/Trial Use)

/// url = 'http://hl7.org/fhir/StructureMap/SearchParameter5to4B'
/// name = 'SearchParameter5to4B'
/// title = 'FML Conversion for SearchParameter: R5 to R4B'
/// status = 'active'

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 "SearchComparator" {
  prefix s = "http://hl7.org/fhir/search-comparator"
  prefix t = "http://hl7.org/fhir/4.3/search-comparator"

  s:eq - t:eq
  s:ne - t:ne
  s:gt - t:gt
  s:lt - t:lt
  s:ge - t:ge
  s:le - t:le
  s:sa - t:sa
  s:eb - t:eb
  s:ap - t:ap
}

conceptmap "SearchModifierCode" {
  prefix s = "http://hl7.org/fhir/search-modifier-code"
  prefix t = "http://hl7.org/fhir/4.3/search-modifier-code"

  s:missing - t:missing
  s:exact - t:exact
  s:contains - t:contains
  s:not - t:not
  s:text - t:text
  s:in - t:in
  s:"not-in" - t:"not-in"
  s:below - t:below
  s:above - t:above
  s:type - t:type
  s:identifier - t:identifier
}

conceptmap "SearchParamType" {
  prefix s = "http://hl7.org/fhir/search-param-type"
  prefix t = "http://hl7.org/fhir/4.3/search-param-type"

  s:number - t:number
  s:date - t:date
  s:string - t:string
  s:token - t:token
  s:reference - t:reference
  s:composite - t:composite
  s:quantity - t:quantity
  s:uri - t:uri
  s:special - t:special
}

conceptmap "SearchProcessingModeType" {
  prefix s = "http://hl7.org/fhir/search-processingmode"
  prefix t = "http://hl7.org/fhir/4.3/search-xpath-usage"

  s:normal - t:normal
  s:phonetic - t:phonetic
  s:other - t:other
}

uses "http://hl7.org/fhir/StructureDefinition/SearchParameter" alias SearchParameterR5 as source
uses "http://hl7.org/fhir/4.3/StructureDefinition/SearchParameter" alias SearchParameterR4B as target

imports "http://hl7.org/fhir/StructureMap/*5to4B"

group SearchParameter(source src : SearchParameterR5, target tgt : SearchParameterR4B) 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.derivedFrom -> tgt.derivedFrom; // 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.code -> tgt.code; // src.copyright -> tgt.copyright;
  src.base -> tgt.base;
  src.type as v -> tgt.type = translate(v, '#SearchParamType', 'code');
  src.expression -> tgt.expression;
  src.processingMode as v -> tgt.xpathUsage = translate(v, '#SearchProcessingModeType', 'code');
  src.target -> tgt.target; // src.constraint -> tgt.constraint;
  src.multipleOr -> tgt.multipleOr;
  src.multipleAnd -> tgt.multipleAnd;
  src.comparator as v -> tgt.comparator = translate(v, '#SearchComparator', 'code');
  src.modifier as v -> tgt.modifier = translate(v, '#SearchModifierCode', 'code');
  src.chain -> tgt.chain;
  src.component as s -> tgt.component as t then SearchParameterComponent(s, t);
}

group SearchParameterComponent(source src, target tgt) extends BackboneElement {
  src.definition -> tgt.definition;
  src.expression -> tgt.expression;
}

Maps from SearchParameter

FML Conversion for SearchParameter: R4B to R5 (Ready for Use/Trial Use)

/// url = 'http://hl7.org/fhir/StructureMap/SearchParameter4Bto5'
/// name = 'SearchParameter4Bto5'
/// title = 'FML Conversion for SearchParameter: R4B to R5'
/// status = 'active'

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 "SearchComparator" {
  prefix s = "http://hl7.org/fhir/4.3/search-comparator"
  prefix t = "http://hl7.org/fhir/search-comparator"

  s:eq - t:eq
  s:ne - t:ne
  s:gt - t:gt
  s:lt - t:lt
  s:ge - t:ge
  s:le - t:le
  s:sa - t:sa
  s:eb - t:eb
  s:ap - t:ap
}

conceptmap "SearchModifierCode" {
  prefix s = "http://hl7.org/fhir/4.3/search-modifier-code"
  prefix t = "http://hl7.org/fhir/search-modifier-code"

  s:missing - t:missing
  s:exact - t:exact
  s:contains - t:contains
  s:not - t:not
  s:text - t:text
  s:in - t:in
  s:"not-in" - t:"not-in"
  s:below - t:below
  s:above - t:above
  s:type - t:type
  s:identifier - t:identifier
}

conceptmap "SearchParamType" {
  prefix s = "http://hl7.org/fhir/4.3/search-param-type"
  prefix t = "http://hl7.org/fhir/search-param-type"

  s:number - t:number
  s:date - t:date
  s:string - t:string
  s:token - t:token
  s:reference - t:reference
  s:composite - t:composite
  s:quantity - t:quantity
  s:uri - t:uri
  s:special - t:special
}

conceptmap "SearchProcessingModeType" {
  prefix s = "http://hl7.org/fhir/4.3/search-xpath-usage"
  prefix t = "http://hl7.org/fhir/search-processingmode"

  s:normal - t:normal
  s:phonetic - t:phonetic
  s:other - t:other
}

uses "http://hl7.org/fhir/4.3/StructureDefinition/SearchParameter" alias SearchParameterR4B as source
uses "http://hl7.org/fhir/StructureDefinition/SearchParameter" alias SearchParameterR5 as target

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

group SearchParameter(source src : SearchParameterR4B, target tgt : SearchParameterR5) 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.derivedFrom -> tgt.derivedFrom; // 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.code -> tgt.code; // src.copyright -> tgt.copyright;
  src.base -> tgt.base;
  src.type as v -> tgt.type = translate(v, '#SearchParamType', 'code');
  src.expression -> tgt.expression;
  src.xpathUsage as v -> tgt.processingMode = translate(v, '#SearchProcessingModeType', 'code');
  src.target -> tgt.target; // src.constraint -> tgt.constraint;
  src.multipleOr -> tgt.multipleOr;
  src.multipleAnd -> tgt.multipleAnd;
  src.comparator as v -> tgt.comparator = translate(v, '#SearchComparator', 'code');
  src.modifier as v -> tgt.modifier = translate(v, '#SearchModifierCode', 'code');
  src.chain -> tgt.chain;
  src.component as s -> tgt.component as t then SearchParameterComponent(s, t);
}

group SearchParameterComponent(source src, target tgt) extends BackboneElement {
  src.definition -> tgt.definition;
  src.expression -> tgt.expression;
}

FML Conversion for SearchParameter: R4 to R5 (Ready for Use/Trial Use)

/// url = 'http://hl7.org/fhir/StructureMap/SearchParameter4to5'
/// name = 'SearchParameter4to5'
/// title = 'FML Conversion for SearchParameter: R4 to R5'
/// status = 'active'

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 "SearchComparator" {
  prefix s = "http://hl7.org/fhir/4.0/search-comparator"
  prefix t = "http://hl7.org/fhir/search-comparator"

  s:eq - t:eq
  s:ne - t:ne
  s:gt - t:gt
  s:lt - t:lt
  s:ge - t:ge
  s:le - t:le
  s:sa - t:sa
  s:eb - t:eb
  s:ap - t:ap
}

conceptmap "SearchModifierCode" {
  prefix s = "http://hl7.org/fhir/4.0/search-modifier-code"
  prefix t = "http://hl7.org/fhir/search-modifier-code"

  s:missing - t:missing
  s:exact - t:exact
  s:contains - t:contains
  s:not - t:not
  s:text - t:text
  s:in - t:in
  s:"not-in" - t:"not-in"
  s:below - t:below
  s:above - t:above
  s:type - t:type
  s:identifier - t:identifier
}

conceptmap "SearchParamType" {
  prefix s = "http://hl7.org/fhir/4.0/search-param-type"
  prefix t = "http://hl7.org/fhir/search-param-type"

  s:number - t:number
  s:date - t:date
  s:string - t:string
  s:token - t:token
  s:reference - t:reference
  s:composite - t:composite
  s:quantity - t:quantity
  s:uri - t:uri
  s:special - t:special
}

conceptmap "SearchProcessingModeType" {
  prefix s = "http://hl7.org/fhir/4.0/search-xpath-usage"
  prefix t = "http://hl7.org/fhir/search-processingmode"

  s:normal - t:normal
  s:phonetic - t:phonetic
  s:other - t:other
}

uses "http://hl7.org/fhir/4.0/StructureDefinition/SearchParameter" alias SearchParameterR4 as source
uses "http://hl7.org/fhir/StructureDefinition/SearchParameter" alias SearchParameterR5 as target

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

group SearchParameter(source src : SearchParameterR4, target tgt : SearchParameterR5) 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.derivedFrom -> tgt.derivedFrom; // 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.code -> tgt.code; // src.copyright -> tgt.copyright;
  src.base -> tgt.base;
  src.type as v -> tgt.type = translate(v, '#SearchParamType', 'code');
  src.expression -> tgt.expression;
  src.xpathUsage as v -> tgt.processingMode = translate(v, '#SearchProcessingModeType', 'code');
  src.target -> tgt.target; // src.constraint -> tgt.constraint;
  src.multipleOr -> tgt.multipleOr;
  src.multipleAnd -> tgt.multipleAnd;
  src.comparator as v -> tgt.comparator = translate(v, '#SearchComparator', 'code');
  src.modifier as v -> tgt.modifier = translate(v, '#SearchModifierCode', 'code');
  src.chain -> tgt.chain;
  src.component as s -> tgt.component as t then SearchParameterComponent(s, t);
}

group SearchParameterComponent(source src, target tgt) extends BackboneElement {
  src.definition -> tgt.definition;
  src.expression -> tgt.expression;
}