Hi all,
Sorry if this is more of a FHIR issue than a Medplum one, but since we are using Medplum as a base for our project I figured I'd give it a shot and ask here if someone has faced something similar.
We're trying to find a way to relate an Encounter and a DiagnosticReport to a ResearchStudy.
I have a few questions:
- From the [FHIR documentation](
https://build.fhir.org/researchstudy-definitions.html#ResearchStudy.result) it seems that the ResearchStudy itself could reference a list of DiagnosticReports as a "result", but I can't seem to find any reference to that in the [Medplum documentation](
https://www.medplum.com/docs/api/fhir/resources/researchstudy?section=schema). Do you know if this is implemented?
- We are even more interested to know if the other way around is possible - a DiagnosticReport referencing a ResearchStudy. I couldn't find any specific field for that in the docs, and I believe we'd have to use the "basedOn" field. But that doesn't allow a reference to a ResearchStudy directly. So we'd have to reference a CarePlan, which in turn references a PlanDefinition which is, then, referenced by the ResearchStudy. Do you know if there's any easier way to accomplish that?
- Related to the question above, if there's no easier way: I can see how to reference the PlanDefinition from the CarePlan on the [FHIR docs (using instantiatesCanonical)](
https://build.fhir.org/careplan-definitions.html#CarePlan.instantiatesCanonical), but I also couldn't find this relationship in the [Medplum docs](
https://www.medplum.com/docs/api/fhir/resources/careplan?section=schema). Do you know if this is possible at all?
Thank you all for your time and attention!
-# Pinging
@ya51n. so he can follow this as well