Authentication

Postman Authentication sample

An authentication call enables you to gain access to Veeva OpenData.

Authentication consists of the following steps:

  • You provide a Veeva OpenData user name and password in the body of the POST request, and receive a session ID in response.
  • You must pass this session ID as the value for the authorization HTTP header for all subsequent API requests.

Authenticate

This API enables user authentication. User credentials are passed using POST data; for example, with the -d parameter in a curl request.

You can only authenticate with a Veeva OpenData user name defined by an administrator.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/auth

POST data
username

The Veeva OpenData user ID; for example, john.smith@opendataexplorer.veeva.com.

password

The Veeva OpenData password for the user ID.

Response
responseStatus
The status of the response.
sessionId
The session ID for subsequent API calls. This should be set with an authorization header.
userId
An ID number for the authenticated user.
openDataId
An ID number for the Veeva OpenData instance most recently accessed by the authenticated user.
openDataIds
Details about the Veeva OpenData instance the user is accessing:
  • id - An ID number for the authenticated user.
  • name - The name of the Veeva OpenData instance.
  • url - The Veeva OpenData URL used for subsequent API calls.
curl -X POST https://opendataexplorer.veeva.com/api/opendata/v1.0/auth \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json" \
-d "username={username}&password={password}"
{
  "responseStatus": "SUCCESS",
  "sessionId": "14435B027716F5FD4260F6ADB1730A5747CD3A19FA3901D125498B7EFD4A7244B5BF8D032BA9A31EA091A5B030CF32601455B48CCAC30654FC48D7E06B0696F8916A8F668AC942EE13BFD9734238F7A5",
  "userId": 2000049,
  "openDataId": "3",
  "openDataIds": [
    {
      "id": 3,
      "name": "test",
      "url": "https://opendataexplorer.veeva.com/api/opendata"
    }
  ]
}

Manage change requests

The change request APIs allow correctly created data change requests to be researched and reviewed by your aligned regional Veeva OpenData Research Center data stewards for confirmation and response. They enable you to create change requests to add or update HCPs and HCOs. If successful, each change request record received is responded to with a unique change request ID and date/time value upon reception.

Veeva OpenData supports data change requests that are sourced from individual field representative and other user discovery and questions regarding the content of Veeva OpenData Mastered Data as a Service. Veeva OpenData at this time does not accept algorithmic, machine learning, or artificial intelligence derived change requests. You can discuss those types of data changes and enrichments with your Veeva OpenData Customer Success manager or implementation analyst to determine whether private stewardship or other project data cleansing engagements are better for your purposes.

Address, license, and parent HCO information are part of each HCP and HCO. To add a new address, license, or parent HCO to either an HCP or HCO, you use the Create change request API.

For HCPs and HCOs, a change request for the Status field is the standard method to deactivate resources. Addresses, licenses, and parent HCOs follow the same procedure as part of the HCP or HCO.

The fields of any entity call are the properties for the corresponding entity. The metadata retrieve calls enable you view all fields for a particular entity. The data model also describes the fields required to create any resources, as well as any group of fields that must be submitted all together, if any of them changes (for example, address fields for regular mail). You can get detailed information about the Veeva OpenData data model from the Veeva Support Portal. Note that you need to register for access to the Support Portal.

Create a change request

This API enables you to create a change request to add or update an HCP or HCO and related entities (including addresses, licenses, or parent HCOs).

https://opendataexplorer.veeva.com/api/opendata/v1.0/change_request

This API takes no parameters.

POST data
metadata
Details about the request being made. The details are saved in the entity history if the change is accepted (an array of fields within itself):
  • creator - the name of the user that generated the change request
  • note - details about the change request
  • source - additional information about the source of the change request
entity_type
The entity type of the change request (HCP or HCO).
vid_key
The external HCP or HCO vid_key supplied by the client and used for change request updates. Ignored if provided for add requests.
entity
Details of the changes, one per field, for the entity provided:
  • field - The Veeva OpenData API name of the HCP or HCO field.
  • value - The new value of the HCP or HCO field.
  • addresses__v - An array of change requests for addresses, one per address, for the entity provided:
    • vid_key - the address vid_key supplied by the client
    • field - The Veeva OpenData API name of the HCP or HCO Address field
    • value - the new value of the HCP or HCO Address field
  • licenses__v - An array of change requests for licenses, one per license, for the entity provided:
    • vid_key - the license vid_key supplied by the client
    • address_vid_key - the address vid_key to which the license is related, supplied by the client
    • address_index - the address index within the addresses__v object. Can be used when vid_key is not available. (The index is zero-based.)
    • field - The Veeva OpenData API name of the HCP or HCO License field
    • value - the new value of the HCP or HCO License field
  • parent_hcos__v - An array of change requests for parent HCOs, one per parent HCO, for the entity provided:
    • vid_key - the parent HCO vid_key supplied by the client
    • parent_hco_vid_key - the actual HCO vid_key of the parent, supplied by the client
    • field - The Veeva OpenData API name of the HCP or HCO ParentHCO field
    • value - the new value of the HCP or HCO ParentHCO field
Response
responseStatus
The status of the response from Veeva OpenData.
change_request_id
The ID of the change request generated in Veeva OpenData.

Notes

  • Addresses, licenses, and parent HCOs are an array of fields within themselves. There can be multiple addresses, licenses, or parent HCOs created for the same entity (HCP or HCO) at the same time.
curl -i -H "Authorization: 57696C6C205261...6368204C6F7368" -H "Content-type: application/json" -X POST -d "@dcrs_postdata.json" 'https://opendataexplorer.veeva.com/api/opendata/v1.0/change_request'
		
{  
  "metadata": {
    "creator": "john.smith@opendata.com",
    "note": "Mair Berman is a new doctor in the Network Hospital",
    "source": "Veeva OpenData"
  },
  "entity_type": "HCP",
  "vid_key": "001A000000pKagwIAC",
  "entity": {
    "attribute 1": "Value 1",
    "attribute 2": "Value 2",
    " ... ": " ... ",
    "addresses__v": [
      {
        "vid_key": "001A000000pLjigIAC",
        "attribute 1": "Value 1",
        "attribute 2": "Value 2",
        " ... ": " ... "
      }
    ],
    "licenses__v": [
      {
        "vid_key": "001A000000pNfruIAC",
        "address_vid_key": "Address:001A000000pLjigIAC",
        "attribute 1": "Value 1",
        "attribute 2": "Value 2",
        " ... ": " ... "
      }
    ],
    "parent_hcos__v": [
      {
        "vid_key": "001A000000pLkioIAC",
        "parent_hco_vid_key": "HCO:215249678634058752",
        "attribute 1": "Value 1",
        "attribute 2": "Value 2",
        " ... ": " ... "
      }
    ]
  }
}

Retrieve Change Request

This API enables you to retrieve response information for change requests.

Your API calls and users will only be able to access and view change requests created for your organization. The visibility model of change requests is private and visible only to the user that created them.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/change_requests/{change_request_ids}

  • change_request_ids - A comma separated list of change request IDs.
Parameters
status

Retrieve change requests of a specific status from the IDs provided.

includeEntity
Return the full entity or entities related to the requested change requests. An entity for a change request is determined from the entity identifier (vid__v) of the change request.
sinceDate
Include change requests modified after the specified date (exclusive). This value is specified in epoch time in milliseconds.
toDate
Include change requests modified on or before the specified date (inclusive). This value is specified in epoch time in milliseconds.
Response
responseStatus

The status of the response.

change_requests

resolution_notes - An array of comments containing notes added during change request processing.

  • comment - Notes added by the Veeva OpenData user.
  • fields - An array of fields for which the comments were made.
  • created_date - The date the resolution notes were added by the Veeva OpenData user.
  • code - The code or identifier of the note. Null if the resolution note is not defined.

metadata -

  • creator - The name of the user that generated the request.
  • note - Details about the request.
  • source - Additional information about the source of the request.

entity - Details of the response changes, one per field, for the entity provided.

  • field - The Veeva OpenData API name of the HCP or HCO field.
    • change_requested - The value of the requested change.
    • final_value - The new value of the field.
    • result - See the Field Results table.
  • addresses__v - An array of address response changes, one per address, for the entity provided. See the Child Object Attributes table for more information.
  • licenses__v - An array of license response changes, one per license, for the entity provided. See the Child Object Attributes table for more information.
  • parent_hcos__v - An array of parent HCO response changes, one per parent HCO, for the entity provided. See the Child Object Attributes table for more information.

errors - Errors in retrieving the requested change requests.

parent_task_ids - List of parent task IDs.

result__v - The change request result.

status__v - The change request status.

  • CHANGE_NEW - A new task has been received but not run yet.
  • CHANGE_PENDINGREVIEW - All changes for this request are pending approval.
  • CHANGE_INQUEUE - The change was made on an unverified object and is pending processing of the parent task.
  • CHANGE_PARTIALLYPROCESSED - At least one field change was accepted.
  • CHANGE_PROCESSED - The task was processed and a result issued.
  • CHANGE_CANCELLED - The task was cancelled.

completed_date - The completed date for the change request. If the change request is not completed, this value is empty. The date format uses the ISO8601 standard.

taskCountry - The country code of the entity.

created_date - The creation date of the change request. The date uses the ISO8601 standard.

entity_type - The entity type of the change request: HCP or HCO.

vid_key - The external HCP or HCO vid_key supplied in the original change request.

original_task_type - The original change request type.

change_request_id - The change request ID.

vid__v - The ID of the entity: HCP or HCO.

task_type - The final change request type as an add request. Could become a change request.

The following may be displayed at the field level within a change request.

Field results
CHANGE_ACCEPTED
The change for this field has been accepted.
CHANGE_REJECTED
The change for this field has been rejected.
CHANGE_MODIFIED
The change for this field has been accepted with differences .
CHANGE_ALREADYAPPLIED
The change for this field has already been applied.
CHANGE_ADDED
The change for this field was added to the change request after creation.

These do not reflect the result of the change request itself; refer to result__v for the request result.

Child object attributes
vid_key
The external vid_key supplied in the original change request.
vid__v
The Veeva ID of the entity.
field

The Veeva OpenData API name of the entity's field for the HCP or HCO.

  • change_requested - The value of the requested change.
  • final_value - The new value of the field.
  • result -
    • CHANGE_ACCEPTED - The change for this field has been accepted.
    • CHANGE_REJECTED - The change for this field has been rejected.
    • CHANGE_MODIFIED - The change for this field has been accepted with differences .
    • CHANGE_ALREADYAPPLIED - The change for this field has already been applied.
    • CHANGE_ADDED - The change for this field was added to the change request after creation.

Notes

  • Addresses, licenses, and parent HCOs are an array of fields within themselves. There could be multiple addresses or licenses responses for the same HCP or HCO matching the change request submitted originally.
  • The overall result of the change request will be null until all the changes requested are reviewed and the status is PROCESSED or CANCELLED.
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/change_requests/929455217942072479
{
   "change_requests" : [
      {
         "created_date" : "2016-12-08T13:59:22.000-08:00",
         "original_task_type" : "ADD_REQUEST",
         "entity" : {
            "kaiser__v" : {
               "change_requested" : "N",
               "result" : null,
               "final_value" : null
            },
            "pdrp_optout__v" : {
               "final_value" : null,
               "result" : null,
               "change_requested" : "N"
            },
            "fellow__v" : {
               "final_value" : null,
               "change_requested" : "N",
               "result" : null
            },
            "first_name__v" : {
               "result" : "CHANGE_ACCEPTED",
               "change_requested" : "Tim",
               "final_value" : "Tim"
            },
            "last_name__v" : {
               "change_requested" : "Othy",
               "result" : null,
               "final_value" : null
            },
            "primary_country__v" : {
               "final_value" : null,
               "result" : null,
               "change_requested" : "US"
            },
            "hcp_status__v" : {
               "change_requested" : "A",
               "result" : null,
               "final_value" : null
            },
            "grad_training__v" : {
               "change_requested" : "N",
               "result" : null,
               "final_value" : null
            },
            "ama_do_not_contact__v" : {
               "final_value" : null,
               "change_requested" : "N",
               "result" : null
            },
            "hcp_type__v" : {
               "final_value" : null,
               "change_requested" : "P",
               "result" : null
            }
         },
         "status__v" : "CHANGE_PARTIALLYPROCESSED",
         "vid__v" : "929455217958715423",
         "change_request_id" : "929455217942072479",
         "entity_type" : "HCP",
         "metadata" : {
            "source" : "Entity Profile Editor",
            "creator" : "john.smith@opendataexplorer.veeva.com",
            "note" : "New record added via OpenData portal."
         },
         "result__v" : null,
         "parent_task_ids" : [],
         "taskCountry" : "US",
         "vid_key" : null,
         "task_type" : "ADD_REQUEST",
         "resolution_notes" : [
            {
               "comment" : "fas",
               "created_date" : "2016-12-19T07:46:39.766-08:00",
               "code" : null,
               "fields" : [
                  "kaiser__v",
                  "hcp_type__v",
                  "last_name__v",
                  "hcp_status__v",
                  "pdrp_optout__v",
                  "primary_country__v",
                  "fellow__v",
                  "grad_training__v",
                  "ama_do_not_contact__v",
                  "first_name__v"
               ]
            }
         ],
         "completed_date" : null
      }
   ],
   "responseStatus" : "SUCCESS"
}

Batch retrieve change request

This API enables you to obtain information about multiple change requests through the API.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/change_requests/batch

This API takes no parameters.

POST data
change_requests

An array of change request IDs.

  • change_request_id - The ID of the change request generated in Veeva OpenData.
status_codes
A list of status codes.
  • CHANGE_NEW - The change request has been received but not run yet.
  • CHANGE_PENDINGREVIEW - The change request was received and processed but is pending review by data stewards.
  • CHANGE_INQUEUE - The change request is made on an unverified object and is pending parent task processing.
  • CHANGE_PARTIALLYPROCESSED - The change request was partially processed by data stewards.
  • CHANGE_PROCESSED - The change request was processed and a result issued.
  • CHANGE_CANCELLED - The change request was cancelled.
includeEntity
Return the full entity or entities related to the requested change requests. An entity for a change request is determined from the entity identifier (vid__v) of the change request.
sinceDate
Include change requests modified after the specified date (exclusive). This value is specified in epoch time in milliseconds.
toDate
Include change requests modified on or before the specified date (inclusive). This value is specified in epoch time in milliseconds.
Response
responseStatus

The status of the response.

change_requests

metadata -

  • creator - The name of the user that generated the request.
  • note - Details about the request.
  • source - Additional information about the source of the request.

entity - Details of the response changes, one per field, for the entity provided.

  • field - The Veeva OpenData API name of the HCP or HCO field.
    • change_requested - The value of the requested change.
    • final_value - The new value of the field.
    • result - See the Field Results table.
  • addresses__v - An array of address response changes, one per address, for the entity provided. See the Child Object Attributes table for more information.
  • licenses__v - An array of license response changes, one per license, for the entity provided. See the Child Object Attributes table for more information.
  • parent_hcos__v - An array of parent HCO response changes, one per parent HCO, for the entity provided. See the Child Object Attributes table for more information.

errors - Errors in retrieving the requested change requests.

parent_task_ids - List of parent task IDs.

result__v - The change request result.

status__v - The change request status.

completed_date - The completed date for the change request. If the change request is not completed, this value is empty. The date format uses the ISO8601 standard.

taskCountry - The country code of the entity.

created_date - The creation date of the change request. The date uses the ISO8601 standard.

entity_type - The entity type of the change request: HCP or HCO.

vid_key - The external HCP or HCO vid_key supplied by the client in the original change request.

