I want to develop an EHR but I am stuck at the medication autocompleting functionality by typing the medication name in input box using one of the api's that I mentioned at the title of this question so, I want to type medication name for example 'zoco' the system must make request to an api (that I don't know which one) of them so the api should response me with list of approximate medication name matches in JSON format like:
{
rxcui: "196503",
name: "Zocor",
synonym: "",
tty: "BN",
language: "ENG",
suppress: "N",
umlscui: "C0678181"
},
{
rxcui: "317541",
name: "Oral Tablet",
synonym: "",
tty: "DF",
language: "ENG",
suppress: "N",
umlscui: "C0993159"
},
{
rxcui: "104490",
name: "Simvastatin 10 MG Oral Tablet [Zocor]",
synonym: "Zocor 10 MG Oral Tablet",
tty: "SBD",
language: "ENG",
suppress: "N",
umlscui: "C0354662"
},
{
rxcui: "563653",
name: "Simvastatin 10 MG [Zocor]",
synonym: "",
tty: "SBDC",
language: "ENG",
suppress: "N",
umlscui: "C1596095"
}