Skip to content

Instantly share code, notes, and snippets.

@ericso
Last active June 11, 2019 22:13
Show Gist options
  • Save ericso/c96eb23d4dcfebbe92c34b6d55af0ac5 to your computer and use it in GitHub Desktop.
Save ericso/c96eb23d4dcfebbe92c34b6d55af0ac5 to your computer and use it in GitHub Desktop.
query DrugPrices($ndc: String) {
drug_prices(
pagination: {
page: 1,
perPage: 20
}
where: {
ndc: {
like: $ndc
}
}
) {
results {
...drugPriceFields
}
pagination {
page
perPage
count
}
}
}
fragment drugPriceFields on DrugPrice {
ndc
awp_unit_price_extended
awp_package_price
wac_unit_price_extended
wac_package_price
direct_unit_price_extended
direct_package_price
ful_unit_price_extended
ful_package_price
unit_dose_ful_unit_price_extended
unit_dose_ful_package_price
pac_unit_price
effective_date
validity
}
{
"ndc": "%",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment