Skip to content

support resources/<resourceType>/profiles properties from $validation when mode is set #2905

@lmsurpre

Description

@lmsurpre

Is your feature request related to a problem? Please describe.
While validating #2873 and #2834 I realized that we only exercise these rules during ingestion and not validation.

The $validate endpoint serves multiple use cases:

  1. exposes general profile validation (the default)
  2. allows clients to ask if a given resource is valid for this server

The input parameter that controls this switch is called mode but I think we mostly ignore that today.

Describe the solution you'd like
When $validate is called with a mode of create or update, we should make use of the applicable fhir-server-config fhirServer/resources/<resourceType>/profiles config properties so that the response will reflect the expected result of an attempted create/update request with this same content.

Describe alternatives you've considered

Acceptance Criteria

  1. GIVEN [a precondition]
    AND [another precondition]
    WHEN [test step]
    AND [test step]
    THEN [verification step]
    AND [verification step]

Additional context

Metadata

Metadata

Labels

enhancementNew feature or requestprofilingshowcaseUsed to Identify End-of-Sprint Demos

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions