Class: DocumentService

DocumentService


new DocumentService()

Service for Meta (non-clinical) queries relating to the Document domain.

Methods


createDocument(documentProperties, context, callback)

Creates a new Document and assigns it to the current patient.

Right now, this is just a port of mvdmDocumentsModel

Parameters:
Name Type Description
documentProperties Object

Object with document properties to be created.

context Object

the session data

callback function

the callback function used to process results

Returns:

A success or fail message.

Type
Object

lookupDocument(documentId, context, callback)

Lookup a Document, given a Document ID

Parameters:
Name Type Description
documentId Object

The Document ID to lookup

context Object

the session data

callback function

the callback function used to process results

Returns:

A Document Object.

Type
Object