Class: VISTAMetaService

VISTAMetaService


new VISTAMetaService()

This service class provides various means to access the data in VISTAMetaService/vdmNonClinicalModel

Methods


getLabel(fileName, documentId, context, callback)

Returns the value of the label given specific input.

Parameters:
Name Type Description
fileName String

File name used as collection name.

documentId String

Id of document to search for.

context Object

Session context information associated with the service call.

callback function

Function called on process completion, with standard (err, result) signature.

Returns:

response Value of label from specific document

Type
String

listFieldCodesFromFile(fileId, fieldId)

get all possible field values (aka SET OF CODES) for a given fileID and fieldID

Parameters:
Name Type Description
fileId String

File ID, example: '120.51'

fieldId String

Field ID, example: '.04'

Returns:

setOfCodes Set of field values, or an error if not found

Type
Object
Example
listFieldCodesFromFile('200', '4') returns { 'NO TAKE': 'O', POSITIVE: 'P', NEGATIVE: 'N', DOUBTFUL: 'D' }

lookupFileLabelFromId(fileId)

get label value for a given fileID

Parameters:
Name Type Description
fileId String

File ID, example: '120.51'

Returns:

Name of File Number

Type
String
Example
lookupFileLabelFromId('200') returns { 'NEW PERSON' }

modelFieldNumberToKeyName(fileId)

get label value for a given fileID

Parameters:
Name Type Description
fileId String

File ID, example: '120.51'

Returns:

Name of File Number

Type
String
Example
lookupFileLabelFromId('200') returns { 'NEW PERSON' }