-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathVPRJDMX.m
159 lines (159 loc) · 4.14 KB
/
VPRJDMX.m
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
VPRJDMX ;SLC/KCM -- Meta data for JSON indexes
;
; Types of collation:
; V: Inverse HL7 Time (appends "=" after complementing time)
; T: Forward HL7 Time (appends " " to time)
; N: Numeric (+value)
; S: String (appends " " to ensure string)
; s: String (case insensitive, appends " " to ensure string)
; P: Plain (uses value as is)
; p: Plain (case insensitive, use value as is)
;
; --------------------------------------------------------
; Tally time indexes maintain counts of each value a field takes on
; The definition structure is:
;
;;indexName
;; fields.{collection}: {tallyField}
IDXTALLY ; tally type indexes
;;test-name-count
;; collections: test
;; fields: name
;;syncstatus-pid-count
;; collections: syncstatus
;; fields: pid
;;syncerror-pid-count
;; collections: syncerror
;; fields: pid
;;zzzzz
;
; --------------------------------------------------------
; Attribute type indexes index first by field, then by sort
; The first collation is the field collation, followed by the sort collation.
; The default is s,s (both case-insensitive strings) if no other collation
; is defined.
IDXATTR ; attribute type indexes
;;test-name
;; collections: test
;; fields: name/s, updated/V/0
;; sort: updated desc
;;utest-name
;; collections: test, testb, utestods
;; fields: name/s
;; sort: name asc
;;vprupdate
;; collections: vprupdate
;;person
;; collections: user
;; fields: name
;; sort: name asc
;; setif: $$ACT^VPRJFD
;;personphoto
;; collections: personphoto
;; fields: personUid
;;team-membership
;; collections: team
;; fields: staff[].personUid
;; sort: displayName asc
;;team-categories
;; collections: teamcategory
;; fields: name
;; sort: name asc
;;teams
;; collections: team
;; fields: displayName
;; sort: displayName asc
;;team-positions
;; collections: teamposition
;; fields: name
;; sort: name asc
;;categories
;; collections: category
;; fields: name,domain
;; sort: name asc
;;orderable-types
;; collections: orderable
;; fields: types[].type,name
;; sort: name asc
;;orderable-linktype
;; collections: orderable
;; fields: uid,linktype
;; sort: name asc
;;vital-type-uid
;; collections: vital-type
;; fields: uid
;; sort: name asc
;;clioterminology
;; collections: clioterminology
;; fields: term, termType
;; sort: term asc
;;rosters
;; collections: roster
;; fields: localId
;;syncstatus
;; collections: syncstatus
;; fields: pid
;;rosterpats
;; collections: roster
;; fields: patients[].pid, name, localId
;;locations-wards
;; collections: location
;; fields: name
;; sort: name asc
;; setif: $$WARDLOC^VPRJFPS
;;locations-clinics
;; collections: location
;; fields: name
;; sort: name asc
;; setif: $$CLINLOC^VPRJFPS
;;active-locations-clinics
;; collections: location
;; fields: uid,name
;; sort: name asc
;; setif: $$ACTIVECLINLOC^VPRJFPS
;;status-pt
;; collections: syncstatus
;; fields: pid
;; setif: $$PTSYNCSTATUS^VPRJFPS
;;status-loading
;; collections: syncstatus
;; fields: pid
;; setif: $$PTLOADNG^VPRJFPS
;;status-loaded
;; collections: syncstatus
;; fields: pid
;; setif: $$PTLOADED^VPRJFPS
;;syncerror
;; collections: syncerror
;; fields: id
;;syncerror-pid
;; collections: syncerror
;; fields: pid
;;pt-select-pid
;; collections: pt-select
;; fields: pid/s
;; sort: fullName asc
;;pt-select-icn
;; collections: pt-select
;; fields: icn/s
;; sort: fullName asc
;;pt-select-name
;; collections: pt-select
;; fields: fullName/s
;; sort: fullName asc
;;pt-select-ssn
;; collections: pt-select
;; fields: ssn/s
;; sort: fullName asc
;;pt-select-last4
;; collections: pt-select
;; fields: last4/s
;; sort: fullName asc
;;pt-select-last5
;; collections: pt-select
;; fields: last5/s
;; sort: fullName asc
;;user-uid
;; collections: user
;; fields: uid
;;zzzzz