| DESCRIPTION |
This RPC is used to retrieve data that is needed by a component in an
"startId": "",
"direction": "",
"parameters": {
"buttonClick": false,
"vistaRequiredValues": {
"dataEncounterProvider": {
"id": 520824671,
"name": "CPRS,PROVIDER"
},
"dataUserInformation": {
HTML Dialog. For example, this RPC can be used to retrieve a list of
"id": 520824671,
"name": "CPRS,PROVIDER"
},
"dataVisitInformation": {
"id": "",
"locId": 240,
"locName": "20 MINUTE",
"visitDateTime": 3251128.162123,
"visitString": "240;3251128.162123;A",
"visitType": "A"
active users who hold the provider key. The input to the RPC is a JSON
}
},
"vistaSourceData": {
"connectedUser": 520824671,
"editorId": 17,
"id": "2;1;1;6",
"package": "ORDER ENTRY/RESULTS REPORTING",
"patient": 100007
}
}
document that contains information the received code will need to
}
Property Definitions:
lookupType: This property maps to a line tag in VistA that the RPC will
need to call to retrieve data.
startFrom: On a lookup, the string to start looking from.
startId: On a lookup, the IEN of the record to start the lookup from.
direction: The direction to search from. Can be set to one of the
following values: "", "down", "up", 1, -1. A value of "",
"down", or 1 will search down the list, while a value of -1 or
complete its process.
"up" will search up the list.
Parameters Object:
buttonClick: Set to true or false, this is used to determine if a special
lookup button was clicked. Currently used for Non-VA Provider lookup. If
set to true, the lookup will return Non-VA providers; if set to false,
the lookup will not return Non-VA providers. This can be used with other
lookups if needed.
vistaSourceData Object: This object will be populated for all calls.
Property definitions:
connectedUser: The VistA system-connected user DUZ from file 200.
editorId: The editor IEN from file 101.75.
id: The InfoPanel DAS string to get to the record that
contains the editor.
package: Which package from file 9.4 is requesting this data.
patient: The selected patient DFN from file 2.
{
Return array is a JSON output with the definition:
{
"data": [
{
"const": "IEN from the file the record is from",
"display": "A display printout, not used for lookup",
"title": "The .01 from record"
}
"lookupType": "nvaProviderLookup",
],
"hasMore": "Boolean value to let the calling application know if
there are more records after the last record in the array.",
"hasPrevious": "Boolean value to let the calling application know if
there are records before the first record in the return array."
}
"startFrom": "p",
|