This wiki has undergone a migration to Confluence found Here
<meta name="googlebot" content="noindex">

Retreival of Resource Graphs FHIR Infrastructure Proposal

From HL7Wiki
Revision as of 11:36, 23 September 2013 by Lmckenzi (talk | contribs)
Jump to navigation Jump to search

Summary

Add a mechanism to FHIR that allows one to query for specific sets of related resources. The return structure should be a bundle of resources.

Examples:

  • For patient/@1 , give me a bundle with all resources that reference (inclusive of any references in extensions) patient/@1. Some of these resources are associated with the wrong patient, so I need to move them to the correct patient.
    • Query parameters: resource id, potentially a timeframe of creation time or last update
    • Rene spronk I tried doing this client side, but that's simply not doable in a production environment for performance reasons.
    • Note that (once we have such functionality) it could be used recursively: e.g. from patient/@1 to (observation/@5 and observation/@7), and from observation/@7 to xyzresource/@8.
  • For patient/@1 (which has status active=false), give me a bundle with all resources that reference (inclusive of any references in extensions) patient/@1. This so I can update all references to patient/@1 to the 'active version thereof' which is patient/@2.

Discussion

  • Grahame: Did you look at the _include parameter see here ? I think you want a similar parameter that works backwards instead of forwards, right?
  • Rene spronk Hadn't seen that option.. yes, a _reverseinclude=* option (or whatever name seems appropriate) would have the intended effect. _reverseinclude would (if similar to include) also allow for inclusion of specific resource types that have a reference to a resource - neat feature.
  • Grahame: discussion in committee. I was thinking of something like _include-origin=[x] where [x] would be * or a comma-delimited list of the resource types of interest