original_task_type - The original change request type.

change_request_id - The change request ID.

vid__v - The ID of the entity: HCP or HCO.

task_type - The final change request type as an add request. Could become a change request.

entities
An array of entities associated with the change requests. Each entity is related to a change request through the vid__v field.

The following may be displayed at the field level within a change request.

Field results
CHANGE_ACCEPTED
The change for this field has been accepted.
CHANGE_REJECTED
The change for this field has been rejected.
CHANGE_MODIFIED
The change for this field has been accepted with differences .
CHANGE_ALREADYAPPLIED
The change for this field has already been applied.
CHANGE_ADDED
The change for this field was added to the change request after creation.

These do not reflect the result of the change request itself; refer to result__v for the request result.

Child object attributes
vid_key
The external vid_key supplied in the original change request.
vid__v
The Veeva ID of the entity.
field

The Veeva OpenData API name of the entity's field for the HCP or HCO.

  • change_requested - The value of the requested change.
  • final_value - The new value of the field.
  • result -
    • CHANGE_ACCEPTED - The change for this field has been accepted.
    • CHANGE_REJECTED - The change for this field has been rejected.
    • CHANGE_MODIFIED - The change for this field has been accepted with differences .
    • CHANGE_ALREADYAPPLIED - The change for this field has already been applied.
    • CHANGE_ADDED - The change for this field was added to the change request after creation.
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/change_requests/batch
{
  "change_requests":[
   {
    "change_request_id":"441305647707849728"
   },
   {
    "change_request_id":"441306106715702272"
   }
  ],
  "status_codes":[
    "CHANGE_NEW",
    "CHANGE_PENDINGREVIEW"
  ]
}
{
  "responseStatus": "SUCCESS",
  "change_requests": [
    {
      "metadata": {
        "creator": "john.smith@opendata.com",
        "note": "Master changes applied",
        "source": "Entity Profile Editor"
      },
      "entity": {
        "specialty_2__v": {
          "change_requested": "MT",
          "final_value": null,
          "result": "CHANGE_REJECTED"
        }
      },
      "taskCountry": "US",
      "task_type": "CHANGE_REQUEST",
      "original_task_type": "CHANGE_REQUEST",
      "change_request_id": "493664636982264832",
      "status__v": "CHANGE_PROCESSED",
      "result__v": "CHANGE_REJECTED",
      "entity_type": "HCP",
      "vid_key": "Entity:462463289150931969",
      "vid__v": "462463289150931969",
      "resolution_notes": [
        {
          "comment": "System Rejected - Can't update an INVALID/MERGED-INTO record",
          "fields": [
            "specialty_2__v"
          ],
          "created_date": "2014-12-15T17:20:09.620-06:00",
		  "code": "R-10001"
        }
      ],
      "created_date": "2014-10-08T16:38:47.000-05:00",
      "completed_date": "2014-12-15T17:20:11.000-06:00"
    },
    {
      "metadata": {
        "creator": "john.smith@opendata.com",
        "note": "Changes applied",
        "source": "Entity Profile Editor"
      },
      "entity": {
        "parent_hcos__v": [
          {
            "vid_key": "ParentHCO:477715384619762691",
            "vid__v": "477715384619762691",
            "object_id": "527723032584651776",
            "is_primary_relationship__v": {
              "change_requested": "N",
              "final_value": null,
              "result": null
            }
          }
        ]
      },
      "taskCountry": "US",
      "task_type": "CHANGE_REQUEST",
      "original_task_type": "CHANGE_REQUEST",
      "change_request_id": "527723033129911296",
      "status__v": "CHANGE_PENDINGREVIEW",
      "result__v": null,
      "entity_type": "HCP",
      "vid_key": "Entity:469466290176656385",
      "vid__v": "469466290176656385",
      "resolution_notes": null,
      "created_date": "2014-11-24T15:26:44.000-06:00",
      "completed_date": null
    }
  ]
}

Change Request Search

This API enables you to retrieve all change requests that match a specified search criteria.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/change_request/search

Parameters
q

The text for the search query. Uses the following fields:

  • subject
  • description
  • summary
  • task_type
  • task_data
  • comment
offset
The first record to retrieve from the offset specified. The default value is 0.
limit
The number to limit the results returned. The default is 10; the maximum is 100.
sort
The attribute to sort results by; for example, task_type .
sortOrder
The sort order: asc for ascending or desc for descending.
filters
Filters for refining the results.. See the Search Filters table for more information.

 

Search filters
task_type
The change request type.
  • ADD_REQUEST - An add request submitted on an existing record.
  • CHANGE_REQUEST - A change request for a new record.
task_status
The status of the task.
  • NEW - A new task has been received but not run yet.
  • IN_PROGRESS - A task is pending approval by a data steward.
  • CLOSED - A task has been closed.
task_country
The country to which the task belongs.
task_state
The state of the task.
  • NEW - A new task has been received but not run yet.
  • PENDINGREVIEW - A task was received and processed but is pending review by data stewards.
  • CANCELLED - The task was cancelled.
  • FAILED - The task failed due to an unexpected error.
  • PROCESSED - The task was processed and a result issued.
  • PROCESSING - The task is being processed.
resolution
The resolution for the task.
  • CHANGE_PENDING - All changes for this request are pending approval.
  • CHANGE_ACCEPTED - All changes for this request have been accepted.
  • CHANGE_REJECTED - All changes for this request were rejected.
  • CHANGE_PARTIAL - At least one field change was accepted.
created_at
The date the task was created .
created_by
The ID of the user that generated the change request.
creator
The user name of the user that generated the change request.
completed_at
The completed date of the task. Is empty if the change request is not completed. Date format is ISO8601 standard.
completed_by
The ID of the user that approved the task.
open
The task is open: True or False.
entity_type
The entity type for the task: HCP or HCO.
entity_id
The Veeva entity ID.
owner
The ID of the owner of the task.

Filter values passed in from a GET request need to be URL-encoded.

Response
responseStatus

The status of the response.

totalCount

The total number of search results, regardless of the set limit.

offset
The first record to retrieve from the offset specified. The default value is 0.
limit

The number provided to limit the search results.

change_requests

metadata -

  • creator - The name of the user that generated the request.
  • note - Details about the request.
  • source - Additional information about the source of the request.

entity - Details of the response changes, one per field, for the entity provided.

  • field - The Veeva OpenData API name of the HCP or HCO field.
    • change_requested - The value of the requested change.
    • final_value - The new value of the field.
    • result - See the Field Results table.
  • addresses__v - An array of address response changes, one per address, for the entity provided. See the Child Object Attributes table for more information.
  • licenses__v - An array of license response changes, one per license, for the entity provided. See the Child Object Attributes table for more information.
  • parent_hcos__v - An array of parent HCO response changes, one per parent HCO, for the entity provided. See the Child Object Attributes table for more information.

taskCountry - The country code of the entity.

task_type - The final change request type as an add request. Could become a change request.

original_task_type - The original change request type.

change_request_id - The change request ID.

status__v - The change request status.

  • CHANGE_NEW - A new task has been received but not run yet.
  • CHANGE_PENDINGREVIEW - All changes for this request are pending approval.
  • CHANGE_PARTIALLYPROCESSED - At least one field change was accepted.
  • CHANGE_PROCESSED - The task was processed and a result issued.
  • CHANGE_CANCELLED - The task was cancelled.

result__v - The change request result.

  • CHANGE_ACCEPTED - All changes for this request have been accepted.
  • CHANGE_REJECTED - All changes for this request were rejected.
  • CHANGE_PARTIAL - At least one field change was accepted.

entity_type - The entity type of the change request: HCP or HCO.

vid_key - The external HCP or HCO vid_key in the original change request.

resolution_notes - An array of comments containing notes added during change request processing.

  • comment - Notes added by the Veeva OpenData user.
  • fields - An array of fields for which the comments were made.
  • created_date - The date the resolution notes were added by the Veeva OpenData user.

created_date - The creation date of the change request. The date uses the ISO8601 standard.

completed_date - The completed date for the change request. If the change request is not completed, this value is empty. The date format uses the ISO8601 standard.

errors - Errors in retrieving the requested change requests.

The following may be displayed at the field level within a change request.

Field results
CHANGE_ACCEPTED
The change for this field has been accepted.
CHANGE_REJECTED
The change for this field has been rejected.
CHANGE_MODIFIED
The change for this field has been accepted with differences .
CHANGE_ALREADYAPPLIED
The change for this field has already been applied.
CHANGE_ADDED
The change for this field was added to the change request after creation.

These do not reflect the result of the change request itself; refer to result__v for the request result.

Child object attributes
vid_key
The external vid_key supplied in the original change request.
vid__v
The Veeva ID of the entity.
field

The Veeva OpenData API name of the entity's field for the HCP or HCO.

  • change_requested - The value of the requested change.
  • final_value - The new value of the field.
  • result -
    • CHANGE_ACCEPTED - The change for this field has been accepted.
    • CHANGE_REJECTED - The change for this field has been rejected.
    • CHANGE_MODIFIED - The change for this field has been accepted with differences .
    • CHANGE_ALREADYAPPLIED - The change for this field has already been applied.
    • CHANGE_ADDED - The change for this field was added to the change request after creation.
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/change_request/search?offset=0&filters=task_status:NEW~task_country:US
{
   "offset" : 0,
   "change_requests" : [
      {
         "vid__v" : "242979820290442251",
         "entity_type" : "HCP",
         "completed_date" : null,
         "status__v" : "CHANGE_PENDINGREVIEW",
         "taskCountry" : "US",
         "change_request_id" : "928804073117519007",
         "vid_key" : "Entity:242979820290442251",
         "metadata" : {
            "note" : "Master changes applied",
            "creator" : "john.smith@opendata.com",
            "source" : "Entity Profile Editor"
         },
         "parent_task_ids" : [],
         "created_date" : "2016-08-15T15:04:40.000-07:00",
         "entity" : {
            "specialty_1__v" : {
               "final_value" : null,
               "result" : null,
               "change_requested" : "UCM"
            }
         },
         "result__v" : null,
         "original_task_type" : "CHANGE_REQUEST",
         "task_type" : "CHANGE_REQUEST",
         "resolution_notes" : null
      },
      {
         "parent_task_ids" : [],
         "metadata" : {
            "source" : "Entity Profile Editor",
            "creator" : "john.smith@opendata.com",
            "note" : "address update. he no longer works there"
         },
         "created_date" : "2016-08-22T10:00:17.000-07:00",
         "original_task_type" : "CHANGE_REQUEST",
         "result__v" : null,
         "entity" : {
            "addresses__v" : [
               {
                  "postal_code__v" : {
                     "result" : null,
                     "change_requested" : "15243-1317",
                     "final_value" : null
                  },
                  "object_id" : "928842512290483360",
                  "country__v" : {
                     "final_value" : null,
                     "result" : null,
                     "change_requested" : "US"
                  },
                  "vid_key" : "Address:243244004181804041",
                  "locality__v" : {
                     "final_value" : null,
                     "change_requested" : "Pittsburgh",
                     "result" : null
                  },
                  "vid__v" : "243244004181804041",
                  "address_line_3__v" : {
                     "final_value" : null,
                     "result" : null,
                     "change_requested" : null
                  },
                  "administrative_area__v" : {
                     "change_requested" : "US-PA",
                     "result" : null,
                     "final_value" : null
                  },
                  "address_line_2__v" : {
                     "change_requested" : null,
                     "result" : null,
                     "final_value" : null
                  },
                  "address_line_1__v" : {
                     "final_value" : null,
                     "change_requested" : "277 Dupont Cir",
                     "result" : null
                  }
               }
            ]
         },
         "resolution_notes" : null,
         "task_type" : "CHANGE_REQUEST",
         "entity_type" : "HCP",
         "vid__v" : "242979820290442251",
         "change_request_id" : "928842512431123615",
         "vid_key" : "Entity:242979820290442251",
         "taskCountry" : "US",
         "status__v" : "CHANGE_PENDINGREVIEW",
         "completed_date" : null
      }
   ],
   "totalCount" : 268,
   "responseStatus" : "SUCCESS",
   "limit" : 2
}

Retrieve entities

This API enables you to obtain information about any entity or child entity (addresses, licenses, and parent HCOs).

Retrieve entity

This API enables you to obtain information on any entity without identifying the specific entity type. It is only used to retrieve information using the GET method.

You can only retrieve entries for which you have access permission.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/entity/{vid_key}

  • vid_key is the key of the entity to retrieve
Optional parameters
enrichedResults
Specifies whether or not to display labels for reference type fields in the results.
resultLanguage
Specifies the language to use if the enriched results option is enabled. Uses the IETF BCP 47 language standard.
returnHashtagsForType
Return hashtags for the requested type using the following values:
  • NETWORK - Display predefined Network hashtags.
  • ALL - Display Network-defined and custom hashtags.
  • NONE - Do not display hashtags.
Response
entities
An array of fields and values for each entity.
  • entityId - The entity ID.
  • entityType - The entity type.
  • metaData - Included for structure only; not applicable for this call.
  • entity - The fields and corresponding values for the entity.
responseStatus
The status of the response.
hashtags
The list of hashtags available to the authenticated API user:
  • name - the hashtag name.
  • color - the hashtag color.
  • tooltip - the tooltip of the hashtag.
  • tooltipLabel - the field value label of the hashtag.
  • tooltipValue - the field value of the hashtag.
  • tooltipHasOtherValue - Returns True if the tooltip has more than three field values.

Enriched results

When the enrichedResults parameter is used, the following data is returned:

  • Reference value labels - _value__u attribute helper
  • Parent HCO corporate name - parent_hco_corp_name__v
  • Parent HCO address - parenthco_address__u
  • Parent HCO record state - parenthco_record_state__u
  • Parent HCO status - parenthco_status__u
  • Address Network entity ID (VID) for licenses - address_vid__v__u
  • Sub-object sorting - Network sorting logic for sub-objects (for example, active objects are listed before inactive objects).

The helper attributes with the __u suffix denote values that are typically displayed in the Network UI.

