EntryGroup
Mixin Extends:
Helper class representing an eDiary Entry Group.
Constructor Summary
Public Constructor | ||
public |
constructor(json: Object) Constructor for helper class representing an eDiary Entry Group |
Member Summary
Public Members | ||
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public set |
|
Method Summary
Public Methods | ||
public |
getTemplates(filters: Object, cacheMode: String): Promise<EntryTemplate[]|EntryTemplate> Get eDiary entry templates |
Inherited Summary
From class EntryGroupModel | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Public Constructors
public constructor(json: Object) source
Constructor for helper class representing an eDiary Entry Group
Override:
EntryGroupModel#constructorParams:
Name | Type | Attribute | Description |
json | Object | json api response from server |
Public Members
public get children: EntryGroup source
public set children: EntryGroup source
public get parent: EntryGroup source
public set parent: EntryGroup source
public get templates: EntryTemplate[] source
public set templates: EntryTemplate[] source
Public Methods
public getTemplates(filters: Object, cacheMode: String): Promise<EntryTemplate[]|EntryTemplate> source
Get eDiary entry templates
Throw:
If missing token or missing required parameters |
Example:
import { EntryGroup } from 'clinical6';
const group = new EntryGroup({ id: 15, ...});
// You will be able to access these entry groups using the `get` method.
group.getTemplates().then(templates => console.log(templates));
// You can also use the filter for automatic or manual
group.getTemplates({ category: 'automatic' }).then(templates => console.log(templates));
// additionally after the call, group.templates should now be the returned templates
console.log(group.templates);