Introduction

Retail pharmacies in developing countries are primary sources of medication and healthcare advice for community residents [1,2,3,4]. Previous studies have shown that the widespread use of retail pharmacies may be attributed to a series of factors, such as accessibility, suitability, prompt service delivery, flexibility in payment terms, flexible purchasing options and operational hours [5,6,7,8,9]. In China, retail pharmacies are a common channel for obtaining drugs and play an essential role in residents’ daily medication and common disease treatment [10,11,12]. Since 2017, the growth rate of drug sales in retail pharmacies has been higher than that in hospitals, reaching 491.6 billion in 2021, accounting for approximately 27% of the total drug retail market. Besides dispensing medicines, retail pharmacies also offer a wide spectrum of services, including patient counselling, screening tests, immunization services, wellness programmes, and education programmes [13,14,15,16].

Retail pharmacies primarily operate in an independent retail market and are not generally considered to be part of the larger health system [17]. Therefore, despite the potential of retail pharmacies in the fields of disease treatment and health consultation has been widely recognized, they are often overlooked in the relevant national health strategies, policies and regulations. In developed countries, the distribution of retail pharmacies is primarily regulated by market forces with minimal government intervention, which may lead to two main issues: (1) Due to low population density and a lack of facilities and pharmacists, there are few retail pharmacies in rural and remote areas, resulting in insufficient access to medication services for low-income vulnerable groups living in these areas [18]. Studies have shown that pharmacy deserts are more common in remote and rural areas than elsewhere, leading to a severe shortage of pharmaceutical services in these areas [19, 20]. (2) The distribution of retail pharmacies in areas with high population density is usually dense, and relying solely on market regulation may trigger vicious competition [21]. Previous studies have shown that retail pharmacies that rely solely on market regulation may lead to monopolies and malicious competition, which can easily lead to product quality issues [22, 23] and even to illegal activities such as manufacturing and selling counterfeit and substandard drugs and illegal sales of addictive prescription drugs. Therefore, the introduction of government regulations is indispensable for effectively regulating and supervising the drug retail market, which would be helpful for significantly improving the service of retail pharmacies and the accessibility of medication.

Currently, different countries have different government regulatory measures for retail pharmacies, mainly focusing on admission approval and layout planning, as well as whether qualified pharmacies are included in medical insurance designated pharmacies (refer to pharmacies that has signed service agreement with medical insurance agency, where drugs purchase can be settled through medical insurance accounts). In terms of admission approval and layout planning for retail pharmacies, government departments in countries with stricter regulations usually formulate strict measures to restrict the entry of newly opened pharmacies. For example, to operate in South Africa, a pharmacy must obtain a licence from the National Department of Health. The entry criteria are primarily distance from other dispensing services (not within 500 m) and density (at most 2 pharmacies per 10 000 residents, with exceptions for shopping malls and rural towns) [24]. In Spain and Italy, the State plans the opening of new pharmacies considering population criteria and the distance between them. In France and Belgium, only population criteria are used; in Austria, population criteria and distances between pharmacies are applied [25]. In countries with a more liberal approach, such as the United Kingdom and the Netherlands, there are no restrictions on the opening of pharmacies [26]. For the insurance inclusion measures for retail pharmacies, the national medical insurance department often contracts with qualified community pharmacies to dispense medicines to outpatients [20]. The purpose of the abovementioned government intervention measures is to improve the accessibility of drugs to residents. However, if the government intervenes excessively, this may affect market vitality and be detrimental to the development of retail pharmacies. Therefore, how to appropriately leverage the regulatory role of the government and guide retail pharmacies to locate in more needed and efficient regions is an important issue that urgently needs to be addressed.