Notes

  • Following a retrieve entity call, Veeva Opendata returns all resource information.
  • The information returned does not include attributes with NULL values.
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/entity/932671707694238303
{
   "entities" : [
      {
         "entity" : {
            "vid__v" : "932671707694238303",
            "last_name__v" : "Smith",
            "status_update_time__v" : "2018-06-29T14:15:00.000Z",
            "licenses__v" : [
               {
                  "expiration_date__v" : "2013-12-31",
                  "entity_vid__v" : "932671707694238303",
                  "license_number__v" : "1256987",
                  "license_status__v" : "A",
                  "record_state__v" : "VALID",
                  "record_delta_id__v" : "932671707821604865",
                  "record_owner_name__v" : "vod",
                  "effective_date__v" : "2010-05-05",
                  "address_vid__v" : "932671707694238304",
                  "modified_date__v" : "2018-06-29T14:15:02.000Z",
                  "is_veeva_master__v" : true,
                  "license_status_condition__v" : "0",
                  "record_owner_type__v" : "VOD",
                  "created_date__v" : "2018-06-29T14:15:00.000Z",
                  "body__v" : "ALMD",
                  "entity_type__v" : "HCP",
                  "status_update_time__v" : "2018-06-29T14:15:00.000Z",
                  "license_subtype__v" : "U",
                  "vid__v" : "932671707694238305"
               }
            ],
            "specialty_1_rank__v" : 1,
            "created_date__v" : "2018-06-29T14:15:00.000Z",
            "specialty_1__v" : "AC",
            "record_owner_type__v" : "VOD",
            "hcp_type__v" : "P",
            "ama_do_not_contact__v" : "N",
            "is_veeva_master__v" : true,
            "hcp_status__v" : "A",
            "kaiser__v" : "N",
            "pdrp_optout__v" : "N",
            "modified_date__v" : "2018-06-29T14:15:02.000Z",
            "record_version__v" : 1,
            "primary_country__v" : "US",
            "first_name__v" : "James",
            "record_owner_name__v" : "vod",
            "record_delta_id__v" : "932671707842248703",
            "fellow__v" : "N",
            "gender__v" : "M",
            "record_state__v" : "VALID",
            "formatted_name__v" : "James Smith",
            "parent_hcos__v" : [],
            "grad_training__v" : "N",
            "addresses__v" : [
               {
                  "premise_number__v" : "326",
                  "latitude__v" : 46.815034,
                  "postal_code_primary__v" : "58501",
                  "ISO_3166_3__v" : "USA",
                  "thoroughfare_trailing_type__v" : "DR",
                  "delivery_address_1__v" : "326 Harolds DR",
                  "record_state__v" : "VALID",
                  "record_owner_name__v" : "vod",
                  "address_status__v" : "A",
                  "address_line_1__v" : "326 Harolds Drive",
                  "longitude__v" : -100.774784,
                  "country__v" : "US",
                  "ISO_3166_n__v" : "840",
                  "created_date__v" : "2018-06-29T14:15:00.000Z",
                  "vid__v" : "932671707694238304",
                  "administrative_area__v" : "US-ND",
                  "locality__v" : "BISMARCK",
                  "thoroughfare__v" : "Harolds DR",
                  "premise__v" : "326",
                  "thoroughfare_name__v" : "Harolds",
                  "entity_vid__v" : "932671707694238303",
                  "record_delta_id__v" : "932671707821604864",
                  "address_type__v" : "P",
                  "modified_date__v" : "2018-06-29T14:15:02.000Z",
                  "address_ordinal__v" : 1,
                  "is_veeva_master__v" : true,
                  "entity_type__v" : "HCP",
                  "record_owner_type__v" : "VOD",
                  "formatted_address__v" : "326 Harolds DR BISMARCK ND 58501",
                  "postal_code__v" : "58501",
                  "delivery_address__v" : "326 Harolds DR",
                  "status_update_time__v" : "2018-06-29T14:15:00.000Z",
                  "address_verification_status__v" : "DS"
               }
            ],
         },
         "entityType" : "HCP",
         "metaData" : {},
         "entityId" : "932671707694238303"
      }
   ],
   "responseStatus" : "SUCCESS"
}

Batch retrieve entities

This API enables you to retrieve entity details directly from Veeva OpenData.

The entities you can retrieve include HCPs and HCOs, and details are returned for all corresponding child entities: addresses, licenses, and parent HCOs.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/entities/batch

This API takes no parameters.

POST data
entities
An array of fields and values for each entity.
  • vid_key - The HCP or HCO vid_key.
enrichedResults
Specifies whether or not to display labels for reference type fields in the results.
resultLanguage
Specifies the language to use if the enriched results option is enabled. Uses the IETF BCP 47 language standard.
Response
responseStatus
The status of the response in Veeva OpenData.
errors
An array of errors.
  • type - The error type.
  • message - A detailed message for the error type. This message is subject to change and is not contractual for error handling.
entities
An array of fields and values for each entity.
  • entityType - The entity type.
  • metaData - Included for structure only; not applicable for this call.
  • entity - The fields and corresponding values for the entity.

Enriched results

When the enrichedResults parameter is used, the following data is returned:

  • Reference value labels - _value__u attribute helper
  • Parent HCO corporate name - parent_hco_corp_name__v
  • Parent HCO address - parenthco_address__u
  • Parent HCO record state - parenthco_record_state__u
  • Parent HCO status - parenthco_status__u
  • Address Network entity ID (VID) for licenses - address_vid__v__u
  • Sub-object sorting - Network sorting logic for sub-objects (for example, active objects are listed before inactive objects).

The helper attributes with the __u suffix denote values that are typically displayed in the Network UI.

Notes

  • responseStatus returns a failure if standard errors occur.
  • responseStatus returns PARTIAL_SUCCESS if:
    • vid_key does not represent an existing entity.
    • the entity specified by vid_key is not an HCP or HCO.
  • Batch API calls are limited to 500 operations per call. An attempt to submit more operations will results in a failure of all operations in the call.
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/entities/batch
{
  "entities": [
    {
      "vid_key": "Entity:932315773830225247"
    },
    {
      "vid_key": "Entity:932910724243720799"
    },
    {
      "vid_key": "Entity:932241620698597983"
    }
  ],
  "enrichedResults": "true",
  "resultLanguage": "en"
}
{ 
   "responseStatus":"SUCCESS",
   "entities":[ 
      { 
         "entityId":"932315773830225247",
         "entityType":"HCP",
         "metaData":{ 

         },
         "entity":{ 
            "gender__v":"M",
            "gender__v_value__u":"Male",
            "specialty_1__v":"AC",
            "specialty_1__v_value__u":"Acute Care",
            "hcp_type__v":"P",
            "hcp_type__v_value__u":"Prescriber",
            "first_name__v":"James",
            "record_owner_type__v":"VOD",
            "grad_training__v":"N",
            "grad_training__v_value__u":"No/False",
            "record_delta_id__v":"932315774409474047",
            "last_name__v":"Smith",
            "record_owner_name__v":"vod",
            "fellow__v":"N",
            "fellow__v_value__u":"No/False",
            "kaiser__v":"N",
            "kaiser__v_value__u":"No/False",
            "formatted_name__v":"James Smith",
            "primary_country__v":"US",
            "primary_country__v_value__u":"United States",
            "created_date__v":"2018-04-27T17:36:28.000Z",
            "pdrp_optout__v":"N",
            "pdrp_optout__v_value__u":"No/False",
            "is_veeva_master__v":true,
            "hcp_status__v":"A",
            "hcp_status__v_value__u":"Active",
            "ama_do_not_contact__v":"N",
            "ama_do_not_contact__v_value__u":"No/False",
            "status_update_time__v":"2018-04-27T17:36:27.000Z",
            "entity_type__v":"HCP",
            "entity_type__v_value__u":"Health Care Professional",
            "modified_date__v":"2018-04-27T17:36:28.000Z",
            "record_state__v":"UNDER_REVIEW",
            "record_state__v_value__u":"Under Review",
            "record_version__v":0,
            "vid__v":"932315773830225247",
            "is_externally_mastered__v":false,
            "specialty_1_rank__v":1,
            "addresses__v":[ 
               { 
                  "dpv_confirmed_indicator__v":"X",
                  "dpv_confirmed_indicator__v_value__u":"The address was not submitted for DPV confirmation",
                  "postal_code_primary__v":"58501",
                  "address_line_1__v":"326 Harolds Dr",
                  "record_owner_type__v":"VOD",
                  "premise__v":"326",
                  "record_delta_id__v":"932315774330634240",
                  "record_owner_name__v":"vod",
                  "thoroughfare_trailing_type__v":"Dr",
                  "locality__v":"Bismarck",
                  "delivery_address__v":"326 Harolds Dr",
                  "administrative_area_parsed__v":"ND",
                  "country__v":"US",
                  "country__v_value__u":"United States",
                  "created_date__v":"2018-04-27T17:36:28.000Z",
                  "premise_number__v":"326",
                  "is_veeva_master__v":true,
                  "ISO_3166_3__v":"USA",
                  "ISO_3166_3__v_value__u":"United States",
                  "ISO_3166_n__v":"840",
                  "ISO_3166_n__v_value__u":"United States",
                  "thoroughfare__v":"Harolds Dr",
                  "status_update_time__v":"2018-04-27T17:36:28.000Z",
                  "address_type__v":"P",
                  "address_type__v_value__u":"Professional",
                  "delivery_address_1__v":"326 Harolds Dr",
                  "sub_administrative_area__v":"Burleigh",
                  "entity_type__v":"HCP",
                  "entity_type__v_value__u":"Health Care Professional",
                  "address_verification_status__v":"P",
                  "address_verification_status__v_value__u":"Partially Verified",
                  "address_status__v":"A",
                  "address_status__v_value__u":"Active",
                  "modified_date__v":"2018-04-27T17:36:28.000Z",
                  "record_state__v":"UNDER_REVIEW",
                  "record_state__v_value__u":"Under Review",
                  "vid__v":"932315773850225248",
                  "entity_vid__v":"932315773830225247",
                  "postal_code__v":"58501",
                  "administrative_area__v":"US-ND",
                  "administrative_area__v_value__u":"North Dakota",
                  "formatted_address__v":"326 Harolds Dr Bismarck ND 58501",
                  "latitude__v":46.815034,
                  "address_ordinal__v":1,
                  "thoroughfare_name__v":"Harolds",
                  "longitude__v":-100.774784,
                  "entity_type__u":"ADDRESS",
                  "object_name__u":"ADDRESS"
               }
            ],
            "licenses__v":[ 
               { 
                  "address_vid__v":"932315773830225248",
                  "record_owner_type__v":"VOD",
                  "effective_date__v":"2010-05-05",
                  "license_number__v":"1256987",
                  "status_update_time__v":"2018-04-27T17:36:28.000Z",
                  "record_delta_id__v":"932315774330634241",
                  "license_status__v":"A",
                  "license_status__v_value__u":"Active",
                  "entity_type__v":"HCP",
                  "entity_type__v_value__u":"Health Care Professional",
                  "record_owner_name__v":"vod",
                  "expiration_date__v":"2013-12-31",
                  "body__v":"ALMD",
                  "modified_date__v":"2018-04-27T17:36:28.000Z",
                  "record_state__v":"UNDER_REVIEW",
                  "record_state__v_value__u":"Under Review",
                  "license_status_condition__v":"0",
                  "license_status_condition__v_value__u":"No Known Conditions",
                  "license_subtype__v":"U",
                  "license_subtype__v_value__u":"Unlimited",
                  "vid__v":"932315773830225249",
                  "entity_vid__v":"932315773850225247",
                  "created_date__v":"2018-04-27T17:36:28.000Z",
                  "is_veeva_master__v":true,
                  "entity_type__u":"LICENSE",
                  "object_name__u":"LICENSE",
                  "address_vid__v_value__u":"326 Harolds Dr Bismarck ND 58501"
               }
            ],
            "parent_hcos__v":[ 

            ],
            "entity_type__u":"HCP",
            "object_name__u":"HCP"
         }
      },
      { 
         "entityId":"932910724243720799",
         "entityType":"HCP",
         "metaData":{ 

         },
         "entity":{ 
            "gender__v":"M",
            "gender__v_value__u":"Male",
            "specialty_1__v":"AC",
            "specialty_1__v_value__u":"Acute Care",
            "hcp_type__v":"P",
            "hcp_type__v_value__u":"Prescriber",
            "first_name__v":"Miranda",
            "record_owner_type__v":"VOD",
            "grad_training__v":"N",
            "grad_training__v_value__u":"No/False",
            "record_delta_id__v":"932910724917329920",
            "last_name__v":"Jane",
            "record_owner_name__v":"vod",
            "fellow__v":"N",
            "fellow__v_value__u":"No/False",
            "kaiser__v":"N",
            "kaiser__v_value__u":"No/False",
            "formatted_name__v":"Miranda Jane",
            "primary_country__v":"US",
            "primary_country__v_value__u":"United States",
            "created_date__v":"2018-08-10T19:20:09.000Z",
            "pdrp_optout__v":"N",
            "pdrp_optout__v_value__u":"No/False",
            "is_veeva_master__v":true,
            "hcp_status__v":"A",
            "hcp_status__v_value__u":"Active",
            "ama_do_not_contact__v":"N",
            "ama_do_not_contact__v_value__u":"No/False",
            "status_update_time__v":"2018-08-10T19:20:08.000Z",
            "entity_type__v":"HCP",
            "entity_type__v_value__u":"Health Care Professional",
            "modified_date__v":"2018-08-10T19:20:11.000Z",
            "record_state__v":"VALID",
            "record_state__v_value__u":"Valid",
            "record_version__v":1,
            "vid__v":"932910724243720799",
            "is_externally_mastered__v":false,
            "specialty_1_rank__v":1,
            "addresses__v":[ 
               { 
                  "postal_code_primary__v":"58501",
                  "address_line_1__v":"326 Harolds Drive",
                  "record_owner_type__v":"VOD",
                  "premise__v":"326",
                  "record_delta_id__v":"932910724760764415",
                  "record_owner_name__v":"vod",
                  "thoroughfare_trailing_type__v":"DR",
                  "locality__v":"BISMARCK",
                  "delivery_address__v":"326 Harolds DR",
                  "country__v":"US",
                  "country__v_value__u":"United States",
                  "created_date__v":"2018-08-10T19:20:09.000Z",
                  "premise_number__v":"326",
                  "is_veeva_master__v":true,
                  "ISO_3166_3__v":"USA",
                  "ISO_3166_3__v_value__u":"United States",
                  "ISO_3166_n__v":"840",
                  "ISO_3166_n__v_value__u":"United States",
                  "thoroughfare__v":"Harolds DR",
                  "status_update_time__v":"2018-08-10T19:20:09.000Z",
                  "address_type__v":"P",
                  "address_type__v_value__u":"Professional",
                  "delivery_address_1__v":"326 Harolds DR",
                  "entity_type__v":"HCP",
                  "entity_type__v_value__u":"Health Care Professional",
                  "address_verification_status__v":"DS",
                  "address_verification_status__v_value__u":"Data Steward Approved",
                  "address_status__v":"A",
                  "address_status__v_value__u":"Active",
                  "modified_date__v":"2018-08-10T19:20:11.000Z",
                  "record_state__v":"VALID",
                  "record_state__v_value__u":"Valid",
                  "vid__v":"932910724244965983",
                  "entity_vid__v":"932910724243720799",
                  "postal_code__v":"58501",
                  "administrative_area__v":"US-ND",
                  "administrative_area__v_value__u":"North Dakota",
                  "formatted_address__v":"326 Harolds DR BISMARCK ND 58501",
                  "latitude__v":46.815034,
                  "address_ordinal__v":1,
                  "thoroughfare_name__v":"Harolds",
                  "longitude__v":-100.774784,
                  "entity_type__u":"ADDRESS",
                  "object_name__u":"ADDRESS"
               }
            ],
            "licenses__v":[ 
               { 
                  "address_vid__v":"932910724244965983",
                  "record_owner_type__v":"VOD",
                  "effective_date__v":"2010-05-05",
                  "license_number__v":"1256987",
                  "status_update_time__v":"2018-08-10T19:20:09.000Z",
                  "record_delta_id__v":"932910724760764416",
                  "license_status__v":"A",
                  "license_status__v_value__u":"Active",
                  "entity_type__v":"HCP",
                  "entity_type__v_value__u":"Health Care Professional",
                  "record_owner_name__v":"vod",
                  "expiration_date__v":"2013-12-31",
                  "body__v":"ALMD",
                  "modified_date__v":"2018-08-10T19:20:11.000Z",
                  "record_state__v":"VALID",
                  "record_state__v_value__u":"Valid",
                  "license_status_condition__v":"0",
                  "license_status_condition__v_value__u":"No Known Conditions",
                  "license_subtype__v":"U",
                  "license_subtype__v_value__u":"Unlimited",
                  "vid__v":"932910724244965984",
                  "entity_vid__v":"932910724243720799",
                  "created_date__v":"2018-08-10T19:20:09.000Z",
                  "is_veeva_master__v":true,
                  "entity_type__u":"LICENSE",
                  "object_name__u":"LICENSE",
                  "address_vid__v_value__u":"326 Harolds DR BISMARCK ND 58501"
               }
            ],
            "parent_hcos__v":[ 

            ],
            "entity_type__u":"HCP",
            "object_name__u":"HCP"
         }
      },
      { 
         "entityId":"932241620698597983",
         "entityType":"HCP",
         "metaData":{ 

         },
         "entity":{ 
            "gender__v":"M",
            "gender__v_value__u":"Male",
            "specialty_1__v":"AC",
            "specialty_1__v_value__u":"Acute Care",
            "hcp_type__v":"P",
            "hcp_type__v_value__u":"Prescriber",
            "first_name__v":"Wilf",
            "record_owner_type__v":"VOD",
            "grad_training__v":"N",
            "grad_training__v_value__u":"No/False",
            "record_delta_id__v":"932241620768227327",
            "last_name__v":"Knoxford",
            "record_owner_name__v":"vod",
            "fellow__v":"N",
            "fellow__v_value__u":"No/False",
            "kaiser__v":"N",
            "kaiser__v_value__u":"No/False",
            "formatted_name__v":"Wilf Knoxford",
            "primary_country__v":"US",
            "primary_country__v_value__u":"United States",
            "created_date__v":"2018-04-14T15:18:14.000Z",
            "pdrp_optout__v":"N",
            "pdrp_optout__v_value__u":"No/False",
            "is_veeva_master__v":true,
            "hcp_status__v":"A",
            "hcp_status__v_value__u":"Active",
            "ama_do_not_contact__v":"N",
            "ama_do_not_contact__v_value__u":"No/False",
            "status_update_time__v":"2018-04-14T15:18:14.000Z",
            "entity_type__v":"HCP",
            "entity_type__v_value__u":"Health Care Professional",
            "modified_date__v":"2018-04-14T15:18:14.000Z",
            "record_state__v":"UNDER_REVIEW",
            "record_state__v_value__u":"Under Review",
            "record_version__v":0,
            "vid__v":"932241620698597983",
            "is_externally_mastered__v":false,
            "specialty_1_rank__v":1,
            "addresses__v":[ 
               { 
                  "dpv_confirmed_indicator__v":"X",
                  "dpv_confirmed_indicator__v_value__u":"The address was not submitted for DPV confirmation",
                  "postal_code_primary__v":"58501",
                  "address_line_1__v":"326 Harolds Dr",
                  "record_owner_type__v":"VOD",
                  "premise__v":"326",
                  "record_delta_id__v":"932241620746207232",
                  "record_owner_name__v":"vod",
                  "thoroughfare_trailing_type__v":"Dr",
                  "locality__v":"Bismarck",
                  "delivery_address__v":"326 Harolds Dr",
                  "administrative_area_parsed__v":"ND",
                  "country__v":"US",
                  "country__v_value__u":"United States",
                  "created_date__v":"2018-04-14T15:18:14.000Z",
                  "premise_number__v":"326",
                  "is_veeva_master__v":true,
                  "ISO_3166_3__v":"USA",
                  "ISO_3166_3__v_value__u":"United States",
                  "ISO_3166_n__v":"840",
                  "ISO_3166_n__v_value__u":"United States",
                  "thoroughfare__v":"Harolds Dr",
                  "status_update_time__v":"2018-04-14T15:18:14.000Z",
                  "address_type__v":"P",
                  "address_type__v_value__u":"Professional",
                  "delivery_address_1__v":"326 Harolds Dr",
                  "sub_administrative_area__v":"Burleigh",
                  "entity_type__v":"HCP",
                  "entity_type__v_value__u":"Health Care Professional",
                  "address_verification_status__v":"P",
                  "address_verification_status__v_value__u":"Partially Verified",
                  "address_status__v":"A",
                  "address_status__v_value__u":"Active",
                  "modified_date__v":"2018-04-14T15:18:14.000Z",
                  "record_state__v":"UNDER_REVIEW",
                  "record_state__v_value__u":"Under Review",
                  "vid__v":"932241620698597984",
                  "entity_vid__v":"932241620698597983",
                  "postal_code__v":"58501",
                  "administrative_area__v":"US-ND",
                  "administrative_area__v_value__u":"North Dakota",
                  "formatted_address__v":"326 Harolds Dr Bismarck ND 58501",
                  "latitude__v":46.815034,
                  "address_ordinal__v":1,
                  "thoroughfare_name__v":"Harolds",
                  "longitude__v":-100.774784,
                  "entity_type__u":"ADDRESS",
                  "object_name__u":"ADDRESS"
               }
            ],
            "licenses__v":[ 
               { 
                  "address_vid__v":"932241620698597984",
                  "record_owner_type__v":"VOD",
                  "effective_date__v":"2010-05-05",
                  "license_number__v":"1256987",
                  "status_update_time__v":"2018-04-14T15:18:14.000Z",
                  "record_delta_id__v":"932241620746207233",
                  "license_status__v":"A",
                  "license_status__v_value__u":"Active",
                  "entity_type__v":"HCP",
                  "entity_type__v_value__u":"Health Care Professional",
                  "record_owner_name__v":"vod",
                  "expiration_date__v":"2013-12-31",
                  "body__v":"ALMD",
                  "modified_date__v":"2018-04-14T15:18:14.000Z",
                  "record_state__v":"UNDER_REVIEW",
                  "record_state__v_value__u":"Under Review",
                  "license_status_condition__v":"0",
                  "license_status_condition__v_value__u":"No Known Conditions",
                  "license_subtype__v":"U",
                  "license_subtype__v_value__u":"Unlimited",
                  "vid__v":"932241620698597985",
                  "entity_vid__v":"932241620698597983",
                  "created_date__v":"2018-04-14T15:18:14.000Z",
                  "is_veeva_master__v":true,
                  "entity_type__u":"LICENSE",
                  "object_name__u":"LICENSE",
                  "address_vid__v_value__u":"326 Harolds Dr Bismarck ND 58501"
               }
            ],
            "parent_hcos__v":[ 

            ],
            "entity_type__u":"HCP",
            "object_name__u":"HCP"
         }
      }
   ]
}

Retrieve metadata

Metadata enables you to retrieve summary and detailed information about fields, field groups. object types, and reference data. You can also retrieve summary information about each available Veeva OpenData API version.

This API provides the full Veeva OpenData data model and data dictionary across all regions and countries. Certain fields are considered premium fields or may not be mastered in a particular country. Review the Veeva OpenData data dictionary and speak with your Veeva OpenData implementation analyst for guidance on your subscription and the fields that are available to you. Fields that are not available to your subscription will have no values and will not be retrievable in API call responses.

You can get detailed information about the Veeva OpenData data model in its data dictionary in the Veeva Support Portal. Note that you need to register for access to the Support Portal.

Retrieve available API versions

This enables you to retrieve summary information about each API version available in Veeva OpenData.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata

This API takes no parameters.

Response
responseStatus
The status of the response from Veeva OpenData.
values
An array of values containing each available version and the version-specific API URL information.
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata
{
    "responseStatus": "SUCCESS",
    "values": {
        "v1.0": "https://opendataexplorer.veeva.com/api/opendata/v1.0"
    }
}

Retrieve object types metadata

This API enables you to retrieve the list of object types available in Veeva OpenData.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/objectTypes

This API takes no parameters.

Response
responseStatus
The status of the response from Veeva OpenData.
objectTypes
An array of attribute information objects:
  • name - the entity name (HCP, HCO, ADDRESS, LICENSE, PARENTHCO)
  • description - Localized text description of the entity
  • status - returns all types regardless of the status
  • customerDefined -False.
  • type - *object*, *sub-object*, or *relationship*
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/objectTypes
{
   "responseStatus" : "SUCCESS",
   "objectTypes" : [
      {
         "description" : "Health Care Professional",
         "type" : "object",
         "status" : "ACTIVE",
         "customer_defined" : false,
         "name" : "HCP"
      },
      {
         "description" : "Health Care Organization",
         "type" : "object",
         "name" : "HCO",
         "customer_defined" : false,
         "status" : "ACTIVE"
      },
      {
         "description" : "Address",
         "type" : "sub-object",
         "customer_defined" : false,
         "status" : "ACTIVE",
         "name" : "ADDRESS"
      },
      {
         "name" : "LICENSE",
         "status" : "ACTIVE",
         "customer_defined" : false,
         "type" : "sub-object",
         "description" : "License"
      },
      {
         "type" : "relationship",
         "description" : "Parent HCO",
         "name" : "PARENTHCO",
         "customer_defined" : false,
         "status" : "ACTIVE"
      }
   ]
}

Retrieve fields metadata

This API enables you to retrieve detailed or summary information about the fields on each entity in Veeva OpenData.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/fields

Optional parameters
objectTypes
Filter fields to those applicable for certain object types:
  • Default - do not filter by object type.
  • Values - comma-separated list of object types from: HCP, HCO, LICENSE, ADDRESS, PARENTHCO
details
Include field details:
  • Default - Only returns field IDs
  • Value - full (include field details in the results)
labels
Include labels in field details:
  • Default - Include labels
  • Values - True or empty (include labels in the field details in the results)
fieldGroup
Filter fields to those applicable for a certain field group:
  • Default - do not filter by field group
  • Values - The desired field group, for example, credentials, medical_degree, and so on
country
Filter fields by country visibility:
  • Default - do not filter by country
  • Values - The desired country value, for example, US, GB, FR. The country must be visible to the authenticated user.
countries
Filter fields by country visibility:
  • Default - do not filter by country
  • Values - The desired country values, for example, US, GB, FR. The countries must be visible to the authenticated user.
Response
responseStatus
The status of the response from.
attributes
An array attribute of information objects:
  • field_id - The ID of the field; for example, first_name__v.
  • type:
    • dataType - The type object, containing two attributes:
      • VEEVAID - the Veeva ID
      • STRING - text
      • YEAR - year value (no month or day)
      • DATE - date (no time)
      • DATETIME - date + Time (timestamp)
      • NUMBER - integer number
      • DOUBLE - floating point number
      • BOOLEAN - True or False value
      • REFERENCE - reference code
      • SET - a collection of values
      • ALTERNATEKEY - an alternate key
    • discriminator - For reference data type, include the reference data type name
labels
Set of language to description pairs (unless labels is not equal to True or empty).
customerOwned
False.
description
Non-localized text description of field.
readOnly
True if this is a read-only attribute, False otherwise.
ownerOnlyEdit
Not relevant for Veeva OpenData.
status
One of ACTIVE, DELETED, or DEACTIVATED.
fieldGroup
Either null or the name of the group for this attribute.
fieldSet
Either null or the name of the field set for this attribute.
sinceVersion
The Veeva OpenData version of when the attribute was released, for example, 1.0.0.
maximumLength
The recommended maximum length for this attribute.
required
True if this is a required attribute, False otherwise.
blankAllowed
True if this attribute can be blank, False otherwise.
defaultValue
The default value of this attribute.
expression
NEX (Network Expression) rule that is evaluated to determine the value of this attribute
expressionFlags
Bitwise OR of flags that describe when the expression is evaluated (1=evaluate on any value change, 2=evaluate on any attribute value change, 4=evaluate only if current value is not set)
dataPrivacyFlag
The value that will be included in fields when the HCP record is marked as opted out. Current values:
  • NONE - No data privacy is applied to the field.
  • MASK_WITH_BLANK - The field value is replaced with a blank or null.
  • MASK_WITH_LABEL - The field value is replaced with a localized label: Data Privacy/Client Data Privacy
countries
The country code. Current values:
  • available - a True/False value that indicates whether the field is available for a particular country
  • required - a True/False value that indicates whether the field is required when creating a new record for a particular country
  • readOnly - a True/False value that indicates whether the field is read-only for a particular country
  • defaultValue - a True/False value that indicates the default value if NULL is provided when creating a new record for a particular country
  • expression - NEX (Network Expression) rule that is evaluated to determine the value of this attribute
  • expressionFlags - bitwise OR of flags that describe when the expression is evaluated (1=evaluate on any value change, 2=evaluate on any attribute value change, 4=evaluate only if current value is not set)
  • allowedObjectTypes - an array of allowed types (from HCP, HCO, ADDRESS, LICENSE, PARENTHCO) for a particular country

Notes

  • The response HTTP header includes Last-Modified to indicate the date when the list of fields was last changed.
  • Supports the HTTP request header If-Modified-Since to check if the list of fields was modified since the specified date. The HTTP response contains the status code of 304 Not Modified if the content is unchanged.
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/fields?objectTypes=license
{
   "attributes" : [
      "address_vid__v",
      "address_vid_key",
      "anticipated_expiry_date__v",
      "best_state_license__v",
      "body__v",
      "created_date__v",
      "dea_business_activity_code__v",
      "dea_payment_indicator__v",
      "drug_schedule__v",
      "effective_date__v",
      "entity_type__v",
      "entity_vid__v",
      "expiration_date__v",
      "grace_period__v",
      "initial_board_license_date__v",
      "is_externally_mastered__v",
      "is_proprietary__v",
      "is_veeva_master__v",
      "license_admin_area__v",
      "license_certification__v",
      "license_degree__v",
      "license_eligibility__v",
      "license_number__v",
      "license_status__v",
      "license_status_condition__v",
      "license_subtype__v",
      "licensing_body__v",
      "modified_date__v",
      "record_delta_id__v",
      "record_merged_vid__v",
      "record_owner_name__v",
      "record_owner_type__v",
      "record_state__v",
      "rxa_eligible__v",
      "source_address__v",
      "status_update_time__v",
      "type__v",
      "type_value__v",
      "vid__v"
   ],
   "responseStatus" : "SUCCESS"
}

Retrieve field details metadata

This API enables you to retrieve detailed information about the fields on each entity in Veeva OpenData.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/fields/{field_ids}

  • field_ids is a comma-separated list of field IDs to look up
Optional parameters
labels
Include labels in field details:
  • Default - Include labels
  • Values - True or empty (include labels in the field details in the results)
countries
Filter fields by country visibility:
  • Default - do not filter by country
  • Values - The desired country values, for example, US, GB, FR. The countries must be visible to the authenticated user.
Response
responseStatus
The status of the response from Veeva OpenData.
attributes
An array attribute of information objects:
  • field_id - The ID of the field; for example, first_name__v.
  • type:
    • dataType - The type object, containing two attributes:
      • VEEVAID - the Veeva ID
      • STRING - text
      • YEAR - year value (no month or day)
      • DATE - date (no time)
      • DATETIME - date + Time (timestamp)
      • NUMBER - integer number
      • DOUBLE - floating point number
      • BOOLEAN - True or False value
      • REFERENCE - reference code
      • SET - a collection of values
      • ALTERNATEKEY - an alternate key
    • discriminator - For reference data type, include the reference data type name
labels
Set of language to description pairs (unless labels is not equal to True or empty).
customerOwned
False.
description
Non-localized text description of field.
readOnly
True if this is a read-only attribute, False otherwise.
ownerOnlyEdit
Not relevant for Veeva OpenData.
status
One of ACTIVE, DELETED, or DEACTIVATED.
fieldGroup
Either null or the name of the group for this attribute.
fieldSet
Either null or the name of the field set for this attribute.
sinceVersion
The Veeva OpenData version of when the attribute was released, for example, 1.0.0.
maximumLength
The recommended maximum length for this attribute.
required
True if this is a required attribute, False otherwise.
blankAllowed
True if this attribute can be blank, False otherwise.
defaultValue
The default value of this attribute.
expression
NEX (Network Expression) rule that is evaluated to determine the value of this attribute
expressionFlags
Bitwise OR of flags that describe when the expression is evaluated (1=evaluate on any value change, 2=evaluate on any attribute value change, 4=evaluate only if current value is not set)
dataPrivacyFlag
The value that will be included in fields when the HCP record is marked as opted out. Current values:
  • NONE - No data privacy is applied to the field.
  • MASK_WITH_BLANK - The field value is replaced with a blank or null.
  • MASK_WITH_LABEL - The field value is replaced with a localized label: Data Privacy/Client Data Privacy
countries
The country code. Current values:
  • available - a True/False value that indicates whether the field is available for a particular country
  • required - a True/False value that indicates whether the field is required when creating a new record for a particular country
  • readOnly - a True/False value that indicates whether the field is read-only for a particular country
  • defaultValue - a True/False value that indicates the default value if NULL is provided when creating a new record for a particular country
  • expression - NEX rule that is evaluated to determine the value of this attribute
  • expressionFlags - bitwise OR of flags that describe when the expression is evaluated (1=evaluate on any value change, 2=evaluate on any attribute value change, 4=evaluate only if current value is not set)
  • allowedObjectTypes - an array of allowed types (from HCP, HCO, ADDRESS, LICENSE, PARENTHCO) for a particular country
changeProcedure
This field replaces the deprecated changeRequest flag. This value can be configured per region and entity. For each of defaultChangeProcedure (default change procedure for the attribute) and regionalChangeProcedures (change procedures per region), the current values are as follows:
  • DEFAULT - let the system decide what to do
  • ALWAYS_ACCEPT_CHANGE - any changes will be automatically accepted without data steward review
  • ALWAYS_REVIEW - any changes to this field must be reviewed by a data steward
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/fields/academic_title__v
{
   "attributes" : [
      {
         "customerOwned" : false,
         "sinceVersion" : "1.0.0",
         "required" : false,
         "changeProcedure" : {
            "defaultChangeProcedure" : {
               "changeRequestFlags" : {
                  "HCP" : "DEFAULT"
               }
            },
            "regionalChangeProcedures" : {}
         },
         "maximumLength" : 100,
         "labels" : {
            "zh" : "学术职务",
            "es" : "Título académico",
            "pt-BR" : "Título acadêmico",
            "tr" : "Akademik Ünvan",
            "fr" : "Titre de formation",
            "zh_HK" : "學術職務",
            "en" : "Academic Title",
            "pt" : "Título académico",
            "nl" : "Academische titel",
            "de" : "Akademischer Titel",
            "it" : "Titolo accademico",
            "ja" : "大学職位"
         },
         "expressionFlags" : 0,
         "fieldId" : "academic_title__v",
         "ownerOnlyEdit" : false,
         "fieldGroup" : null,
         "countries" : {
            "AU" : {
               "required" : false,
               "expression" : null,
               "country" : "AU",
               "allowedObjectTypes" : [],
               "available" : false,
               "defaultValue" : null,
               "expressionFlags" : 0,
               "readOnly" : false
            },
            "IE" : {
               "country" : "IE",
               "required" : false,
               "expression" : null,
               "readOnly" : false,
               "expressionFlags" : 0,
               "allowedObjectTypes" : [],
               "defaultValue" : null,
               "available" : false
            },
            "NZ" : {
               "allowedObjectTypes" : [],
               "available" : false,
               "defaultValue" : null,
               "expressionFlags" : 0,
               "readOnly" : false,
               "expression" : null,
               "required" : false,
               "country" : "NZ"
            },
            "FR" : {
               "available" : false,
               "defaultValue" : null,
               "allowedObjectTypes" : [],
               "expressionFlags" : 0,
               "readOnly" : false,
               "required" : false,
               "expression" : null,
               "country" : "FR"
            },
            "BR" : {
               "expressionFlags" : 0,
               "readOnly" : false,
               "available" : true,
               "defaultValue" : null,
               "allowedObjectTypes" : [
                  "HCP"
               ],
               "country" : "BR",
               "required" : false,
               "expression" : null
            },
            "JP" : {
               "expressionFlags" : 0,
               "readOnly" : false,
               "allowedObjectTypes" : [],
               "available" : false,
               "defaultValue" : null,
               "country" : "JP",
               "expression" : null,
               "required" : false
            },
            "CN" : {
               "country" : "CN",
               "expression" : null,
               "required" : false,
               "readOnly" : false,
               "expressionFlags" : 0,
               "defaultValue" : null,
               "available" : true,
               "allowedObjectTypes" : [
                  "HCP"
               ]
            },
            "DE" : {
               "readOnly" : false,
               "expressionFlags" : 0,
               "defaultValue" : null,
               "available" : true,
               "allowedObjectTypes" : [
                  "HCP"
               ],
               "country" : "DE",
               "required" : false,
               "expression" : null
            },
            "GB" : {
               "expressionFlags" : 0,
               "readOnly" : false,
               "allowedObjectTypes" : [],
               "available" : false,
               "defaultValue" : null,
               "country" : "GB",
               "expression" : null,
               "required" : false
            },
            "IT" : {
               "country" : "IT",
               "expression" : null,
               "required" : false,
               "expressionFlags" : 0,
               "readOnly" : false,
               "available" : false,
               "defaultValue" : null,
               "allowedObjectTypes" : []
            },
            "US" : {
               "allowedObjectTypes" : [],
               "available" : false,
               "defaultValue" : null,
               "expressionFlags" : 0,
               "readOnly" : false,
               "required" : false,
               "expression" : null,
               "country" : "US"
            }
         },
         "expression" : null,
         "blankAllowed" : true,
         "dataPrivacyFlag" : "MASK_WITH_BLANK",
         "defaultValue" : null,
         "type" : {
            "discriminator" : "HCPAcademicTitle",
            "dataType" : "REFERENCE"
         },
         "description" : "Academic Title",
         "fieldSet" : null,
         "readOnly" : false,
         "status" : "ACTIVE"
      }
   ],
   "responseStatus" : "SUCCESS"
}

Retrieve field groups metadata

This API enables you to retrieve detailed information about the field groups available in Veeva OpenData.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/fieldGroups

This API takes no parameters.

Response
responseStatus
The status of the response.
fieldGroups
An array of field groups.
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/fieldGroups
{
   "fieldGroups" : [
      "credentials",
      "medical_degree",
      "specialty"
   ],
   "responseStatus" : "SUCCESS"
}

Retrieve reference data types metadata

This API enables you to retrieve information about reference data types in Veeva OpenData.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/reference_values

Optional parameters
inactive
Include reference codes marked as inactive:
  • Default - do not include inactive reference codes
  • Values - True (include inactive reference codes in the results), otherwise do not include inactive reference codes. This value only works when includeCodes is True.
includeCodes
Include reference codes details:
  • Default - return only type, base English label, and description
  • Values - True (include reference codes in the results), otherwise do not include reference codes. If True, the codes returned are filtered by the inactive and owner parameters.
country
Filter codes by country, only if includeCodes is True:
  • Default - do not filter by country
  • Values - The desired country value, for example, US, GB, FR. The country must be visible to the authenticated user.
countries
Filter fields by country visibility:
  • Default - do not filter by country
  • Values - The desired country values, for example, US, GB, FR. The countries must be visible to the authenticated user.
Response
responseStatus
The status of the response.
reference_type_values
A single object containing information on the type and its codes:
  • type - The reference type name, for example, Country.
  • customerOwned - False.
  • inactive - True if this reference type has been inactivated.
  • description - Non-localized text description of the reference type.
  • reference_type_codes- Array of reference code objects if includeCodes is True:
    • type - the reference type value of the code, for example, Country
    • code - the reference code value
    • values - an array of language/value pairs. Each reference item has its textual value provided in a set of translations. This array can be used to determine which languages are supported and the value for each language. For example: [{"en":"Canada"},{"zh":"加拿大"},{"fr":"Canada"},{"de":"Kanada"}]. Language codes are IETF language tags.
    • customerOwned - False
    • inactive - True if this reference type has been inactivated
    • countries - list of countries for which the code is visible, for example, US or GB.

Notes

  • The response HTTP header includes Last-Modified to indicate the date when the list of fields was last changed.
  • Supports the HTTP request header If-Modified-Since to check if the list of fields was modified since the specified date. The HTTP response contains the status code of 304 Not Modified if the content is unchanged.
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/reference_values
{
   "responseStatus" : "SUCCESS",
   "reference_type_values" : [
      {
         "inactive" : false,
         "type" : "AddressAdminArea",
         "description" : "AddressAdminArea",
         "customerOwned" : false
      },
      {
         "description" : "Core Based Statistical Area",
         "type" : "AddressCBSA",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "description" : "AddressCountry",
         "type" : "AddressCountry",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "inactive" : false,
         "description" : "AddressDPVConfIndicator",
         "type" : "AddressDPVConfIndicator",
         "customerOwned" : false
      },
      {
         "description" : "AddressDPVFootnotes",
         "type" : "AddressDPVFootnotes",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "type" : "AddressFootnotes",
         "description" : "AddressFootnotes",
         "inactive" : false
      },
      {
         "inactive" : false,
         "description" : "AddressISO31663",
         "type" : "AddressISO31663",
         "customerOwned" : false
      },
      {
         "inactive" : false,
         "type" : "AddressISO3166n",
         "description" : "AddressISO3166n",
         "customerOwned" : false
      },
      {
         "inactive" : false,
         "description" : "AddressRecordType",
         "type" : "AddressRecordType",
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "type" : "AddressReturnCode",
         "description" : "AddressReturnCode"
      },
      {
         "customerOwned" : false,
         "description" : "AddressStatus",
         "type" : "AddressStatus",
         "inactive" : false
      },
      {
         "description" : "Is this a mail or professional address or both",
         "type" : "AddressType",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "inactive" : false,
         "type" : "AddressVerificationStatus",
         "description" : "AddressVerificationStatus",
         "customerOwned" : false
      },
      {
         "description" : "The direction of the affiliation between the two affiliated entities",
         "type" : "AffiliationDirection",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "description" : "The line thickness between the two affiliated entities",
         "type" : "AffiliationStrength"
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "type" : "BooleanReference",
         "description" : "Boolean Values"
      },
      {
         "description" : "High level description of the type of job or position that a Health Care Provider has at a Health Care Organization.",
         "type" : "ClassOfWork",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "description" : "CSRVariationType",
         "type" : "CSRVariationType",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "inactive" : false,
         "type" : "Currency",
         "description" : "Currency",
         "customerOwned" : false
      },
      {
         "inactive" : false,
         "type" : "DepartmentClass",
         "customerOwned" : false
      },
      {
         "description" : "EnrollmentOptions",
         "type" : "EnrollmentOptions",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "description" : "Type of entities in the system",
         "type" : "EntityType",
         "inactive" : false
      },
      {
         "inactive" : false,
         "description" : "An official recognition or certification authorizing an HCO to provide a certain type of service",
         "type" : "HCOAccreditation",
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "type" : "HCOBusinessType"
      },
      {
         "customerOwned" : false,
         "description" : "CLIA Status",
         "type" : "HCOCLIAStatus",
         "inactive" : false
      },
      {
         "type" : "HCOEstablishedBy",
         "description" : "HCO Establishers",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "type" : "HCOFocusArea",
         "inactive" : false
      },
      {
         "customerOwned" : false,
         "type" : "HCOHospitalGrade",
         "inactive" : false
      },
      {
         "description" : "Percentage of medicaid patients in the practice",
         "type" : "HCOMedicaidPercentage",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "type" : "HCOMedicarePercentage",
         "description" : "Percentage of medicare patients in the practice",
         "inactive" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "description" : "Status of HCO",
         "type" : "HCOStatus"
      },
      {
         "inactive" : false,
         "type" : "HCOType",
         "description" : "Type of HCO",
         "customerOwned" : false
      },
      {
         "type" : "HCPAcademicTitle",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "type" : "HCPBoardCertification",
         "description" : "Board Certification"
      },
      {
         "type" : "HCPConventionStatus",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "description" : "Credentials for an HCP",
         "type" : "HCPCredentials",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "description" : "Level of education for an HCP",
         "type" : "HCPEducationLevel",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "type" : "HCPFocusArea",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "inactive" : false,
         "description" : "Gender",
         "type" : "HCPGender",
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "description" : "HCPGrade",
         "type" : "HCPGrade"
      },
      {
         "customerOwned" : false,
         "type" : "HCPMajorAreaofStudy",
         "inactive" : false
      },
      {
         "customerOwned" : false,
         "description" : "Major Professional Activity",
         "type" : "HCPMajorProfActivity",
         "inactive" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "type" : "HCPMedicalDegree",
         "description" : "Degrees"
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "description" : "Place of Employment",
         "type" : "HCPPlaceOfEmployment"
      },
      {
         "inactive" : false,
         "description" : "Type of practice for an HCP",
         "type" : "HCPPracticeType",
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "description" : "HCPPrefix",
         "type" : "HCPPrefix",
         "inactive" : false
      },
      {
         "inactive" : false,
         "type" : "HCPProfessionalLevel",
         "customerOwned" : false
      },
      {
         "type" : "HCPProfessionalTitle",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "type" : "HCPStatus",
         "description" : "HCP Statuses",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "type" : "HCPType",
         "description" : "HCPType"
      },
      {
         "inactive" : false,
         "type" : "KeySourceContext",
         "description" : "Key Source Context",
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "description" : "Key Statuses",
         "type" : "KeyStatus",
         "inactive" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "type" : "Language",
         "description" : "Language"
      },
      {
         "inactive" : false,
         "type" : "LicenseCertification",
         "description" : "LicenseCertification",
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "description" : "License DEA Business Activity Code",
         "type" : "LicenseDEACode"
      },
      {
         "customerOwned" : false,
         "type" : "LicenseDEAPaymentIndicator",
         "description" : "Sourced from a field in the DEA file layout that identifies if payment is required or is exempt.",
         "inactive" : false
      },
      {
         "customerOwned" : false,
         "type" : "LicenseEligibility",
         "description" : "License Eligibility",
         "inactive" : false
      },
      {
         "customerOwned" : false,
         "description" : "Status of a License",
         "type" : "LicenseStatus",
         "inactive" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "type" : "LicenseStatusCondition"
      },
      {
         "type" : "LicenseSubType",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "inactive" : false,
         "description" : "Type/Scope of license",
         "type" : "LicenseType",
         "customerOwned" : false
      },
      {
         "type" : "LicensingBody",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "type" : "MajorClassofTrade",
         "inactive" : false
      },
      {
         "description" : "MetalLevel",
         "type" : "MetalLevel",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "inactive" : false,
         "type" : "ParentAddressSyncReference",
         "description" : "Parent Address Sync Reference",
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "description" : "Indicates whether the record is third party owned, OpenData owned or Customer Owned.",
         "type" : "RecordOwnerType",
         "inactive" : false
      },
      {
         "description" : "State of the record in the Veeva system",
         "type" : "RecordState",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "description" : "RelationHierarchyType",
         "type" : "RelationHierarchyType",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "description" : "RelationParentType",
         "type" : "RelationParentType"
      },
      {
         "description" : "Relationship Statuses",
         "type" : "RelationStatus",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "inactive" : false,
         "type" : "RelationStatusReason",
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "type" : "RelationType",
         "description" : "RelationType"
      },
      {
         "inactive" : false,
         "type" : "SanctionCategory",
         "description" : "Sanction Categories",
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "description" : "Sanction Exclusions",
         "type" : "SanctionExclusion",
         "inactive" : false
      },
      {
         "description" : "Specialties",
         "type" : "Specialty",
         "inactive" : false,
         "customerOwned" : false
      },
      {
         "inactive" : false,
         "type" : "SpecialtyGroup",
         "description" : "List of specialty group codes",
         "customerOwned" : false
      },
      {
         "customerOwned" : false,
         "inactive" : false,
         "type" : "TraumaLevel",
         "description" : "HCO Trauma Level"
      }
   ]
}

