Code Samples
Have currently have 4 code samples, written in c# using .NET Core 3.1 and .NET Core 6 depending on the sample. Each sample is not intended to provide production ready code but to assist with getting started with authentication and connectivity to health data.
All samples can be found in the integration-samples repository.
MyBP (Patient Application)
Built using .NET Core 3.1.
MyBP is an example of building a simple patient focused application that allows any user to login, submit and query their own blood pressure samples. The sample shows an example of authentication as well as connectivity to our health data API.
Clinician (Agent Application)
Built using .NET Core 3.1.
The Clinician application shows how to retrieve data from another individual after you have agency consent granted for them. As part of this example the agency redirect flow is used that directs the agent to the identity service to initiate agency consent, we also have an API first implementation for this, details can be found in the OpenAPI specification documents.
Clinician-Org (Agent Application)
Built using .NET Core 3.1.
The Clinician-Org application shows a clinician focussed application that interfaces with the agency API to submit a request to access an individuals health data either on behalf on you (the authenticated user) or an organisation to which you are a member. The application shows usage of the organisations API to query the organisations for an authenticated user.
Client credentials flow (Agent Application)
Built using .NET Core 6
The Client Credentials flow application shows a clinician focussed application that interfaces with the agency API to submit a request to access an individuals health data on behalf of an organisation that has been enabled for the client.