FHIR Chat · Validation issues with Bundle.type = document (STU3) · implementers

Stream: implementers

Topic: Validation issues with Bundle.type = document (STU3)


view this post on Zulip Rui Leite (Oct 04 2019 at 08:38):

Good morning,

We found an issue when validating a bundle message, with type=document. (we tried 2 validators: Public HAPI STU3 Server and Grahames STU3 server)

All the references inside the Composition resource (1st entry) are not validated(we have several references to Practitioner Resources, and those resources do not have any entry).

We expected the Validator to return error, because there weren't any resources referenced.
But instead we've got just warnings about other stuff.

Is this a bug or are we doing something wrong?

Thanks in Advance,
Rui

view this post on Zulip Grahame Grieve (Oct 04 2019 at 10:31):

can you provide an example I can add to the validator tests?

view this post on Zulip Rui Leite (Oct 04 2019 at 16:25):

Sure, @Grahame Grieve

Some notes: We had to add the resource Patient for the Composition.subject to pass through the validator.

On a side note:
We have some doubts on the FHIR specification about the Composition Resource and the Composition.section.emptyReason:

+ A section must at least one of text, entries, or sub-sections
+ A section can only have an emptyReason if it is empty

The definition of "empty" can be vague because:
Definition: If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.
The Composition.section can't have entries(?):
Composition.section.entry: If there are no entries in the list, an emptyReason SHOULD be provided.

A section with emptyReason has no sub-sections(?).

So a Composition.section.text SHALL exist?

Thanks.
Here's the message:
Bundle.document.json

view this post on Zulip Grahame Grieve (Oct 25 2019 at 02:22):

ok fixed next release - 68 errors from that bundle now.

view this post on Zulip Grahame Grieve (Oct 25 2019 at 02:24):

"A section can only have an emptyReason if it is empty" - that is, if there is no entries. I'm not sure about sub-sections. As you say, typically there will be a narative explaining the empty reason. You could create a task to clarify this

view this post on Zulip Patrick Werner (Aug 18 2020 at 09:38):

Just came up in the german stream: cmp-1 on composition is: text.exists() or entry.exists() or section.exists() which doesn't work if it is empty with an empty reason. So cmp-1 should be: text.exists() or entry.exists() or section.exists() or emptyReason.exists()

view this post on Zulip Patrick Werner (Aug 18 2020 at 09:38):

right?

view this post on Zulip Grahame Grieve (Aug 18 2020 at 11:23):

I agree


Last updated: Apr 12 2022 at 19:14 UTC