Hi all,
tldr; is it possible to pass the MHD server tests in the FHIR toolkit when using an XDS back-end?We have implemented an MHD service using an XDS back-end which we want to test during the Connectathon next week. As part of preparatory testing, I use the NIST FHIR toolkit to run some tests.
The MHD server tests (both comprehensive and minimal) start with the following steps:
- Post a Bundle (with a DocumentManifest, DocumentReference, and Binary). The server transforms this to XDS format and sends it to an XDS repository as an ITI-41 message (ProvideAndRegisterDocumentSet).
- Read the DocumentReference which was included in the Bundle. The server queries the XDS repository for the DocumentEntry (XDS), transforms it back to a DocumentReference and returns this resource.
The test validation expects the value of `subject.reference` to equal the submitted value (which is a url pointing to the toolkit). However, in XDS the patient information cannot be expressed as a reference to a FHIR Patient resource. Instead, the DocumentReference in the server response has a contained Patient resource. This leads to the following error in the test:
Eval expression: DocumentReference.subject.reference
Expected http://localhost:9760/asbestos/proxy/default__default/Patient/5Operator is equals
Found #wa3W82LXWpql
Because "FHIR systems are not obligated to store and return data as it was received" (
http://hl7.org/fhir/R4/updates.html), I think this validation is too simple (resolving the reference and validate based on patient identifier would be better, although more complicated). Anyway I don't see how to pass the test without some form of a FHIR-native repository/registry. Is it possible to pass using an XDS back-end? Has anyone done this before?
kind regards,
Ernst Lawende