I am new around with FHIR and hope this is the right place to ask and someone knows what is my problem.
I intend to create a project on https://simplifier.net/. Yet, I am not able to fetch resources from HAPI-based FHIR server. I use the GET request URL from the server (e.g., https://fhir.example.edu/hapi-fhir-jpaserver/fhir/Patient?_pretty=true) but the error pops up is:
Starting import …
Could not upload file/zip due to a technical error: Type checking the data: Encountered unknown element ‘source’ at location ‘Bundle.entry.resource.meta.source’ while parsing
I’m not sure what simplifier has to do with this, but it looks like a version mis-match error. What version is HAPI configured for, and what version is the bundle?
Well, I try to fetch from a software: HAPI FHIR Server - 4.2.0 & Server: HAPI FHIR R4 Server.
I understand that from your Simplifier.net project you’ve used Upload > Fetch from URL to try and get a bundle of resources into your project from your local HAPI FHIR R4 Server.
Can you confirm that the Simplifier project you are importing to is also configured as an R4 project?
And can you try the same with http://hapi.fhir.org/baseR4/Patient or http://hapi.fhir.org/baseR4/StructureDefinition/1096651/_history/1? Because both work nicely for me, importing 20 patient instances or 1 patient profile respectively.
As Grahame suggests, please check whether the data in your bundle (https://fhir.example.edu/hapi-fhir-jpaserver/fhir/Patient) is valid and really FHIR R4 data, or whether someone has uploaded STU3 resources to an R4 server.
I guess calling
$validate on each resource in the bundle will do it, e.g. http://hapi.fhir.org/baseR4/Patient/50744/$validate.
Thank you Ward and Grahame,
Problem was solved contacting to their team. As Grahame suggested, the issue was on the version of hapi server and Simiplifier. I had missed matching the project on Simplifier to R4 version.