-
Notifications
You must be signed in to change notification settings - Fork 1
/
ConceptListDefinition.inc.php
executable file
·90 lines (75 loc) · 1.91 KB
/
ConceptListDefinition.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
require_once(MCL_ROOT . 'iConceptListDefinition.inc.php');
/**
* Object representing the MCL.CONCEPT_LIST table. This works together
* with ConceptListInstance and ConceptListFactory.
*/
class ConceptListDefinition implements iConceptListDefinition
{
/**
* Corresponds to [mcl.concept_list.concept_list_id] or [openmrs.concept_source.concept_source_id]
*/
private $concept_list_id = null;
/**
* Corresponds to [mcl.concept_list.list_name] or [openmrs.concept_source.name]
*/
private $list_name = null;
/**
* List description. Either [openmrs.concept_source.description] or [mcl.concept_list.description]
*/
private $description = '';
/**
* Corresponds to [mcl.concept_dict.dict_id]
*/
private $dict_id = null;
/**
* Corresponds to [mcl.concept_dict.dict_name]
*/
private $source_name = null;
/**
* Corresponds to mcl.concept_dict.db_name
*/
private $source_db = null;
/**
* Constructor
*/
public function __construct() {
// do nothing
}
public function getListType() {
return MCL_CLTYPE_CONCEPT_LIST;
}
public function getListId() {
return $this->concept_list_id;
}
public function setListId($list_id) {
$this->concept_list_id = $list_id;
}
public function getName() {
return $this->list_name;
}
public function setName($name) {
$this->list_name = $name;
}
public function getDescription() {
return $this->description;
}
public function setDescription($desc) {
$this->description = $desc;
}
public function setDictionary($dict_id, $dict_name, $dict_db) {
$this->dict_id = $dict_id;
$this->source_name = $dict_name;
$this->source_db = $dict_db;
}
public function getDictionaryId() {
return $this->dict_id;
}
public function getDictionaryName() {
return $this->source_name;
}
public function getDictionaryDatabase() {
return $this->source_db;
}
}
?>