Introduction

PKB accepts coded data sent via HL7 in ADT A28 and ADT A31 messages and from the EMIS extract service for allergies, diagnoses and medications.

All local codes may be sent as a 'code' and 'code system' pair. Where provided PKB displays the code and the coding system on screen as additional details with the allergy, diagnosis or medication. We will display 'code' value if no 'code system' provided, but if no 'code' provided then the 'code system' will not display.

All code systems are supported for receipt and display, including SNOMED CT, Read v2, and Dm+D.

Mapping to privacy labels

PKB maps each coded data to a pre-set default privacy label. Code to privacy mappings are currently available for both Read V2 codes and SNOMED CT mappings.

If you would like to send Read V2 codes to PKB for allergies and diagnoses:

If you would like to send SNOMED CT codes to PKB for allergies and diagnoses:

HL7 mappings

For HL7 messages with a Read V2 code PKB maps using the Read V2 codes mapping table. PKB does not yet have a SNOMED CT code mapping table available to view.

For unmapped codes, PKB defaults to the 'General Health' privacy label.

EMIS GP medical record mappings

Each EMIS data point has a Read V2 code, EMIS proprietary code or SNOMED CT code. PKB maps these to privacy labels using the Read V2 codes mapping table or the EMIS proprietary codes mapping table. PKB does not yet have a SNOMED CT code mapping table available to view.

If you have any feedback or suggestions on the mapping tables please contact the PKB team.

The principles we've followed in determining these mappings for diagnoses are:

All medications and allergies are assigned 'General' privacy label. The patient can modify this if preferred manually in PKB.

More information on how privacy labels are applied can be found on our developer wiki page.

Mapping to data type

This currently only applies to data received from the EMIS extract service. For HL7 the datatype is implied by the segment, for consistency we recommend matching the PKB datatype mappings.

HL7 mappings

PKB stores data received via HL7 according to the mappings specified in the HL7 message.

EMIS GP medical record mappings

For Read V2 codes PKB mapped datatype using these principles:

For EMIS proprietary codes PKB mapped using these principles

The Read V2 codes which are 'unmapped' and thus not currently processed or stored are those where EmisCodeCategoryDescription is one of: