Class: ProblemService

ProblemService

Problem Service Class

Constructor

new ProblemService(db, serviceContext)

Problem Service constructor.
Parameters:
Name Type Description
db Object VistA database instance.
serviceContext Object Contains service context data.
Properties
Name Type Description
userId String User identifier.
facilityId String Facility identifier.
patientId String Patient identifier.
Source:

Methods

create(args)

Creates a new problem
Parameters:
Name Type Description
args Object Create problem arguments.
Properties
Name Type Attributes Description
diagnosis String Diagnosis identifier.
providerNarrative String Problem narrative string (e.g. 'Hypertension').
problem String Problem expression identifier.
clinic String Clinic identifier.
problemStatus enum Status of a problem. Possible values: ACTIVE, INACTIVE.
snomedCTConceptCode String SNOMED CT concept code.
snomedCTDesignationCode String SNMOED CT designation code.
codingSystem String Coding system associated with the problem (e.g. 10D).
condition enum <optional>
Problem condition. Possible values: TRANSCRIBED, PERMANENT, HIDDEN. Defaults to PERMANENT.
responsibleProvider String <optional>
Responsible provider identifier. Defaults to user.
priority enum <optional>
Immediacy value. Possible values: ACUTE, CHRONIC.
onsetDate Date <optional>
Date of problem onset.
interestDate Date <optional>
Date of interest.
uniqueTermRequested Boolean <optional>
Indicates whether a unique term was requested.
uniqueTermRequestComment String <optional>
Unique term request comment.
treatmentFactors Array <optional>
List of treatment factors. Possible values: SERVICE_CONNECTED, AGENT_ORANGE, IONIZING_RADIATION, PERSIAN_GULF, HEAD_AND_OR_NECK_CANCER, MILITARY_SEXUAL_TRAUMA, COMBAT_VETERAN, SHIPBOARD_HAZARD_DEFENSE.
comments Array <optional>
Problem comments.
Source:
Fires:
  • event:create Service create event.
Returns:
MVDM create response.

deleteComments(problemId, commentIds)

Deletes problem comments.
Parameters:
Name Type Description
problemId String Problem identifier.
commentIds Array Comment indexes to delete (e.g. [1, 3, 5])
Source:
Fires:
  • event:deleteComments Service deleteComments event.
Returns:
MVDM delete response.

describe(problemId)

Describes a problem.
Parameters:
Name Type Description
problemId String Problem identifier.
Source:
Returns:
MVDM describe response.

list(filterParamopt)

List of problems.
Parameters:
Name Type Attributes Description
filterParam String <optional>
Problem list status filter. Possible values: active, inactive, both, removed. Defaults to all.
Source:
Returns:
MVDM list response.

remove(problemId)

Removes a problem.
Parameters:
Name Type Description
problemId String Problem identifier.
Source:
Fires:
  • event:remove Service remove event.
Returns:
MVDM remove response.

unremove(problemId)

Unremoves a problem.
Parameters:
Name Type Description
problemId String Problem identifier.
Source:
Fires:
  • event:unremove Service unremove event.
Returns:
MVDM unremove response.

update(args)

Updates an existing problem.
Parameters:
Name Type Description
args Object Update problem arguments.
Properties
Name Type Attributes Description
id String Problem identifier.
diagnosis String Diagnosis identifier.
providerNarrative String Problem narrative string (e.g. 'Hypertension').
problem String Problem expression identifier.
clinic String Clinic identifier.
problemStatus enum Status of a problem. Possible values: ACTIVE, INACTIVE.
snomedCTConceptCode String SNOMED CT concept code.
snomedCTDesignationCode String SNMOED CT designation code.
codingSystem String Coding system associated with the problem (e.g. 10D).
condition enum <optional>
Problem condition. Possible values: TRANSCRIBED, PERMANENT, HIDDEN. Defaults to PERMANENT
responsibleProvider String <optional>
Responsible provider identifier.
priority enum <optional>
Immediacy value. Possible values: ACUTE, CHRONIC.
onsetDate Date <optional>
Date of problem onset.
interestDate Date <optional>
Date of interest.
uniqueTermRequested Boolean <optional>
Indicates whether a unique term was requested.
uniqueTermRequestComment String <optional>
Unique term request comment.
treatmentFactors Array <optional>
List of treatment factors. Possible values: SERVICE_CONNECTED, AGENT_ORANGE, IONIZING_RADIATION, PERSIAN_GULF, HEAD_AND_OR_NECK_CANCER, MILITARY_SEXUAL_TRAUMA, COMBAT_VETERAN, SHIPBOARD_HAZARD_DEFENSE.
comments Array <optional>
Problem comments.
Properties
Name Type Description
comment.id String Comment index.
comment.text String Comment text.
Source:
Fires:
  • event:update Service update event.
Returns:
MVDM update response.