The main contents of the study are as follows: (1) we displayed the distribution of retail pharmacies and medical insurance designated pharmacies in basic pharmaceutical service circles within 15-minute walking distance based on population density, and pinpointed those underserved service circles to provide reference for subsequent distribution planning. (2) Considering the population served and the operational status of pharmacies, we developed a method to calculate the appropriate distance intervals and optimal scale of retail pharmacies in different types of areas. (3) As for those underserved service circles, we design a supplementation method for retail pharmacies and designated medical insurance pharmacies. Our research will be benefit to assist government in planning the spatial layout of retail pharmacies in the next stage, and provide guidance for those new retail pharmacies to set reasonable spacing and scale.

Methods

Data sources

All the data came from the relevant government departments in Shanghai in 2018. The detailed information is as follows:

  • The population distribution data included the county, street, neighborhood committee, building ID and name, and building longitude and latitude where the population resides. The data came from the Population Management Office of the Public Security Bureau.

  • The road traffic network data included all highways, expressways, main roads, secondary roads, branch roads, and internal roads. The data came from the Institute of Surveying and Mapping.

  • The administrative division data included administrative boundary maps of districts and counties, as well as administrative boundary maps of townships and streets. The data came from the Institute of Surveying and Mapping.

  • The retail pharmacy data included basic information about the retail pharmacies, such as name and detailed address, and business information about the retail pharmacies, such as opening date, business nature, building floorage, number of pharmacists, business scope, medical insurance designated pharmacies or not, etc. The data came from the Municipal Commission of Commerce and the Medical Insurance Bureau.

Analysis procedures

Step 1: Mapping pharmacies and population

We used ArcGIS 10.3 software to map the retail pharmacies, population, road network and administrative areas. The above operations can be achieved through the steps “menu → file → add data → add XY data” in the geographic information system.

Step 2: Dividing the basic pharmaceutical service circles

A basic pharmaceutical service circle is the minimum planning unit in which residents can access pharmaceutical services within a specific walking distance. According to the standards of the World Health Organization (WHO), we divided the planning area into grids of the same size with a radius of 15-minute walking distance.

Step 3: Establish connections between residents, retail pharmacies and basic pharmaceutical service circles

Retail pharmacies were divided into medical insurance designated pharmacies and non-designated pharmacies based on whether they were contracted with medical insurance department. We used the spatial connectivity tool of ArcGIS to establish spatial connections between residents, retail pharmacies and basic pharmaceutical service circles, and calculated the number of residents, retail pharmacies, and medical insurance designated pharmacies in each service circle.

Step 4: Analyse the distribution of retail pharmacies in basic pharmaceutical service circles

We analysed the distribution of retail pharmacies and medical insurance designated pharmacies in basic pharmaceutical service circles based on population density: (1) In combination with the number of retail pharmacies and the population density, we analysed the density of pharmacies in each service circle and identified grids with insufficient pharmaceutical services. (2) Based on the medical insurance coverage information of retail pharmacies, we identified the distribution of medical insurance designated pharmacies. The above operations can be achieved through the steps “ArcToolbox → analysis tools → overlay → spatial join” in ArcGIS.

Step 5: Calculate the appropriate spacing and size of retail pharmacies

(1) Calculate the appropriate spacing of retail pharmacies. Assuming that the distance between retail pharmacies is A (distance restrictions between pharmacies), we calculated the maximum number of retail pharmacies that can be accommodated in each basic pharmaceutical service circle under uniform distribution. Combined with the service population standards of each pharmacy, the maximum number of people that can be served in each pharmaceutical service circle was calculated. If the population in the service circle exceeds this value, the spacing restrictions for pharmacies should be relaxed. (2) Calculate the appropriate size of retail pharmacies. We selected pharmaceutical service circles with a reasonable distribution of retail pharmacies and calculated the average size of retail pharmacies with stable operation for more than two years and no violation records as a reference value for the appropriate size of retail pharmacies. The calculation steps were as follows: first, we selected those service circles with sufficient pharmaceutical services based on step four; Second, we identified retail pharmacies that had survived well and were in a healthy competition within these selected service circles; Third, we calculated the average size of pharmacies that met the above requirements as the reference value for the appropriate size of retail pharmacies.

Step 6: Determine the supplementary methods for retail pharmacies and medical insurance designated pharmacies

Based on step 4, we identified basic pharmaceutical service circles with insufficient retail pharmacies and then calculated the number of pharmacies that needed to be added based on the service population standards of retail pharmacies. In addition, we designed supplementary methods for accessing medical insurance designated pharmacies according to the steps in Fig. 1.

Fig. 1
figure 1

Supplementary flowchart of medical insurance designated pharmacies

Statistical analysis

Adjusted two-step floating catchment area (2SFCA) method

We adjusted the traditional two-step floating catchment area (2SFCA) method to analyze the accessibility of retail pharmacies as the basis for planning the spatial layout of retail pharmacies. The specific steps are as follows: First, we took the location of any retail pharmacy (j) as the center and established a search area with a radius equal to a 15-minute walking distance (d0) from this pharmacy. We checked whether the service area of the pharmacy covered all residential areas within this region. Second, we took each basic pharmaceutical service circle (i) as the basic unit and search for all retail pharmacies within this region. We then checked whether the service population of these pharmacies meets the potential demand within each basic pharmaceutical service circle.

Spatial autocorrelation analysis

We used spatial autocorrelation tests to calculate the Global Moran’s I to determine whether there was clustering of retail pharmacies in the spatial distribution. The Moran’s I value ranges from − 1 to 1. The values that are closer to 1 indicate strong positive spatial autocorrelation, revealing clustered parameters. The values that are close to -1 show that the pattern of the parameter is dispersed. If the Moran’s I value is 0, it shows that the parameter is random and hence there is no spatial correlation in the distribution of the measured parameters. The calculation formula is as follows:

$$\:I=\frac{n\sum_{i=1}^{n}\sum_{j=1}^{n}{W}_{ij}({x}_{i}-\overline{x})({x}_{j}-\overline{x})}{\sum_{i=1}^{n}\sum_{j=1}^{n}{W}_{ij}\sum_{i=1}^{n}{({x}_{i}-\overline{x})}^2}$$

where 𝑛 is the number of spatial units, \(\:{x}_{i}\:\)is the accessibility level of spatial unit 𝑖; and \(\:{W}_{ij}\) is the spatial weight matrix, representing the spatial proximity between two spatial units.

We also used the local spatial autocorrelation method to get the local Moran’s I to showed the differences in retail pharmacy distribution between different spatial units and their neighboring units. The expression is as follows:

$$\:I=\frac{n({x}_{i}-\overline{x})\sum_{j=1}^{n}{W}_{ij}({x}_{j}-\overline{x})}{\sum_{i}{({x}_{i}-\overline{x})}^2}$$

Results

Spatial distribution of retail pharmacies

There were 3009 retail pharmacies in Shanghai, distributed in 209 subdistricts and towns, with an average of 18 pharmacies per subdistrict or town, serving an average of 6412 residents per retail pharmacy. The distribution of retail pharmacies exhibited the following characteristics: (1) The density of pharmacies in the central urban area was relatively high, with more than 2 pharmacies per square kilometer, while the density of pharmacies in the suburbs was relatively low, with fewer than one pharmacy per square kilometer (see Fig. 2). (2) Among the 3009 retail pharmacies, 714 were medical insurance designated pharmacies (approximately 23.73%), of which 208 were in urban areas, and 506 were in suburban areas. In terms of the coverage rate, 9.01% of the central urban area was not covered by medical insurance designated pharmacies within a 15-minute walking distance, while 79.03% of the suburban area was not covered (see appendix 1). (3) The density of pharmacies around commercial centers and large-scale medical institutions was high (see appendix 2).

Fig. 2
figure 2

Distribution of retail pharmacies in Shanghai

Grid division of the basic pharmaceutical service circle

Grid shape selection of the basic pharmaceutical service circle

