kids-first / kf-ui-fhir-data-dashboard

💡📊 Prototype FHIR data dashboard - what's in my FHIR server?
Apache License 2.0
7 stars 2 forks source link

View resources linked to particular resource #18

Closed znatty22 closed 4 years ago

znatty22 commented 4 years ago

I think it might be useful for a user to view resources linked resources (resources which point to it). This would make use of FHIR search API's chained resource queries.

What do you think?

For example clicking on the blue link button below: image

Would allow the user to see a table like this:

Base Type Profile Count
Observation PhenotypicFeature 204
Specimen None 2
Condition Diagnosis 1

Clicking one of the rows above ^ would then result in a resource list view, similar to what we already display when a user clicks on a card from the home page.

znatty22 commented 4 years ago

When this feature is implemented it will really help us test our use of references. For example, right now there's a question of what goes in the reference:

https://github.com/kids-first/kf-model-fhir/pull/78#discussion_r382604225

abgeorge7 commented 4 years ago

@znatty22 In the table above, does "count" refer to the total number of resources of that type or the number of resources of that type that reference the given ID?

znatty22 commented 4 years ago

@abgeorge7 the latter - total num of resources of that type that reference the given ID