Issues

  • Organisation PostCode Search Abnormal Result Set

    Hi, I have been trying to use NHS Choice API to query the practices using postcode and found an anomaly in the result set. When querying the practices under a distance of 16 Kms (https://api.nhs.uk/data/gppractices/postcode/BS397SF/?distance=16&page=7) , I am getting results which include distance greater than 16 Kms (e.g. 21 Kms as shown in below image). Could you please help me by explaining if there a reason why the results greater than given range are included in the result set.

    Status: Proposed | Reported by Hidden Tue, 24 Apr 2018 09:44:36 GMT
  • URL Mappings within article text

    Good Morning, I am currently working with the Conditions API and am trying to implement something that will take the content of the article returned and allow me to process the links in the article so that I am able to request the document via the API and render the content on my own site. For example Making a request for the condition “Autosomal recessive polycystic kidney disease (ARPKD)” I am given back some JSON but the links in the content of the document returned are in no particular format thus parsing them to fix them to work with the API mapping is almost impossible. Is there a format / way in which the URLs are formatted / can be formatted so that uniform parsing of them is possible. For example the following issues were found. In the document requested above I get the following links 1. high blood pressure (hypertension) 2. chronic kidney disease (CKD) 3. symptoms of ARPKD 4. autosomal dominant polycystic kidney disease (ADPKD) 5. causes of ARPKD 6. anaemia 7. dialysis 8. kidney transplant 9. treatment of ARPKD My first thought was to use the second part of the URL for the condition and the page name for the subpage (calling the API https://api.nhs.uk/conditions/{condition}/{subPage}) This didn’t work as I discovered that the condition (as stated in the link) is not how the API referred to the item (in all cases). For example when processing the link high blood pressure (hypertension) It needs to map to high blood pressure (hypertension) In order for the API to be used to retrieve the document required. I was able to write some code that would take the text of the link and use that to map the condition into the API call but again as this was not reliable as the condition name as stated in the link is not always how the API refers to the condition thus I cannot use it. Another example is the link to chronic kidney disease the URL returned maps to /conditions/Kidney-disease-chronic/Pages/Introduction.aspx but the API equivalent is https://api.nhs.uk/conditions/kidney-disease/ If I call the Conditions API with the incorrect condition name I am given an error 404 – rightfully so but I just wanted to know if there was an official / recommended way to parse the links in a document to ensure that the links are correctly mapped. Any assistance you can provide would be much appreciated. For a little more clarity i have attached the json returned from the call in the above example Regards, Kuldip

    Status: Proposed | Reported by Hidden Mon, 18 Dec 2017 09:04:31 GMT

You're not signed in. Please sign-in to report an issue or post a comment.