SearchParameter Resource Validations

SAP Health Data Services for FHIR validates the SearchParameter resource during create or update interactions. This reference describes the validation rules applied to SearchParameter resources.

SAP Health Data Services for FHIR validates the SearchParameter resource during create or update interactions:

  • Supported SearchParameter types are date, string, uri, token, number, and reference.

  • The code field in the SearchParameter instance must be a unique value for a given resource type or multiple resource types.

  • The expression field defined in the SearchParameter instance with or without extensions must be valid for a given resource type.

  • The SearchParameter type defined in the SearchParameter instance must support the data type of the resolved element:

    • If the type is uri, then the target data type must be uri or canonical.

    • If the type is reference, then the target data type must be reference or canonical.

    • If the type is string, then the target data type must be string.

    • If the type is date, then the target data type must be date, dateTime, Period, or instant.

    • If the type is number, then the target data type must be decimal or integer.

    • If the type is token, then the target data type must be boolean, Identifier, code, Coding, CodeableConcept, id, ContactPoint, string, or uri.

  • Multiple expressions in the SearchParameter instance must point to the same field and data type of your choice.