The grid shape of the basic pharmaceutical service circle needs to meet the following requirements: (a) seamlessly cover the planning area; (b) effectively express the service area scope of the pharmacy. We compared the grid coverage effects of three shapes, namely, circular, square and hexagonal (see Fig. 3): (1) Circular shape. If a circular shape is used as the basic shape for dividing pharmaceutical service circles, the problem becomes that the grid cannot seamlessly cover the planning area. The grids may either intersect or leave gaps between them; (2) Square shape. Square-shaped grids can seamlessly cover the geographical area to be planned without intersecting or leaving gaps. However, the radius of a square shape is not a fixed value and cannot reflect the specific service range of the pharmacy well; (3) Hexagonal shape. To overcome the shortcomings of the above two shapes and combine their strengths, the intersecting parts of two circles were replaced with straight lines to obtain the inscribed hexagon of the circle. The hexagonal grids can seamlessly cover the planning area without overlap, meeting the requirements well.

Fig. 3
figure 3

Different shape selections of the basic service circles and the coverage effect

Mapping the basic pharmaceutical service circles

We used the standard that “residents could obtain medication within 15 minutes walking distance” to map basic pharmaceutical service circles. Specifically, assuming that the speed of walking is 6,000 m per hour, the 15-minute walking distance is approximately 1500 m. Considering that most walking routes include corners, 1500 m should constitute a Gaussian distance, equivalent to a straight-line distance of approximately 1060 m. We used 1060 m as the radius and calculated that the hexagonal area of each basic pharmaceutical service circle was equal to \(\:S=\frac{3\sqrt{3}}{2}\text{*}{r}^{2\:}\approx\:\)2.92 square kilometers. Starting from the westernmost end of the city, we mapped hexagonal grids with a radius of 1060 m as the basic pharmaceutical service circles, and ultimately divided the entire city into 2188 basic service circles (see Fig. 4).

Fig. 4
figure 4

Basic pharmaceutical service circles within a 15-minute walking distance

Distribution of retail pharmacies in basic pharmaceutical service circles

In this study, we used pharmaceutical service circles within a 15-minute walking distance as the basic planning units. Based on population density, we analyzed the distribution of retail pharmacies in basic pharmaceutical service circles and identified service circles where pharmacies were insufficient. There were three types of pharmaceutical service circles without enough pharmacies (see Table 1): (1) Pharmaceutical service circles had no open pharmacies. Among the 2188 basic pharmaceutical service circles, there were 1387 service circles without any open pharmacies, 151 of which had a population of more than 5000 (see Figs. 5 and 6). (2) Pharmaceutical service circles had open pharmacies but no medical insurance designated pharmacies. Among the 2188 basic pharmaceutical service circles, 356 service circles had open pharmacies but no medical insurance designated pharmacies (see Fig. 7).

Table 1 Distribution of retail pharmacies in the basic pharmaceutical service circles
Fig. 5
figure 5

Basic pharmaceutical service circles had no open pharmacies

Fig. 6
figure 6

The population density of basic pharmaceutical service circles had no open pharmacies

Fig. 7
figure 7

The service circles had open pharmacies but no medical insurance designated pharmacies

Clustering of retail pharmacies

The results of the global spatial autocorrelation analysis showed that the Global Moran’s I was 0.55 (P < 0.05), indicating significant spatial clustering of retail pharmacies across the city. Those basic pharmaceutical service circles with dense distribution of retail pharmacies also have densely distributed retail pharmacies in the surrounding service circles.

The results of the Local spatial autocorrelation analysis (see Fig. 8) showed that the whole central urban areas and the red-marked suburban areas exhibit high-high clustering, where regions with dense distribution of retail pharmacies were also surrounded by regions with similar distribution of retail pharmacies. Conversely, most suburban areas exhibit low-low clustering, where regions with fewer pharmacies are surrounded by regions with similarly low numbers of pharmacies.

Fig. 8
figure 8

