R4 Ballot #1 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.3.0: R4 Ballot 2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

FHIR Infrastructure Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Not linked to any defined compartments

R2 : R3 Conversion maps for SearchParameter.

Functional status for this map: 2 tests that all execute ok. All tests pass round-trip testing and all r3 resources are valid. (see documentation)

map "http://hl7.org/fhir/StructureMap/SearchParameter2to3" = "R2 to R3 Conversions for SearchParameter"

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/SearchParameter" alias SearchParameterR2 as source
uses "http://hl7.org/fhir/StructureDefinition/SearchParameter" alias SearchParameter as target

imports "http://hl7.org/fhir/StructureMap/primitives2to3"
imports "http://hl7.org/fhir/StructureMap/DomainResource2to3"
imports "http://hl7.org/fhir/StructureMap/ContactPoint2to3"

group for type+types  SearchParameter extends DomainResource
  input src : SearchParameterR2 as source
  input tgt : SearchParameter as target

  "SearchParameter-url" : for src.url make tgt.url
  "SearchParameter-name" : for src.name make tgt.name
  "SearchParameter-status" : for src.status default "draft" make tgt.status
  "SearchParameter-experimental" : for src.experimental make tgt.experimental
  "SearchParameter-date" : for src.date make tgt.date
  "SearchParameter-publisher" : for src.publisher make tgt.publisher
  "SearchParameter-contact" : for src.contact as vs0 make tgt.contact as vt0 then {
    "ContactDetail-name" : for vs0.name make vt0.name
    "ContactDetail-telecom" : for vs0.telecom make vt0.telecom
  }

  "SearchParameter-purpose" : for src.requirements make tgt.purpose
  "SearchParameter-code" : for src.code make tgt.code
  "SearchParameter-base" : for src.base make tgt.base
  "SearchParameter-type" : for src.type make tgt.type
  "SearchParameter-description" : for src.description make tgt.description
  "SearchParameter-xpath" : for src.xpath make tgt.xpath
  "SearchParameter-xpathUsage" : for src.xpathUsage make tgt.xpathUsage
  "SearchParameter-target" : for src.target make tgt.target

endgroup

map "http://hl7.org/fhir/StructureMap/SearchParameter3to2" = "R3 to R2 Conversion for SearchParameter"

uses "http://hl7.org/fhir/StructureDefinition/SearchParameter" alias SearchParameter as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/SearchParameter" alias SearchParameterR2 as target

imports "http://hl7.org/fhir/StructureMap/primitives3to2"
imports "http://hl7.org/fhir/StructureMap/DomainResource3to2"
imports "http://hl7.org/fhir/StructureMap/ContactPoint3to2"

group for type+types  SearchParameter extends DomainResource
  input src : SearchParameter as source
  input tgt : SearchParameterR2 as target

  "SearchParameter-url" : for src.url make tgt.url
  "SearchParameter-name" : for src.name make tgt.name
  "SearchParameter-status" : for src.status make tgt.status
  "SearchParameter-experimental" : for src.experimental make tgt.experimental
  "SearchParameter-publisher" : for src.publisher make tgt.publisher
  "SearchParameter-contact" : for src.contact as vs0 make tgt.contact as vt0 then {
    "SearchParameter.contact-name" : for vs0.name make vt0.name
    "SearchParameter.contact-telecom" : for vs0.telecom make vt0.telecom
  }

  "SearchParameter-date" : for src.date make tgt.date
  "SearchParameter-requirements" : for src.purpose make tgt.requirements
  "SearchParameter-code" : for src.code make tgt.code
  "SearchParameter-base" : for src.base only_one make tgt.base
  "SearchParameter-type" : for src.type make tgt.type
  "SearchParameter-description" : for src.description make tgt.description
  "SearchParameter-xpath" : for src.xpath make tgt.xpath
  "SearchParameter-xpathUsage" : for src.xpathUsage make tgt.xpathUsage
  "SearchParameter-target" : for src.target make tgt.target

endgroup