Validate a discover HCPs request
Validates a healthcare discover request and returns a warning for every problem: identifiers of the wrong shape (an NDC is 9 digits, an NCT ID is NCT and 8 digits, a quarter is yyyyQn), brand, ingredient, class and mechanism IDs the drug vocabularies do not hold (UNKNOWN_VALUE), combinations the index cannot answer (ELEVEN_PLUS with quarters, quarters on ICD-10 codes, positions with guidelinesOnly), missing required filters, unknown fields, and a request too large to evaluate (QUERY_TOO_LARGE), which a search would refuse with a 400. Warnings about a filter group's contents name the group they came from. Looks brand, ingredient, class and mechanism IDs up but does not search HCPs or consume credits; an expansion cut at its cap is not a problem here and is reported in the search and count responses' warnings.
Request body
- metadataobjectOptionalOptional metadata to associate with the request. Will be returned in the response.
- orobject[]OptionalOne or more filter groups. An HCP matches the request when they satisfy at least one group; within a group every block is ANDed
- congressesobjectOptionalCongress sessions the HCP presented at
- diagnosesobjectOptionalConditions the HCP diagnosed or referred for
- Manufacturers the HCP received non-meal payments from, as reported to CMS Open Payments. A payment is a financial relationship, not evidence the HCP uses the product; use 'not' on manufacturers to screen out conflicts of interest
- leaderboardsobjectOptionalThe HCP's decile on per-indication leaderboards
- namestringOptionalName for this group. Echoed in matchedFilterGroups on every result the group produced, and in validate warnings about the group
- practiceSettingobjectOptionalThe kind of organization the HCP currently works at. An HCP carries every setting that applies
- prescribingobjectOptionalDrugs the HCP prescribed or administered over the trailing twelve months
- proceduresobjectOptionalProcedures the HCP performed or ordered
- professionalobjectOptionalWho the HCP is and where they practice
- publicationsobjectOptionalPublications the HCP authored, by MeSH topic
- trialsobjectOptionalClinical trials the HCP is linked to on the trial record
- paginationobjectOptionalPage-based pagination controls
- Headers
x-api-keyRequired · API key for authentication
Response
- hasProblemsbooleanWhether we hit a problem answering the request: the profile or company wasn't found, or a data source failed or timed out. Data may be missing or incomplete;
problems, where the response has it, says which. - isRetryablebooleanWhen
isSuccessisfalse, whether sending the same input again could succeed. AlwaystruewhenisSuccessistrue. - isSuccessboolean
truewhen the request was answered with a result.falsemeans no result was returned: checkisRetryable, which istruewhen a data source failed or timed out andfalsewhen the input matched nothing. - isValidbooleanWhether all provided values are valid (true when warnings is empty)
- metadataobjectCaller-supplied metadata echoed back from the request.
- querySizeobjectHow much of the query size limit the request uses, present whether or not it fits. Null when the request could not be sized: it did not parse, or it has a malformed keywords expression, activeWithin or company.keywords to fix first, and QUERY_TOO_LARGE is not checked until it can be. company.keywords is also sized on its own against the companies it searches, so a QUERY_TOO_LARGE naming company.keywords can arrive with 'used' under 'limit'.
- warningsobject[]List of validation warnings, one per invalid field value