HistoryInstance

HistoryInstance is a Type Level Interaction to retrieve all of the change history for a particular resource.

HistoryInstance is implemented in Directory through GraphQL queries. The queries are implemented as resourceVersions, for example for the Practitioner resource this would be practitionerVersions. These queries expect a resource id and optional count (i.e. page size) and continuation token as inputs and will return all available history the given resource.

example

query HistoryInstanceExample ($practitionerId: String!) { practitionerVersions (id: $practitionerId) { edges { node { id name } } pageInfo { hasNextPage continuationToken } }

variables

{ "practitionerId": "b70af54e-6930-4eb1-abd4-e3477643ad94" }