Retrieve reference data type details metadata

This API enables you to retrieve detailed information about reference data types in Veeva OpenData.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/reference_values/{type}

  • type is the specific data type to retrieve details about
Optional parameters
inactive
Include reference codes marked as inactive:
  • Default - do not include inactive reference codes
  • Values - True (include inactive reference codes in the results), otherwise do not include inactive reference codes. This value only works when includeCodes is True.
country
Filter codes by country, only if includeCodes is True:
  • Default - do not filter by country
  • Values - The desired country value, for example, US, GB, FR. The country must be visible to the authenticated user.
countries
Filter fields by country visibility:
  • Default - do not filter by country
  • Values - The desired country values, for example, US, GB, FR. The countries must be visible to the authenticated user.
Response
responseStatus
The status of the response.
reference_type_values
A single object containing information on the type and its codes:
  • type - The reference type name, for example, Country.
  • customerOwned - False.
  • inactive - True if this reference type has been inactivated.
  • description - Non-localized text description of the reference type.
  • reference_type_codes- Array of reference code objects if includeCodes is True:
    • type - the reference type value of the code, for example, Country
    • code - the reference code value
    • values - an array of language/value pairs. Each reference item has its textual value provided in a set of translations. This array can be used to determine which languages are supported and the value for each language. For example: [{"en":"Canada"},{"zh":"加拿大"},{"fr":"Canada"},{"de":"Kanada"}]. Language codes are IETF language tags.
    • customerOwned - False.
    • inactive - True if this reference type has been inactivated
    • countries - list of countries for which the code is visible, for example, US or GB.

