Last active
June 25, 2019 22:19
-
-
Save ericso/9ae60e294cb64c2f8fede6d311edcae7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Write your query or mutation here | |
query Drugs($ndc: String, $gpi: String, $label_name: String, $status: String) { | |
drugs( | |
pagination: { | |
page: 1, | |
perPage: 20 | |
} | |
where: { | |
ndc: { | |
like: $ndc | |
} | |
gpi: { | |
like: $gpi | |
} | |
label_name_fdb: { | |
like: $label_name | |
} | |
status: { | |
like: $status | |
} | |
} | |
) { | |
results { | |
...drugFields | |
} | |
pagination { | |
page | |
perPage | |
count | |
} | |
} | |
} | |
fragment drugFields on Drug { | |
ndc | |
dd_id | |
gpi | |
label_name_mddb | |
drug_name_mddb | |
route_of_administration_mddb | |
dosage_form_description | |
strength | |
strength_unit_of_measure | |
package_size | |
total_package_quantity | |
package_size_unit_of_measure | |
unit_dose_flag | |
desi | |
mony | |
bgt | |
maintenance_mddb | |
rx_otc_mddb | |
dea_class_code | |
single_combo_code | |
tee_code | |
third_party_restriction | |
manufacturer | |
repackage_code | |
status | |
rx_rank | |
kdc | |
label_name_fdb | |
drug_name_fdb | |
multisource_code_fdb | |
generic_name_code_fdb | |
rx_otc_fdb | |
maintenance_fdb | |
med_id | |
med_id_description | |
generic_med_id | |
gsn | |
gcn | |
hic3 | |
hic3_description | |
stc | |
stc_description | |
gender | |
add_date | |
term_date | |
validity | |
prices { | |
results { | |
...drugPriceFields | |
} | |
pagination { | |
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": "%", | |
"gpi": "%", | |
"label_name": "%", | |
"status": "%" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment