GP Connect Data Model | FHIR STU3 Representation

This version is in draft and is currently being migrated from the GP Connect Access Record: Structured specification

FHIR library

There are benefits to using an existing FHIR® library.

Using an existing FHIR library

GP Connect strongly advises suppliers to use an existing FHIR library as it will reduce development time and result in more robust implementations of the GP Connect API. Benefits of using an existing FHIR library for the implementation of both the consumer and provider side of a GP Connect API are:

  • Reduced complexity - using a library can reduce the quantity of boilerplate code required to configure provider endpoints, structure a request and validate consumed resources. This will help keep the code base smaller, and make it easier to work on and maintain.
  • Quicker development - a library gives developers the standard FHIR data types, FHIR resources and some validation of the FHIR resources, allowing developers to focus on data transformation and business rules.
  • Solution resilience - using a tried and tested implementation of the FHIR resources and data types should result in the implementation being more resilient to receiving valid but unexpected elements within FHIR resources. Many libraries will also include some level of validation to aid in ensuring that only valid data enters the system.

What libraries to use?

There is an ever-increasing list of open source FHIR libraries appearing on the web, written for a wide variety of languages, such as Java, C#.NET, JavaScript and PHP. As a starting point, the Health Level Seven (HL7®) International standards body maintains a list of open source FHIR implementations on its Wiki.

Please refer to the Spine Core FHIR API Framework for details of open source FHIR client libraries and open source FHIR reference servers available for use.

Important: The FHIR clients above allow serialisation in both JSON and XML; however, consumers planning their development should read the following information before setting the serialisation format (JSON or XML) in their chosen FHIR library.
back to top