Notice
- Important: This guidance is under active development by NHS England and content may be added or updated on a regular basis.
- This Implementation Guide is currently in Draft and SHOULD NOT be used for development or active implementation without express direction from the NHS England Genomics Unit.
How to construct Bundles
Definitions for bundles are included in GraphDefinitions NOTE: these GraphDefinitions are still in development and will be iterated on as further requirements for bundled resources are identified. However, please note the definitions are only indicative of the minimum resources expected in a request/report transaction, as the central service is expected to flexibly allow for additional information to be attached to payloads, such as clinical information for a test order. The Central Service is based on RESTful transactions rather than messages. Additional resources can be sent as long as they are not orphaned (not referenced from other resources in the transaction).
The bundles currently defined for the Genomic Medicine Service are the Genomic-Test-Request, which includes the original test order and associated information, and the Genomic-Test-Response, which is the final diagnostic report and associated information return by the genomic lab.
The use of messages within the Genomic Medicine Service, over a completely RESTful interface is currently under review.
It is intended that the central Genomic Order Management broker will support submission of Bundles of type "transaction"
only. Supported HTTP verbs will be limited to 'POST' and 'PUT' i.e. creation of updates of resources on the server. GET requests submitted as part of transaction will be ignored and, as per the guidelines provided on the Supported CRUD capability page, there are no plans to support DELETE operations on the central broker.
Request Bundle contents
Genetic Testing Request
The genetic testing information is exchanged using FHIR Transaction Bundle. This section shows the Bundle structure and the relationship between the resources which make up the Bundle.
The Bundle uses the following resource to carry the related business entity information:
Test Request Summary - This business entity is used to capture details of the test and supporting information from the requester and uses the ServiceRequest FHIR resource.
The data items and resources used in the Request Bundle are mapped from the Genomics Minimum Dataset (Clinical headings) and are defined in FHIR through the GraphDefinition-Genomics-Test-Order GraphDefinition.
The following diagram illustrates key fhir resources included within a Genetic Testing Request bundle, and how these resources are related.
Result Bundle contents
Genetic Testing Response
The genetic testing response information is exchanged using FHIR Transaction Bundle. This section shows the example Bundle structure and the relationship between the resources which make up the Bundle.
The Bundle uses the following resource to carry the related business entity information:
Test Request Response - This business entity is used to capture details of the genetic testing response and uses the DiagnosticReport FHIR resource.
The data items and resources used in the Response Bundle are mapped from the Genomics Reporting IG, published by the HL7 Clinical Genomics Working Group. This model is still under review for use in the UK.
The references from the Genomic Report profile have been represented within the GraphDefinition-Genomics-Test-Result GraphDefinition for querying/retrieving complete reports via single API calls.
Alignment of this model to the EU Laboratory Report Guidance, e.g. representation of test reports as DiagnosticReports or Documents within Genomic Order Management, is still pending.
The following diagram identifies key fhir resources included within a National Diagnostics - Genetic Testing Response bundle, and how these resources are related.
Bundle referencing
Resources in Bundles SHOULD NOT use contained resources.
References to other resources in the Bundle SHOULD use the fullUrl uuid, e.g.
"reference": "urn:uuid:66c519dd-423f-4238-89c8-91c5be52f330"
References to other resources not included in the Bundle SHOULD use the path for the resource, including the uuid, if this can be found on the GMS central broker (the central broker will replace a urn:uuid with its own ID on create, these will be returned to clients in responses) e.g.
"reference": "Specimen/840d075e-0480-4134-ae51-27f572731cc8"
If the resource is hosted on another NHS service, for example patient records on PDS, these should be referenced by identifier using the appropriate system for the identifier, e.g.
"reference": {
"identifier": {
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9999999999"
}
}
If a resource is contained on another system, outside NHS central services, this SHOULD be referenced with an absolute url. The URL SHALL be resolvable (though these links will not be validated/followed by the central broker) and preferably return a FHIR resource of the appropriate type e.g.
"reference": "https://www.christie.nhs.uk/ehr/LabOrder123456"
Specific instances where each of the above reference types are allowed are defined within the Profiles pages. NOTE: The central broker will not be supporting references by identifier where the resource exists on the server. In this case, the client SHOULD retrieve the resource via a search on identifier to obtain the logical ID for any resource level interactions.
All profiles within transaction bundles should reference each other i.e. none should be orphaned.
Any additional resources not linked from another resource in a transaction bundle SHALL be excluded, or sent in a separate transaction. The expected list of resources and cardinalities in a typical test order or report transaction are detailed in GraphDefinitions.
It is expected the central broker will check and maintain referential integrity, where these references point to resources stored on the central broker. If a request fails this check, the transaction will fail with the appropriate HTTP error code, e.g. 422. The response will be a 'transaction-response' bundle, including an OperationOutcome FHIR resource for each resource submitted in the transaction Bundle with diagnostics for each. Resources passing validation will return 200 but will not result in resources being created on the server if the transaction contains an error (the transaction will be rejected as a whole).
Conditional Creates/Updates
While not supported for the alpha, it is expected the central broker will support conditional create or update operations (as defined in transaction request
objects). This will allow clients to only create resources, such as Patient/PractitionerRole, where no resource containing their identifier already exists. Responses where conditional criteria are not satisfied are still under discussion as of the time of publication.
Resource Reference (Duo/Trio Tests)
When the test type is Duo or Trio there will usually be specimens from more than one patient. Due to the way references work within FHIR, the Task resource will reference the Specimen resources for all participants within the “input” element, and each specimen will reference the patient it relates to using the “subject” element.