-
Notifications
You must be signed in to change notification settings - Fork 345
Breaking changes in 5.0
Ewout Kramer edited this page Nov 17, 2022
·
35 revisions
- The protected constructor of abstract class
BaseFhirClient
requires aModelInspector
andfhirVersion
. The nullable parameterIStructureDefinitionSummaryProvider
has been removed. - The static methods
BundleToEntryRequest.ToEntryRequest
andBundleToEntryRequest.ToEntryRequestAsync
require aModelInspector
andfhirVersion
- The static method
TypedEntryResponseToBundle.ToBundleEntry
requires aModelInspector
. - The class
FhirClient
is not a partial class anymore. - The default parameter
IStructureDefinitionSummaryProvider provider
of all the constructors ofFhirClient
have been removed. - Obsolete members of
FhirClient
have been removed (use theFhirClient.Settings
property or the settings argument in the constructor instead):VerifyFhirVersion
PreferredFormat
UseFormatParam
Timeout
ReturnFullResource
PreferredReturn
PreferredParameterHandling
PreferCompressedResponses
CompressRequestBody
ParserSettings
-
OnBeforeRequest
: add aHttpClientEventHandler
or anotherHttpMessageHandler
to the constructor to use this functionality -
OnAfterResponseRequest
: add aHttpClientEventHandler
or anotherHttpMessageHandler
to the constructor to use this functionality
- Obsolete class
LegacyFhirClient
has been removed. - The constructor of classes
BaseFhirParser
andBaseFhirSerializer
requires aModelInspector
. - The protected methods
BaseFhirParser.MakeElementStack
are not static anymore. -
ModelInfo.ConformanceResources
andModelInfo.ConformanceResourceTypes
have been removed. -
ModelInfo.FhirCoreProfileBaseUri
has been removed. Use nowCanonical.FHIR_CORE_PROFILE_BASE_URI
. - Obsolete members
ModelInfo.IsProfiledQuantity
andModelInfoExtensions.GetCollectionName
have been removed. - Partial class `ModelInfo' is not static anymore.
-
ValidationSettings.XsdSchemaCollection
is now of typeXmlSchemaSet
instead ofSchemaCollection
. -
SchemaCollection(IArtifactSource)
is marked as obsolete, and the constructor will now get the schema from the embedded resource, disregarding theIArtifactSource
argument completely. - Interface
IConformanceSource
is now derived fromICommonConformanceSource
. AndIConformanceSource.FindCodeSystemByValueSet(string)
has been moved to this new interfaceICommonConformanceSource
. - Obsolete extension methods of
ResourceResolverExtensions
has been removed:FindExtensionDefinition
,FindStructureDefinition
,FindStructureDefinitionForCoreType
andFindValueSet
. - The constructor of
ProfileAssertion
andProfilePreprocessor
require now aModelInspector
as a parameter. - The public method of
ProfileAssertion.SetDeclaredType
has been removed. - The overloaded methods
Validate
of the classValidator
with the parameterITypedElement
requires now aModelInspector
as a parameter. - The public method of
Validator.IsBindeableFhirType
has been removed. - The type of property
TranslateParameters.ConceptMap
has been changed fromConceptMap
to `Resource. - The type of the parameter
conceptMap
inTranslateParameters
has been changed fromConceptMap
to `Resource. - The public method
ElementDefinitionExtensions.PrimaryTypeCode
has been changed toGetTypeCode()
and the return type is nowstring?
. - The
FindConceptMaps()
methods inFhirPackageSource
andCommonFhirPackageSource
will now return an empty list, not null when no items are found (this was the original intention of the interface, but was implemented incorrrectly).
- The type of
CapabilityStatement.Type
has been changed tostring?
(wasResourceType?
) - The type of
CapabilityStatement.TypeElement
has been changed toCode
(wasCode<Hl7.Fhir.Model.ResourceType>
) - The
AllowedTypes
attribute has been removed from the following properties:ElementDefinition.Value
ElementDefinition.DefaultValue
ElementDefinition.Pattern
ElementDefinition.Fixed
- Enum
ElementDefinition.ConstraintSeverity
has been moved toTemplate-Bindings.cs
. - Description of
Money
values has been corrected (diacritics)
- Enum
EvidenceVariable.CharacteristicCombination
has been renamed toEvidenceVariable.CharacteristicCombinationCode
. -
EvidenceVariable.CharacteristicCombination_
has been renamed toEvidenceVariable.CharacteristicCombination
.
The following classes/interfaces have been moved to the common assembly Hl7.Fhir.Support.Poco
: