Hello,
I created an observation resource and referenced the Patient resource with observation.subject. Then I copied it to Members Only - SIMPLIFIER.NET(Members Only - SIMPLIFIER.NET)for validation, but since it references the Patient/01 resource, it prompts me “Incomplete : Cannot resolve reference Patient/01”
due to Members Only - SIMPLIFIER.NET doesn’t storage resource, so I can’t storage patient/01 firstly.
I tried making the Patient/01 and observation resources into a bundle, but it still gives an error.
anyone can help me …
Hi @caoteng, thanks for using Simplifier. Let me see if I can help.
First a few answers to questions you did not ask
I had to make a few changes to be able to copy your resource and have it be valid JSON. This is likely due to pasting it here in this community forum, where regular double quotes were replaced by opening and closing double quotes and escaped double quotes were no longer escaped.
Perhaps share it as a code block next time, or as a Simplifier snippet like this: SIMPLIFIER.NET
Also, when hitting the validation button on that Snippet, you will see two major errors.
The value you have for category.coding.system seems to be some XML representation of part of a US Core CodeSystem? You’d expect the string value http://hl7.org/fhir/us/core/CodeSystem/us-core-observation-category there instead.
Because of the above, it does not recognise the category value as the mandatory value with system http://hl7.org/fhir/us/core/CodeSystem/us-core-observation-category and value clinical-test.
When we resolve those issues, we are only left with the one you mentioned (SIMPLIFIER.NET)
You have two options:
You can use Members Only - SIMPLIFIER.NET with a bundle, but the resolving in bundles works such (Bundle - FHIR v4.3.0) that you will need to provide a fullUrl to make sure that the reference resolves. See these snippets where it works:
SIMPLIFIER.NET - Where I gave both entries a fullUrl and kept the reference from the Observation relative
SIMPLIFIER.NET - Where I gave only the Patient entry a fullUrl and made the reference from the Observation absolute
You can use a Simplifier project for this. Place both the example patient and the example observation in a Simplifier project and make sure in the dependencies of your project you set a dependency on the hl7.fhir.us.core package of your choice.