Class: PCEMetaService

PCEMetaService


new PCEMetaService()

Service for Meta (non-clinical) queries relating to the PCE domain and sub-domains.

Methods


listEducationTopics(callback)

Return an alphabetized list of active Education Topics

Parameters:
Name Type Description
callback function

The function that will process results from getEducationTopics

Returns:

Array of Objects containing ID and name properties (alphabetized by name)

Type
Array

listExamTypes(session, callback)

return an alphabetized list of active Exams

Parameters:
Name Type Description
session Object

user's session information: userId, division, domain, and stationId

callback function

the function that will process results from listExamTypes

Returns:

res - array of Objects containing id and label properties (alphabetized by label)

Type
Array

listExcludedEntries(locationUrn, type, context, callback)

returns a list of excluded PCE entries

Parameters:
Name Type Description
locationUrn Number

specific location which may be different from user location

type Number

select to search for data from specific type 1: 'ORWPCE EXCLUDE IMMUNIZATIONS\n' 2: 'ORWPCE EXCLUDE SKIN TESTS\n' 3: 'ORWPCE EXCLUDE PATIENT ED\n' 4: 'ORWPCE EXCLUDE HEALTH FACTORS\n' 5: 'ORWPCE EXCLUDE EXAMS'

context Object

the session data

callback function

the callback function used to process results

Returns:

res - Array of excluded PCE entries

Type
Array

listHealthFactorTypes(includeCategories, session, callback)

return an alphabetized list of active Health Factors

Parameters:
Name Type Description
includeCategories Boolean

to display either with or without categories

session Object

user's session information: userId, division, domain, and stationId

callback function

the function that will process results from listHealthFactorTypes

Returns:

res - array of Objects containing ID and label properties (alphabetized by label)

Type
Array

listImmunizationTypes(callback)

Return an alphabetized list of active Immunizations

Parameters:
Name Type Description
callback function

The function that will process results from listImmunizationTypes

Returns:

Array of Objects containing ID and name properties (alphabetized by name)

Type
Array

listSetOfCodes(fileId, fieldID, omit, callback)

Returns values for a set of codes given a file and field number.

Parameters:
Name Type Description
fileId String

String as fileID (i.e. '9000010.12')

fieldID String

String as fieldId (i.e. '.04')

omit Integer

(optional) specifies whether option should NOT be selected (1 - none select, 0 - selected)

callback function

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

Returns:

res An object containing a set of codes and a 'noneSelected' flag

Type
Object

lookupDefaultListSource(context, callback)

Return current user's default list source

Parameters:
Name Type Description
context Object

Session context information associated with the service call.

callback function

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

Returns:

An object containing the internal value, external value, and category name (if they exist)

Type
Object