Issues Related to FHIR Validations

Find solutions for FHIR validation errors related to referential integrity, StructureDefinition, CapabilityStatement, and search parameters.

Referential Integrity

If create, update, delete, or bundle interactions fail, check the error. For more information, see Validations for Referential Integrity.

  • Create or Update Interaction Failed

    Solution: Check the reference to the resource. If there's a reference to a resource that doesn't exist, the request fails.

  • Delete Interaction Failed

    Solution: Check the reference to the resource. If there's a reference, the request fails.

  • Bundle Interaction Failed

    Solution: Check the reference to the resource. If there's a reference to a resource that doesn't exist, the request fails.

  • Invalid URL

    Solution: Enter a valid URL in the reference element to perform the interaction.

  • Reference Field Does Not Exist

    Solution: The reference field must exist for a given relative or absolute path, or canonical URL to perform the interaction.

StructureDefinition

If you face issues with the StructureDefinition, check the error in the response body. For more information, see Compatibility Validation on StructureDefinition.

CapabilityStatement

If you face issues with the CapabilityStatement, check the error in the response body. For more information, see Validations Based on CapabilityStatement.

  • Invalid Operation

    Solution: The operation must be listed in the operation section of the CapabilityStatement. For example, the $lookup operation is valid only if it's listed in the operation section of the CapabilityStatement.

    • Only supported interactions can be performed at a system level.

    • Only supported interactions can be performed at a resource level.

  • Invalid Search parameter

    Solution: The search parameter must be listed in the resource. For example, search on a field f is valid only if f is listed as a SearchParameter in that resource. The search parameter name and data types must be valid.

  • Invalid Resource Type

    Solution: The resource type must be listed in the CapabilityStatement.

    For more information, see Service Endpoint.

SearchParameter

If you face issues with the search parameter, check the error in the response body. For the supported prefixes, modifiers, and parameter values for each search parameter type, see Validations for SearchParameter Types During Search Interactions.