MCPcopy Create free account

hub / github.com/FDA/openfda / functions

Functions1,029 in github.com/FDA/openfda

↓ 2 callersFunctionfetch_counts
(query)
openfda/tests/api_test_helpers.py:98
↓ 2 callersMethodfield_val_array
(self, soup, field_key)
openfda/device_recall/pipeline.py:235
↓ 2 callersMethodflush
(self)
openfda/common.py:35
↓ 2 callersMethodflush
(self)
openfda/parallel/outputs.py:25
↓ 2 callersFunctionget_exact_fields
Takes a elasticsearch mapping file, flattens it, filters out exact fields and returns a unique list of keys that can be consumed by get_deep()
scripts/generate_fields_yaml.py:96
↓ 2 callersFunctionget_mapping_fields
(mapping)
scripts/generate_fields_yaml.py:133
↓ 2 callersFunctionisBot
(ua)
openfda/downloadstats/pipeline.py:67
↓ 2 callersFunctionload_mapping
(es, index_name, type_name, mapping_file_or_dict)
openfda/elasticsearch_requests.py:26
↓ 2 callersMethodmap
(self, key, value, output)
openfda/registration/pipeline.py:122
↓ 2 callersMethodmap_shard
(self, map_input, map_output)
openfda/device_udi/pipeline.py:60
↓ 2 callersFunctionnormalize_product_name
Simple drugname normalization: strip punctuation and whitespace and lowercase.
openfda/adae/annotate.py:12
↓ 2 callersFunctionnormalize_product_ndc
Simple ndc normalization: strip letters, whitespace, and trim 10 digit ndcs.
openfda/adae/annotate.py:17
↓ 2 callersMethodoutput
(self)
openfda/drugsfda/pipeline.py:462
↓ 2 callersMethodoutput
(self)
openfda/annotation_table/pipeline.py:142
↓ 2 callersMethodoutput
(self)
openfda/annotation_table/pipeline.py:158
↓ 2 callersMethodoutput
(self)
openfda/annotation_table/pipeline.py:195
↓ 2 callersMethodoutput
(self)
openfda/annotation_table/pipeline.py:297
↓ 2 callersMethodoutput
(self)
openfda/ndc/pipeline.py:168
↓ 2 callersMethodoutput
(self)
openfda/ndc/pipeline.py:266
↓ 2 callersMethodoutput
(self)
openfda/ndc/pipeline.py:312
↓ 2 callersMethodoutput
(self)
openfda/ndc/pipeline.py:331
↓ 2 callersMethodoutput
(self)
openfda/registration/pipeline.py:219
↓ 2 callersMethodoutput
(self)
openfda/spl/pipeline.py:78
↓ 2 callersMethodoutput
(self)
openfda/faers/pipeline.py:131
↓ 2 callersMethodoutput
(self)
openfda/nsde/pipeline.py:23
↓ 2 callersMethodoutput
(self)
openfda/device_recall/pipeline.py:184
↓ 2 callersMethodoutput
(self)
openfda/classification/pipeline.py:97
↓ 2 callersMethodoutput
(self)
openfda/device_pma/pipeline.py:65
↓ 2 callersMethodoutput
(self)
openfda/res/pipeline.py:88
↓ 2 callersFunctionpluck
A helper function for extracting a specific subset of keys from a dictionary.
openfda/device_harmonization/pipeline.py:100
↓ 2 callersFunctionprint_count
(name, query)
scripts/generate_tests.py:37
↓ 2 callersMethodreformat_date
(self, str_val)
openfda/device_recall/pipeline.py:243
↓ 2 callersMethodrequires
(self)
openfda/covid19serology/pipeline.py:60
↓ 2 callersMethodrun
(self)
openfda/ndc/pipeline.py:92
↓ 2 callersMethodrun
(self)
openfda/ndc/pipeline.py:116
↓ 2 callersMethodrun
(self)
openfda/ndc/pipeline.py:334
↓ 2 callersMethodrun
(self)
openfda/adae/pipeline.py:370
↓ 2 callersMethodrun
(self)
openfda/covid19serology/pipeline.py:66
↓ 2 callersFunctionsoup_with_retry
(url, use_cache=True)
openfda/device_recall/pipeline.py:54
↓ 2 callersFunctiontest_fresh_index
()
openfda/tests/index_util_test.py:20
↓ 2 callersFunctionupca_valid
(chk)
openfda/res/ean.py:85
↓ 2 callersFunctionupce2a
(chk)
openfda/res/ean.py:114
↓ 1 callersFunctionAddHarmonizedRowToOpenfda
(openfda, row)
openfda/drugsfda/annotate.py:39
↓ 1 callersFunctionAddHarmonizedRowToOpenfda
(openfda, row)
openfda/ndc/annotate.py:51
↓ 1 callersFunctionAddHarmonizedRowToOpenfda
(openfda, row)
openfda/spl/annotate.py:51
↓ 1 callersFunctionAddHarmonizedRowToOpenfda
(openfda, row)
openfda/faers/annotate.py:58
↓ 1 callersFunctionAddHarmonizedRowToOpenfda
(openfda, row)
openfda/adae/annotate.py:65
↓ 1 callersFunctionAddSearchAfter
(ejsBody, params)
api/faers/elasticsearch_query.js:207
↓ 1 callersFunctionAnnotateDrug
(drug, harmonized_dict)
openfda/faers/annotate.py:114
↓ 1 callersFunctionAnnotateDrug
(drug, harmonized_dict)
openfda/adae/annotate.py:133
↓ 1 callersFunctionAnnotateEvent
(event, version, harmonized_dict)
openfda/faers/annotate.py:132
↓ 1 callersFunctionAnnotateEvent
(event, harmonized_dict)
openfda/adae/annotate.py:140
↓ 1 callersFunctionAnnotateEvent
Doing cleanup work here so that the json to be loaded in to ES is date friendly and the naming conventions line up with the API standard
openfda/res/annotate.py:165
↓ 1 callersFunctionAnnotateLabel
(label, harmonized_dict)
openfda/spl/annotate.py:114
↓ 1 callersFunctionAnnotateRecall
(recall, harmonized_dict)
openfda/res/annotate.py:148
↓ 1 callersFunctionExtractXMLFromNestedZip
(zip_filename, output_dir, exclude_images=True)
openfda/annotation_table/pipeline.py:120
↓ 1 callersFunctionUpdateIndexInformation
(client, index_info)
api/faers/api.js:355
↓ 1 callersFunctionXML2JSON
(input_file)
openfda/spl/process_barcodes.py:23
↓ 1 callersMethod__init__
(self, harmonized_db)
openfda/device_harmonization/pipeline.py:157
↓ 1 callersMethod__init__
(self, master)
openfda/parallel/mapreduce.py:110
↓ 1 callersMethod__init__
(self, **kw)
openfda/parallel/outputs.py:28
↓ 1 callersMethod__iter__
(self)
openfda/parallel/sharded_db.py:54
↓ 1 callersMethod_download_with_retry
(self, url, target_name)
openfda/faers/pipeline.py:47
↓ 1 callersMethod_extract
Moving this code from the `spl_harmonization` file, since it is the only part of that file that is needed now that we have converted to a
openfda/annotation_table/pipeline.py:456
↓ 1 callersMethod_fetch
(self)
openfda/faers/pipeline.py:41
↓ 1 callersFunction_fix_date
Converts input dates for known formats to a standard format that is Elasticsearch friendly. Returns the input_date if it is not a known f
openfda/maude/pipeline.py:237
↓ 1 callersMethod_generate_doc_id
Hash function used to create unique IDs for the reports
openfda/res/pipeline.py:142
↓ 1 callersFunction_get_ndc_type
Identifying the NDC type is based on string length WITHOUT '-', we need to strip all non-numeric characters before we look at the length
openfda/res/annotate.py:58
↓ 1 callersFunction_insert_or_update
(recall, code_type, code_value)
openfda/res/annotate.py:72
↓ 1 callersMethod_join
(self, values)
openfda/annotation_table/pipeline.py:631
↓ 1 callersMethod_join
(self, values)
openfda/registration/pipeline.py:253
↓ 1 callersMethod_join
(self, values)
openfda/registration/pipeline.py:299
↓ 1 callersMethod_join
(self, values)
openfda/registration/pipeline.py:369
↓ 1 callersMethod_join
(self, values)
openfda/registration/pipeline.py:408
↓ 1 callersMethod_join
(self, values)
openfda/registration/pipeline.py:447
↓ 1 callersMethod_join
(self, key, values)
openfda/maude/pipeline.py:506
↓ 1 callersFunction_make_date_range_endpoint_batch
Helper function to make the export quarters code more readable. This function does two things: exports all data that is NOT in between two
openfda/export/pipeline.py:198
↓ 1 callersFunction_make_display_name
Isolating the thorny naming logic for the display name in a helper function. The naming is solely present for url cleanliness. Possib
openfda/index_util.py:80
↓ 1 callersMethod_map_incremental
(self, map_input)
openfda/index_util.py:401
↓ 1 callersMethod_map_non_incremental
(self, map_input)
openfda/index_util.py:409
↓ 1 callersMethod_run
(self)
openfda/index_util.py:477
↓ 1 callersMethod_transform
Takes several rows for the same report_number and merges them into a single report object, which is the final JSON representation, ba
openfda/caers/pipeline.py:112
↓ 1 callersMethodadd_applications_docs
(self, submissions, app_key)
openfda/drugsfda/pipeline.py:632
↓ 1 callersMethodadd_marketing_status
(self, products, app_key)
openfda/drugsfda/pipeline.py:597
↓ 1 callersMethodadd_products
(self, application)
openfda/drugsfda/pipeline.py:589
↓ 1 callersMethodadd_submissions
(self, application)
openfda/drugsfda/pipeline.py:616
↓ 1 callersMethodadd_submissions_property_type
(self, submissions, app_key)
openfda/drugsfda/pipeline.py:624
↓ 1 callersMethodadd_te
(self, products, app_key)
openfda/drugsfda/pipeline.py:605
↓ 1 callersFunctionannotate_drug
(drug, harmonized_dict)
openfda/drugsfda/annotate.py:96
↓ 1 callersFunctionannotate_drug
(drug, harmonized_dict)
openfda/ndc/annotate.py:88
↓ 1 callersFunctionassert_greater_equal
Just like self.assertTrue(a >= b), but with a nicer default message.
openfda/tests/api_test_helpers.py:134
↓ 1 callersMethodbuild_quarters
(self, start_date, end_date)
openfda/export/pipeline.py:167
↓ 1 callersMethodbuild_term_filter
(key, term)
openfda/export/pipeline.py:129
↓ 1 callersFunctionbyteify
(input)
scripts/generate_schema.py:3
↓ 1 callersFunctioncase_insensitive_glob
(pattern)
openfda/faers/xml_to_json.py:57
↓ 1 callersFunctionclean_ndc
(ndc)
openfda/res/extract.py:34
↓ 1 callersFunctionclean_upc
(upc)
openfda/res/extract.py:57
↓ 1 callersMethodcleaner
(k, v)
openfda/maude/pipeline.py:398
↓ 1 callersFunctioncli
()
scripts/generate_fields_yaml.py:34
↓ 1 callersMethodcompute_splits
The default behavior for splitting files is to have one split per file.
openfda/parallel/inputs.py:57
← previousnext →101–200 of 1,029, ranked by callers