Local spatial autocorrelation of retail pharmacies

Moreover, we analyzed the spatial clustering of retail pharmacies using different administrative units (see Fig. 9): including about basic pharmaceutical service areas within a 15-minute walking distance, townships and streets, 58 medical service areas, and administrative divisions. The results indicated that the distribution of retail pharmacies exhibited significant spatial clustering for the first two units, with Moran’s I of 0.61 and 0.35 respectively (p < 0.001). For the latter two units, the Moran’s I coefficients were 0.08 and − 0.04 respectively (p > 0.05), indicating that the spatial clustering of pharmacy distribution was not significant.

Fig. 9
figure 9

Spatial correlation of retail pharmacies under different analysis units

Appropriate spacing and scale of retail pharmacies

Appropriate spacing of retail pharmacies

The results of the last part showed that areas with dense populations, such as city centers, exhibit a high-high spatial association pattern for retail pharmacies, demonstrating significant clustering. Besides, retail pharmacies around medical service centers didn’t show significant clustering. Therefore, distance restrictions for pharmacies in such areas should be adjusted accordingly. Before 2020, most provinces had distance restrictions for newly opened pharmacies. For example, Shanghai required a distance of more than 300 m between newly opened retail pharmacies and existing retail pharmacies [27], while Beijing required a distance of more than 350 m. This study used a distance restriction of 300 m between pharmacies as an example, and each 15-minute basic pharmaceutical service circle (\(\:r=1060 m\), \(\:S\approx\:\)2.92 \(\:{km}^{2}\)) could have 37 retail pharmacies at most, which may make it difficult to meet the medication needs in densely populated areas. Thus, the study was designed to optimize distance restrictions between pharmacies in the following areas: (1) residential areas with high population density. According to the standard that each pharmacy could serve 5000 people, each basic pharmaceutical service circle could serve 185,000 people at most when the distance restriction between pharmacies is 300 m. Thus, if the population of the basic pharmaceutical service circle exceeds 185,000 people, which means that the population density is greater than 63,356 people per square kilometer, then the distance limit between pharmacies should be relaxed. The study also simulated the situation in which the distance restriction between pharmacies was 350 m and 400 m, as shown in Table 2. (2) pharmaceutical industrial clusters, including medical institution cluster areas, municipal medical centers, and regional medical centers. Medical resources are relatively concentrated in these regions, and the demand for drugs is high due to the spillover effect of medical institutions. As the main institutions for dispensing drugs, retail pharmacies need to be added to meet higher drug requirements in these areas. Thus, distance restrictions between pharmacies should be lifted in these areas to promote the agglomeration of the pharmaceutical industry.

Table 2 The situation of different distance restrictions between pharmacies in basic pharmaceutical service circles

Appropriate scale of retail pharmacies

This study suggests that the development of retail pharmacies in a certain region should meet the following conditions: (1) the density of pharmacies in the region should meet the drug demand of the population; (2) the retail pharmacies in the region should operate well and remain stable. If the retail pharmacies in a region meet the above requirements, the average size of the retail pharmacies in that area can be used as the recommended appropriate size.

In Shanghai, there were 2188 basic pharmaceutical service circles, which included approximately 3009 retail pharmacies. According to the standard that each retail pharmacy could serve 5000 people, there were a total of 333 service circles that had enough pharmacies to meet the drug needs of the population in the region. In the above service circles, there were 482 retail pharmacies in 2016 and 715 retail pharmacies in 2017 in total. We identified the detailed information of 310 retail pharmacies through the number of geometrical product specifications (GPS) certificates. After qualification review, all pharmacies had been operating for more than two years without any violation records and were considered to be in good operation condition. These 310 retail pharmacies were distributed in 194 service circles, 117 of which were in benign competition, which means that all the retail pharmacies in these service circles had been operating well and maintaining stability for more than two years. We calculated the average size of 181 retail pharmacies in the above 117 service circles as the reference value for the appropriate size of retail pharmacies. Among them, 17 retail pharmacies were located in the central urban area, with an average construction area of 110.42m2, including 1.35 licenced pharmacists; 164 were located in noncentral urban areas, with an average construction area of 98.5m2, including 1.05 licenced pharmacists.

Supplementation of retail pharmacies and medical insurance designated pharmacies

Supplementation of retail pharmacies

To ensure the accessibility of medication for residents, we designed the following schemes to supplement pharmacies in those service circles with insufficient drug supply identified in the above results: (1) Service circles had no open pharmacies. If the population of these service circles exceeds 5000 people, the medication demand of residents in these areas can support the development of more than one open pharmacy. The Commerce Committee will guide social capital to open retail pharmacies in such areas as priority, and implement incentive policies to give qualified pharmacies the opportunity to be included in medical insurance designated pharmacies. (2) Service circles where the drug supply cannot meet the medication needs of residents. According to the standard that each retail pharmacy could serve 5000 people, 841 retail pharmacies were planned to be added to residential areas to meet the medication needs of residents. The density of the retail pharmacies after supplementation is shown in Fig. 10.

Fig. 10
figure 10

The density of the retail pharmacies after supplementation

Supplementation of medical insurance designated pharmacies

To improve the affordability of medication for residents, we designed the plan to supplement medical insurance designated pharmacies in the following two types of service circles: (1) Service circles had no medical insurance pharmacies. Based on the above results, a total of 356 service circles had retail pharmacies but no medical insurance designated pharmacies. The medical insurance agency could select qualified retail pharmacies from these service circles to be included in medical insurance designated pharmacies, and 356 designated pharmacies could be added at most. (2) Service circles had only one medical insurance designated pharmacy with a population exceeding 20,000. The population density in some central urban areas was high, and it was difficult for the medical insurance designated pharmacies to meet the demand. We designed a supplementary plan based on the standard of increasing one medical insurance designated pharmacy per 20,000 people, and 192 medical insurance designated pharmacies should be added to 122 service circles (see Fig. 11).

Fig. 11
figure 11

Supplemental plan of medical insurance designated pharmacies

After supplementing the medical insurance designated pharmacies as planning, the coverage area of these pharmacies increased significantly. Before planning, there were service blind spots within a 15-minute walking distance circles from medical insurance designated pharmacies, with 1.05% of the central urban population and 32.36% of the suburban population not covered (see appendix 1). After planning, the coverage of medical insurance designated pharmacies expanded, allowing 100% of urban residents and 82.23% of suburban residents to reach a medical insurance designated pharmacy within 15 min walking distance. Additionally, the uncovered suburban areas did not include residential areas with a population density exceeding 5,000 per square kilometer (see appendix 3).

Discussion

The research group has been collaborating with the municipal government in Shanghai since 2016. Based on population distribution data and geographic layout data of retail pharmacies, we identified those areas with insufficient pharmaceutical service. Then, we calculated the appropriate size of retail pharmacies and the suitable distance between pharmacies according to regional features, and designed supplementary methods for retail pharmacies and medical insurance designated pharmacies. The outcomes of this study can provide important references for the government to regulate the spatial layout of retail pharmacies to improve the fairness, accessibility, and affordability of obtaining medication for residents.

This study has good foresight for the layout planning of retail pharmacies in China. In China, the government’s regulation of the spatial layout of retail pharmacies has undergone a shift from more interventionist to more liberal. Before 2020, most regions had strict regulations on distance restrictions between retail pharmacies, aimed at preventing vicious competition and resource waste among pharmacies. However, the fixed distance restriction has the following limitations: (1) regions with different population densities have the same distance restriction between retail pharmacies, resulting in insufficient pharmaceutical service in areas with high population densities; (2) the distance restriction of retail pharmacies protects the interests of already opened pharmacies, leading to a lack of competition among those early opening pharmacies. Thus, in 2018, the research group proposed eliminating distance restrictions between pharmacies in areas with high population density and pharmaceutical industry clusters and piloted it in Shanghai. In 2020, the Chinese government issued a national policy to lift distance restrictions between pharmacies nationwide [28].

