FHIR Extensions Pack v5.1.0 (2024-04-27)

This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions

Page standards status: Informative

This specification provides transforms between R4 and R5 for most resources that were in R4. These transforms are expressed using the FHIR Mapping Language, and serve as formal documentation of the relationship between the resource structures in R4 and R5, and can also be used to convert between the formats automatically.

The following table summarizes the state of the R5:R5 maps for each resource type, along with the data types.

These maps are intended to be a starting base, and not the complete solution for your data conversion work - since in some cases the complete context needed for a particular usecase is only available closer to runtime. Additionally, the maps in their current state place most focus on bringing the content from R4 over to R5, and less so on the reverse conversion - that is, they don't make use of the version-specific extensions on the R5 to R4 data downgrade yet. Contributions to continue development of the maps further are welcome as pull requests to HL7/fhir-extensions.

r4.status
Resource R4 Status R4 Tests R4B Status R4B Tests
Account 2 Maps Defined All OK (~0% lost in 2 examples) 2 Maps Defined All OK (~0% lost in 2 examples)
ActivityDefinition 2 Maps Defined All OK (~2% lost in 9 examples) 2 Maps Defined All OK (~3% lost in 10 examples)
ActorDefinition No Maps Defined -- No Maps Defined --
AdministrableProductDefinition No Maps Defined -- 2 Maps Defined All OK (~0% lost in 1 examples)
AdverseEvent 2 Maps Defined All OK (~23% lost in 1 examples) 2 Maps Defined All OK (~20% lost in 1 examples)
AllergyIntolerance 2 Maps Defined All OK (~7% lost in 6 examples) 2 Maps Defined All OK (~6% lost in 6 examples)
Appointment 2 Maps Defined All OK (~9% lost in 3 examples) 2 Maps Defined All OK (~8% lost in 3 examples)
AppointmentResponse 2 Maps Defined All OK (~0% lost in 2 examples) 2 Maps Defined All OK (~0% lost in 2 examples)
ArtifactAssessment No Maps Defined -- No Maps Defined --
AuditEvent 2 Maps Defined All OK (~18% lost in 9 examples) 2 Maps Defined All OK (~17% lost in 9 examples)
Basic 2 Maps Defined All OK (~0% lost in 3 examples) 2 Maps Defined All OK (~0% lost in 3 examples)
Binary 2 Maps Defined All OK (~0% lost in 2 examples) 2 Maps Defined All OK (~0% lost in 2 examples)
BiologicallyDerivedProduct 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
BiologicallyDerivedProductDispense No Maps Defined -- No Maps Defined --
BodyStructure 2 Maps Defined All OK (~0% lost in 3 examples) 2 Maps Defined All OK (~0% lost in 3 examples)
Bundle 2 Maps Defined All OK (~64% lost in 44 examples) 2 Maps Defined All OK (~59% lost in 52 examples)
CapabilityStatement 2 Maps Defined All OK (~97% lost in 8 examples) 2 Maps Defined All OK (~97% lost in 8 examples)
CarePlan 2 Maps Defined All OK (~53% lost in 11 examples) 2 Maps Defined All OK (~49% lost in 11 examples)
CareTeam 2 Maps Defined All OK (~14% lost in 1 examples) 2 Maps Defined All OK (~13% lost in 1 examples)
ChargeItem 2 Maps Defined All OK (~6% lost in 1 examples) 2 Maps Defined All OK (~5% lost in 1 examples)
ChargeItemDefinition 2 Maps Defined All OK (~17% lost in 2 examples) 2 Maps Defined All OK (~17% lost in 2 examples)
Citation No Maps Defined -- 2 Maps Defined (draft) All OK (~0% lost in 1 examples)
Claim 2 Maps Defined All OK (~3% lost in 17 examples) 2 Maps Defined All OK (~3% lost in 17 examples)
ClaimResponse 2 Maps Defined All OK (~34% lost in 5 examples) 2 Maps Defined All OK (~33% lost in 5 examples)
ClinicalImpression 2 Maps Defined All OK (~31% lost in 1 examples) 2 Maps Defined (draft) All OK (~27% lost in 1 examples)
ClinicalUseDefinition No Maps Defined -- 2 Maps Defined All OK (~0% lost in 1 examples)
CodeSystem 2 Maps Defined All OK (~0% lost in 1062 examples) 2 Maps Defined All OK (~0% lost in 541 examples)
Communication 2 Maps Defined All OK (~11% lost in 3 examples) 2 Maps Defined All OK (~10% lost in 3 examples)
CommunicationRequest 2 Maps Defined All OK (~13% lost in 2 examples) 2 Maps Defined All OK (~11% lost in 2 examples)
CompartmentDefinition 2 Maps Defined All OK (~0% lost in 6 examples) 2 Maps Defined All OK (~0% lost in 6 examples)
Composition 2 Maps Defined All OK (~7% lost in 2 examples) 2 Maps Defined All OK (~7% lost in 2 examples)
ConceptMap 2 Maps Defined Error: The type s is not valid 2 Maps Defined Error: The type s is not valid
Condition 2 Maps Defined All OK (~10% lost in 12 examples) 2 Maps Defined All OK (~9% lost in 12 examples)
ConditionDefinition No Maps Defined -- No Maps Defined --
Consent 2 Maps Defined All OK (~44% lost in 12 examples) 2 Maps Defined All OK (~40% lost in 12 examples)
Contract 2 Maps Defined (draft) All OK (~17% lost in 8 examples) 2 Maps Defined (draft) All OK (~16% lost in 8 examples)
Coverage 2 Maps Defined All OK (~4% lost in 4 examples) 2 Maps Defined All OK (~4% lost in 4 examples)
CoverageEligibilityRequest 2 Maps Defined All OK (~0% lost in 2 examples) 2 Maps Defined All OK (~0% lost in 2 examples)
CoverageEligibilityResponse 2 Maps Defined All OK (~0% lost in 4 examples) 2 Maps Defined All OK (~0% lost in 4 examples)
DetectedIssue 2 Maps Defined All OK (~0% lost in 4 examples) 2 Maps Defined All OK (~0% lost in 4 examples)
Device 2 Maps Defined All OK (~0% lost in 2 examples) 2 Maps Defined All OK (~0% lost in 2 examples)
DeviceAssociation No Maps Defined -- No Maps Defined --
DeviceDefinition 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
DeviceDispense No Maps Defined -- No Maps Defined --
DeviceMetric 2 Maps Defined All OK (~20% lost in 1 examples) 2 Maps Defined All OK (~17% lost in 1 examples)
DeviceRequest 2 Maps Defined All OK (~4% lost in 4 examples) 2 Maps Defined All OK (~4% lost in 4 examples)
DeviceUsage 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
DiagnosticReport 2 Maps Defined All OK (~1% lost in 6 examples) 2 Maps Defined All OK (~1% lost in 6 examples)
DocumentReference 2 Maps Defined All OK (~27% lost in 1 examples) 2 Maps Defined All OK (~26% lost in 1 examples)
Encounter 2 Maps Defined All OK (~16% lost in 10 examples) 2 Maps Defined All OK (~15% lost in 10 examples)
EncounterHistory No Maps Defined -- No Maps Defined --
Endpoint 2 Maps Defined All OK (~0% lost in 4 examples) 2 Maps Defined All OK (~0% lost in 4 examples)
EnrollmentRequest 2 Maps Defined (draft) All OK (~0% lost in 1 examples) 2 Maps Defined (draft) All OK (~0% lost in 1 examples)
EnrollmentResponse 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
EpisodeOfCare 2 Maps Defined All OK (~1% lost in 1 examples) 2 Maps Defined All OK (~1% lost in 1 examples)
EventDefinition 2 Maps Defined Error: Exception executing transform tgt.type = translate(v, 'http://hl7.org/fhir/interversion/types4to5', 'code') on Rule "DataRequirement4to5|DataRequirement|type": No map found for http://hl7.org/fhir/interversion/types4to5 2 Maps Defined Error: Exception executing transform tgt.type = translate(v, 'http://hl7.org/fhir/interversion/types4Bto5', 'code') on Rule "DataRequirement4Bto5|DataRequirement|type": No map found for http://hl7.org/fhir/interversion/types4Bto5
Evidence 2 Maps Defined All OK (~25% lost in 1 examples) 2 Maps Defined All OK (~28% lost in 5 examples)
EvidenceReport No Maps Defined -- 2 Maps Defined (draft) All OK (~0% lost in 1 examples)
EvidenceVariable 2 Maps Defined All OK (~14% lost in 1 examples) 2 Maps Defined All OK (~6% lost in 10 examples)
ExampleScenario 2 Maps Defined All OK (~31% lost in 1 examples) 2 Maps Defined All OK (~30% lost in 1 examples)
ExplanationOfBenefit 2 Maps Defined All OK (~10% lost in 2 examples) 2 Maps Defined All OK (~9% lost in 2 examples)
FamilyMemberHistory 2 Maps Defined All OK (~0% lost in 2 examples) 2 Maps Defined All OK (~0% lost in 2 examples)
Flag 2 Maps Defined (draft) All OK (~0% lost in 2 examples) 2 Maps Defined (draft) All OK (~0% lost in 2 examples)
FormularyItem No Maps Defined -- No Maps Defined --
GenomicStudy No Maps Defined -- No Maps Defined --
Goal 2 Maps Defined All OK (~4% lost in 2 examples) 2 Maps Defined All OK (~4% lost in 2 examples)
GraphDefinition No Maps Defined -- No Maps Defined --
Group 2 Maps Defined All OK (~4% lost in 4 examples) 2 Maps Defined All OK (~3% lost in 4 examples)
GuidanceResponse 2 Maps Defined All OK (~8% lost in 1 examples) 2 Maps Defined All OK (~6% lost in 1 examples)
HealthcareService 2 Maps Defined All OK (~32% lost in 1 examples) 2 Maps Defined All OK (~31% lost in 1 examples)
ImagingSelection No Maps Defined -- No Maps Defined --
ImagingStudy 2 Maps Defined All OK (~11% lost in 2 examples) 2 Maps Defined All OK (~10% lost in 2 examples)
Immunization 2 Maps Defined All OK (~4% lost in 5 examples) 2 Maps Defined All OK (~4% lost in 5 examples)
ImmunizationEvaluation 2 Maps Defined All OK (~0% lost in 2 examples) 2 Maps Defined All OK (~0% lost in 2 examples)
ImmunizationRecommendation 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
ImplementationGuide 2 Maps Defined All OK (~0% lost in 3 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
Ingredient No Maps Defined -- 2 Maps Defined All OK (~4% lost in 1 examples)
InsurancePlan 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
InventoryItem No Maps Defined -- No Maps Defined --
InventoryReport No Maps Defined -- No Maps Defined --
Invoice 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
Library 2 Maps Defined Error: Exception executing transform tgt.type = translate(v, 'http://hl7.org/fhir/interversion/types4to5', 'code') on Rule "ParameterDefinition4to5|ParameterDefinition|type": No map found for http://hl7.org/fhir/interversion/types4to5, Error: Exception executing transform tgt.type = translate(v, 'http://hl7.org/fhir/interversion/types4to5', 'code') on Rule "DataRequirement4to5|DataRequirement|type": No map found for http://hl7.org/fhir/interversion/types4to5 2 Maps Defined Error: Exception executing transform tgt.type = translate(v, 'http://hl7.org/fhir/interversion/types4Bto5', 'code') on Rule "DataRequirement4Bto5|DataRequirement|type": No map found for http://hl7.org/fhir/interversion/types4Bto5, Error: Exception executing transform tgt.type = translate(v, 'http://hl7.org/fhir/interversion/types4Bto5', 'code') on Rule "ParameterDefinition4Bto5|ParameterDefinition|type": No map found for http://hl7.org/fhir/interversion/types4Bto5
Linkage 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
List 2 Maps Defined (draft) All OK (~6% lost in 10 examples) 2 Maps Defined (draft) All OK (~6% lost in 10 examples)
Location 2 Maps Defined All OK (~16% lost in 6 examples) 2 Maps Defined All OK (~14% lost in 6 examples)
ManufacturedItemDefinition No Maps Defined -- 2 Maps Defined All OK (~0% lost in 1 examples)
Measure 2 Maps Defined All OK (~0% lost in 7 examples) 2 Maps Defined All OK (~0% lost in 7 examples)
MeasureReport 2 Maps Defined All OK (~17% lost in 4 examples) 2 Maps Defined All OK (~25% lost in 4 examples)
Medication 2 Maps Defined All OK (~43% lost in 23 examples) 2 Maps Defined All OK (~36% lost in 23 examples)
MedicationAdministration 2 Maps Defined All OK (~5% lost in 14 examples) 2 Maps Defined All OK (~4% lost in 14 examples)
MedicationDispense 2 Maps Defined All OK (~2% lost in 31 examples) 2 Maps Defined All OK (~2% lost in 31 examples)
MedicationKnowledge 2 Maps Defined All OK (~50% lost in 1 examples) 2 Maps Defined All OK (~41% lost in 1 examples)
MedicationRequest 2 Maps Defined All OK (~43% lost in 40 examples) 2 Maps Defined All OK (~40% lost in 40 examples)
MedicationStatement 2 Maps Defined All OK (~10% lost in 7 examples) 2 Maps Defined All OK (~9% lost in 7 examples)
MedicinalProductDefinition 2 Maps Defined All OK (~10% lost in 1 examples) 2 Maps Defined All OK (~13% lost in 8 examples)
MessageDefinition 2 Maps Defined All OK (~0% lost in 3 examples) 2 Maps Defined All OK (~0% lost in 3 examples)
MessageHeader 2 Maps Defined All OK (~11% lost in 1 examples) 2 Maps Defined All OK (~9% lost in 1 examples)
MolecularSequence 2 Maps Defined All OK (~56% lost in 17 examples) 2 Maps Defined All OK (~48% lost in 17 examples)
NamingSystem 2 Maps Defined All OK (~0% lost in 2 examples) 2 Maps Defined All OK (~0% lost in 2 examples)
NutritionIntake No Maps Defined -- No Maps Defined --
NutritionOrder 2 Maps Defined All OK (~9% lost in 13 examples) 2 Maps Defined All OK (~8% lost in 13 examples)
NutritionProduct No Maps Defined -- No Maps Defined --
Observation 2 Maps Defined All OK (~1% lost in 64 examples) 2 Maps Defined All OK (~1% lost in 64 examples)
ObservationDefinition 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
OperationDefinition 2 Maps Defined Error: Exception executing transform tgt.type = translate(v, 'http://hl7.org/fhir/interversion/types4to5', 'code') on Rule "OperationDefinition4to5|OperationDefinitionParameter|type": No map found for http://hl7.org/fhir/interversion/types4to5 2 Maps Defined Error: Exception executing transform tgt.type = translate(v, 'http://hl7.org/fhir/interversion/types4Bto5', 'code') on Rule "OperationDefinition4Bto5|OperationDefinitionParameter|type": No map found for http://hl7.org/fhir/interversion/types4Bto5
OperationOutcome 2 Maps Defined All OK (~0% lost in 6 examples) 2 Maps Defined All OK (~0% lost in 6 examples)
Organization 2 Maps Defined All OK (~25% lost in 13 examples) 2 Maps Defined All OK (~20% lost in 13 examples)
OrganizationAffiliation 2 Maps Defined All OK (~6% lost in 3 examples) 2 Maps Defined All OK (~5% lost in 3 examples)
PackagedProductDefinition No Maps Defined -- 2 Maps Defined All OK (~42% lost in 2 examples)
Parameters 2 Maps Defined All OK (~n/a% lost in 0 examples) 2 Maps Defined All OK (~31% lost in 1 examples)
Patient 2 Maps Defined All OK (~1% lost in 22 examples) 2 Maps Defined All OK (~0% lost in 22 examples)
PaymentNotice 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
PaymentReconciliation 2 Maps Defined All OK (~7% lost in 1 examples) 2 Maps Defined All OK (~6% lost in 1 examples)
Permission No Maps Defined -- No Maps Defined --
Person 2 Maps Defined All OK (~0% lost in 5 examples) 2 Maps Defined All OK (~0% lost in 5 examples)
PlanDefinition 2 Maps Defined All OK (~34% lost in 18 examples) 2 Maps Defined All OK (~32% lost in 18 examples)
Practitioner 2 Maps Defined All OK (~0% lost in 14 examples) 2 Maps Defined All OK (~0% lost in 14 examples)
PractitionerRole 2 Maps Defined All OK (~1% lost in 1 examples) 2 Maps Defined All OK (~1% lost in 1 examples)
Procedure 2 Maps Defined All OK (~0% lost in 16 examples) 2 Maps Defined All OK (~0% lost in 16 examples)
Provenance 2 Maps Defined All OK (~9% lost in 5 examples) 2 Maps Defined All OK (~7% lost in 5 examples)
Questionnaire 2 Maps Defined All OK (~70% lost in 7 examples) 2 Maps Defined All OK (~79% lost in 7 examples)
QuestionnaireResponse 2 Maps Defined All OK (~90% lost in 5 examples) 2 Maps Defined All OK (~88% lost in 5 examples)
RegulatedAuthorization No Maps Defined -- 2 Maps Defined All OK (~20% lost in 2 examples)
RelatedPerson 2 Maps Defined All OK (~0% lost in 5 examples) 2 Maps Defined (draft) All OK (~0% lost in 5 examples)
RequestOrchestration 2 Maps Defined All OK (~54% lost in 2 examples) 2 Maps Defined All OK (~50% lost in 2 examples)
Requirements No Maps Defined -- No Maps Defined --
ResearchStudy 2 Maps Defined All OK (~16% lost in 1 examples) 2 Maps Defined All OK (~9% lost in 1 examples)
ResearchSubject 2 Maps Defined All OK (~6% lost in 1 examples) 2 Maps Defined All OK (~5% lost in 1 examples)
RiskAssessment 2 Maps Defined All OK (~1% lost in 6 examples) 2 Maps Defined All OK (~1% lost in 6 examples)
Schedule 2 Maps Defined All OK (~0% lost in 3 examples) 2 Maps Defined All OK (~0% lost in 3 examples)
SearchParameter 2 Maps Defined All OK (~2% lost in 1400 examples) 2 Maps Defined All OK (~3% lost in 25 examples)
ServiceRequest 2 Maps Defined All OK (~23% lost in 20 examples) 2 Maps Defined All OK (~19% lost in 20 examples)
Slot 2 Maps Defined All OK (~0% lost in 4 examples) 2 Maps Defined All OK (~0% lost in 4 examples)
Specimen 2 Maps Defined All OK (~17% lost in 5 examples) 2 Maps Defined All OK (~14% lost in 5 examples)
SpecimenDefinition 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
StructureDefinition 2 Maps Defined All OK (~2% lost in 658 examples) 2 Maps Defined All OK (~2% lost in 651 examples)
StructureMap 2 Maps Defined All OK (~9% lost in 2 examples) 2 Maps Defined All OK (~9% lost in 2 examples)
Subscription 2 Maps Defined Error: Exception executing transform t.value = (%s1.substring(%s1.indexOf(': ') + 1)) on Rule "Subscription4to5|Subscription|header": Index 0 out of bounds for length 0 2 Maps Defined Error: Exception executing transform t.value = (%s1.substring(%s1.indexOf(': ') + 1)) on Rule "Subscription4Bto5|Subscription|header": Index 0 out of bounds for length 0
SubscriptionStatus No Maps Defined -- 2 Maps Defined All OK (~10% lost in 1 examples)
SubscriptionTopic No Maps Defined -- 2 Maps Defined (draft) All OK (~15% lost in 1 examples)
Substance 2 Maps Defined All OK (~4% lost in 6 examples) 2 Maps Defined All OK (~3% lost in 6 examples)
SubstanceDefinition 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
SubstanceNucleicAcid 2 Maps Defined All OK (~n/a% lost in 0 examples) No Maps Defined --
SubstancePolymer 2 Maps Defined All OK (~n/a% lost in 0 examples) No Maps Defined --
SubstanceProtein 2 Maps Defined (draft) All OK (~n/a% lost in 0 examples) No Maps Defined --
SubstanceReferenceInformation 2 Maps Defined (draft) All OK (~n/a% lost in 0 examples) No Maps Defined --
SubstanceSourceMaterial 2 Maps Defined (draft) All OK (~n/a% lost in 0 examples) No Maps Defined --
SupplyDelivery 2 Maps Defined All OK (~11% lost in 2 examples) 2 Maps Defined All OK (~9% lost in 2 examples)
SupplyRequest 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
Task 2 Maps Defined All OK (~6% lost in 12 examples) 2 Maps Defined All OK (~5% lost in 12 examples)
TerminologyCapabilities 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
TestPlan No Maps Defined -- No Maps Defined --
TestReport 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
TestScript 2 Maps Defined All OK (~0% lost in 6 examples) 2 Maps Defined All OK (~0% lost in 6 examples)
Transport No Maps Defined -- No Maps Defined --
ValueSet 2 Maps Defined All OK (~0% lost in 1316 examples) 2 Maps Defined All OK (~0% lost in 721 examples)
VerificationResult 2 Maps Defined All OK (~0% lost in 1 examples) 2 Maps Defined All OK (~0% lost in 1 examples)
VisionPrescription 2 Maps Defined All OK (~0% lost in 2 examples) 2 Maps Defined All OK (~0% lost in 2 examples)
VisionPrescription 2 Maps Defined All OK (~0% lost in 2 examples) 2 Maps Defined All OK (~0% lost in 2 examples)
Datatype R4 Status R4 Tests R4B Status R4B Tests
Address 2 Maps Defined n/a 2 Maps Defined n/a
Annotation 2 Maps Defined n/a 2 Maps Defined n/a
Attachment 2 Maps Defined n/a 2 Maps Defined n/a
CodeableConcept 2 Maps Defined n/a 2 Maps Defined n/a
CodeableReference 4 Maps Defined n/a 6 Maps Defined n/a
Coding 4 Maps Defined n/a 4 Maps Defined n/a
ContactPoint 2 Maps Defined n/a 2 Maps Defined n/a
HumanName 2 Maps Defined n/a 2 Maps Defined n/a
Identifier 2 Maps Defined n/a 2 Maps Defined n/a
Money 2 Maps Defined n/a 2 Maps Defined n/a
Period 2 Maps Defined n/a 2 Maps Defined n/a
Quantity 2 Maps Defined n/a 2 Maps Defined n/a
Range 2 Maps Defined n/a 2 Maps Defined n/a
Ratio 2 Maps Defined n/a 2 Maps Defined n/a
RatioRange No Maps Defined -- 2 Maps Defined n/a
Reference 2 Maps Defined n/a 2 Maps Defined n/a
SampledData 2 Maps Defined n/a 2 Maps Defined n/a
Signature 2 Maps Defined n/a 2 Maps Defined n/a
Timing 2 Maps Defined n/a 2 Maps Defined n/a
ContactDetail 2 Maps Defined n/a 2 Maps Defined n/a
DataRequirement 2 Maps Defined n/a 2 Maps Defined n/a
Expression 2 Maps Defined n/a 2 Maps Defined n/a
ParameterDefinition 2 Maps Defined n/a 2 Maps Defined n/a
RelatedArtifact 2 Maps Defined n/a 2 Maps Defined n/a
TriggerDefinition 2 Maps Defined n/a 2 Maps Defined n/a
UsageContext 2 Maps Defined n/a 2 Maps Defined n/a
Availability No Maps Defined -- No Maps Defined --
ExtendedContactDetail No Maps Defined -- No Maps Defined --
Dosage 2 Maps Defined n/a 2 Maps Defined n/a
Meta 2 Maps Defined n/a 2 Maps Defined n/a
ElementDefinition 2 Maps Defined n/a 2 Maps Defined n/a
ProductShelfLife 2 Maps Defined n/a 2 Maps Defined n/a
MarketingStatus 2 Maps Defined n/a 2 Maps Defined n/a

About the transforms

The transforms are published in the NPM package hl7.fhir.uv.extension. The java validator can check the transforms for correctness. To do this:

java -jar validator.jar 
  -version 5.0 hl7.fhir.uv.extension -ig hl7.fhir.uv.extension -alt-version R4 -alt-version R4 -output {local-file-name} -output-style compact

Note that in the transforms, all the resources from the prior standards have the version of the base standard added, e.g. http://hl7.org/fhir/StructureDefinition/Resource becomes http://hl7.org/fhir/StructureDefinition/4.0/Resource for R4. The versioned canonical format of http://hl7.org/fhir/StructureDefinition/Resource|4.0 is not used to prevent conflicts with existing uses of the canonical resource version in the prior standards, and because the different base versions each define their own resource space.

Transforms are tested using the following method:

  1. For each example resource in the R4 release of the FHIR specification that has a transform to R5
  2. apply the transform to R5
  3. validate against the R5 specification
  4. apply the reverse transform back to R4
  5. compare the outcome with the original resource - ideally, it should be identical