Organisation Data Service : Pharmacy Headquarters

Data Description

Codes for Pharmacy Headquarters organisations (dispensary owners) in England. Each Pharmacy Headquarters can be linked to many Pharmacies/Dispensaries.

How Data is Maintained

Data for pharmacies/dispensaries is supplied by the NHS Business Services Authority (BSA); however, in order that the data be structured to fit with other organisation data that the ODS publish, parent HQ organisations are also required. It is the responsibility of the ODS to maintain this information.  

The NHS BSA relies on their contacts within Sub ICB Locations to inform them of updates and additions to Dispensaries within their area. This updating is carried out to the NHS BSA’s systems on an ongoing basis, with the BSA supplying updated files to ODS. The ODS team load the pharmacy/dispensary data from the BSA to a bespoke database, which is used to identify new dispensaries and either assign them to an existing HQ, or create new HQ codes when required. At present, only the Pharmacy HQ name is provided to ODS by the BSA to facilitate this matching/code creation.  

ODS Support Team accept updates to Pharmacy HQ codes from the organisations in question, but these are validated against information recorded on the Pharmaceutical Council website (if available, it only gives the ‘owner’ name).


Key Information - Roles, Code Formats and Data Source

Key Information
Geographic coverage
  • England
Primary Role IDRO181Primary Role NamePHARMACY HEADQUARTERS
Non Primary Role ID
RO268Non Primary Role Name
MEDICINE SUPPLIER
Raw Data SourceNHS Business Services Authority - Prescription ServiceUpdate FrequencyWeekly
Code Format
Organisation TypesCharacter PositionsComments
12345
Current FormatA-Z0-9A-Z0-9A-ZIssued after 1 
October 2020
Legacy FormatPA-Y, 0-9A-Y, 0-9A-Y, 0-9
Issued before 1 
October 2020

Permitted Relationships

Permitted Relationships - 'Pharmacy Headquarters' can be linked to (upward):

Source Primary Role ID

Relationship Type IdRelationship Type NameTarget Primary Role IDTarget Primary Role Name
RO181N/AN/AN/AN/A
Permitted Relationships - organisation types that are linked to a 'Pharmacy Headquarters' (downward/dependent):
Source Primary Role IDSource Primary Role NameRelationship Type IdRelationship Type NameTarget Primary Role IDTarget Primary Role Name
RO182PHARMACYRE6IS OPERATED BYRO181PHARMACY HEADQUARTER

Legacy .csv File Mapping

Click here for an explanation of the baseline data differences between legacy csv files and ODS Data Search and Export and the ODS APIs.

epharmacyhq.csv

Primary Role ID = RO181

Col

Data Item

Report Alias (legacy csv)

Notes

1

[OrganisationCode]

Organisation Code


2

[OrgName]

Name


3

 NULL

Column 3


4

 NULL

Column 4


5

[Address1]

Address Line 1


6

[Address2] 

Address Line 2


7

[Address3] 

Address Line 3


8

[Town]

Address Line 4


9

[County] 

Address Line 5

Change from legacy csv: As this is a legacy field, not populated for new addresses since 2018, this field within the ODS Data Search & Export tool (including pre defined reports) will not be populated.

Note that the value (where populated) is available via the FHIR Organization Resource in the address.district property.

10

[Postcode] 

Postcode


11

[LegalStartDate] 

Open Date


12

[LegalEndDate] 

Close Date


13

 NULL

Column 13


14

 NULL

Column 14


15

 NULL

Column 15


16

 NULL

Column 16


17

 NULL

Column 17


18

 [TelephoneNumber]

Contact Telephone Number


19

 NULL

Column 19


20

 NULL

Column 20


21

 NULL

Column 21


22

‘1’

Amended Record Indicator

Set to 1 for Report

23

 NULL

Column 23


24

 NULL

Column 24


25

 NULL

Column 25


26

 NULL

Column 26


27

 NULL

Column 27




Attachments:

Pharmacy HQ Data Process Flow (application/vnd.jgraph.mxfile)
Pharmacy HQ Data Process Flow.png (image/png)