with DaData.ru and Azure API for FHIR?
With the DaData.ru API, you can enrich, clean, and autocomplete various types of data, including addresses, names, and company details. This powerful tool can be used to enhance the quality of user input, automate data normalization, and conduct insightful analysis on datasets. Specifically, it can help verify and format addresses to ensure delivery accuracy, deduplicate and correct database entries, and provide auto-suggestions for form fields, improving user experience and backend data consistency.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dadata_ru: {
type: "app",
app: "dadata_ru",
}
},
async run({steps, $}) {
const data = {
"query": `pipedream @`,
}
return await axios($, {
url: `https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/email`,
headers: {
"Authorization": `Token ${this.dadata_ru.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
azure_api_for_fhir: {
type: "app",
app: "azure_api_for_fhir",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.azure_api_for_fhir.$auth.account_name}.azurehealthcareapis.com/Patient`,
headers: {
Authorization: `Bearer ${this.azure_api_for_fhir.$auth.oauth_access_token}`,
},
})
},
})