Skip to content

Commit

Permalink
Merge pull request #143 from FirelyTeam/clarify-validation-rules
Browse files Browse the repository at this point in the history
Clarify that Bundles are supported and meta.profile is respected
  • Loading branch information
alexzautke committed Jan 20, 2021
2 parents e33bd5d + 94f5fcc commit 0eb9f6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions firelyserver/features/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ Validate on the system level

There are two ways of calling $validate:

#. With a Resource as body and optionally a profile parameter on the url.
#. With a Resource or a Bundle of resources as body, and optionally, a profile parameter on the url.
#. With a Parameters resource as body, having

* a parameter element with the Resource to validate in the resource parameter;
* (optionally) the profile to validate against in the profile parameter

In both cases the request must have a Content-Type header matching the format of the body (application/fhir+json or application/fhir+xml)
In both cases the request must have a Content-Type header matching the format of the body (``application/fhir+json`` or ``application/fhir+xml``).

If you do not specify a profile parameter, Firely Server will validate the Resource against the base profile from the FHIR Specification.
If you do not specify a profile parameter, Firely Server will validate the Resource against any profiles mentioned in ``meta.profile`` as well as the base profile from the FHIR Specification.

If you call $validate on the system level, Firely Server will make no assumptions about the ResourceType of the Resource to validate.

Expand Down Expand Up @@ -70,7 +70,7 @@ This time you can only use the (optional) profile parameter on the url to specif
Precondition
------------

Firely Server must be aware of all the StructureDefinitions referenced directly or indirectly by a profile. Refer to the :ref:`conformance` for more information.
Firely Server must be aware of all the StructureDefinitions referenced directly via parameter or indirectly by a profile in ``meta.profile``. Refer to the :ref:`conformance` for more information.

.. _feature_validation_limitations:

Expand Down

0 comments on commit 0eb9f6c

Please sign in to comment.