Notes

  • The response HTTP header includes Last-Modified to indicate the date when the list of fields was last changed.
  • Supports the HTTP request header If-Modified-Since to check if the list of fields was modified since the specified date. The HTTP response contains the status code of 304 Not Modified if the content is unchanged.
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/reference_values/Specialty
{
  "responseStatus": "SUCCESS",
  "type": "Specialty",
  "customerOwned": false,
  "inactive": false,
  "description": "Specialties",
  "reference_type_codes": [
    {
      "type": "Specialty",
      "code": "AR",
      "values": {
        "en": "Abdominal Radiology"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "AS",
      "values": {
        "en": "Abdominal Surgery"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "ACU",
      "values": {
        "en": "Acupuncture"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "AC",
      "values": {
        "en": "Acute Care"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "ACP",
      "values": {
        "en": "Acute Care Pediatrics (APNs only)"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "ADM",
      "values": {
        "en": "Addiction Medicine"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "ADP",
      "values": {
        "en": "Addiction Psychiatry"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "PSU",
      "values": {
        "en": "Addiction Psychology & Counseling"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "AMD",
      "values": {
        "en": "Administrative Medicine"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "AMF",
      "values": {
        "en": "Adolescent Medicine (Family Medicine)"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "AMI",
      "values": {
        "en": "Adolescent Medicine (Internal Medicine)"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "ADL",
      "values": {
        "en": "Adolescent Medicine (Pediatrics)"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "CHD",
      "values": {
        "en": "Adult Congenital Heart Disease (IM)"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "ADU",
      "values": {
        "en": "Adult Health (APNs)"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    },
    {
      "type": "Specialty",
      "code": "OAR",
      "values": {
        "en": "Adult Reconstructive Orthopedics"
      },
      "customerOwned": false,
      "inactive": false,
      "countries": [
        "US"
      ]
    }
  ]
}

Retrieve reference data type code details metadata

This API enables you to retrieve detailed information about reference data type codes in Veeva OpenData.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/reference_values/{type}/{codes}

  • type is the specific data type to retrieve details about
  • codes is a comma-separated list of codes to look up for the specified type. Unknown codes for the given type are ignored, without errors.
Optional parameters
country
Filter codes by country, only if includeCodes is True:
  • Default - do not filter by country
  • Values - The desired country value, for example, US, GB, FR. The country must be visible to the authenticated user.
countries
Filter fields by country visibility:
  • Default - do not filter by country
  • Values - The desired country values, for example, US, GB, FR. The countries must be visible to the authenticated user.
Response
responseStatus
The status of the response.
reference_type_codes
An array of reference code objects:
  • type - the reference type value of the code, for example, Country
  • code - the reference code value
  • values - an array of language/value pairs. Each reference item has its textual value provided in a set of translations. This array can be used to determine which languages are supported and the value for each language. For example: [{"en":"Canada"},{"zh":"加拿大"},{"fr":"Canada"},{"de":"Kanada"}]. Language codes are IETF language tags.
  • customerOwned - False.
  • inactive - True if this reference type has been inactivated
  • countries - list of countries for which the code is visible, for example, US or GB.
curl -X GET -H "Authorization: 57696C6C205261...6368204C6F7368" https://opendataexplorer.veeva.com/api/opendata/v1.0/metadata/reference_values/Specialty/A?country=US
{
   "responseStatus" : "SUCCESS",
   "reference_type_codes" : [
      {
         "type" : "Specialty",
         "values" : {
            "tr" : "Alerji",
            "el" : "Αλλεργιολογία",
            "zh_HK" : "過敏",
            "pt" : "Imunoalergología",
            "da" : "Allergi",
            "es" : "Alergología",
            "sk" : "Alergológia",
            "en-GB" : "Allergology",
            "pl" : "Alergologia",
            "hu" : "Allergológia",
            "it" : "Allergologia",
            "en" : "Allergy",
            "ja" : "アレルギー科",
            "zh" : "过敏症",
            "fi" : "Allergia",
            "pt-BR" : "Alergologia",
            "cs" : "Alergologie",
            "fr" : "Maladies allergiques",
            "de" : "Allergie",
            "ru" : "Аллергология",
            "nl" : "Allergologie",
            "no" : "Allergi",
            "sv" : "Allergologi",
            "bg" : "Клинична алергология"
         },
         "countries" : [
            "US"
         ],
         "inactive" : false,
         "code" : "A",
         "customerOwned" : false
      }
   ]
}

Search

Search calls enable you to construct simple, yet powerful searches to retrieve data from Veeva OpenData.

Calls through the Search API pass a query string in an expression that specifies the search text and specific parameters to get the intended set of entities from Veeva OpenData. Search results are ranked according to closeness to the search terms specified.

This API enables you to retrieve the full set of entities and child objects matching the specified search criteria.

Endpoint URL

https://opendataexplorer.veeva.com/api/opendata/v1.0/search

Parameters
q
The query string (type text).
address_q
The query string scoped to the address object of the entity.
types
The entity type; ALL for all objects, HCO or HCP. If not specified, the default is all types.
offset
The pagination number (type integer). The default is 0.
limit
The number to limit the results returned (type integer). The default is 10. The maximum is 100.
sort
The attribute to sort results by (type text). For example, first_name__v.
sortOrder
The sort order for the search. Value is asc for ascending or desc for descending.
states
A list of entity states to match on, including VALID, DELETED, UNDER_REVIEW, MERGED_INTO, MERGE_INACTIVATED, MERGE_ADDED, or INVALID.
statuses
A list of entity statuses to match on, including A (active), C (closed), D (deceased), I (inactive), R (retired), U (unknown), X (unknown license).
returnFacets
Include the facets in the response. The default is False.
returnHighlights
Include highlights in the response. The default is True.
facetCount
The maximum number of items to return for each facet (type integer). The default is 500.
filters
The filters for refining the result, for example, Country, Region, or Specialty (type text). For child entity attributes, use the following aliases:
  • address - The address object.
  • license - The license object.
  • parent_hco - The parent HCO object.

Filters support scoped entity filters, which enable users to apply filters to a specific entity:

  • hcp - The HCP (person) object.
  • hco - The HCO (organization) object.

Filters also support collection fields, which enable users to search an OR condition across a collection of fields during search. The fields must be enabled in the data model to be included in collection.

  • credentials - credentials_1__v to credentials_5__v.
  • medical_degree - medical_degree_1__v to medical_degree_5__v.
  • specialty - specialty_1__v to specialty_10__v.

Search filters should not be used with multivalued fields.

fieldQueries
The filters for refining the result (PARTIAL MATCH). For child entity attributes, use the following aliases:
  • address - The address object.
  • license - The license object.
  • parent_hco - The parent HCO object.
lang
The language to run the query against. This is important when searching on reference values. For example, a search on "John Smith Pediatrics" will not return results for the specialty of pediatrics if the specified language is Chinese. If a language is not provided in the search query, the authenticated API user's default language is used.
supplemental
If provided, Veeva OpenData returns related parent HCOs of the entities found in the supplemental results.
  • ONE - This is the default. Return at most one parent HCO per entity. Uses the primary relationship if available; otherwise, returns one of the parents.
  • NONE - Do not return any parent HCOs.
  • ALL - Return all of the parent HCOs.

If ONE or ALL is specified, associated hashtags appear in the supplemental results.

filterByLocation
Search results are filtered by their proximity to the specified location. Results outside the specified distance are excluded. The parameter is a comma separated list of fields in the format of "latitude, longitude, distance, bottomRightLatitude, bottomRightLongitude, filterType":
  • latitude - The latitude of the central point of a circle or the top-left corner of a bounding box.
  • longitude - The longitude of the central point of a circle or the top-left corner of a bounding box.
  • distance - The length and unit of a radius of a circle or half the length of each side of a square when using a central point. Valid distance units are km (kilometers), m (meters), mi (miles), yd (yards), ft (feet). Can be blank for a bounding box with corners specified.
  • bottomRightLatitude - The latitude of the bottom-right corner of a bounding box.
  • bottomRightLongitude - The longitude of the bottom-right corner of a bounding box.
  • filterType - Filter by DISTANCE (default) when specifying the central point of a circle or square, or filter by BOUNDING_BOX when specifying two corners of a bounding box.
sortByLocation
Search results are sorted by their proximity to the specified location. The parameter is a geo coordinate pair in the form latitude,longitude (for example 38.889931,-77.009003). Sort by location cannot be combined with sort by other attributes.
sortResultChildren
For search results containing addresses, licenses or parent HCOs, they will be sorted starting with the most relevant result. Default is False.

The returnHighlights flag must also be True for this functionality.

Address sort rules:

  • Highlights for address fields
  • Field queries/filters for address fields.
  • Primary address field - Primary address is first. (Only one address can be primary.)
  • Record state (record_state__v) - Valid records first.
  • Address status (address_status__v) - Active records first, then inactive.
  • Address type (address_type__v) - Professional (P), Professional and Preferred Mail (B), Mail Only (M), Address (U) Address Ordinal (address_ordinal__v).

License sort rules:

  • Highlights for license fields.
  • Field queries/filters for license fields.
  • Record state (record_state__v) - Valid records first.
  • License status (license_status__v) - Active records first, then inactive.
  • License type (type__v) - State licenses first.
  • Best state license (license_status__v) - Best state license first.

Parent HCO sort rules:

  • Highlights for parent HCO fields.
  • Field queries/filters for parent HCO fields.
  • Primary parent HCO field - Primary affiliation is first. (Only one parent HCO can be primary.)
  • Record state (record_state__v) - Valid records first.
  • Parent HCO status (license_status__v) - Active records first, then inactive.
  • Is primary relationship? (is_primary_relationship__v) - Primary relationship first.
nestChildObjectFieldQueries
Specifies whether or not to apply nesting to child object clauses. This will convert a requested field query into a fuzzy matching filter on the same field. The default is False.
  • Filters do not return highlights when matching against these fields. All records are assumed to match the pattern for the specified field, so highlighting this field would be redundant.
  • Filters search the field directly, so if you are using this flag for a reference field, you must supply the code value rather than a reference label.
parenthcofilters
Specifies the filters for parent HCO results. Parent HCOs in the parent_hco__v and supplementalResults sections will be returned if they pass these filters. The format is identical to filters but does not support filtering by child entities of the HCO.
enrichedResults
Specifies whether or not to display labels for reference type fields in the results.
resultLanguage
Specifies the language to use if the enriched results option is enabled. Uses the IETF BCP 47 language standard.
excludefilters
The filters for excluding results. The format is identical to filters but does not support child entity-scoped attributes.
parenthcoexcludefilters
The filters for excluding parent HCO results. Parent HCOs in the parent_hco__v and supplementalResults sections will not be returned if they pass these filters. The format is identical to filters but does not support filtering by child entities of the HCO.
Response
responseStatus
The status of the response from Veeva OpenData.
entitiess
An array of attribute information objects:
  • entityId - The ID of the entity.
  • entityType - The entity type, either HCP or HCO.
  • metaData - An array of attribute information objects:
    • highlightTerms - the extracted terms from the highlights.
    • vid__v - the Veeva entity ID.
    • relevance - the relevance score for the entity relative to other results.
    • highlights - the exact results from the elastic search.
  • entity - An array of attribute information objects containing all populated fields for the entities returned. An address child object may include the following fields:
    • geo_distance__u - A distance field. When sortByLocation is submitted, the addresses in the results return the distance in kilometers from the specified location.
totalCount
The total number of records hitting the search, regardless of limit.
offset
The pagination number. The default is 0.
limit
The number provided to limit the results.
supplementalResults
An array of attribute information objects containing details of the parent HCOs returned on the results.
hashtags
The list of hashtags available to the authenticated API user:
  • name - the hashtag name.
  • color - the hashtag color.
  • tooltip - the tooltip of the hashtag.
  • tooltipLabel - the field value label of the hashtag.
  • tooltipValue - the field value of the hashtag.
  • tooltipHasOtherValue - Returns True if the tooltip has more than three field values.

Notes

  • There are two lines for highlights: The first contains the terms and the second contains the output from the search engine.
  • The supplmentalResults set at the end of the result contains the external entity information of any parent HCOs referenced in the main results. Use the parent_hco_vid_v from the parent_hcos__v set and the vid_v on the supplmentalResults for reference.
  • Filters are not supported for Date or DateTime type fields.
  • Search only returns results based on visibility rules defined in the data visibility profile of the API user.
curl -X POST -d username=john.smith@opendata.com -d "password=12345" https://opendataexplorer.veeva.com/api/opendata/v1.0/search?q=*&filters=last_name__v:Miranda
{
    "responseStatus": "SUCCESS",
    "entities": [
        {
            "entityId": "243194480331588610",
            "entityType": "HCP",
            "metaData": {
                "highlights": null,
                "vid__v": "243194480331588610",
                "highlightTerms": null,
                "relevance": 17.5
            },
            "entity": {
                "gender__v": "M",
                "years_in_progress__v": 0,
                "birth_year__v": 1958,
                "knipper_id__v": "11037559",
                "record_owner_type__v": "VOD",
                "first_name__v": "Eduardo",
                "education_level__v": "RESIDENCY",
                "grad_training__v": "N",
                "npi_num__v": "1285673012",
                "specialty_3__v": "HO",
                "record_delta_id__v": "936851296815382529",
                "record_owner_name__v": "OpenData",
                "grad_trg_end_date__v": "1992-06-30",
                "place_of_employment__v": "2",
                "kaiser__v": "N",
                "formatted_name__v": "Eduardo Miranda",
                "birth_city__v": "LOS MOCHIS SINALOA",
                "pdrp_optout__v": "N",
                "type_of_practice__v": "4",
                "birth_country__v": "MX",
                "is_veeva_master__v": true,
                "primary_specialty_group__v": "G-ON",
                "hcp_status__v": "A",
                "specialty_4__v": "IM",
                "status_update_time__v": "2020-07-06T17:39:26.000-07:00",
                "modified_date__v": "2020-07-06T17:39:28.000-07:00",
                "specialty_3_rank__v": 3,
                "record_version__v": 0,
                "vid__v": "243194480331588610",
                "is_externally_mastered__v": false,
                "specialty_1_rank__v": 1,
                "specialty_1__v": "ON",
                "upin__v": "E21360",
                "hcp_type__v": "P",
                "cms_general_payments__v": 2703,
                "cms_associated_research__v": 4250,
                "master_vid__v": "243194480331588610",
                "alternate_first_name__v": "EDUARDO",
                "in_current_pecos__v": "Y",
                "last_name__v": "Miranda",
                "sha_id__v": "741035",
                "medical_degree_1__v": "MD",
                "fellow__v": "N",
                "primary_country__v": "US",
                "created_date__v": "2020-07-06T17:39:27.000-07:00",
                "prefix__v": "DR",
                "mpa__v": "4",
                "ama_do_not_contact__v": "N",
                "specialty_4_rank__v": 4,
                "specialty_2__v": "HEM",
                "ams_id__v": "952072",
                "grad_year__v": 1981,
                "alternate_middle_name__v": "MIRANDA",
                "cms_physician_profile_id__v": 239920,
                "record_state__v": "VALID",
                "alternate_last_name__v": "ARNOLD",
                "entity_is_third_party_master_for_search_only__v": false,
                "specialty_2_rank__v": 2,
                "me_id__v": "6491481474",
                "grad_school__v": "Universidad Autonoma de Guadalajara Facultad de Medicina",
                "addresses__v": [
                    {
                        "dpv_confirmed_indicator__v": "X",
                        "postal_code_primary__v": "85304",
                        "address_line_1__v": "5601 W Eugie Ave Ste 106",
                        "record_owner_type__v": "VOD",
                        "premise__v": "5601",
                        "cbsa__v": "38060",
                        "record_delta_id__v": "936851296696303617",
                        "record_owner_name__v": "OpenData",
                        "locality__v": "Glendale",
                        "delivery_address__v": "5601 W Eugie Ave Ste 106",
                        "country__v": "US",
                        "sub_building_number__v": "106",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "premise_number__v": "5601",
                        "phone_1__v": "6022775551",
                        "is_veeva_master__v": true,
                        "ISO_3166_3__v": "USA",
                        "ISO_3166_n__v": "840",
                        "sub_building__v": "Ste 106",
                        "thoroughfare__v": "W Eugie Ave",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "address_type__v": "P",
                        "delivery_address_1__v": "5601 W Eugie Ave Ste 106",
                        "sub_administrative_area__v": "Maricopa",
                        "entity_type__v": "HCP",
                        "address_verification_status__v": "V",
                        "address_status__v": "I",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "record_state__v": "VALID",
                        "vid__v": "243367226004997126",
                        "entity_vid__v": "243194480331588610",
                        "postal_code__v": "85304-1257",
                        "is_externally_mastered__v": false,
                        "administrative_area__v": "US-AZ",
                        "formatted_address__v": "5601 W Eugie Ave Ste 106 Glendale AZ 85304-1257",
                        "latitude__v": 33.60634,
                        "address_ordinal__v": 4,
                        "postal_code_secondary__v": "1257",
                        "longitude__v": -112.18061
                    },
                    {
                        "dpv_confirmed_indicator__v": "Y",
                        "postal_code_primary__v": "78041",
                        "address_line_1__v": "2344 Laguna Del Mar Ct Ste 104",
                        "record_owner_type__v": "VOD",
                        "premise__v": "2344",
                        "cbsa__v": "29700",
                        "record_delta_id__v": "936851296696303616",
                        "record_owner_name__v": "OpenData",
                        "thoroughfare_trailing_type__v": "Ct",
                        "locality__v": "Laredo",
                        "delivery_address__v": "2344 Laguna Del Mar Ct Ste 104",
                        "country__v": "US",
                        "sub_building_number__v": "104",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "premise_number__v": "2344",
                        "phone_1__v": "9567248543",
                        "is_veeva_master__v": true,
                        "sub_building_type__v": "Ste",
                        "ISO_3166_3__v": "USA",
                        "ISO_3166_n__v": "840",
                        "sub_building__v": "Ste 104",
                        "fax_1__v": "9567248352",
                        "thoroughfare__v": "Laguna Del Mar Ct",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "address_type__v": "P",
                        "delivery_address_1__v": "2344 Laguna Del Mar Ct Ste 104",
                        "sub_administrative_area__v": "Webb",
                        "entity_type__v": "HCP",
                        "address_verification_status__v": "V",
                        "address_status__v": "A",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "record_state__v": "VALID",
                        "vid__v": "243367226004997120",
                        "entity_vid__v": "243194480331588610",
                        "postal_code__v": "78041-3468",
                        "is_externally_mastered__v": false,
                        "administrative_area__v": "US-TX",
                        "formatted_address__v": "2344 Laguna Del Mar Ct Ste 104 Laredo TX 78041-3468",
                        "latitude__v": 27.576462,
                        "address_ordinal__v": 3,
                        "thoroughfare_name__v": "Laguna Del Mar",
                        "postal_code_secondary__v": "3468",
                        "longitude__v": -99.462661
                    },
                    {
                        "dpv_confirmed_indicator__v": "X",
                        "postal_code_primary__v": "78041",
                        "address_line_1__v": "Ste 104",
                        "record_owner_type__v": "VOD",
                        "record_delta_id__v": "936851296696303620",
                        "record_owner_name__v": "OpenData",
                        "locality__v": "Laredo",
                        "delivery_address__v": "Ste 104",
                        "country__v": "US",
                        "sub_building_number__v": "104",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "is_veeva_master__v": true,
                        "sub_building_type__v": "Ste",
                        "ISO_3166_3__v": "USA",
                        "ISO_3166_n__v": "840",
                        "sub_building__v": "Ste 104",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "address_type__v": "P",
                        "delivery_address_1__v": "Ste 104",
                        "sub_administrative_area__v": "Webb",
                        "entity_type__v": "HCP",
                        "address_verification_status__v": "P",
                        "address_status__v": "I",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "record_state__v": "VALID",
                        "vid__v": "931675635426592702",
                        "entity_vid__v": "243194480331588610",
                        "postal_code__v": "78041",
                        "is_externally_mastered__v": false,
                        "administrative_area__v": "US-TX",
                        "formatted_address__v": "Ste 104 Laredo TX 78041",
                        "latitude__v": 27.5436,
                        "address_ordinal__v": 7,
                        "longitude__v": -99.491141
                    },
                    {
                        "dpv_confirmed_indicator__v": "Y",
                        "postal_code_primary__v": "78852",
                        "address_line_1__v": "3406 Bob Rogers Dr Ste 120",
                        "record_owner_type__v": "VOD",
                        "premise__v": "3406",
                        "record_delta_id__v": "936851296696238087",
                        "record_owner_name__v": "OpenData",
                        "thoroughfare_trailing_type__v": "Dr",
                        "locality__v": "Eagle Pass",
                        "delivery_address__v": "3406 Bob Rogers Dr Ste 120",
                        "country__v": "US",
                        "sub_building_number__v": "120",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "premise_number__v": "3406",
                        "phone_1__v": "8307574900",
                        "is_veeva_master__v": true,
                        "sub_building_type__v": "Ste",
                        "ISO_3166_3__v": "USA",
                        "ISO_3166_n__v": "840",
                        "sub_building__v": "Ste 120",
                        "thoroughfare__v": "Bob Rogers Dr",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "address_type__v": "P",
                        "delivery_address_1__v": "3406 Bob Rogers Dr Ste 120",
                        "sub_administrative_area__v": "Maverick",
                        "entity_type__v": "HCP",
                        "address_verification_status__v": "V",
                        "address_status__v": "A",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "record_state__v": "VALID",
                        "vid__v": "933836743349832544",
                        "entity_vid__v": "243194480331588610",
                        "postal_code__v": "78852-5942",
                        "is_externally_mastered__v": false,
                        "administrative_area__v": "US-TX",
                        "formatted_address__v": "3406 Bob Rogers Dr Ste 120 Eagle Pass TX 78852-5942",
                        "latitude__v": 28.711459,
                        "address_ordinal__v": 1,
                        "thoroughfare_name__v": "Bob Rogers",
                        "postal_code_secondary__v": "5942",
                        "longitude__v": -100.48865
                    },
                    {
                        "dpv_confirmed_indicator__v": "Y",
                        "postal_code_primary__v": "78045",
                        "address_line_1__v": "Suite 104",
                        "record_owner_type__v": "VOD",
                        "cbsa__v": "29700",
                        "record_delta_id__v": "936851296696303621",
                        "record_owner_name__v": "OpenData",
                        "locality__v": "Laredo",
                        "country__v": "US",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "phone_1__v": "9567248543",
                        "is_veeva_master__v": true,
                        "ISO_3166_3__v": "USA",
                        "address_line_2__v": "P.O. Box 451369 (Mailing)",
                        "ISO_3166_n__v": "840",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "address_type__v": "M",
                        "sub_administrative_area__v": "Webb",
                        "entity_type__v": "HCP",
                        "address_verification_status__v": "P",
                        "address_status__v": "I",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "record_state__v": "VALID",
                        "vid__v": "243367226004997140",
                        "entity_vid__v": "243194480331588610",
                        "postal_code__v": "78045",
                        "is_externally_mastered__v": false,
                        "administrative_area__v": "US-TX",
                        "formatted_address__v": "Suite 104 P.O. Box 451369 (Mailing) Laredo Texas 78045",
                        "latitude__v": 27.528047,
                        "address_ordinal__v": 8,
                        "longitude__v": -99.481123
                    },
                    {
                        "dpv_confirmed_indicator__v": "D",
                        "postal_code_primary__v": "78041",
                        "address_line_1__v": "Doctors Hospital",
                        "record_owner_type__v": "VOD",
                        "premise__v": "500",
                        "cbsa__v": "29700",
                        "record_delta_id__v": "936851296696303618",
                        "delivery_address_2__v": "500 E Mann Rd",
                        "record_owner_name__v": "OpenData",
                        "locality__v": "Laredo",
                        "delivery_address__v": "Doctors Hospital 500 E Mann Rd",
                        "country__v": "US",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "premise_number__v": "500",
                        "is_veeva_master__v": true,
                        "ISO_3166_3__v": "USA",
                        "address_line_2__v": "500 E Mann Rd",
                        "building__v": "Doctors Hospital",
                        "ISO_3166_n__v": "840",
                        "thoroughfare__v": "E Mann Rd",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "address_type__v": "P",
                        "delivery_address_1__v": "Doctors Hospital",
                        "sub_administrative_area__v": "Webb",
                        "entity_type__v": "HCP",
                        "address_verification_status__v": "V",
                        "address_status__v": "I",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "record_state__v": "VALID",
                        "vid__v": "243367226004997128",
                        "entity_vid__v": "243194480331588610",
                        "postal_code__v": "78041-2630",
                        "is_externally_mastered__v": false,
                        "administrative_area__v": "US-TX",
                        "formatted_address__v": "Doctors Hospital 500 E Mann Rd Laredo TX 78041-2630",
                        "latitude__v": 27.55926,
                        "address_ordinal__v": 5,
                        "postal_code_secondary__v": "2630",
                        "longitude__v": -99.49995
                    },
                    {
                        "dpv_confirmed_indicator__v": "X",
                        "postal_code_primary__v": "78045",
                        "address_line_1__v": "10700 Mcpherson Rd",
                        "record_owner_type__v": "VOD",
                        "premise__v": "10700",
                        "cbsa__v": "29700",
                        "record_delta_id__v": "936851296696303619",
                        "record_owner_name__v": "OpenData",
                        "thoroughfare_trailing_type__v": "Rd",
                        "locality__v": "Laredo",
                        "delivery_address__v": "10700 Mcpherson Rd",
                        "country__v": "US",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "premise_number__v": "10700",
                        "phone_1__v": "9565232000",
                        "is_veeva_master__v": true,
                        "ISO_3166_3__v": "USA",
                        "ISO_3166_n__v": "840",
                        "thoroughfare__v": "Mcpherson Rd",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "address_type__v": "P",
                        "delivery_address_1__v": "10700 Mcpherson Rd",
                        "sub_administrative_area__v": "Webb",
                        "entity_type__v": "HCP",
                        "address_verification_status__v": "V",
                        "address_status__v": "I",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "record_state__v": "VALID",
                        "vid__v": "243367226004997138",
                        "entity_vid__v": "243194480331588610",
                        "postal_code__v": "78045-6268",
                        "is_externally_mastered__v": false,
                        "administrative_area__v": "US-TX",
                        "formatted_address__v": "10700 Mcpherson Rd Laredo TX 78045-6268",
                        "latitude__v": 27.60616,
                        "address_ordinal__v": 6,
                        "thoroughfare_name__v": "Mcpherson",
                        "postal_code_secondary__v": "6268",
                        "longitude__v": -99.47939
                    },
                    {
                        "dpv_confirmed_indicator__v": "Y",
                        "postal_code_primary__v": "78041",
                        "address_line_1__v": "2344 Laguna Del Mar Ct Ste 101",
                        "record_owner_type__v": "VOD",
                        "premise__v": "2344",
                        "record_delta_id__v": "936851296696303615",
                        "record_owner_name__v": "OpenData",
                        "locality__v": "Laredo",
                        "delivery_address__v": "2344 Laguna Del Mar Ct Ste 101",
                        "country__v": "US",
                        "sub_building_number__v": "101",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "premise_number__v": "2344",
                        "is_veeva_master__v": true,
                        "ISO_3166_3__v": "USA",
                        "ISO_3166_n__v": "840",
                        "sub_building__v": "Ste 101",
                        "thoroughfare__v": "Laguna Del Mar Ct",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "address_type__v": "P",
                        "delivery_address_1__v": "2344 Laguna Del Mar Ct Ste 101",
                        "sub_administrative_area__v": "Webb",
                        "entity_type__v": "HCP",
                        "address_verification_status__v": "V",
                        "address_status__v": "A",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "record_state__v": "VALID",
                        "vid__v": "933101467223395179",
                        "entity_vid__v": "243194480331588610",
                        "postal_code__v": "78041-3468",
                        "is_externally_mastered__v": false,
                        "administrative_area__v": "US-TX",
                        "formatted_address__v": "2344 Laguna Del Mar Ct Ste 101 Laredo TX 78041-3468",
                        "latitude__v": 27.576462,
                        "address_ordinal__v": 2,
                        "postal_code_secondary__v": "3468",
                        "longitude__v": -99.462661
                    }
                ],
                "licenses__v": [
                    {
                        "record_owner_type__v": "VOD",
                        "best_state_license__v": "Y",
                        "grace_period__v": "2019-06-30",
                        "license_eligibility__v": "E",
                        "record_delta_id__v": "936851296696303623",
                        "record_owner_name__v": "OpenData",
                        "anticipated_expiry_date__v": "2019-11-27",
                        "expiration_date__v": "2019-05-31",
                        "rxa_eligible__v": "E",
                        "license_status_condition__v": "0",
                        "dea_business_activity_code__v": "ZZ",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "is_veeva_master__v": true,
                        "type_value__v": "TX",
                        "license_degree__v": "MD",
                        "effective_date__v": "1999-08-28",
                        "license_number__v": "K8347",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "license_status__v": "A",
                        "entity_type__v": "HCP",
                        "body__v": "BOME",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "record_state__v": "VALID",
                        "initial_board_license_date__v": "2018-06-07",
                        "license_subtype__v": "U",
                        "vid__v": "243367226004997132",
                        "entity_vid__v": "243194480331588610",
                        "is_externally_mastered__v": false,
                        "type__v": "STATE"
                    },
                    {
                        "address_vid__v": "933101467223395179",
                        "record_owner_type__v": "VOD",
                        "best_state_license__v": "N",
                        "license_eligibility__v": "U",
                        "record_delta_id__v": "936851296696303622",
                        "record_owner_name__v": "OpenData",
                        "expiration_date__v": "2021-01-31",
                        "rxa_eligible__v": "U",
                        "dea_business_activity_code__v": "C0",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "is_veeva_master__v": true,
                        "type_value__v": "DEA",
                        "license_number__v": "BM1212593",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "source_address__v": "2344 LAGUNA DEL MAR CT STE 101  LAREDO, TX 78041",
                        "drug_schedule__v": "22N 33N 4 5",
                        "license_status__v": "A",
                        "entity_type__v": "HCP",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "dea_payment_indicator__v": "P",
                        "record_state__v": "VALID",
                        "vid__v": "243367226004997121",
                        "entity_vid__v": "243194480331588610",
                        "is_externally_mastered__v": false,
                        "type__v": "ADDRESS"
                    },
                    {
                        "record_owner_type__v": "VOD",
                        "best_state_license__v": "Y",
                        "grace_period__v": "1998-01-31",
                        "license_eligibility__v": "I",
                        "record_delta_id__v": "936851296696303625",
                        "record_owner_name__v": "OpenData",
                        "expiration_date__v": "1998-01-31",
                        "rxa_eligible__v": "I",
                        "license_status_condition__v": "0",
                        "dea_business_activity_code__v": "ZZ",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "is_veeva_master__v": true,
                        "type_value__v": "FL",
                        "license_degree__v": "MD",
                        "license_number__v": "ME0051720",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "license_status__v": "I",
                        "entity_type__v": "HCP",
                        "body__v": "BOME",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "record_state__v": "VALID",
                        "license_subtype__v": "U",
                        "vid__v": "243367226004997134",
                        "entity_vid__v": "243194480331588610",
                        "is_externally_mastered__v": false,
                        "type__v": "STATE"
                    },
                    {
                        "record_owner_type__v": "VOD",
                        "best_state_license__v": "Y",
                        "grace_period__v": "2020-11-30",
                        "license_eligibility__v": "E",
                        "record_delta_id__v": "936851296696303624",
                        "record_owner_name__v": "OpenData",
                        "anticipated_expiry_date__v": "2021-05-29",
                        "expiration_date__v": "2020-11-30",
                        "rxa_eligible__v": "E",
                        "license_status_condition__v": "0",
                        "dea_business_activity_code__v": "ZZ",
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "is_veeva_master__v": true,
                        "type_value__v": "AZ",
                        "license_degree__v": "MD",
                        "effective_date__v": "1989-09-22",
                        "license_number__v": "19053",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "license_status__v": "A",
                        "entity_type__v": "HCP",
                        "body__v": "BOME",
                        "modified_date__v": "2020-07-06T17:39:27.000-07:00",
                        "record_state__v": "VALID",
                        "initial_board_license_date__v": "2018-11-02",
                        "license_subtype__v": "U",
                        "vid__v": "928775632619831351",
                        "entity_vid__v": "243194480331588610",
                        "is_externally_mastered__v": false,
                        "type__v": "STATE"
                    }
                ],
                "parent_hcos__v": [
                    {
                        "parent_hco_vid__v": "930010573726091168",
                        "related_entity_type__v": "HCO",
                        "record_owner_type__v": "VOD",
                        "relationship_type__v": "7356",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "record_delta_id__v": "936851296727105535",
                        "entity_type__v": "HCP",
                        "hierarchy_type__v": "HCP_HCO",
                        "record_owner_name__v": "OpenData",
                        "modified_date__v": "2020-07-06T17:39:28.000-07:00",
                        "parent_hco_corp_name__v": "Mchd Physicians Specialty Group",
                        "record_state__v": "VALID",
                        "parent_hco_status__v": "A",
                        "is_primary_relationship__v": "N",
                        "vid__v": "933836743349832545",
                        "entity_vid__v": "243194480331588610",
                        "is_externally_mastered__v": false,
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "is_veeva_master__v": true
                    },
                    {
                        "parent_hco_vid__v": "242977256815723520",
                        "related_entity_type__v": "HCO",
                        "record_owner_type__v": "VOD",
                        "relationship_type__v": "15",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "record_delta_id__v": "936851296727105535",
                        "entity_type__v": "HCP",
                        "hierarchy_type__v": "HCP_HCO",
                        "record_owner_name__v": "OpenData",
                        "modified_date__v": "2020-07-06T17:39:28.000-07:00",
                        "parent_hco_corp_name__v": "Doctors Hospital Of Laredo",
                        "record_state__v": "VALID",
                        "parent_hco_status__v": "A",
                        "is_primary_relationship__v": "N",
                        "vid__v": "929658159976417208",
                        "entity_vid__v": "243194480331588610",
                        "is_externally_mastered__v": false,
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "is_veeva_master__v": true
                    },
                    {
                        "parent_hco_vid__v": "242978985548448768",
                        "related_entity_type__v": "HCO",
                        "record_owner_type__v": "VOD",
                        "relationship_type__v": "7356",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "record_delta_id__v": "936851296727105535",
                        "entity_type__v": "HCP",
                        "hierarchy_type__v": "HCP_HCO",
                        "record_owner_name__v": "OpenData",
                        "modified_date__v": "2020-07-06T17:39:28.000-07:00",
                        "parent_hco_corp_name__v": "Eduardo Miranda MD Practice",
                        "record_state__v": "VALID",
                        "parent_hco_status__v": "A",
                        "is_primary_relationship__v": "N",
                        "vid__v": "243367226004997124",
                        "entity_vid__v": "243194480331588610",
                        "is_externally_mastered__v": false,
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "is_veeva_master__v": true
                    },
                    {
                        "parent_hco_vid__v": "242978108460762113",
                        "related_entity_type__v": "HCO",
                        "record_owner_type__v": "VOD",
                        "relationship_type__v": "15",
                        "status_update_time__v": "2020-07-06T17:39:27.000-07:00",
                        "record_delta_id__v": "936851296727105535",
                        "entity_type__v": "HCP",
                        "hierarchy_type__v": "HCP_HCO",
                        "record_owner_name__v": "OpenData",
                        "modified_date__v": "2020-07-06T17:39:28.000-07:00",
                        "parent_hco_corp_name__v": "Fort Duncan Medical Center",
                        "record_state__v": "VALID",
                        "parent_hco_status__v": "A",
                        "is_primary_relationship__v": "N",
                        "vid__v": "932100699909785503",
                        "entity_vid__v": "243194480331588610",
                        "is_externally_mastered__v": false,
                        "created_date__v": "2020-07-06T17:39:27.000-07:00",
                        "is_veeva_master__v": true
                    }
                ]
            }
        }
    ],
    "totalCount": 1,
    "offset": 0,
    "limit": 10,
    "supplementalResults": [
        {
            "specialty_1__v": "HO",
            "hco_type__v": "4:4",
            "master_vid__v": "930010573726091168",
            "record_owner_type__v": "VOD",
            "lab_services__v": "N",
            "hco_status__v": "A",
            "accept_medicare__v": "N",
            "specialty_3__v": "GS",
            "record_delta_id__v": "936851296815316993",
            "record_owner_name__v": "OpenData",
            "kaiser__v": "N",
            "primary_country__v": "US",
            "top_parent__v": "930010573726091168",
            "hin__v": "88PPT6TF2",
            "created_date__v": "2020-07-06T17:39:26.000-07:00",
            "training_facility__v": "N",
            "is_veeva_master__v": true,
            "va_dod_affiliated__v": "U",
            "major_class_of_trade__v": "45",
            "ama_do_not_contact__v": "N",
            "corporate_name__v": "Mchd Physicians Specialty Group",
            "status_update_time__v": "2020-07-06T17:39:26.000-07:00",
            "specialty_2__v": "PRCP",
            "URL_1__v": "https://www.mchdep.org/specialty-care-services",
            "pac_id__v": "2466369061",
            "modified_date__v": "2020-07-06T17:39:26.000-07:00",
            "accept_medicaid__v": "N",
            "record_state__v": "VALID",
            "record_version__v": 0,
            "vid__v": "930010573726091168",
            "is_externally_mastered__v": false,
            "xray_services__v": "N",
            "licenses__v": [],
            "addresses__v": [
                {
                    "dpv_confirmed_indicator__v": "D",
                    "postal_code_primary__v": "78852",
                    "address_line_1__v": "3406 Bob Rogers Dr",
                    "record_owner_type__v": "VOD",
                    "premise__v": "3406",
                    "record_delta_id__v": "936851296688570369",
                    "record_owner_name__v": "OpenData",
                    "locality__v": "Eagle Pass",
                    "delivery_address__v": "3406 Bob Rogers Dr",
                    "country__v": "US",
                    "created_date__v": "2020-07-06T17:39:26.000-07:00",
                    "premise_number__v": "3406",
                    "phone_1__v": "8307574900",
                    "is_veeva_master__v": true,
                    "ISO_3166_3__v": "USA",
                    "ISO_3166_n__v": "840",
                    "thoroughfare__v": "Bob Rogers Dr",
                    "status_update_time__v": "2020-07-06T17:39:26.000-07:00",
                    "address_type__v": "P",
                    "delivery_address_1__v": "3406 Bob Rogers Dr",
                    "sub_administrative_area__v": "Maverick",
                    "entity_type__v": "HCO",
                    "address_verification_status__v": "V",
                    "address_status__v": "A",
                    "modified_date__v": "2020-07-06T17:39:26.000-07:00",
                    "record_state__v": "VALID",
                    "vid__v": "930174678371403701",
                    "entity_vid__v": "930010573726091168",
                    "postal_code__v": "78852-5941",
                    "is_externally_mastered__v": false,
                    "administrative_area__v": "US-TX",
                    "formatted_address__v": "3406 Bob Rogers Dr Eagle Pass TX 78852-5941",
                    "latitude__v": 28.714933,
                    "address_ordinal__v": 2,
                    "postal_code_secondary__v": "5941",
                    "longitude__v": -100.490398
                },
                {
                    "dpv_confirmed_indicator__v": "Y",
                    "postal_code_primary__v": "78852",
                    "address_line_1__v": "3406 Bob Rogers Dr Ste 120",
                    "record_owner_type__v": "VOD",
                    "premise__v": "3406",
                    "record_delta_id__v": "936851296688570368",
                    "record_owner_name__v": "OpenData",
                    "locality__v": "Eagle Pass",
                    "delivery_address__v": "3406 Bob Rogers Dr Ste 120",
                    "country__v": "US",
                    "sub_building_number__v": "120",
                    "created_date__v": "2020-07-06T17:39:26.000-07:00",
                    "premise_number__v": "3406",
                    "phone_1__v": "8307574900",
                    "is_veeva_master__v": true,
                    "ISO_3166_3__v": "USA",
                    "ISO_3166_n__v": "840",
                    "sub_building__v": "Ste 120",
                    "thoroughfare__v": "Bob Rogers Dr",
                    "status_update_time__v": "2020-07-06T17:39:26.000-07:00",
                    "address_type__v": "P",
                    "delivery_address_1__v": "3406 Bob Rogers Dr Ste 120",
                    "sub_administrative_area__v": "Maverick",
                    "entity_type__v": "HCO",
                    "address_verification_status__v": "V",
                    "address_status__v": "A",
                    "modified_date__v": "2020-07-06T17:39:26.000-07:00",
                    "record_state__v": "VALID",
                    "vid__v": "930010573727664031",
                    "entity_vid__v": "930010573726091168",
                    "postal_code__v": "78852-5942",
                    "is_externally_mastered__v": false,
                    "administrative_area__v": "US-TX",
                    "formatted_address__v": "3406 Bob Rogers Dr Ste 120 Eagle Pass TX 78852-5942",
                    "latitude__v": 28.714933,
                    "address_ordinal__v": 1,
                    "postal_code_secondary__v": "5942",
                    "longitude__v": -100.490398
                }
            ],
            "parent_hcos__v": []
        }
    ]
}

Errors

The response of every API call includes a field called responseStatus. Possible values are:

  • SUCCESS - The API request was successfully processed.

  • FAILURE - The API request could not be processed because of user error.

  • EXCEPTION - The API request could not be processed because of a system error.

For a responseStatus other than SUCCESS, users can inspect the errors field in the response. Each error includes the following fields:

type - The specific type of error; for example, INVALID_DATA or METHOD_NOT_SUPPORTED. See the list of the most common types below. These values are not subject to change for a given version of the API, even when newer versions of the API are available.

message - The message accompanying each error type; for example, The request is invalid. Please verify that the requested URL, method and parameters are correct. When available, the error message includes the specific reason for the error. These messages are subject to change and are not contractual parts for error handling. Developers should consider error messages for debugging and troubleshooting purposes only and should not implement application logic which relies on specific error strings or formatting.

When Network processes an API request, it returns an HTTP response status code of 200. If Network returns a response status code other than 200, it is likely due to connectivity problems, and you should contact your IT team. You should base your logic on the responseStatus field and error types, rather than the HTTP response status codes.

{
  "responseStatus": "SUCCESS",
  "sessionId": "14435B027716F5FD4260F6ADB1730A5747CD3A19FA3901D125498B7EFD4A7244B5BF8D032BA9A31EA091A5B030CF32601455B48CCAC30654FC48D7E06B0696F8916A8F668AC942EE13BFD9734238F7A5",
  "userId": 2000049,
  "openDataId": "3",
  "openDataIds": [
    {
      "id": 3,
      "name": "test",
      "url": "https://opendataexplorer.veeva.com/api/opendata"
    }
  ]
}
{
   "responseStatus": "FAILURE",
   "errors": [
      {
         "type": "NO_PASSWORD_PROVIDED",
         "message": "No password was provided for the login call."
      }
   ],
   "errorType": "AUTHENTICATION_FAILED"
}

Error types

Type
Description
CANNOT_ACCESS_INSTANCE

The user does not have access to the instance in the specified domain.

COUNTRY_NOT_ALLOWED

The API user does not have permissions to use records from the submitted country.

COUNTRY_NOT_RECOGNIZED

The submitted country is not recognized.

DUPLICATE_KEY

The change request key is already associated with another change request.

INVALID_DATA

Invalid data was provided in the API call.

INVALID_SYSTEM_NAME

The specified system could not be found.

REQUIRED_FIELD_NOT_FOUND

A required value is missing.

OPERATION_NOT_ALLOWED

Certain rules required for this operation have not been met.

PARAMETER_REQUIRED

Required parameters are missing from the API call.

SUBSCRIPTION_DISABLED

The subscription is disabled and cannot be run.

NO_PASSWORD_PROVIDED

No password was provided for the login call.

PASSWORD_CHANGE_REQUIRED

A password change is required.

USER_LOCKED_OUT

The user is locked out. Learn more about user account lockout in Network Help.

USERNAME_OR_PASSWORD_ INCORRECT

Authentication failed because an invalid user name or password was provided.

INSUFFICIENT_ACCESS

The user does not have sufficient privileges to perform the action.

MALFORMED_URL

The specified resource cannot be found.

METHOD_NOT_SUPPORTED

The specified resources does not support the method (POST, PUT, GET, DELETE) or the API request is not supported by this version of the API.

INVALID_SESSION_ID

An invalid session ID was provided.

UNEXPECTED_ERROR

General error; occurs when there is no specific error or an unidentified error.

Feedback

If the following title isn't the topic you want to provide feedback for, update the topic name in the Topic field.

Provide your feedack for the topic.