Introduction
Forge is the official HL7 FHIR Profile & Conformance editor.
Forge 22.1 for R4 is a major update with important improvements to conformancy,
including a significant revision of type slicing according to the new R4 behavior.
Release information
This Forge release supports FHIR R4.
We publish separate Forge releases for FHIR DSTU2, STU3 and R4. Each release only supports a single FHIR version and is updated separately. Different releases can be installed side-by-side on the same machine.
Visit simplifier.net to download the latest versions.
Dependencies
.NET Framework
Forge requires the .NET Framework 4.7.2.
The .NET Framework 4.7.2 is fully .NET Standard 2.0 compliant, without any additional dependencies.FHIR API
Update to FHIR R4 .NET API 1.4.0-forge4 (internal alpha release)
Provides a number of bug fixes and improvements, especially for the Snapshot Generator:- #1074 Derive implicit type constraint from renamed choice type element
Example:valueString
implies element type constrained toString
- #1051 Normalize type slices in snapshot
Transform renamed choice type elements (valueString
) in differential to fully expanded type slice (value[x]:valueString
) in snapshot (generated snapshot will never contain renamed elements, making it easier to process & compare).
Generate defaultElementDefinition.slicing
component for slice entry of type slice to snapshot, even if missing from differential.
Initialize defaultsliceName
for renamed choice type element, if missing from differential.
Example:value[x]
constrained toQuantity
implies sliceNamevalueQuantity
.
Fix incorrect expansion of resliced elements.
Implement official HL7 FHIR Snapshot Generator unit tests. - #1052 Initialize
ElementDefinition.constraint.source
- #1067 Fix incorrect base for profile extension root element
- #1090 SnapshotGenerator supports Logical Models
- #1101 Handle element constraint without a path
- #1074 Derive implicit type constraint from renamed choice type element
Improvements:
Improved rendering of named slices
The rendering of named slices has been updated, similar to the official FHIR website & build tool. The element tree now displays named slices aselementName:sliceName
, to clearly indicate slice groups. Type slices only display the slice name (valueString
), not the original choice type element name (value[x]
), as the common element name prefix (value
) already indicates the slice group.Save dialog: select output serialization format (XML or JSON)
The Save dialogs now provide distinct file type selection options (XML or JSON). Saving an existing profile to a different serialization format will automatically create a separate copy; the active document will still refer to the original file with the original format.Note: when opening a Folder, the user can select a preferred serialization format (XML or JSON).
In case a project folder contains duplicates of the same profile in different serialization formats, then Forge will only resolve and display the version with the preferred format and ignore/exclude all other versions. Generally, it is recommended to use a single serialization format per project.Copy global mappings
The configuration option Copy global mappings is now enabled by default. This option affects newly created profiles. Enabled: initialize new profiles by copying global mappings over from selected base profile. Disabled: new profiles are initialized with empty global mappings.Serialize Logical Model to differential component
After some discussion within the community, we have changed the serialization of logical models in Forge, in order to harmonize the behavior of different kinds of StructureDefinitions. Previous Forge releases would serialize logical model constraints to theStructureDefinition.snapshot
component. As of this release, Forge will now serialize logical models to theStructureDefinition.differential
component, similar to regular resource profiles. This allows a FHIR API to generate (calculate) the snapshot component of the logical model, based on the author-specified constraints included in the differential component and by resolving any referenced external structures, again similar to regular resource profiles.Show package versions in descending order
The Package Manager shows a drop-down combobox with the available versions for each package. The package versions are now sorted in descending order, with the highest (latest) version on top.
Bug fixes:
Generate
Extension.url
element for Extension definitions
Fixed a bug that caused theExtension.url
element definition to be omitted from the generated differential component. Forge now always ensures that theExtension.url
element is in sync withStructureDefinition.url
and included in the output. When opening an existing extension definition, Forge will automatically fix missing/invalidExtension.url
element.
Note: this bug was caused by a subtle change in the FHIR spec that broke some existing application logic. Originally, in STU3, theExtension.url
element was defined with typeUri
. In FHIR R4, the Extension.url element type is now specified using special "compiler magic" extensions. (becauseExtension.url
is not a complex FHIR Uri, but a plain Uri string that does not allow extensions)Improve compliancy for type slicing in FHIR R4
FHIR R4 introduces new behavior and rules for type slicing. This version improves compliancy of type slicing according to new R4 rules. For more details, see the FHIR API change log above.Fix application freezes/hangs after Save
In some circumstances, the application could freeze/hang after saving a profile. This was caused by infinite recursion in broken cache invalidation logic. The relevant cache invalidation logic has been completely rewritten and optimized. Save operations more efficient, faster and no longer cause deadlocks.Fix constraint detection (yellow pen)
The logic to aggregate element constraints was not working properly. In some circumstances, this would prevent the yellow pen from showing and exclude elements from the output that should be included. For example, if a derived profile introduces constraints on child elements of a named slice that is inherited from the base profile, then Forge would incorrectly exclude the parent slice from the output. This has now been fixed. Named parent slices of constrained elements are always included in the output.Fix sdf-0
Fixed invariantsdf-0
for validating StructureDefinition.Name to also accept underscore characters_
.Fix eld-19
Fixed invarianteld-19
for validating element names (in logical models).
Blog
Visit our Firely website to read more about type slicing changes introduced in FHIR R4.
Feedback
We love to hear from you! If you want to submit a comment or report an issue, please don't hesitate to contact us at forge@fire.ly.
Happy profiling!