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: Patient, Practitioner, RelatedPerson

R2 : R3 Conversion maps for Basic.

Functional status for this map: 4 tests that all execute ok. All tests pass round-trip testing and 1 r3 resources are invalid (3 errors). (see documentation)

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

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Basic" alias BasicR2 as source
uses "http://hl7.org/fhir/StructureDefinition/Basic" alias Basic as target

imports "http://hl7.org/fhir/StructureMap/*2to3"

group for type+types  Basic extends DomainResource
  input src : BasicR2 as source
  input tgt : Basic as target

  "Basic-identifier" : for src.identifier make tgt.identifier
  "Basic-code" : for src.code make tgt.code
  "Basic-subject" : for src.subject make tgt.subject
  "Basic-created" : for src.created make tgt.created
  "Basic-author" : for src.author make tgt.author

endgroup

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

uses "http://hl7.org/fhir/StructureDefinition/Basic" alias Basic as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Basic" alias BasicR2 as target

imports "http://hl7.org/fhir/StructureMap/*3to2"

group for type+types  Basic extends DomainResource
  input src : Basic as source
  input tgt : BasicR2 as target

  "Basic-identifier" : for src.identifier make tgt.identifier
  "Basic-code" : for src.code make tgt.code
  "Basic-subject" : for src.subject make tgt.subject
  "Basic-created" : for src.created make tgt.created
  "Basic-author" : for src.author make tgt.author

endgroup

basic-adverseevent-example
  • ERROR @ Basic.extension[1]: The extension http://hl7.org/fhir/StructureDefinition/qicore-adverseevent-cause is unknown, and not allowed here (src = InstanceValidator)
  • ERROR @ Basic.extension[2]: The extension http://hl7.org/fhir/StructureDefinition/qicore-adverseevent-type is unknown, and not allowed here (src = InstanceValidator)
  • ERROR @ Basic.extension[3]: The extension http://hl7.org/fhir/StructureDefinition/qicore-adverseevent-period is unknown, and not allowed here (src = InstanceValidator)