In terms of the regulatory methods of the government, we designed a series of policies for government departments to guide the spatial layout of retail pharmacies: (1) the Commerce Committee should issue guidance reports on the spatial layout of retail pharmacies regularly to the public, including suggested service circles that need to be layout preferentially and appropriate size of retail pharmacies to guide new pharmacies in a rational layout and scale setting; (2) the healthcare security administration should supplement medical insurance designated pharmacies based on research results, including increasing the number of medical insurance designated pharmacies in densely populated areas, and encouraging enterprises to prioritize opening pharmacies in areas without retail pharmacies through incentive measures of prioritizing inclusion in medical insurance designated pharmacies. After supplementing retail pharmacies and medical insurance designated pharmacies, the service area and service population of pharmacies increased significantly, effectively improving the accessibility, convenience, and affordability of medication for residents.

The above practice is consistent with previous research. In the field of spatial planning, the European Commission considered that “as a quantitative measure, limitation on the number of pharmacies is not an appropriate means to ensure a good supply of drugs, and may even be counterproductive in this regard” [26]. Therefore, the positions expressed by the European Commission thus far have aimed at relaxing the regulation of pharmacies and bringing them closer to a more liberal model. Studies have also shown that it is important to correlate the different access dimensions, including geographical distribution, to measure access to medicines more comprehensively. As mentioned by Penchansky and Thomas, access is multidimensional [29]. Most studies have shown that increased pharmacy density is associated with increased access to medicines, and high-income areas were noted to have increased access to pharmacies. Therefore, the density of pharmacies in low-income and rural areas is relatively low, and the accessibility of drugs is poor. The study increased the distribution of pharmacies and included more medical insurance designated pharmacies based on population density and the actual needs of each area, which would help to improve the accessibility of drugs.

This study fills an important gap in the government’s guidance on the geographical layout and appropriate spacing and scale of retail pharmacies in developing countries. Previous studies have shown that geographical accessibility is important for achieving access, commonly measured as the geographical distribution of pharmacies within a region and the density of pharmacies per population [24]. Moreover, the geographical location of pharmacies is also a core dimension for measuring health equity, which also reflects its importance [30]. Although the importance of geographical accessibility for retail pharmacies has been widely recognized, there is little literature on the spatial planning of pharmacies. Most of the existing research comes from high-income countries, and research in low-income and middle-income countries is relatively limited. This may be related to the difficulty of timely updating of pharmacy census data in such countries due to limited resources [23]. This study selected a city in eastern China as a sample area to design regulatory methods for the spatial layout of retail pharmacies, which provide an important reference for the geographical layout planning of retail pharmacies in low-income and middle-income countries.

This study has the following limitations. First, the different ways of dividing basic pharmaceutical service circles affect the distribution of pharmacies. For example, this study mapped basic pharmaceutical service circles starting from the westernmost point of the planning area with a radius of 15-minute walking distance. If the basic service circles are not mapped as described above, such as starting from the northernmost point or with different radius, different results may result. Second, the geographic spatial layout planning of retail pharmacies is based on the complete and accurate acquisition of needed data, such as pharmacy and population data. Thus, these data information needs to be updated timely.

Conclusion

This study mapped the distribution of the population and retail pharmacies in Shanghai and designed guidance methods for the spatial layout of retail pharmacies. On the one hand, we calculated the distance restrictions and appropriate scale of retail pharmacies based on population density and drug demand in different regions, which can serve as a basis for the Commerce Committee to issue pharmacy layout guidelines. On the other hand, we designed supplementary methods for retail pharmacies and medical insurance designated pharmacies, which can assist relevant government departments in planning the spatial layout of retail pharmacies in the next stage.