Compatibility Validation on StructureDefinition
SAP Health Data Services for FHIR validates StructureDefinition to ensure only compatible changes are brought into the system.
When a system expects multiple versions of the same StructureDefinition and any incompatible changes are brought into the system that makes the system unresponsive. To avoid these issues, the following validations are enabled that raise an error during an incompatible change and ensure that the system state is maintained:
-
Validating the cardinality
Change in cardinality across the versions of constraint or specialization profiles is not allowed.
-
Validating the profile
-
The profile must be present in SAP Health Data Services for FHIR.
-
The profile of a data type used must be of the same type mentioned in a given data element. For example, if a data element type is Coding and profile points to the StructureDefinition of Coding then the type in the StructureDefinition must be Coding.
-
The addition of a new element as a mandatory field is not allowed.
-
-
Validating an extension
-
Change in the extension defined in the root level and value[x] is not allowed. The x denotes a FHIR data type or it can have nested extension fields.
-
Removal of slices defined in an extension is not allowed. If no slices are defined in an extension, then you cannot introduce new slices.
-
Change in data type at the resource type level or data type level is not allowed.
-
Change from the nested extension to a root level extension is not allowed.
-
The removal of the profile references from the profile field of the type element is not allowed.
-
The profiles being referenced from the profile field of the type element must be part of standard HL7 content.
-
The removal of code from the type element is not allowed.
-